ApplicationResourceInner Class

public final class ApplicationResourceInner
extends ProxyResource

The application resource.

Constructor Summary

Constructor Description
ApplicationResourceInner()

Creates an instance of ApplicationResourceInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: Azure resource etag.

static ApplicationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationResourceInner from the JsonReader.

String id()

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

ManagedIdentity identity()

Get the identity property: Describes the managed identities for an Azure resource.

String location()

Get the location property: It will be deprecated in New API, resource location depends on the parent resource.

List<ApplicationUserAssignedIdentity> managedIdentities()

Get the managedIdentities property: List of user assigned identities for the application, each mapped to a friendly name.

Long maximumNodes()

Get the maximumNodes property: The maximum number of nodes where Service Fabric will reserve capacity for this application.

List<ApplicationMetricDescription> metrics()

Get the metrics property: List of application capacity metric description.

Long minimumNodes()

Get the minimumNodes property: The minimum number of nodes where Service Fabric will reserve capacity for this application.

String name()

Get the name property: The name of the resource.

Map<String,String> parameters()

Get the parameters property: List of application parameters with overridden values from their default values specified in the application manifest.

String provisioningState()

Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.

Boolean removeApplicationCapacity()

Get the removeApplicationCapacity property: Remove the current application capacity settings.

SystemData systemData()

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

Map<String,String> tags()

Get the tags property: Azure resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String typeName()

Get the typeName property: The application type name as defined in the application manifest.

String typeVersion()

Get the typeVersion property: The version of the application type as defined in the application manifest.

ApplicationUpgradePolicy upgradePolicy()

Get the upgradePolicy property: Describes the policy for a monitored application upgrade.

void validate()

Validates the instance.

ApplicationResourceInner withIdentity(ManagedIdentity identity)

Set the identity property: Describes the managed identities for an Azure resource.

ApplicationResourceInner withLocation(String location)

Set the location property: It will be deprecated in New API, resource location depends on the parent resource.

ApplicationResourceInner withManagedIdentities(List<ApplicationUserAssignedIdentity> managedIdentities)

Set the managedIdentities property: List of user assigned identities for the application, each mapped to a friendly name.

ApplicationResourceInner withMaximumNodes(Long maximumNodes)

Set the maximumNodes property: The maximum number of nodes where Service Fabric will reserve capacity for this application.

ApplicationResourceInner withMetrics(List<ApplicationMetricDescription> metrics)

Set the metrics property: List of application capacity metric description.

ApplicationResourceInner withMinimumNodes(Long minimumNodes)

Set the minimumNodes property: The minimum number of nodes where Service Fabric will reserve capacity for this application.

ApplicationResourceInner withParameters(Map<String,String> parameters)

Set the parameters property: List of application parameters with overridden values from their default values specified in the application manifest.

ApplicationResourceInner withRemoveApplicationCapacity(Boolean removeApplicationCapacity)

Set the removeApplicationCapacity property: Remove the current application capacity settings.

ApplicationResourceInner withTags(Map<String,String> tags)

Set the tags property: Azure resource tags.

ApplicationResourceInner withTypeName(String typeName)

Set the typeName property: The application type name as defined in the application manifest.

ApplicationResourceInner withTypeVersion(String typeVersion)

Set the typeVersion property: The version of the application type as defined in the application manifest.

ApplicationResourceInner withUpgradePolicy(ApplicationUpgradePolicy upgradePolicy)

Set the upgradePolicy property: Describes the policy for a monitored application upgrade.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ApplicationResourceInner

public ApplicationResourceInner()

Creates an instance of ApplicationResourceInner class.

Method Details

etag

public String etag()

Get the etag property: Azure resource etag.

Returns:

the etag value.

fromJson

public static ApplicationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ApplicationResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ApplicationResourceInner.id()

Returns:

the id value.

identity

public ManagedIdentity identity()

Get the identity property: Describes the managed identities for an Azure resource.

Returns:

the identity value.

location

public String location()

Get the location property: It will be deprecated in New API, resource location depends on the parent resource.

Returns:

the location value.

managedIdentities

public List<ApplicationUserAssignedIdentity> managedIdentities()

Get the managedIdentities property: List of user assigned identities for the application, each mapped to a friendly name.

Returns:

the managedIdentities value.

maximumNodes

public Long maximumNodes()

Get the maximumNodes property: The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node.

Returns:

the maximumNodes value.

metrics

public List<ApplicationMetricDescription> metrics()

Get the metrics property: List of application capacity metric description.

Returns:

the metrics value.

minimumNodes

public Long minimumNodes()

Get the minimumNodes property: The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.

Returns:

the minimumNodes value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ApplicationResourceInner.name()

Returns:

the name value.

parameters

public Map<String,String> parameters()

Get the parameters property: List of application parameters with overridden values from their default values specified in the application manifest.

Returns:

the parameters value.

provisioningState

public String provisioningState()

Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.

Returns:

the provisioningState value.

removeApplicationCapacity

public Boolean removeApplicationCapacity()

Get the removeApplicationCapacity property: Remove the current application capacity settings.

Returns:

the removeApplicationCapacity value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Azure resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ApplicationResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ApplicationResourceInner.type()

Returns:

the type value.

typeName

public String typeName()

Get the typeName property: The application type name as defined in the application manifest.

Returns:

the typeName value.

typeVersion

public String typeVersion()

Get the typeVersion property: The version of the application type as defined in the application manifest.

Returns:

the typeVersion value.

upgradePolicy

public ApplicationUpgradePolicy upgradePolicy()

Get the upgradePolicy property: Describes the policy for a monitored application upgrade.

Returns:

the upgradePolicy value.

validate

public void validate()

Validates the instance.

withIdentity

public ApplicationResourceInner withIdentity(ManagedIdentity identity)

Set the identity property: Describes the managed identities for an Azure resource.

Parameters:

identity - the identity value to set.

Returns:

the ApplicationResourceInner object itself.

withLocation

public ApplicationResourceInner withLocation(String location)

Set the location property: It will be deprecated in New API, resource location depends on the parent resource.

Parameters:

location - the location value to set.

Returns:

the ApplicationResourceInner object itself.

withManagedIdentities

public ApplicationResourceInner withManagedIdentities(List<ApplicationUserAssignedIdentity> managedIdentities)

Set the managedIdentities property: List of user assigned identities for the application, each mapped to a friendly name.

Parameters:

managedIdentities - the managedIdentities value to set.

Returns:

the ApplicationResourceInner object itself.

withMaximumNodes

public ApplicationResourceInner withMaximumNodes(Long maximumNodes)

Set the maximumNodes property: The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node.

Parameters:

maximumNodes - the maximumNodes value to set.

Returns:

the ApplicationResourceInner object itself.

withMetrics

public ApplicationResourceInner withMetrics(List<ApplicationMetricDescription> metrics)

Set the metrics property: List of application capacity metric description.

Parameters:

metrics - the metrics value to set.

Returns:

the ApplicationResourceInner object itself.

withMinimumNodes

public ApplicationResourceInner withMinimumNodes(Long minimumNodes)

Set the minimumNodes property: The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.

Parameters:

minimumNodes - the minimumNodes value to set.

Returns:

the ApplicationResourceInner object itself.

withParameters

public ApplicationResourceInner withParameters(Map<String,String> parameters)

Set the parameters property: List of application parameters with overridden values from their default values specified in the application manifest.

Parameters:

parameters - the parameters value to set.

Returns:

the ApplicationResourceInner object itself.

withRemoveApplicationCapacity

public ApplicationResourceInner withRemoveApplicationCapacity(Boolean removeApplicationCapacity)

Set the removeApplicationCapacity property: Remove the current application capacity settings.

Parameters:

removeApplicationCapacity - the removeApplicationCapacity value to set.

Returns:

the ApplicationResourceInner object itself.

withTags

public ApplicationResourceInner withTags(Map<String,String> tags)

Set the tags property: Azure resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ApplicationResourceInner object itself.

withTypeName

public ApplicationResourceInner withTypeName(String typeName)

Set the typeName property: The application type name as defined in the application manifest.

Parameters:

typeName - the typeName value to set.

Returns:

the ApplicationResourceInner object itself.

withTypeVersion

public ApplicationResourceInner withTypeVersion(String typeVersion)

Set the typeVersion property: The version of the application type as defined in the application manifest.

Parameters:

typeVersion - the typeVersion value to set.

Returns:

the ApplicationResourceInner object itself.

withUpgradePolicy

public ApplicationResourceInner withUpgradePolicy(ApplicationUpgradePolicy upgradePolicy)

Set the upgradePolicy property: Describes the policy for a monitored application upgrade.

Parameters:

upgradePolicy - the upgradePolicy value to set.

Returns:

the ApplicationResourceInner object itself.

Applies to