Class AccessRuleProperties
java.lang.Object
com.azure.resourcemanager.search.models.AccessRuleProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessRuleProperties>
public final class AccessRuleProperties
extends Object
implements com.azure.json.JsonSerializable<AccessRuleProperties>
Properties of Access Rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.Get the direction property: Direction of Access Rule.Get the emailAddresses property: Email addresses for outbound rules.static AccessRulePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AccessRuleProperties from the JsonReader.Get the fullyQualifiedDomainNames property: Fully qualified domain names (FQDN) for outbound rules.Get the networkSecurityPerimeters property: Network security perimeters for inbound rules.Get the phoneNumbers property: Phone numbers for outbound rules.Get the subscriptions property: Subscriptions for inbound rules.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressPrefixes(List<String> addressPrefixes) Set the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.withDirection(AccessRuleDirection direction) Set the direction property: Direction of Access Rule.withEmailAddresses(List<String> emailAddresses) Set the emailAddresses property: Email addresses for outbound rules.withFullyQualifiedDomainNames(List<String> fullyQualifiedDomainNames) Set the fullyQualifiedDomainNames property: Fully qualified domain names (FQDN) for outbound rules.withNetworkSecurityPerimeters(List<NetworkSecurityPerimeter> networkSecurityPerimeters) Set the networkSecurityPerimeters property: Network security perimeters for inbound rules.withPhoneNumbers(List<String> phoneNumbers) Set the phoneNumbers property: Phone numbers for outbound rules.withSubscriptions(List<AccessRulePropertiesSubscriptionsItem> subscriptions) Set the subscriptions property: Subscriptions for inbound rules.Methods inherited from class java.lang.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
-
AccessRuleProperties
public AccessRuleProperties()Creates an instance of AccessRuleProperties class.
-
-
Method Details
-
direction
Get the direction property: Direction of Access Rule.- Returns:
- the direction value.
-
withDirection
Set the direction property: Direction of Access Rule.- Parameters:
direction- the direction value to set.- Returns:
- the AccessRuleProperties object itself.
-
addressPrefixes
Get the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.- Returns:
- the addressPrefixes value.
-
withAddressPrefixes
Set the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.- Parameters:
addressPrefixes- the addressPrefixes value to set.- Returns:
- the AccessRuleProperties object itself.
-
subscriptions
Get the subscriptions property: Subscriptions for inbound rules.- Returns:
- the subscriptions value.
-
withSubscriptions
public AccessRuleProperties withSubscriptions(List<AccessRulePropertiesSubscriptionsItem> subscriptions) Set the subscriptions property: Subscriptions for inbound rules.- Parameters:
subscriptions- the subscriptions value to set.- Returns:
- the AccessRuleProperties object itself.
-
networkSecurityPerimeters
Get the networkSecurityPerimeters property: Network security perimeters for inbound rules.- Returns:
- the networkSecurityPerimeters value.
-
withNetworkSecurityPerimeters
public AccessRuleProperties withNetworkSecurityPerimeters(List<NetworkSecurityPerimeter> networkSecurityPerimeters) Set the networkSecurityPerimeters property: Network security perimeters for inbound rules.- Parameters:
networkSecurityPerimeters- the networkSecurityPerimeters value to set.- Returns:
- the AccessRuleProperties object itself.
-
fullyQualifiedDomainNames
Get the fullyQualifiedDomainNames property: Fully qualified domain names (FQDN) for outbound rules.- Returns:
- the fullyQualifiedDomainNames value.
-
withFullyQualifiedDomainNames
Set the fullyQualifiedDomainNames property: Fully qualified domain names (FQDN) for outbound rules.- Parameters:
fullyQualifiedDomainNames- the fullyQualifiedDomainNames value to set.- Returns:
- the AccessRuleProperties object itself.
-
emailAddresses
Get the emailAddresses property: Email addresses for outbound rules.- Returns:
- the emailAddresses value.
-
withEmailAddresses
Set the emailAddresses property: Email addresses for outbound rules.- Parameters:
emailAddresses- the emailAddresses value to set.- Returns:
- the AccessRuleProperties object itself.
-
phoneNumbers
Get the phoneNumbers property: Phone numbers for outbound rules.- Returns:
- the phoneNumbers value.
-
withPhoneNumbers
Set the phoneNumbers property: Phone numbers for outbound rules.- Parameters:
phoneNumbers- the phoneNumbers value to set.- Returns:
- the AccessRuleProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AccessRuleProperties>- Throws:
IOException
-
fromJson
public static AccessRuleProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AccessRuleProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AccessRuleProperties 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 AccessRuleProperties.
-