AuthPlatform Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.AuthPlatform

Implements

public final class AuthPlatform
implements JsonSerializable<AuthPlatform>

The configuration settings of the platform of App Service Authentication/Authorization.

Constructor Summary

Constructor Description
AuthPlatform()

Creates an instance of AuthPlatform class.

Method Summary

Modifier and Type Method and Description
String configFilePath()

Get the configFilePath property: The path of the config file containing auth settings if they come from a file.

Boolean enabled()

Get the enabled property: true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.

static AuthPlatform fromJson(JsonReader jsonReader)

Reads an instance of AuthPlatform from the JsonReader.

String runtimeVersion()

Get the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AuthPlatform withConfigFilePath(String configFilePath)

Set the configFilePath property: The path of the config file containing auth settings if they come from a file.

AuthPlatform withEnabled(Boolean enabled)

Set the enabled property: true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.

AuthPlatform withRuntimeVersion(String runtimeVersion)

Set the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app.

Methods inherited from java.lang.Object

Constructor Details

AuthPlatform

public AuthPlatform()

Creates an instance of AuthPlatform class.

Method Details

configFilePath

public String configFilePath()

Get the configFilePath property: The path of the config file containing auth settings if they come from a file. If the path is relative, base will the site's root directory.

Returns:

the configFilePath value.

enabled

public Boolean enabled()

Get the enabled property: true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.

Returns:

the enabled value.

fromJson

public static AuthPlatform fromJson(JsonReader jsonReader)

Reads an instance of AuthPlatform from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AuthPlatform.

runtimeVersion

public String runtimeVersion()

Get the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value can control the behavior of certain features in the Authentication / Authorization module.

Returns:

the runtimeVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConfigFilePath

public AuthPlatform withConfigFilePath(String configFilePath)

Set the configFilePath property: The path of the config file containing auth settings if they come from a file. If the path is relative, base will the site's root directory.

Parameters:

configFilePath - the configFilePath value to set.

Returns:

the AuthPlatform object itself.

withEnabled

public AuthPlatform withEnabled(Boolean enabled)

Set the enabled property: true if the Authentication / Authorization feature is enabled for the current app; otherwise, false.

Parameters:

enabled - the enabled value to set.

Returns:

the AuthPlatform object itself.

withRuntimeVersion

public AuthPlatform withRuntimeVersion(String runtimeVersion)

Set the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value can control the behavior of certain features in the Authentication / Authorization module.

Parameters:

runtimeVersion - the runtimeVersion value to set.

Returns:

the AuthPlatform object itself.

Applies to