FirewallRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.mongocluster.models.FirewallRuleProperties

Implements

public final class FirewallRuleProperties
implements JsonSerializable<FirewallRuleProperties>

The properties of a mongo cluster firewall rule.

Constructor Summary

Constructor Description
FirewallRuleProperties()

Creates an instance of FirewallRuleProperties class.

Method Summary

Modifier and Type Method and Description
String endIpAddress()

Get the endIpAddress property: The end IP address of the mongo cluster firewall rule.

static FirewallRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of FirewallRuleProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the firewall rule.

String startIpAddress()

Get the startIpAddress property: The start IP address of the mongo cluster firewall rule.

JsonWriter toJson(JsonWriter jsonWriter)
FirewallRuleProperties withEndIpAddress(String endIpAddress)

Set the endIpAddress property: The end IP address of the mongo cluster firewall rule.

FirewallRuleProperties withStartIpAddress(String startIpAddress)

Set the startIpAddress property: The start IP address of the mongo cluster firewall rule.

Methods inherited from java.lang.Object

Constructor Details

FirewallRuleProperties

public FirewallRuleProperties()

Creates an instance of FirewallRuleProperties class.

Method Details

endIpAddress

public String endIpAddress()

Get the endIpAddress property: The end IP address of the mongo cluster firewall rule. Must be IPv4 format.

Returns:

the endIpAddress value.

fromJson

public static FirewallRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of FirewallRuleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the firewall rule.

Returns:

the provisioningState value.

startIpAddress

public String startIpAddress()

Get the startIpAddress property: The start IP address of the mongo cluster firewall rule. Must be IPv4 format.

Returns:

the startIpAddress value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withEndIpAddress

public FirewallRuleProperties withEndIpAddress(String endIpAddress)

Set the endIpAddress property: The end IP address of the mongo cluster firewall rule. Must be IPv4 format.

Parameters:

endIpAddress - the endIpAddress value to set.

Returns:

the FirewallRuleProperties object itself.

withStartIpAddress

public FirewallRuleProperties withStartIpAddress(String startIpAddress)

Set the startIpAddress property: The start IP address of the mongo cluster firewall rule. Must be IPv4 format.

Parameters:

startIpAddress - the startIpAddress value to set.

Returns:

the FirewallRuleProperties object itself.

Applies to