IotHubProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.iothub.models.IotHubProperties

public final class IotHubProperties

The properties of an IoT hub.

Constructor Summary

Constructor Description
IotHubProperties()

Creates an instance of IotHubProperties class.

Method Summary

Modifier and Type Method and Description
List<String> allowedFqdnList()

Get the allowedFqdnList property: List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.

List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies()

Get the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT hub.

CloudToDeviceProperties cloudToDevice()

Get the cloudToDevice property: The IoT hub cloud-to-device messaging properties.

String comments()

Get the comments property: IoT hub comments.

Boolean disableDeviceSas()

Get the disableDeviceSas property: If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be used for authentication.

Boolean disableLocalAuth()

Get the disableLocalAuth property: If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication.

Boolean disableModuleSas()

Get the disableModuleSas property: If true, all module scoped SAS keys cannot be used for authentication.

Boolean enableDataResidency()

Get the enableDataResidency property: This property when set to true, will enable data residency, thus, disabling disaster recovery.

Boolean enableFileUploadNotifications()

Get the enableFileUploadNotifications property: If True, file upload notifications are enabled.

Map<String,EventHubProperties> eventHubEndpoints()

Get the eventHubEndpoints property: The Event Hub-compatible endpoint properties.

Capabilities features()

Get the features property: The capabilities and features enabled for the IoT hub.

String hostname()

Get the hostname property: The name of the host.

List<IpFilterRule> ipFilterRules()

Get the ipFilterRules property: The IP filter rules.

List<IotHubLocationDescription> locations()

Get the locations property: Primary and secondary location for iot hub.

Map<String,MessagingEndpointProperties> messagingEndpoints()

Get the messagingEndpoints property: The messaging endpoint properties for the file upload notification queue.

String minTlsVersion()

Get the minTlsVersion property: Specifies the minimum TLS version to support for this hub.

NetworkRuleSetProperties networkRuleSets()

Get the networkRuleSets property: Network Rule Set Properties of IotHub.

List<PrivateEndpointConnectionInner> privateEndpointConnections()

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

String provisioningState()

Get the provisioningState property: The provisioning state.

PublicNetworkAccess publicNetworkAccess()

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

Boolean restrictOutboundNetworkAccess()

Get the restrictOutboundNetworkAccess property: If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured via allowedFqdnList.

RoutingProperties routing()

Get the routing property: The routing related properties of the IoT hub.

String state()

Get the state property: The hub state.

Map<String,StorageEndpointProperties> storageEndpoints()

Get the storageEndpoints property: The list of Azure Storage endpoints where you can upload files.

void validate()

Validates the instance.

IotHubProperties withAllowedFqdnList(List<String> allowedFqdnList)

Set the allowedFqdnList property: List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.

IotHubProperties withAuthorizationPolicies(List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies)

Set the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT hub.

IotHubProperties withCloudToDevice(CloudToDeviceProperties cloudToDevice)

Set the cloudToDevice property: The IoT hub cloud-to-device messaging properties.

IotHubProperties withComments(String comments)

Set the comments property: IoT hub comments.

IotHubProperties withDisableDeviceSas(Boolean disableDeviceSas)

Set the disableDeviceSas property: If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be used for authentication.

IotHubProperties withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication.

IotHubProperties withDisableModuleSas(Boolean disableModuleSas)

Set the disableModuleSas property: If true, all module scoped SAS keys cannot be used for authentication.

IotHubProperties withEnableDataResidency(Boolean enableDataResidency)

Set the enableDataResidency property: This property when set to true, will enable data residency, thus, disabling disaster recovery.

IotHubProperties withEnableFileUploadNotifications(Boolean enableFileUploadNotifications)

Set the enableFileUploadNotifications property: If True, file upload notifications are enabled.

IotHubProperties withEventHubEndpoints(Map<String,EventHubProperties> eventHubEndpoints)

Set the eventHubEndpoints property: The Event Hub-compatible endpoint properties.

IotHubProperties withFeatures(Capabilities features)

Set the features property: The capabilities and features enabled for the IoT hub.

IotHubProperties withIpFilterRules(List<IpFilterRule> ipFilterRules)

Set the ipFilterRules property: The IP filter rules.

IotHubProperties withMessagingEndpoints(Map<String,MessagingEndpointProperties> messagingEndpoints)

Set the messagingEndpoints property: The messaging endpoint properties for the file upload notification queue.

IotHubProperties withMinTlsVersion(String minTlsVersion)

Set the minTlsVersion property: Specifies the minimum TLS version to support for this hub.

IotHubProperties withNetworkRuleSets(NetworkRuleSetProperties networkRuleSets)

Set the networkRuleSets property: Network Rule Set Properties of IotHub.

IotHubProperties withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections)

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

IotHubProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

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

IotHubProperties withRestrictOutboundNetworkAccess(Boolean restrictOutboundNetworkAccess)

Set the restrictOutboundNetworkAccess property: If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured via allowedFqdnList.

IotHubProperties withRouting(RoutingProperties routing)

Set the routing property: The routing related properties of the IoT hub.

IotHubProperties withStorageEndpoints(Map<String,StorageEndpointProperties> storageEndpoints)

Set the storageEndpoints property: The list of Azure Storage endpoints where you can upload files.

Methods inherited from java.lang.Object

Constructor Details

IotHubProperties

public IotHubProperties()

Creates an instance of IotHubProperties class.

Method Details

allowedFqdnList

public List allowedFqdnList()

Get the allowedFqdnList property: List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.

Returns:

the allowedFqdnList value.

authorizationPolicies

public List authorizationPolicies()

Get the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT hub.

Returns:

the authorizationPolicies value.

cloudToDevice

public CloudToDeviceProperties cloudToDevice()

Get the cloudToDevice property: The IoT hub cloud-to-device messaging properties.

Returns:

the cloudToDevice value.

comments

public String comments()

Get the comments property: IoT hub comments.

Returns:

the comments value.

disableDeviceSas

public Boolean disableDeviceSas()

Get the disableDeviceSas property: If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be used for authentication.

Returns:

the disableDeviceSas value.

disableLocalAuth

public Boolean disableLocalAuth()

Get the disableLocalAuth property: If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication.

Returns:

the disableLocalAuth value.

disableModuleSas

public Boolean disableModuleSas()

Get the disableModuleSas property: If true, all module scoped SAS keys cannot be used for authentication.

Returns:

the disableModuleSas value.

enableDataResidency

public Boolean enableDataResidency()

Get the enableDataResidency property: This property when set to true, will enable data residency, thus, disabling disaster recovery.

Returns:

the enableDataResidency value.

enableFileUploadNotifications

public Boolean enableFileUploadNotifications()

Get the enableFileUploadNotifications property: If True, file upload notifications are enabled.

Returns:

the enableFileUploadNotifications value.

eventHubEndpoints

public Map eventHubEndpoints()

Get the eventHubEndpoints property: The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub.

Returns:

the eventHubEndpoints value.

features

public Capabilities features()

Get the features property: The capabilities and features enabled for the IoT hub.

Returns:

the features value.

hostname

public String hostname()

Get the hostname property: The name of the host.

Returns:

the hostname value.

ipFilterRules

public List ipFilterRules()

Get the ipFilterRules property: The IP filter rules.

Returns:

the ipFilterRules value.

locations

public List locations()

Get the locations property: Primary and secondary location for iot hub.

Returns:

the locations value.

messagingEndpoints

public Map messagingEndpoints()

Get the messagingEndpoints property: The messaging endpoint properties for the file upload notification queue.

Returns:

the messagingEndpoints value.

minTlsVersion

public String minTlsVersion()

Get the minTlsVersion property: Specifies the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS version below 1.2 to be rejected.

Returns:

the minTlsVersion value.

networkRuleSets

public NetworkRuleSetProperties networkRuleSets()

Get the networkRuleSets property: Network Rule Set Properties of IotHub.

Returns:

the networkRuleSets value.

privateEndpointConnections

public List 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 provisioning state.

Returns:

the provisioningState value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

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

Returns:

the publicNetworkAccess value.

restrictOutboundNetworkAccess

public Boolean restrictOutboundNetworkAccess()

Get the restrictOutboundNetworkAccess property: If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured via allowedFqdnList.

Returns:

the restrictOutboundNetworkAccess value.

routing

public RoutingProperties routing()

Get the routing property: The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.

Returns:

the routing value.

state

public String state()

Get the state property: The hub state.

Returns:

the state value.

storageEndpoints

public Map storageEndpoints()

Get the storageEndpoints property: The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.

Returns:

the storageEndpoints value.

validate

public void validate()

Validates the instance.

withAllowedFqdnList

public IotHubProperties withAllowedFqdnList(List allowedFqdnList)

Set the allowedFqdnList property: List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.

Parameters:

allowedFqdnList - the allowedFqdnList value to set.

Returns:

the IotHubProperties object itself.

withAuthorizationPolicies

public IotHubProperties withAuthorizationPolicies(List authorizationPolicies)

Set the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT hub.

Parameters:

authorizationPolicies - the authorizationPolicies value to set.

Returns:

the IotHubProperties object itself.

withCloudToDevice

public IotHubProperties withCloudToDevice(CloudToDeviceProperties cloudToDevice)

Set the cloudToDevice property: The IoT hub cloud-to-device messaging properties.

Parameters:

cloudToDevice - the cloudToDevice value to set.

Returns:

the IotHubProperties object itself.

withComments

public IotHubProperties withComments(String comments)

Set the comments property: IoT hub comments.

Parameters:

comments - the comments value to set.

Returns:

the IotHubProperties object itself.

withDisableDeviceSas

public IotHubProperties withDisableDeviceSas(Boolean disableDeviceSas)

Set the disableDeviceSas property: If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be used for authentication.

Parameters:

disableDeviceSas - the disableDeviceSas value to set.

Returns:

the IotHubProperties object itself.

withDisableLocalAuth

public IotHubProperties withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication.

Parameters:

disableLocalAuth - the disableLocalAuth value to set.

Returns:

the IotHubProperties object itself.

withDisableModuleSas

public IotHubProperties withDisableModuleSas(Boolean disableModuleSas)

Set the disableModuleSas property: If true, all module scoped SAS keys cannot be used for authentication.

Parameters:

disableModuleSas - the disableModuleSas value to set.

Returns:

the IotHubProperties object itself.

withEnableDataResidency

public IotHubProperties withEnableDataResidency(Boolean enableDataResidency)

Set the enableDataResidency property: This property when set to true, will enable data residency, thus, disabling disaster recovery.

Parameters:

enableDataResidency - the enableDataResidency value to set.

Returns:

the IotHubProperties object itself.

withEnableFileUploadNotifications

public IotHubProperties withEnableFileUploadNotifications(Boolean enableFileUploadNotifications)

Set the enableFileUploadNotifications property: If True, file upload notifications are enabled.

Parameters:

enableFileUploadNotifications - the enableFileUploadNotifications value to set.

Returns:

the IotHubProperties object itself.

withEventHubEndpoints

public IotHubProperties withEventHubEndpoints(Map eventHubEndpoints)

Set the eventHubEndpoints property: The Event Hub-compatible endpoint properties. The only possible keys to this dictionary is events. This key has to be present in the dictionary while making create or update calls for the IoT hub.

Parameters:

eventHubEndpoints - the eventHubEndpoints value to set.

Returns:

the IotHubProperties object itself.

withFeatures

public IotHubProperties withFeatures(Capabilities features)

Set the features property: The capabilities and features enabled for the IoT hub.

Parameters:

features - the features value to set.

Returns:

the IotHubProperties object itself.

withIpFilterRules

public IotHubProperties withIpFilterRules(List ipFilterRules)

Set the ipFilterRules property: The IP filter rules.

Parameters:

ipFilterRules - the ipFilterRules value to set.

Returns:

the IotHubProperties object itself.

withMessagingEndpoints

public IotHubProperties withMessagingEndpoints(Map messagingEndpoints)

Set the messagingEndpoints property: The messaging endpoint properties for the file upload notification queue.

Parameters:

messagingEndpoints - the messagingEndpoints value to set.

Returns:

the IotHubProperties object itself.

withMinTlsVersion

public IotHubProperties withMinTlsVersion(String minTlsVersion)

Set the minTlsVersion property: Specifies the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS version below 1.2 to be rejected.

Parameters:

minTlsVersion - the minTlsVersion value to set.

Returns:

the IotHubProperties object itself.

withNetworkRuleSets

public IotHubProperties withNetworkRuleSets(NetworkRuleSetProperties networkRuleSets)

Set the networkRuleSets property: Network Rule Set Properties of IotHub.

Parameters:

networkRuleSets - the networkRuleSets value to set.

Returns:

the IotHubProperties object itself.

withPrivateEndpointConnections

public IotHubProperties withPrivateEndpointConnections(List privateEndpointConnections)

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

Parameters:

privateEndpointConnections - the privateEndpointConnections value to set.

Returns:

the IotHubProperties object itself.

withPublicNetworkAccess

public IotHubProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

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

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the IotHubProperties object itself.

withRestrictOutboundNetworkAccess

public IotHubProperties withRestrictOutboundNetworkAccess(Boolean restrictOutboundNetworkAccess)

Set the restrictOutboundNetworkAccess property: If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured via allowedFqdnList.

Parameters:

restrictOutboundNetworkAccess - the restrictOutboundNetworkAccess value to set.

Returns:

the IotHubProperties object itself.

withRouting

public IotHubProperties withRouting(RoutingProperties routing)

Set the routing property: The routing related properties of the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.

Parameters:

routing - the routing value to set.

Returns:

the IotHubProperties object itself.

withStorageEndpoints

public IotHubProperties withStorageEndpoints(Map storageEndpoints)

Set the storageEndpoints property: The list of Azure Storage endpoints where you can upload files. Currently you can configure only one Azure Storage account and that MUST have its key as $default. Specifying more than one storage account causes an error to be thrown. Not specifying a value for this property when the enableFileUploadNotifications property is set to True, causes an error to be thrown.

Parameters:

storageEndpoints - the storageEndpoints value to set.

Returns:

the IotHubProperties object itself.

Applies to