StandbyPoolProfileDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.StandbyPoolProfileDefinition

Implements

public final class StandbyPoolProfileDefinition
implements JsonSerializable<StandbyPoolProfileDefinition>

The standby pool profile reference.

Constructor Summary

Constructor Description
StandbyPoolProfileDefinition()

Creates an instance of StandbyPoolProfileDefinition class.

Method Summary

Modifier and Type Method and Description
Boolean failContainerGroupCreateOnReuseFailure()

Get the failContainerGroupCreateOnReuseFailure property: The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.

static StandbyPoolProfileDefinition fromJson(JsonReader jsonReader)

Reads an instance of StandbyPoolProfileDefinition from the JsonReader.

String id()

Get the id property: The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StandbyPoolProfileDefinition withFailContainerGroupCreateOnReuseFailure(Boolean failContainerGroupCreateOnReuseFailure)

Set the failContainerGroupCreateOnReuseFailure property: The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.

StandbyPoolProfileDefinition withId(String id)

Set the id property: The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.

Methods inherited from java.lang.Object

Constructor Details

StandbyPoolProfileDefinition

public StandbyPoolProfileDefinition()

Creates an instance of StandbyPoolProfileDefinition class.

Method Details

failContainerGroupCreateOnReuseFailure

public Boolean failContainerGroupCreateOnReuseFailure()

Get the failContainerGroupCreateOnReuseFailure property: The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.

Returns:

the failContainerGroupCreateOnReuseFailure value.

fromJson

public static StandbyPoolProfileDefinition fromJson(JsonReader jsonReader)

Reads an instance of StandbyPoolProfileDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFailContainerGroupCreateOnReuseFailure

public StandbyPoolProfileDefinition withFailContainerGroupCreateOnReuseFailure(Boolean failContainerGroupCreateOnReuseFailure)

Set the failContainerGroupCreateOnReuseFailure property: The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.

Parameters:

failContainerGroupCreateOnReuseFailure - the failContainerGroupCreateOnReuseFailure value to set.

Returns:

the StandbyPoolProfileDefinition object itself.

withId

public StandbyPoolProfileDefinition withId(String id)

Set the id property: The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.

Parameters:

id - the id value to set.

Returns:

the StandbyPoolProfileDefinition object itself.

Applies to