Class IotHubDefinitionDescription
java.lang.Object
com.azure.resourcemanager.deviceprovisioningservices.models.IotHubDefinitionDescription
Description of the IoT hub.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allocationWeight property: weight to apply for a given iot h.Get the applyAllocationPolicy property: flag for applying allocationPolicy or not for a given iot hub.Get the connectionString property: Connection string of the IoT hub.location()
Get the location property: ARM region of the IoT hub.name()
Get the name property: Host name of the IoT hub.void
validate()
Validates the instance.withAllocationWeight
(Integer allocationWeight) Set the allocationWeight property: weight to apply for a given iot h.withApplyAllocationPolicy
(Boolean applyAllocationPolicy) Set the applyAllocationPolicy property: flag for applying allocationPolicy or not for a given iot hub.withConnectionString
(String connectionString) Set the connectionString property: Connection string of the IoT hub.withLocation
(String location) Set the location property: ARM region of the IoT hub.
-
Constructor Details
-
IotHubDefinitionDescription
public IotHubDefinitionDescription()
-
-
Method Details
-
applyAllocationPolicy
Get the applyAllocationPolicy property: flag for applying allocationPolicy or not for a given iot hub.- Returns:
- the applyAllocationPolicy value.
-
withApplyAllocationPolicy
Set the applyAllocationPolicy property: flag for applying allocationPolicy or not for a given iot hub.- Parameters:
applyAllocationPolicy
- the applyAllocationPolicy value to set.- Returns:
- the IotHubDefinitionDescription object itself.
-
allocationWeight
Get the allocationWeight property: weight to apply for a given iot h.- Returns:
- the allocationWeight value.
-
withAllocationWeight
Set the allocationWeight property: weight to apply for a given iot h.- Parameters:
allocationWeight
- the allocationWeight value to set.- Returns:
- the IotHubDefinitionDescription object itself.
-
name
Get the name property: Host name of the IoT hub.- Returns:
- the name value.
-
connectionString
Get the connectionString property: Connection string of the IoT hub.- Returns:
- the connectionString value.
-
withConnectionString
Set the connectionString property: Connection string of the IoT hub.- Parameters:
connectionString
- the connectionString value to set.- Returns:
- the IotHubDefinitionDescription object itself.
-
location
Get the location property: ARM region of the IoT hub.- Returns:
- the location value.
-
withLocation
Set the location property: ARM region of the IoT hub.- Parameters:
location
- the location value to set.- Returns:
- the IotHubDefinitionDescription object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-