NGroupCGPropertyContainer Class

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

Implements

public final class NGroupCGPropertyContainer
implements JsonSerializable<NGroupCGPropertyContainer>

Container properties that can be provided with NGroups object.

Constructor Summary

Constructor Description
NGroupCGPropertyContainer()

Creates an instance of NGroupCGPropertyContainer class.

Method Summary

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

Reads an instance of NGroupCGPropertyContainer from the JsonReader.

String name()

Get the name property: container name.

NGroupCGPropertyContainerProperties properties()

Get the properties property: container properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NGroupCGPropertyContainer withName(String name)

Set the name property: container name.

NGroupCGPropertyContainer withProperties(NGroupCGPropertyContainerProperties properties)

Set the properties property: container properties.

Methods inherited from java.lang.Object

Constructor Details

NGroupCGPropertyContainer

public NGroupCGPropertyContainer()

Creates an instance of NGroupCGPropertyContainer class.

Method Details

fromJson

public static NGroupCGPropertyContainer fromJson(JsonReader jsonReader)

Reads an instance of NGroupCGPropertyContainer from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: container name.

Returns:

the name value.

properties

public NGroupCGPropertyContainerProperties properties()

Get the properties property: container properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public NGroupCGPropertyContainer withName(String name)

Set the name property: container name.

Parameters:

name - the name value to set.

Returns:

the NGroupCGPropertyContainer object itself.

withProperties

public NGroupCGPropertyContainer withProperties(NGroupCGPropertyContainerProperties properties)

Set the properties property: container properties.

Parameters:

properties - the properties value to set.

Returns:

the NGroupCGPropertyContainer object itself.

Applies to