forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from a7cfe1e2ec00288db450aa9f5c37d071eeb77d18
- Loading branch information
SDK Automation
committed
Oct 25, 2020
1 parent
0de01a1
commit b758857
Showing
49 changed files
with
696 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
.../com/microsoft/azure/management/iothub/v2019_03_22_preview/IotHubLocationDescription.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
* 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.v2019_03_22_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Public representation of one of the locations where a resource is | ||
* provisioned. | ||
*/ | ||
public class IotHubLocationDescription { | ||
/** | ||
* Azure Geo Regions. | ||
*/ | ||
@JsonProperty(value = "location") | ||
private String location; | ||
|
||
/** | ||
* Specific Role assigned to this location. Possible values include: | ||
* 'primary', 'secondary'. | ||
*/ | ||
@JsonProperty(value = "role") | ||
private IotHubReplicaRoleType role; | ||
|
||
/** | ||
* Get azure Geo Regions. | ||
* | ||
* @return the location value | ||
*/ | ||
public String location() { | ||
return this.location; | ||
} | ||
|
||
/** | ||
* Set azure Geo Regions. | ||
* | ||
* @param location the location value to set | ||
* @return the IotHubLocationDescription object itself. | ||
*/ | ||
public IotHubLocationDescription withLocation(String location) { | ||
this.location = location; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get specific Role assigned to this location. Possible values include: 'primary', 'secondary'. | ||
* | ||
* @return the role value | ||
*/ | ||
public IotHubReplicaRoleType role() { | ||
return this.role; | ||
} | ||
|
||
/** | ||
* Set specific Role assigned to this location. Possible values include: 'primary', 'secondary'. | ||
* | ||
* @param role the role value to set | ||
* @return the IotHubLocationDescription object itself. | ||
*/ | ||
public IotHubLocationDescription withRole(IotHubReplicaRoleType role) { | ||
this.role = role; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...java/com/microsoft/azure/management/iothub/v2019_03_22_preview/IotHubReplicaRoleType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* 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.v2019_03_22_preview; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for IotHubReplicaRoleType. | ||
*/ | ||
public final class IotHubReplicaRoleType extends ExpandableStringEnum<IotHubReplicaRoleType> { | ||
/** Static value primary for IotHubReplicaRoleType. */ | ||
public static final IotHubReplicaRoleType PRIMARY = fromString("primary"); | ||
|
||
/** Static value secondary for IotHubReplicaRoleType. */ | ||
public static final IotHubReplicaRoleType SECONDARY = fromString("secondary"); | ||
|
||
/** | ||
* Creates or finds a IotHubReplicaRoleType from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding IotHubReplicaRoleType | ||
*/ | ||
@JsonCreator | ||
public static IotHubReplicaRoleType fromString(String name) { | ||
return fromString(name, IotHubReplicaRoleType.class); | ||
} | ||
|
||
/** | ||
* @return known IotHubReplicaRoleType values | ||
*/ | ||
public static Collection<IotHubReplicaRoleType> values() { | ||
return values(IotHubReplicaRoleType.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.