IotHubDefinitionDescription Class
- java.
lang. Object - com.
azure. resourcemanager. deviceprovisioningservices. models. IotHubDefinitionDescription
- com.
Implements
public final class IotHubDefinitionDescription
implements JsonSerializable<IotHubDefinitionDescription>
Description of the IoT hub.
Constructor Summary
| Constructor | Description |
|---|---|
| IotHubDefinitionDescription() |
Creates an instance of Iot |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
allocationWeight()
Get the allocation |
| Boolean |
applyAllocationPolicy()
Get the apply |
|
Iot |
authenticationType()
Get the authentication |
| String |
connectionString()
Get the connection |
|
static
Iot |
fromJson(JsonReader jsonReader)
Reads an instance of Iot |
| String |
hostName()
Get the host |
| String |
location()
Get the location property: ARM region of the IoT hub. |
| String |
name()
Get the name property: Host name of the IoT hub. |
| String |
selectedUserAssignedIdentityResourceId()
Get the selected |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Iot |
withAllocationWeight(Integer allocationWeight)
Set the allocation |
|
Iot |
withApplyAllocationPolicy(Boolean applyAllocationPolicy)
Set the apply |
|
Iot |
withAuthenticationType(IotHubAuthenticationType authenticationType)
Set the authentication |
|
Iot |
withConnectionString(String connectionString)
Set the connection |
|
Iot |
withHostName(String hostName)
Set the host |
|
Iot |
withLocation(String location)
Set the location property: ARM region of the IoT hub. |
|
Iot |
withSelectedUserAssignedIdentityResourceId(String selectedUserAssignedIdentityResourceId)
Set the selected |
Methods inherited from java.lang.Object
Constructor Details
IotHubDefinitionDescription
public IotHubDefinitionDescription()
Creates an instance of IotHubDefinitionDescription class.
Method Details
allocationWeight
public Integer allocationWeight()
Get the allocationWeight property: weight to apply for a given iot h.
Returns:
applyAllocationPolicy
public Boolean applyAllocationPolicy()
Get the applyAllocationPolicy property: flag for applying allocationPolicy or not for a given iot hub.
Returns:
authenticationType
public IotHubAuthenticationType authenticationType()
Get the authenticationType property: IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.
Returns:
connectionString
public String connectionString()
Get the connectionString property: Connection string of the IoT hub. This is required when authenticationType is KeyBased.
Returns:
fromJson
public static IotHubDefinitionDescription fromJson(JsonReader jsonReader)
Reads an instance of IotHubDefinitionDescription from the JsonReader.
Parameters:
Returns:
Throws:
hostName
public String hostName()
Get the hostName property: Host name of the IoT hub. This is required when connectionString is not provided.
Returns:
location
public String location()
Get the location property: ARM region of the IoT hub.
Returns:
name
public String name()
Get the name property: Host name of the IoT hub.
Returns:
selectedUserAssignedIdentityResourceId
public String selectedUserAssignedIdentityResourceId()
Get the selectedUserAssignedIdentityResourceId property: The selected user-assigned identity resource Id associated with IoT hub. This is required when authenticationType is UserAssigned.
Returns:
toJson
withAllocationWeight
public IotHubDefinitionDescription withAllocationWeight(Integer allocationWeight)
Set the allocationWeight property: weight to apply for a given iot h.
Parameters:
Returns:
withApplyAllocationPolicy
public IotHubDefinitionDescription withApplyAllocationPolicy(Boolean applyAllocationPolicy)
Set the applyAllocationPolicy property: flag for applying allocationPolicy or not for a given iot hub.
Parameters:
Returns:
withAuthenticationType
public IotHubDefinitionDescription withAuthenticationType(IotHubAuthenticationType authenticationType)
Set the authenticationType property: IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.
Parameters:
Returns:
withConnectionString
public IotHubDefinitionDescription withConnectionString(String connectionString)
Set the connectionString property: Connection string of the IoT hub. This is required when authenticationType is KeyBased.
Parameters:
Returns:
withHostName
public IotHubDefinitionDescription withHostName(String hostName)
Set the hostName property: Host name of the IoT hub. This is required when connectionString is not provided.
Parameters:
Returns:
withLocation
public IotHubDefinitionDescription withLocation(String location)
Set the location property: ARM region of the IoT hub.
Parameters:
Returns:
withSelectedUserAssignedIdentityResourceId
public IotHubDefinitionDescription withSelectedUserAssignedIdentityResourceId(String selectedUserAssignedIdentityResourceId)
Set the selectedUserAssignedIdentityResourceId property: The selected user-assigned identity resource Id associated with IoT hub. This is required when authenticationType is UserAssigned.
Parameters:
Returns: