ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy Class

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

Implements

public final class ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy
implements JsonSerializable<ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy>

The ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy model.

Constructor Summary

Constructor Description
ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy()

Creates an instance of ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy class.

Method Summary

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

Reads an instance of ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy from the JsonReader.

String prefix()

Get the prefix property: The prefix can be used when there are tooling limitations (e.g.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy withPrefix(String prefix)

Set the prefix property: The prefix can be used when there are tooling limitations (e.g.

Methods inherited from java.lang.Object

Constructor Details

ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy

public ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy()

Creates an instance of ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy class.

Method Details

fromJson

public static ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy fromJson(JsonReader jsonReader)

Reads an instance of ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

prefix

public String prefix()

Get the prefix property: The prefix can be used when there are tooling limitations (e.g. on the Azure portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed resource name must still follow Azure resource naming guidelines.

Returns:

the prefix value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrefix

public ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy withPrefix(String prefix)

Set the prefix property: The prefix can be used when there are tooling limitations (e.g. on the Azure portal where CGs from multiple NGroups exist in the same RG). The prefix with the suffixed resource name must still follow Azure resource naming guidelines.

Parameters:

prefix - the prefix value to set.

Returns:

the ElasticProfileContainerGroupNamingPolicyGuidNamingPolicy object itself.

Applies to