StaticSiteBasicAuthPropertiesArmResourceInner Class

public final class StaticSiteBasicAuthPropertiesArmResourceInner
extends ProxyOnlyResource

Static site basic auth properties ARM resource.

Constructor Summary

Constructor Description
StaticSiteBasicAuthPropertiesArmResourceInner()

Creates an instance of StaticSiteBasicAuthPropertiesArmResourceInner class.

Method Summary

Modifier and Type Method and Description
String applicableEnvironmentsMode()

Get the applicableEnvironmentsMode property: State indicating if basic auth is enabled and for what environments it is active.

List<String> environments()

Get the environments property: The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments.

static StaticSiteBasicAuthPropertiesArmResourceInner fromJson(JsonReader jsonReader)

Reads an instance of StaticSiteBasicAuthPropertiesArmResourceInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

String password()

Get the password property: The password for basic auth.

String secretState()

Get the secretState property: State indicating if basic auth has a secret and what type it is.

String secretUrl()

Get the secretUrl property: Url to the secret in Key Vault.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

StaticSiteBasicAuthPropertiesArmResourceInner withApplicableEnvironmentsMode(String applicableEnvironmentsMode)

Set the applicableEnvironmentsMode property: State indicating if basic auth is enabled and for what environments it is active.

StaticSiteBasicAuthPropertiesArmResourceInner withEnvironments(List<String> environments)

Set the environments property: The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments.

StaticSiteBasicAuthPropertiesArmResourceInner withKind(String kind)

Set the kind property: Kind of resource.

StaticSiteBasicAuthPropertiesArmResourceInner withPassword(String password)

Set the password property: The password for basic auth.

StaticSiteBasicAuthPropertiesArmResourceInner withSecretUrl(String secretUrl)

Set the secretUrl property: Url to the secret in Key Vault.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

StaticSiteBasicAuthPropertiesArmResourceInner

public StaticSiteBasicAuthPropertiesArmResourceInner()

Creates an instance of StaticSiteBasicAuthPropertiesArmResourceInner class.

Method Details

applicableEnvironmentsMode

public String applicableEnvironmentsMode()

Get the applicableEnvironmentsMode property: State indicating if basic auth is enabled and for what environments it is active.

Returns:

the applicableEnvironmentsMode value.

environments

public List environments()

Get the environments property: The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments.

Returns:

the environments value.

fromJson

public static StaticSiteBasicAuthPropertiesArmResourceInner fromJson(JsonReader jsonReader)

Reads an instance of StaticSiteBasicAuthPropertiesArmResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StaticSiteBasicAuthPropertiesArmResourceInner 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:

StaticSiteBasicAuthPropertiesArmResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

StaticSiteBasicAuthPropertiesArmResourceInner.name()

Returns:

the name value.

password

public String password()

Get the password property: The password for basic auth.

Returns:

the password value.

secretState

public String secretState()

Get the secretState property: State indicating if basic auth has a secret and what type it is.

Returns:

the secretState value.

secretUrl

public String secretUrl()

Get the secretUrl property: Url to the secret in Key Vault.

Returns:

the secretUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StaticSiteBasicAuthPropertiesArmResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

StaticSiteBasicAuthPropertiesArmResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

StaticSiteBasicAuthPropertiesArmResourceInner.validate()

withApplicableEnvironmentsMode

public StaticSiteBasicAuthPropertiesArmResourceInner withApplicableEnvironmentsMode(String applicableEnvironmentsMode)

Set the applicableEnvironmentsMode property: State indicating if basic auth is enabled and for what environments it is active.

Parameters:

applicableEnvironmentsMode - the applicableEnvironmentsMode value to set.

Returns:

the StaticSiteBasicAuthPropertiesArmResourceInner object itself.

withEnvironments

public StaticSiteBasicAuthPropertiesArmResourceInner withEnvironments(List environments)

Set the environments property: The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments.

Parameters:

environments - the environments value to set.

Returns:

the StaticSiteBasicAuthPropertiesArmResourceInner object itself.

withKind

public StaticSiteBasicAuthPropertiesArmResourceInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

StaticSiteBasicAuthPropertiesArmResourceInner.withKind(String kind)

Parameters:

kind

withPassword

public StaticSiteBasicAuthPropertiesArmResourceInner withPassword(String password)

Set the password property: The password for basic auth.

Parameters:

password - the password value to set.

Returns:

the StaticSiteBasicAuthPropertiesArmResourceInner object itself.

withSecretUrl

public StaticSiteBasicAuthPropertiesArmResourceInner withSecretUrl(String secretUrl)

Set the secretUrl property: Url to the secret in Key Vault.

Parameters:

secretUrl - the secretUrl value to set.

Returns:

the StaticSiteBasicAuthPropertiesArmResourceInner object itself.

Applies to