IpPrefixPatch Class

public final class IpPrefixPatch
extends TagsUpdate

The IP Prefix patch resource definition.

Constructor Summary

Constructor Description
IpPrefixPatch()

Creates an instance of IpPrefixPatch class.

Method Summary

Modifier and Type Method and Description
String annotation()

Get the annotation property: Switch configuration description.

static IpPrefixPatch fromJson(JsonReader jsonReader)

Reads an instance of IpPrefixPatch from the JsonReader.

List<IpPrefixRule> ipPrefixRules()

Get the ipPrefixRules property: The list of IP Prefix Rules.

JsonWriter toJson(JsonWriter jsonWriter)
IpPrefixPatch withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

IpPrefixPatch withIpPrefixRules(List<IpPrefixRule> ipPrefixRules)

Set the ipPrefixRules property: The list of IP Prefix Rules.

IpPrefixPatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from TagsUpdate

Methods inherited from java.lang.Object

Constructor Details

IpPrefixPatch

public IpPrefixPatch()

Creates an instance of IpPrefixPatch class.

Method Details

annotation

public String annotation()

Get the annotation property: Switch configuration description.

Returns:

the annotation value.

fromJson

public static IpPrefixPatch fromJson(JsonReader jsonReader)

Reads an instance of IpPrefixPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipPrefixRules

public List<IpPrefixRule> ipPrefixRules()

Get the ipPrefixRules property: The list of IP Prefix Rules.

Returns:

the ipPrefixRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

IpPrefixPatch.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAnnotation

public IpPrefixPatch withAnnotation(String annotation)

Set the annotation property: Switch configuration description.

Parameters:

annotation - the annotation value to set.

Returns:

the IpPrefixPatch object itself.

withIpPrefixRules

public IpPrefixPatch withIpPrefixRules(List<IpPrefixRule> ipPrefixRules)

Set the ipPrefixRules property: The list of IP Prefix Rules.

Parameters:

ipPrefixRules - the ipPrefixRules value to set.

Returns:

the IpPrefixPatch object itself.

withTags

public IpPrefixPatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Overrides:

IpPrefixPatch.withTags(Map<String,String> tags)

Parameters:

tags

Applies to