共用方式為


AzureStaticWebApps Class

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

Implements

public final class AzureStaticWebApps
implements JsonSerializable<AzureStaticWebApps>

The configuration settings of the Azure Static Web Apps provider.

Constructor Summary

Constructor Description
AzureStaticWebApps()

Creates an instance of AzureStaticWebApps class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.

static AzureStaticWebApps fromJson(JsonReader jsonReader)

Reads an instance of AzureStaticWebApps from the JsonReader.

AzureStaticWebAppsRegistration registration()

Get the registration property: The configuration settings of the Azure Static Web Apps registration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureStaticWebApps withEnabled(Boolean enabled)

Set the enabled property: false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.

AzureStaticWebApps withRegistration(AzureStaticWebAppsRegistration registration)

Set the registration property: The configuration settings of the Azure Static Web Apps registration.

Methods inherited from java.lang.Object

Constructor Details

AzureStaticWebApps

public AzureStaticWebApps()

Creates an instance of AzureStaticWebApps class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.

Returns:

the enabled value.

fromJson

public static AzureStaticWebApps fromJson(JsonReader jsonReader)

Reads an instance of AzureStaticWebApps from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureStaticWebApps 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 AzureStaticWebApps.

registration

public AzureStaticWebAppsRegistration registration()

Get the registration property: The configuration settings of the Azure Static Web Apps registration.

Returns:

the registration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public AzureStaticWebApps withEnabled(Boolean enabled)

Set the enabled property: false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true.

Parameters:

enabled - the enabled value to set.

Returns:

the AzureStaticWebApps object itself.

withRegistration

public AzureStaticWebApps withRegistration(AzureStaticWebAppsRegistration registration)

Set the registration property: The configuration settings of the Azure Static Web Apps registration.

Parameters:

registration - the registration value to set.

Returns:

the AzureStaticWebApps object itself.

Applies to