CustomIpPrefixPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.CustomIpPrefixPropertiesFormat

Implements

public final class CustomIpPrefixPropertiesFormat
implements JsonSerializable<CustomIpPrefixPropertiesFormat>

Custom IP prefix properties.

Constructor Summary

Constructor Description
CustomIpPrefixPropertiesFormat()

Creates an instance of CustomIpPrefixPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
String asn()

Get the asn property: The ASN for CIDR advertising.

String authorizationMessage()

Get the authorizationMessage property: Authorization message for WAN validation.

List<SubResource> childCustomIpPrefixes()

Get the childCustomIpPrefixes property: The list of all Children for IPv6 /48 CustomIpPrefix.

String cidr()

Get the cidr property: The prefix range in CIDR notation.

CommissionedState commissionedState()

Get the commissionedState property: The commissioned state of the Custom IP Prefix.

SubResource customIpPrefixParent()

Get the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.

Boolean expressRouteAdvertise()

Get the expressRouteAdvertise property: Whether to do express route advertise.

String failedReason()

Get the failedReason property: The reason why resource is in failed state.

static CustomIpPrefixPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of CustomIpPrefixPropertiesFormat from the JsonReader.

Geo geo()

Get the geo property: The Geo for CIDR advertising.

Boolean noInternetAdvertise()

Get the noInternetAdvertise property: Whether to Advertise the range to Internet.

CustomIpPrefixType prefixType()

Get the prefixType property: Type of custom IP prefix.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the custom IP prefix resource.

List<SubResource> publicIpPrefixes()

Get the publicIpPrefixes property: The list of all referenced PublicIpPrefixes.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the custom IP prefix resource.

String signedMessage()

Get the signedMessage property: Signed message for WAN validation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomIpPrefixPropertiesFormat withAsn(String asn)

Set the asn property: The ASN for CIDR advertising.

CustomIpPrefixPropertiesFormat withAuthorizationMessage(String authorizationMessage)

Set the authorizationMessage property: Authorization message for WAN validation.

CustomIpPrefixPropertiesFormat withCidr(String cidr)

Set the cidr property: The prefix range in CIDR notation.

CustomIpPrefixPropertiesFormat withCommissionedState(CommissionedState commissionedState)

Set the commissionedState property: The commissioned state of the Custom IP Prefix.

CustomIpPrefixPropertiesFormat withCustomIpPrefixParent(SubResource customIpPrefixParent)

Set the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.

CustomIpPrefixPropertiesFormat withExpressRouteAdvertise(Boolean expressRouteAdvertise)

Set the expressRouteAdvertise property: Whether to do express route advertise.

CustomIpPrefixPropertiesFormat withGeo(Geo geo)

Set the geo property: The Geo for CIDR advertising.

CustomIpPrefixPropertiesFormat withNoInternetAdvertise(Boolean noInternetAdvertise)

Set the noInternetAdvertise property: Whether to Advertise the range to Internet.

CustomIpPrefixPropertiesFormat withPrefixType(CustomIpPrefixType prefixType)

Set the prefixType property: Type of custom IP prefix.

CustomIpPrefixPropertiesFormat withSignedMessage(String signedMessage)

Set the signedMessage property: Signed message for WAN validation.

Methods inherited from java.lang.Object

Constructor Details

CustomIpPrefixPropertiesFormat

public CustomIpPrefixPropertiesFormat()

Creates an instance of CustomIpPrefixPropertiesFormat class.

Method Details

asn

public String asn()

Get the asn property: The ASN for CIDR advertising. Should be an integer as string.

Returns:

the asn value.

authorizationMessage

public String authorizationMessage()

Get the authorizationMessage property: Authorization message for WAN validation.

Returns:

the authorizationMessage value.

childCustomIpPrefixes

public List<SubResource> childCustomIpPrefixes()

Get the childCustomIpPrefixes property: The list of all Children for IPv6 /48 CustomIpPrefix.

Returns:

the childCustomIpPrefixes value.

cidr

public String cidr()

Get the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length.

Returns:

the cidr value.

commissionedState

public CommissionedState commissionedState()

Get the commissionedState property: The commissioned state of the Custom IP Prefix.

Returns:

the commissionedState value.

customIpPrefixParent

public SubResource customIpPrefixParent()

Get the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.

Returns:

the customIpPrefixParent value.

expressRouteAdvertise

public Boolean expressRouteAdvertise()

Get the expressRouteAdvertise property: Whether to do express route advertise.

Returns:

the expressRouteAdvertise value.

failedReason

public String failedReason()

Get the failedReason property: The reason why resource is in failed state.

Returns:

the failedReason value.

fromJson

public static CustomIpPrefixPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of CustomIpPrefixPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomIpPrefixPropertiesFormat 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 CustomIpPrefixPropertiesFormat.

geo

public Geo geo()

Get the geo property: The Geo for CIDR advertising. Should be an Geo code.

Returns:

the geo value.

noInternetAdvertise

public Boolean noInternetAdvertise()

Get the noInternetAdvertise property: Whether to Advertise the range to Internet.

Returns:

the noInternetAdvertise value.

prefixType

public CustomIpPrefixType prefixType()

Get the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child.

Returns:

the prefixType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the custom IP prefix resource.

Returns:

the provisioningState value.

publicIpPrefixes

public List<SubResource> publicIpPrefixes()

Get the publicIpPrefixes property: The list of all referenced PublicIpPrefixes.

Returns:

the publicIpPrefixes value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the custom IP prefix resource.

Returns:

the resourceGuid value.

signedMessage

public String signedMessage()

Get the signedMessage property: Signed message for WAN validation.

Returns:

the signedMessage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAsn

public CustomIpPrefixPropertiesFormat withAsn(String asn)

Set the asn property: The ASN for CIDR advertising. Should be an integer as string.

Parameters:

asn - the asn value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withAuthorizationMessage

public CustomIpPrefixPropertiesFormat withAuthorizationMessage(String authorizationMessage)

Set the authorizationMessage property: Authorization message for WAN validation.

Parameters:

authorizationMessage - the authorizationMessage value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withCidr

public CustomIpPrefixPropertiesFormat withCidr(String cidr)

Set the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length.

Parameters:

cidr - the cidr value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withCommissionedState

public CustomIpPrefixPropertiesFormat withCommissionedState(CommissionedState commissionedState)

Set the commissionedState property: The commissioned state of the Custom IP Prefix.

Parameters:

commissionedState - the commissionedState value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withCustomIpPrefixParent

public CustomIpPrefixPropertiesFormat withCustomIpPrefixParent(SubResource customIpPrefixParent)

Set the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.

Parameters:

customIpPrefixParent - the customIpPrefixParent value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withExpressRouteAdvertise

public CustomIpPrefixPropertiesFormat withExpressRouteAdvertise(Boolean expressRouteAdvertise)

Set the expressRouteAdvertise property: Whether to do express route advertise.

Parameters:

expressRouteAdvertise - the expressRouteAdvertise value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withGeo

public CustomIpPrefixPropertiesFormat withGeo(Geo geo)

Set the geo property: The Geo for CIDR advertising. Should be an Geo code.

Parameters:

geo - the geo value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withNoInternetAdvertise

public CustomIpPrefixPropertiesFormat withNoInternetAdvertise(Boolean noInternetAdvertise)

Set the noInternetAdvertise property: Whether to Advertise the range to Internet.

Parameters:

noInternetAdvertise - the noInternetAdvertise value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withPrefixType

public CustomIpPrefixPropertiesFormat withPrefixType(CustomIpPrefixType prefixType)

Set the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child.

Parameters:

prefixType - the prefixType value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

withSignedMessage

public CustomIpPrefixPropertiesFormat withSignedMessage(String signedMessage)

Set the signedMessage property: Signed message for WAN validation.

Parameters:

signedMessage - the signedMessage value to set.

Returns:

the CustomIpPrefixPropertiesFormat object itself.

Applies to