Class VpnDnsRule
- java.lang.Object
-
- odata.msgraph.client.beta.complex.VpnDnsRule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class VpnDnsRule extends Object implements com.github.davidmoten.odata.client.ODataType
“VPN DNS Rule definition.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVpnDnsRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanautoTriggerprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringnameprotected StringodataTypeprotected Booleanpersistentprotected StringproxyServerUriprotected List<String>serversprotected StringserversNextLinkprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedVpnDnsRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VpnDnsRule.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getAutoTrigger()“Automatically connect to the VPN when the device connects to this domain: Default False.”Optional<String>getName()“Name.”Optional<Boolean>getPersistent()“Keep this rule active even when the VPN is not connected: Default False”Optional<String>getProxyServerUri()“Proxy Server Uri.”com.github.davidmoten.odata.client.CollectionPage<String>getServers()“Servers.”com.github.davidmoten.odata.client.CollectionPage<String>getServers(com.github.davidmoten.odata.client.HttpRequestOptions options)“Servers.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()VpnDnsRulewithAutoTrigger(Boolean autoTrigger)Returns an immutable copy ofthiswith just theautoTriggerfield changed.VpnDnsRulewithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.VpnDnsRulewithPersistent(Boolean persistent)Returns an immutable copy ofthiswith just thepersistentfield changed.VpnDnsRulewithProxyServerUri(String proxyServerUri)Returns an immutable copy ofthiswith just theproxyServerUrifield changed.VpnDnsRulewithUnmappedField(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
-
autoTrigger
protected Boolean autoTrigger
-
name
protected String name
-
persistent
protected Boolean persistent
-
proxyServerUri
protected String proxyServerUri
-
serversNextLink
protected String serversNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAutoTrigger
public Optional<Boolean> getAutoTrigger()
“Automatically connect to the VPN when the device connects to this domain: Default False.”- Returns:
- property autoTrigger
-
withAutoTrigger
public VpnDnsRule withAutoTrigger(Boolean autoTrigger)
Returns an immutable copy ofthiswith just theautoTriggerfield 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.“Automatically connect to the VPN when the device connects to this domain: Default False.”
- Parameters:
autoTrigger- new value ofautoTriggerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theautoTriggerfield changed
-
withName
public VpnDnsRule withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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.“Name.”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getPersistent
public Optional<Boolean> getPersistent()
“Keep this rule active even when the VPN is not connected: Default False”- Returns:
- property persistent
-
withPersistent
public VpnDnsRule withPersistent(Boolean persistent)
Returns an immutable copy ofthiswith just thepersistentfield 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.“Keep this rule active even when the VPN is not connected: Default False”
- Parameters:
persistent- new value ofpersistentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepersistentfield changed
-
getProxyServerUri
public Optional<String> getProxyServerUri()
“Proxy Server Uri.”- Returns:
- property proxyServerUri
-
withProxyServerUri
public VpnDnsRule withProxyServerUri(String proxyServerUri)
Returns an immutable copy ofthiswith just theproxyServerUrifield 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.“Proxy Server Uri.”
- Parameters:
proxyServerUri- new value ofproxyServerUrifield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theproxyServerUrifield changed
-
getServers
public com.github.davidmoten.odata.client.CollectionPage<String> getServers()
“Servers.”- Returns:
- property servers
-
getServers
public com.github.davidmoten.odata.client.CollectionPage<String> getServers(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Servers.”- Parameters:
options- specify connect and read timeouts- Returns:
- property servers
-
withUnmappedField
public VpnDnsRule withUnmappedField(String name, String value)
-
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 VpnDnsRule.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
-
-