IotDpsPropertiesDescription Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.models.IotDpsPropertiesDescription

Implements

public final class IotDpsPropertiesDescription
implements JsonSerializable<IotDpsPropertiesDescription>

the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope.

Constructor Summary

Constructor Description
IotDpsPropertiesDescription()

Creates an instance of IotDpsPropertiesDescription class.

Method Summary

Modifier and Type Method and Description
AllocationPolicy allocationPolicy()

Get the allocationPolicy property: Allocation policy to be used by this provisioning service.

List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies()

Get the authorizationPolicies property: List of authorization keys for a provisioning service.

String deviceProvisioningHostname()

Get the deviceProvisioningHostname property: Device endpoint for this provisioning service.

Boolean disableLocalAuth()

Get the disableLocalAuth property: Disables all authentication methods other than Azure RBAC.

Boolean enableDataResidency()

Get the enableDataResidency property: Optional.

static IotDpsPropertiesDescription fromJson(JsonReader jsonReader)

Reads an instance of IotDpsPropertiesDescription from the JsonReader.

String idScope()

Get the idScope property: Unique identifier of this provisioning service.

List<IotHubDefinitionDescription> iotHubs()

Get the iotHubs property: List of IoT hubs associated with this provisioning service.

List<IpFilterRule> ipFilterRules()

Get the ipFilterRules property: The IP filter rules.

String portalOperationsHostName()

Get the portalOperationsHostName property: Portal endpoint to enable CORS for this provisioning service.

List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: Private endpoint connections created on this IotHub.

String provisioningState()

Get the provisioningState property: The ARM provisioning state of the provisioning service.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Whether requests from Public Network are allowed.

String serviceOperationsHostname()

Get the serviceOperationsHostname property: Service endpoint for provisioning service.

State state()

Get the state property: Current state of the provisioning service.

JsonWriter toJson(JsonWriter jsonWriter)
IotDpsPropertiesDescription withAllocationPolicy(AllocationPolicy allocationPolicy)

Set the allocationPolicy property: Allocation policy to be used by this provisioning service.

IotDpsPropertiesDescription withAuthorizationPolicies(List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies)

Set the authorizationPolicies property: List of authorization keys for a provisioning service.

IotDpsPropertiesDescription withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: Disables all authentication methods other than Azure RBAC.

IotDpsPropertiesDescription withEnableDataResidency(Boolean enableDataResidency)

Set the enableDataResidency property: Optional.

IotDpsPropertiesDescription withIotHubs(List<IotHubDefinitionDescription> iotHubs)

Set the iotHubs property: List of IoT hubs associated with this provisioning service.

IotDpsPropertiesDescription withIpFilterRules(List<IpFilterRule> ipFilterRules)

Set the ipFilterRules property: The IP filter rules.

IotDpsPropertiesDescription withPortalOperationsHostName(String portalOperationsHostName)

Set the portalOperationsHostName property: Portal endpoint to enable CORS for this provisioning service.

IotDpsPropertiesDescription withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections)

Set the privateEndpointConnections property: Private endpoint connections created on this IotHub.

IotDpsPropertiesDescription withProvisioningState(String provisioningState)

Set the provisioningState property: The ARM provisioning state of the provisioning service.

IotDpsPropertiesDescription withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Whether requests from Public Network are allowed.

IotDpsPropertiesDescription withState(State state)

Set the state property: Current state of the provisioning service.

Methods inherited from java.lang.Object

Constructor Details

IotDpsPropertiesDescription

public IotDpsPropertiesDescription()

Creates an instance of IotDpsPropertiesDescription class.

Method Details

allocationPolicy

public AllocationPolicy allocationPolicy()

Get the allocationPolicy property: Allocation policy to be used by this provisioning service.

Returns:

the allocationPolicy value.

authorizationPolicies

public List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies()

Get the authorizationPolicies property: List of authorization keys for a provisioning service.

Returns:

the authorizationPolicies value.

deviceProvisioningHostname

public String deviceProvisioningHostname()

Get the deviceProvisioningHostname property: Device endpoint for this provisioning service.

Returns:

the deviceProvisioningHostname value.

disableLocalAuth

public Boolean disableLocalAuth()

Get the disableLocalAuth property: Disables all authentication methods other than Azure RBAC.

Returns:

the disableLocalAuth value.

enableDataResidency

public Boolean enableDataResidency()

Get the enableDataResidency property: Optional. Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery.

Returns:

the enableDataResidency value.

fromJson

public static IotDpsPropertiesDescription fromJson(JsonReader jsonReader)

Reads an instance of IotDpsPropertiesDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IotDpsPropertiesDescription if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the IotDpsPropertiesDescription.

idScope

public String idScope()

Get the idScope property: Unique identifier of this provisioning service.

Returns:

the idScope value.

iotHubs

public List<IotHubDefinitionDescription> iotHubs()

Get the iotHubs property: List of IoT hubs associated with this provisioning service.

Returns:

the iotHubs value.

ipFilterRules

public List<IpFilterRule> ipFilterRules()

Get the ipFilterRules property: The IP filter rules.

Returns:

the ipFilterRules value.

portalOperationsHostName

public String portalOperationsHostName()

Get the portalOperationsHostName property: Portal endpoint to enable CORS for this provisioning service.

Returns:

the portalOperationsHostName value.

privateEndpointConnections

public List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: Private endpoint connections created on this IotHub.

Returns:

the privateEndpointConnections value.

provisioningState

public String provisioningState()

Get the provisioningState property: The ARM provisioning state of the provisioning service.

Returns:

the provisioningState value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Whether requests from Public Network are allowed.

Returns:

the publicNetworkAccess value.

serviceOperationsHostname

public String serviceOperationsHostname()

Get the serviceOperationsHostname property: Service endpoint for provisioning service.

Returns:

the serviceOperationsHostname value.

state

public State state()

Get the state property: Current state of the provisioning service.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAllocationPolicy

public IotDpsPropertiesDescription withAllocationPolicy(AllocationPolicy allocationPolicy)

Set the allocationPolicy property: Allocation policy to be used by this provisioning service.

Parameters:

allocationPolicy - the allocationPolicy value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withAuthorizationPolicies

public IotDpsPropertiesDescription withAuthorizationPolicies(List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies)

Set the authorizationPolicies property: List of authorization keys for a provisioning service.

Parameters:

authorizationPolicies - the authorizationPolicies value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withDisableLocalAuth

public IotDpsPropertiesDescription withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: Disables all authentication methods other than Azure RBAC.

Parameters:

disableLocalAuth - the disableLocalAuth value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withEnableDataResidency

public IotDpsPropertiesDescription withEnableDataResidency(Boolean enableDataResidency)

Set the enableDataResidency property: Optional. Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery.

Parameters:

enableDataResidency - the enableDataResidency value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withIotHubs

public IotDpsPropertiesDescription withIotHubs(List<IotHubDefinitionDescription> iotHubs)

Set the iotHubs property: List of IoT hubs associated with this provisioning service.

Parameters:

iotHubs - the iotHubs value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withIpFilterRules

public IotDpsPropertiesDescription withIpFilterRules(List<IpFilterRule> ipFilterRules)

Set the ipFilterRules property: The IP filter rules.

Parameters:

ipFilterRules - the ipFilterRules value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withPortalOperationsHostName

public IotDpsPropertiesDescription withPortalOperationsHostName(String portalOperationsHostName)

Set the portalOperationsHostName property: Portal endpoint to enable CORS for this provisioning service.

Parameters:

portalOperationsHostName - the portalOperationsHostName value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withPrivateEndpointConnections

public IotDpsPropertiesDescription withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections)

Set the privateEndpointConnections property: Private endpoint connections created on this IotHub.

Parameters:

privateEndpointConnections - the privateEndpointConnections value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withProvisioningState

public IotDpsPropertiesDescription withProvisioningState(String provisioningState)

Set the provisioningState property: The ARM provisioning state of the provisioning service.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withPublicNetworkAccess

public IotDpsPropertiesDescription withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Whether requests from Public Network are allowed.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the IotDpsPropertiesDescription object itself.

withState

public IotDpsPropertiesDescription withState(State state)

Set the state property: Current state of the provisioning service.

Parameters:

state - the state value to set.

Returns:

the IotDpsPropertiesDescription object itself.

Applies to