Class VpnRoute
- java.lang.Object
-
- odata.msgraph.client.beta.complex.VpnRoute
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class VpnRoute extends Object implements com.github.davidmoten.odata.client.ODataType
“VPN Route definition.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVpnRoute.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringdestinationPrefixprotected StringodataTypeprotected IntegerprefixSizeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedVpnRoute()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VpnRoute.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getDestinationPrefix()“Destination prefix (IPv4/v6 address).”Optional<Integer>getPrefixSize()“Prefix size.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()VpnRoutewithDestinationPrefix(String destinationPrefix)Returns an immutable copy ofthiswith just thedestinationPrefixfield changed.VpnRoutewithPrefixSize(Integer prefixSize)Returns an immutable copy ofthiswith just theprefixSizefield changed.VpnRoutewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
destinationPrefix
protected String destinationPrefix
-
prefixSize
protected Integer prefixSize
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDestinationPrefix
public Optional<String> getDestinationPrefix()
“Destination prefix (IPv4/v6 address).”- Returns:
- property destinationPrefix
-
withDestinationPrefix
public VpnRoute withDestinationPrefix(String destinationPrefix)
Returns an immutable copy ofthiswith just thedestinationPrefixfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Destination prefix (IPv4/v6 address).”
- Parameters:
destinationPrefix- new value ofdestinationPrefixfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedestinationPrefixfield changed
-
getPrefixSize
public Optional<Integer> getPrefixSize()
“Prefix size. (1-32). Valid values 1 to 32”- Returns:
- property prefixSize
-
withPrefixSize
public VpnRoute withPrefixSize(Integer prefixSize)
Returns an immutable copy ofthiswith just theprefixSizefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Prefix size. (1-32). Valid values 1 to 32”
- Parameters:
prefixSize- new value ofprefixSizefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprefixSizefield changed
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static VpnRoute.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-