ServiceMeshProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ServiceMeshProfile

Implements

public final class ServiceMeshProfile
implements JsonSerializable<ServiceMeshProfile>

Service mesh profile for a managed cluster.

Constructor Summary

Constructor Description
ServiceMeshProfile()

Creates an instance of ServiceMeshProfile class.

Method Summary

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

Reads an instance of ServiceMeshProfile from the JsonReader.

IstioServiceMesh istio()

Get the istio property: Istio service mesh configuration.

ServiceMeshMode mode()

Get the mode property: Mode of the service mesh.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceMeshProfile withIstio(IstioServiceMesh istio)

Set the istio property: Istio service mesh configuration.

ServiceMeshProfile withMode(ServiceMeshMode mode)

Set the mode property: Mode of the service mesh.

Methods inherited from java.lang.Object

Constructor Details

ServiceMeshProfile

public ServiceMeshProfile()

Creates an instance of ServiceMeshProfile class.

Method Details

fromJson

public static ServiceMeshProfile fromJson(JsonReader jsonReader)

Reads an instance of ServiceMeshProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

istio

public IstioServiceMesh istio()

Get the istio property: Istio service mesh configuration.

Returns:

the istio value.

mode

public ServiceMeshMode mode()

Get the mode property: Mode of the service mesh.

Returns:

the mode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIstio

public ServiceMeshProfile withIstio(IstioServiceMesh istio)

Set the istio property: Istio service mesh configuration.

Parameters:

istio - the istio value to set.

Returns:

the ServiceMeshProfile object itself.

withMode

public ServiceMeshProfile withMode(ServiceMeshMode mode)

Set the mode property: Mode of the service mesh.

Parameters:

mode - the mode value to set.

Returns:

the ServiceMeshProfile object itself.

Applies to