FleetPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservicefleet.models.FleetPatch

Implements

public final class FleetPatch
implements JsonSerializable<FleetPatch>

Properties of a Fleet that can be patched.

Constructor Summary

Constructor Description
FleetPatch()

Creates an instance of FleetPatch class.

Method Summary

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

Reads an instance of FleetPatch from the JsonReader.

ManagedServiceIdentity identity()

Get the identity property: Managed identity.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FleetPatch withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed identity.

FleetPatch withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

FleetPatch

public FleetPatch()

Creates an instance of FleetPatch class.

Method Details

fromJson

public static FleetPatch fromJson(JsonReader jsonReader)

Reads an instance of FleetPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public ManagedServiceIdentity identity()

Get the identity property: Managed identity.

Returns:

the identity value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public FleetPatch withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed identity.

Parameters:

identity - the identity value to set.

Returns:

the FleetPatch object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the FleetPatch object itself.

Applies to