HostingEnvironmentProfile Class

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

Implements

public final class HostingEnvironmentProfile
implements JsonSerializable<HostingEnvironmentProfile>

Specification for an App Service Environment to use for this resource.

Constructor Summary

Constructor Description
HostingEnvironmentProfile()

Creates an instance of HostingEnvironmentProfile class.

Method Summary

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

Reads an instance of HostingEnvironmentProfile from the JsonReader.

String id()

Get the id property: Resource ID of the App Service Environment.

String name()

Get the name property: Name of the App Service Environment.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type of the App Service Environment.

void validate()

Validates the instance.

HostingEnvironmentProfile withId(String id)

Set the id property: Resource ID of the App Service Environment.

Methods inherited from java.lang.Object

Constructor Details

HostingEnvironmentProfile

public HostingEnvironmentProfile()

Creates an instance of HostingEnvironmentProfile class.

Method Details

fromJson

public static HostingEnvironmentProfile fromJson(JsonReader jsonReader)

Reads an instance of HostingEnvironmentProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource ID of the App Service Environment.

Returns:

the id value.

name

public String name()

Get the name property: Name of the App Service Environment.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type of the App Service Environment.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public HostingEnvironmentProfile withId(String id)

Set the id property: Resource ID of the App Service Environment.

Parameters:

id - the id value to set.

Returns:

the HostingEnvironmentProfile object itself.

Applies to