Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.iothub.v2018_04_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Twin reference input parameter. This is an optional parameter.
*/
public class RoutingTwin {
/**
* Twin Tags.
*/
@JsonProperty(value = "tags")
private Object tags;

/**
* The properties property.
*/
@JsonProperty(value = "properties")
private RoutingTwinProperties properties;

/**
* Get twin Tags.
*
* @return the tags value
*/
public Object tags() {
return this.tags;
}

/**
* Set twin Tags.
*
* @param tags the tags value to set
* @return the RoutingTwin object itself.
*/
public RoutingTwin withTags(Object tags) {
this.tags = tags;
return this;
}

/**
* Get the properties value.
*
* @return the properties value
*/
public RoutingTwinProperties properties() {
return this.properties;
}

/**
* Set the properties value.
*
* @param properties the properties value to set
* @return the RoutingTwin object itself.
*/
public RoutingTwin withProperties(RoutingTwinProperties properties) {
this.properties = properties;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.iothub.v2018_04_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The RoutingTwinProperties model.
*/
public class RoutingTwinProperties {
/**
* Twin desired properties.
*/
@JsonProperty(value = "desiredProperties")
private Object desiredProperties;

/**
* Twin desired properties.
*/
@JsonProperty(value = "reportedProperties")
private Object reportedProperties;

/**
* Get twin desired properties.
*
* @return the desiredProperties value
*/
public Object desiredProperties() {
return this.desiredProperties;
}

/**
* Set twin desired properties.
*
* @param desiredProperties the desiredProperties value to set
* @return the RoutingTwinProperties object itself.
*/
public RoutingTwinProperties withDesiredProperties(Object desiredProperties) {
this.desiredProperties = desiredProperties;
return this;
}

/**
* Get twin desired properties.
*
* @return the reportedProperties value
*/
public Object reportedProperties() {
return this.reportedProperties;
}

/**
* Set twin desired properties.
*
* @param reportedProperties the reportedProperties value to set
* @return the RoutingTwinProperties object itself.
*/
public RoutingTwinProperties withReportedProperties(Object reportedProperties) {
this.reportedProperties = reportedProperties;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public class TestAllRoutesInput {
@JsonProperty(value = "message")
private RoutingMessage message;

/**
* Routing Twin Reference.
*/
@JsonProperty(value = "twin")
private RoutingTwin twin;

/**
* Get routing source. Possible values include: 'Invalid', 'DeviceMessages', 'TwinChangeEvents', 'DeviceLifecycleEvents', 'DeviceJobLifecycleEvents'.
*
Expand Down Expand Up @@ -67,4 +73,24 @@ public TestAllRoutesInput withMessage(RoutingMessage message) {
return this;
}

/**
* Get routing Twin Reference.
*
* @return the twin value
*/
public RoutingTwin twin() {
return this.twin;
}

/**
* Set routing Twin Reference.
*
* @param twin the twin value to set
* @return the TestAllRoutesInput object itself.
*/
public TestAllRoutesInput withTwin(RoutingTwin twin) {
this.twin = twin;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public class TestRouteInput {
@JsonProperty(value = "route", required = true)
private RouteProperties route;

/**
* Routing Twin Reference.
*/
@JsonProperty(value = "twin")
private RoutingTwin twin;

/**
* Get routing message.
*
Expand Down Expand Up @@ -66,4 +72,24 @@ public TestRouteInput withRoute(RouteProperties route) {
return this;
}

/**
* Get routing Twin Reference.
*
* @return the twin value
*/
public RoutingTwin twin() {
return this.twin;
}

/**
* Set routing Twin Reference.
*
* @param twin the twin value to set
* @return the TestRouteInput object itself.
*/
public TestRouteInput withTwin(RoutingTwin twin) {
this.twin = twin;
return this;
}

}