Class NspAccessRuleInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.network.models.SecurityPerimeterResource
com.azure.resourcemanager.network.models.SecurityPerimeterProxyResource
com.azure.resourcemanager.network.fluent.models.NspAccessRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
The NSP access rule resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefixes property: Inbound address prefixes (IPv4/IPv6).Get the direction property: Direction that specifies whether the access rules is inbound/outbound.Get the emailAddresses property: Outbound rules in email address format.static NspAccessRuleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NspAccessRuleInner from the JsonReader.Get the fullyQualifiedDomainNames property: Outbound rules in fully qualified domain name format.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the networkSecurityPerimeters property: Rule specified by the perimeter id.Get the phoneNumbers property: Outbound rules in phone number format.Get the provisioningState property: The provisioning state of the scope assignment resource.Get the serviceTags property: Inbound rules of type service tag.Get the subscriptions property: List of subscription ids.Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAddressPrefixes(List<String> addressPrefixes) Set the addressPrefixes property: Inbound address prefixes (IPv4/IPv6).withDirection(AccessRuleDirection direction) Set the direction property: Direction that specifies whether the access rules is inbound/outbound.withEmailAddresses(List<String> emailAddresses) Set the emailAddresses property: Outbound rules in email address format.withFullyQualifiedDomainNames(List<String> fullyQualifiedDomainNames) Set the fullyQualifiedDomainNames property: Outbound rules in fully qualified domain name format.withPhoneNumbers(List<String> phoneNumbers) Set the phoneNumbers property: Outbound rules in phone number format.withServiceTags(List<String> serviceTags) Set the serviceTags property: Inbound rules of type service tag.withSubscriptions(List<SubscriptionId> subscriptions) Set the subscriptions property: List of subscription ids.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NspAccessRuleInner
public NspAccessRuleInner()Creates an instance of NspAccessRuleInner class.
-
-
Method Details
-
systemData
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Overrides:
systemDatain classSecurityPerimeterProxyResource- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classSecurityPerimeterProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classSecurityPerimeterProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classSecurityPerimeterProxyResource- Returns:
- the id value.
-
provisioningState
Get the provisioningState property: The provisioning state of the scope assignment resource.- Returns:
- the provisioningState value.
-
direction
Get the direction property: Direction that specifies whether the access rules is inbound/outbound.- Returns:
- the direction value.
-
withDirection
Set the direction property: Direction that specifies whether the access rules is inbound/outbound.- Parameters:
direction- the direction value to set.- Returns:
- the NspAccessRuleInner object itself.
-
addressPrefixes
-
withAddressPrefixes
Set the addressPrefixes property: Inbound address prefixes (IPv4/IPv6).- Parameters:
addressPrefixes- the addressPrefixes value to set.- Returns:
- the NspAccessRuleInner object itself.
-
fullyQualifiedDomainNames
-
withFullyQualifiedDomainNames
Set the fullyQualifiedDomainNames property: Outbound rules in fully qualified domain name format.- Parameters:
fullyQualifiedDomainNames- the fullyQualifiedDomainNames value to set.- Returns:
- the NspAccessRuleInner object itself.
-
subscriptions
Get the subscriptions property: List of subscription ids.- Returns:
- the subscriptions value.
-
withSubscriptions
Set the subscriptions property: List of subscription ids.- Parameters:
subscriptions- the subscriptions value to set.- Returns:
- the NspAccessRuleInner object itself.
-
networkSecurityPerimeters
Get the networkSecurityPerimeters property: Rule specified by the perimeter id.- Returns:
- the networkSecurityPerimeters value.
-
emailAddresses
-
withEmailAddresses
Set the emailAddresses property: Outbound rules in email address format. This access rule type is currently unavailable for use.- Parameters:
emailAddresses- the emailAddresses value to set.- Returns:
- the NspAccessRuleInner object itself.
-
phoneNumbers
-
withPhoneNumbers
Set the phoneNumbers property: Outbound rules in phone number format. This access rule type is currently unavailable for use.- Parameters:
phoneNumbers- the phoneNumbers value to set.- Returns:
- the NspAccessRuleInner object itself.
-
serviceTags
-
withServiceTags
Set the serviceTags property: Inbound rules of type service tag. This access rule type is currently unavailable for use.- Parameters:
serviceTags- the serviceTags value to set.- Returns:
- the NspAccessRuleInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSecurityPerimeterProxyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classSecurityPerimeterProxyResource- Throws:
IOException
-
fromJson
Reads an instance of NspAccessRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NspAccessRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the NspAccessRuleInner.
-