AppResourceInner Class

public final class AppResourceInner
extends ProxyResource

App resource payload.

Constructor Summary

Constructor Description
AppResourceInner()

Creates an instance of AppResourceInner class.

Method Summary

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

Reads an instance of AppResourceInner from the JsonReader.

String id()

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

ManagedIdentityProperties identity()

Get the identity property: The Managed Identity type of the app resource.

String location()

Get the location property: The GEO location of the application, always the same with its parent resource.

String name()

Get the name property: The name of the resource.

AppResourceProperties properties()

Get the properties property: Properties of the App resource.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AppResourceInner withIdentity(ManagedIdentityProperties identity)

Set the identity property: The Managed Identity type of the app resource.

AppResourceInner withLocation(String location)

Set the location property: The GEO location of the application, always the same with its parent resource.

AppResourceInner withProperties(AppResourceProperties properties)

Set the properties property: Properties of the App resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AppResourceInner

public AppResourceInner()

Creates an instance of AppResourceInner class.

Method Details

fromJson

public static AppResourceInner fromJson(JsonReader jsonReader)

Reads an instance of AppResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

AppResourceInner.id()

Returns:

the id value.

identity

public ManagedIdentityProperties identity()

Get the identity property: The Managed Identity type of the app resource.

Returns:

the identity value.

location

public String location()

Get the location property: The GEO location of the application, always the same with its parent resource.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AppResourceInner.name()

Returns:

the name value.

properties

public AppResourceProperties properties()

Get the properties property: Properties of the App resource.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AppResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AppResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentity

public AppResourceInner withIdentity(ManagedIdentityProperties identity)

Set the identity property: The Managed Identity type of the app resource.

Parameters:

identity - the identity value to set.

Returns:

the AppResourceInner object itself.

withLocation

public AppResourceInner withLocation(String location)

Set the location property: The GEO location of the application, always the same with its parent resource.

Parameters:

location - the location value to set.

Returns:

the AppResourceInner object itself.

withProperties

public AppResourceInner withProperties(AppResourceProperties properties)

Set the properties property: Properties of the App resource.

Parameters:

properties - the properties value to set.

Returns:

the AppResourceInner object itself.

Applies to