SqlPoolConnectionPolicyInner Class

public final class SqlPoolConnectionPolicyInner
extends ProxyResource

A Sql pool connection policy.

Constructor Summary

Constructor Description
SqlPoolConnectionPolicyInner()

Creates an instance of SqlPoolConnectionPolicyInner class.

Method Summary

Modifier and Type Method and Description
static SqlPoolConnectionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of SqlPoolConnectionPolicyInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Resource kind.

String location()

Get the location property: Resource location.

String name()

Get the name property: The name of the resource.

String proxyDnsName()

Get the proxyDnsName property: The fully qualified host name of the auditing proxy.

String proxyPort()

Get the proxyPort property: The port number of the auditing proxy.

String redirectionState()

Get the redirectionState property: The state of proxy redirection.

String securityEnabledAccess()

Get the securityEnabledAccess property: The state of security access.

String state()

Get the state property: The connection policy state.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String useServerDefault()

Get the useServerDefault property: Whether server default is enabled or disabled.

void validate()

Validates the instance.

String visibility()

Get the visibility property: The visibility of the auditing proxy.

SqlPoolConnectionPolicyInner withProxyDnsName(String proxyDnsName)

Set the proxyDnsName property: The fully qualified host name of the auditing proxy.

SqlPoolConnectionPolicyInner withProxyPort(String proxyPort)

Set the proxyPort property: The port number of the auditing proxy.

SqlPoolConnectionPolicyInner withRedirectionState(String redirectionState)

Set the redirectionState property: The state of proxy redirection.

SqlPoolConnectionPolicyInner withSecurityEnabledAccess(String securityEnabledAccess)

Set the securityEnabledAccess property: The state of security access.

SqlPoolConnectionPolicyInner withState(String state)

Set the state property: The connection policy state.

SqlPoolConnectionPolicyInner withUseServerDefault(String useServerDefault)

Set the useServerDefault property: Whether server default is enabled or disabled.

SqlPoolConnectionPolicyInner withVisibility(String visibility)

Set the visibility property: The visibility of the auditing proxy.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SqlPoolConnectionPolicyInner

public SqlPoolConnectionPolicyInner()

Creates an instance of SqlPoolConnectionPolicyInner class.

Method Details

fromJson

public static SqlPoolConnectionPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of SqlPoolConnectionPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlPoolConnectionPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SqlPoolConnectionPolicyInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Resource kind.

Returns:

the kind value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SqlPoolConnectionPolicyInner.name()

Returns:

the name value.

proxyDnsName

public String proxyDnsName()

Get the proxyDnsName property: The fully qualified host name of the auditing proxy.

Returns:

the proxyDnsName value.

proxyPort

public String proxyPort()

Get the proxyPort property: The port number of the auditing proxy.

Returns:

the proxyPort value.

redirectionState

public String redirectionState()

Get the redirectionState property: The state of proxy redirection.

Returns:

the redirectionState value.

securityEnabledAccess

public String securityEnabledAccess()

Get the securityEnabledAccess property: The state of security access.

Returns:

the securityEnabledAccess value.

state

public String state()

Get the state property: The connection policy state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlPoolConnectionPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SqlPoolConnectionPolicyInner.type()

Returns:

the type value.

useServerDefault

public String useServerDefault()

Get the useServerDefault property: Whether server default is enabled or disabled.

Returns:

the useServerDefault value.

validate

public void validate()

Validates the instance.

visibility

public String visibility()

Get the visibility property: The visibility of the auditing proxy.

Returns:

the visibility value.

withProxyDnsName

public SqlPoolConnectionPolicyInner withProxyDnsName(String proxyDnsName)

Set the proxyDnsName property: The fully qualified host name of the auditing proxy.

Parameters:

proxyDnsName - the proxyDnsName value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

withProxyPort

public SqlPoolConnectionPolicyInner withProxyPort(String proxyPort)

Set the proxyPort property: The port number of the auditing proxy.

Parameters:

proxyPort - the proxyPort value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

withRedirectionState

public SqlPoolConnectionPolicyInner withRedirectionState(String redirectionState)

Set the redirectionState property: The state of proxy redirection.

Parameters:

redirectionState - the redirectionState value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

withSecurityEnabledAccess

public SqlPoolConnectionPolicyInner withSecurityEnabledAccess(String securityEnabledAccess)

Set the securityEnabledAccess property: The state of security access.

Parameters:

securityEnabledAccess - the securityEnabledAccess value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

withState

public SqlPoolConnectionPolicyInner withState(String state)

Set the state property: The connection policy state.

Parameters:

state - the state value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

withUseServerDefault

public SqlPoolConnectionPolicyInner withUseServerDefault(String useServerDefault)

Set the useServerDefault property: Whether server default is enabled or disabled.

Parameters:

useServerDefault - the useServerDefault value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

withVisibility

public SqlPoolConnectionPolicyInner withVisibility(String visibility)

Set the visibility property: The visibility of the auditing proxy.

Parameters:

visibility - the visibility value to set.

Returns:

the SqlPoolConnectionPolicyInner object itself.

Applies to