Class VpnServer
- java.lang.Object
-
- odata.msgraph.client.beta.complex.VpnServer
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class VpnServer extends Object implements com.github.davidmoten.odata.client.ODataType
“VPN Server definition.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVpnServer.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringaddressprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringdescriptionprotected BooleanisDefaultServerprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedVpnServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VpnServer.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAddress()“Address (IP address, FQDN or URL)”Optional<String>getDescription()“Description.”Optional<Boolean>getIsDefaultServer()“Default server.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()VpnServerwithAddress(String address)Returns an immutable copy ofthiswith just theaddressfield changed.VpnServerwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.VpnServerwithIsDefaultServer(Boolean isDefaultServer)Returns an immutable copy ofthiswith just theisDefaultServerfield changed.VpnServerwithUnmappedField(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
-
address
protected String address
-
description
protected String description
-
isDefaultServer
protected Boolean isDefaultServer
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAddress
public Optional<String> getAddress()
“Address (IP address, FQDN or URL)”- Returns:
- property address
-
withAddress
public VpnServer withAddress(String address)
Returns an immutable copy ofthiswith just theaddressfield 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.“Address (IP address, FQDN or URL)”
- Parameters:
address- new value ofaddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaddressfield changed
-
getDescription
public Optional<String> getDescription()
“Description.”- Returns:
- property description
-
withDescription
public VpnServer withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“Description.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getIsDefaultServer
public Optional<Boolean> getIsDefaultServer()
“Default server.”- Returns:
- property isDefaultServer
-
withIsDefaultServer
public VpnServer withIsDefaultServer(Boolean isDefaultServer)
Returns an immutable copy ofthiswith just theisDefaultServerfield 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.“Default server.”
- Parameters:
isDefaultServer- new value ofisDefaultServerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisDefaultServerfield 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 VpnServer.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
-
-