IotHubProperties Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. models. IotHubProperties
- com.
public final class IotHubProperties
The properties of an IoT hub.
Constructor Summary
Constructor | Description |
---|---|
IotHubProperties() |
Creates an instance of Iot |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
allowedFqdnList()
Get the allowed |
List<Shared |
authorizationPolicies()
Get the authorization |
Cloud |
cloudToDevice()
Get the cloud |
String |
comments()
Get the comments property: IoT hub comments. |
Boolean |
disableDeviceSas()
Get the disable |
Boolean |
disableLocalAuth()
Get the disable |
Boolean |
disableModuleSas()
Get the disable |
Boolean |
enableDataResidency()
Get the enable |
Boolean |
enableFileUploadNotifications()
Get the enable |
Map<String,Event |
eventHubEndpoints()
Get the event |
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<Ip |
ipFilterRules()
Get the ip |
List<Iot |
locations()
Get the locations property: Primary and secondary location for iot hub. |
Map<String,Messaging |
messagingEndpoints()
Get the messaging |
String |
minTlsVersion()
Get the min |
Network |
networkRuleSets()
Get the network |
List<Private |
privateEndpointConnections()
Get the private |
String |
provisioningState()
Get the provisioning |
Public |
publicNetworkAccess()
Get the public |
Boolean |
restrictOutboundNetworkAccess()
Get the restrict |
Routing |
routing()
Get the routing property: The routing related properties of the IoT hub. |
String |
state()
Get the state property: The hub state. |
Map<String,Storage |
storageEndpoints()
Get the storage |
void |
validate()
Validates the instance. |
Iot |
withAllowedFqdnList(List<String> allowedFqdnList)
Set the allowed |
Iot |
withAuthorizationPolicies(List<SharedAccessSignatureAuthorizationRuleInner> authorizationPolicies)
Set the authorization |
Iot |
withCloudToDevice(CloudToDeviceProperties cloudToDevice)
Set the cloud |
Iot |
withComments(String comments)
Set the comments property: IoT hub comments. |
Iot |
withDisableDeviceSas(Boolean disableDeviceSas)
Set the disable |
Iot |
withDisableLocalAuth(Boolean disableLocalAuth)
Set the disable |
Iot |
withDisableModuleSas(Boolean disableModuleSas)
Set the disable |
Iot |
withEnableDataResidency(Boolean enableDataResidency)
Set the enable |
Iot |
withEnableFileUploadNotifications(Boolean enableFileUploadNotifications)
Set the enable |
Iot |
withEventHubEndpoints(Map<String,EventHubProperties> eventHubEndpoints)
Set the event |
Iot |
withFeatures(Capabilities features)
Set the features property: The capabilities and features enabled for the IoT hub. |
Iot |
withIpFilterRules(List<IpFilterRule> ipFilterRules)
Set the ip |
Iot |
withMessagingEndpoints(Map<String,MessagingEndpointProperties> messagingEndpoints)
Set the messaging |
Iot |
withMinTlsVersion(String minTlsVersion)
Set the min |
Iot |
withNetworkRuleSets(NetworkRuleSetProperties networkRuleSets)
Set the network |
Iot |
withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections)
Set the private |
Iot |
withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the public |
Iot |
withRestrictOutboundNetworkAccess(Boolean restrictOutboundNetworkAccess)
Set the restrict |
Iot |
withRouting(RoutingProperties routing)
Set the routing property: The routing related properties of the IoT hub. |
Iot |
withStorageEndpoints(Map<String,StorageEndpointProperties> storageEndpoints)
Set the storage |
Methods inherited from java.lang.Object
Constructor Details
IotHubProperties
public IotHubProperties()
Creates an instance of IotHubProperties class.
Method Details
allowedFqdnList
public List
Get the allowedFqdnList property: List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.
Returns:
authorizationPolicies
public List
Get the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT hub.
Returns:
cloudToDevice
public CloudToDeviceProperties cloudToDevice()
Get the cloudToDevice property: The IoT hub cloud-to-device messaging properties.
Returns:
comments
public String comments()
Get the comments property: IoT hub comments.
Returns:
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:
disableLocalAuth
public Boolean disableLocalAuth()
Get the disableLocalAuth property: If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication.
Returns:
disableModuleSas
public Boolean disableModuleSas()
Get the disableModuleSas property: If true, all module scoped SAS keys cannot be used for authentication.
Returns:
enableDataResidency
public Boolean enableDataResidency()
Get the enableDataResidency property: This property when set to true, will enable data residency, thus, disabling disaster recovery.
Returns:
enableFileUploadNotifications
public Boolean enableFileUploadNotifications()
Get the enableFileUploadNotifications property: If True, file upload notifications are enabled.
Returns:
eventHubEndpoints
public Map
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:
features
public Capabilities features()
Get the features property: The capabilities and features enabled for the IoT hub.
Returns:
hostname
public String hostname()
Get the hostname property: The name of the host.
Returns:
ipFilterRules
public List
Get the ipFilterRules property: The IP filter rules.
Returns:
locations
public List
Get the locations property: Primary and secondary location for iot hub.
Returns:
messagingEndpoints
public Map
Get the messagingEndpoints property: The messaging endpoint properties for the file upload notification queue.
Returns:
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:
networkRuleSets
public NetworkRuleSetProperties networkRuleSets()
Get the networkRuleSets property: Network Rule Set Properties of IotHub.
Returns:
privateEndpointConnections
public List
Get the privateEndpointConnections property: Private endpoint connections created on this IotHub.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state.
Returns:
publicNetworkAccess
public PublicNetworkAccess publicNetworkAccess()
Get the publicNetworkAccess property: Whether requests from Public Network are allowed.
Returns:
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:
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:
state
public String state()
Get the state property: The hub state.
Returns:
storageEndpoints
public Map
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:
validate
public void validate()
Validates the instance.
withAllowedFqdnList
public IotHubProperties withAllowedFqdnList(List
Set the allowedFqdnList property: List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.
Parameters:
Returns:
withAuthorizationPolicies
public IotHubProperties withAuthorizationPolicies(List
Set the authorizationPolicies property: The shared access policies you can use to secure a connection to the IoT hub.
Parameters:
Returns:
withCloudToDevice
public IotHubProperties withCloudToDevice(CloudToDeviceProperties cloudToDevice)
Set the cloudToDevice property: The IoT hub cloud-to-device messaging properties.
Parameters:
Returns:
withComments
public IotHubProperties withComments(String comments)
Set the comments property: IoT hub comments.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withDisableModuleSas
public IotHubProperties withDisableModuleSas(Boolean disableModuleSas)
Set the disableModuleSas property: If true, all module scoped SAS keys cannot be used for authentication.
Parameters:
Returns:
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:
Returns:
withEnableFileUploadNotifications
public IotHubProperties withEnableFileUploadNotifications(Boolean enableFileUploadNotifications)
Set the enableFileUploadNotifications property: If True, file upload notifications are enabled.
Parameters:
Returns:
withEventHubEndpoints
public IotHubProperties withEventHubEndpoints(Map
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:
Returns:
withFeatures
public IotHubProperties withFeatures(Capabilities features)
Set the features property: The capabilities and features enabled for the IoT hub.
Parameters:
Returns:
withIpFilterRules
public IotHubProperties withIpFilterRules(List
Set the ipFilterRules property: The IP filter rules.
Parameters:
Returns:
withMessagingEndpoints
public IotHubProperties withMessagingEndpoints(Map
Set the messagingEndpoints property: The messaging endpoint properties for the file upload notification queue.
Parameters:
Returns:
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:
Returns:
withNetworkRuleSets
public IotHubProperties withNetworkRuleSets(NetworkRuleSetProperties networkRuleSets)
Set the networkRuleSets property: Network Rule Set Properties of IotHub.
Parameters:
Returns:
withPrivateEndpointConnections
public IotHubProperties withPrivateEndpointConnections(List
Set the privateEndpointConnections property: Private endpoint connections created on this IotHub.
Parameters:
Returns:
withPublicNetworkAccess
public IotHubProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Whether requests from Public Network are allowed.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withStorageEndpoints
public IotHubProperties withStorageEndpoints(Map
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for