ContainerHttpGet Class

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

Implements

public final class ContainerHttpGet
implements JsonSerializable<ContainerHttpGet>

The container Http Get settings, for liveness or readiness probe.

Constructor Summary

Constructor Description
ContainerHttpGet()

Creates an instance of ContainerHttpGet class.

Method Summary

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

Reads an instance of ContainerHttpGet from the JsonReader.

List<HttpHeader> httpHeaders()

Get the httpHeaders property: The HTTP headers.

String path()

Get the path property: The path to probe.

int port()

Get the port property: The port number to probe.

Scheme scheme()

Get the scheme property: The scheme.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerHttpGet withHttpHeaders(List<HttpHeader> httpHeaders)

Set the httpHeaders property: The HTTP headers.

ContainerHttpGet withPath(String path)

Set the path property: The path to probe.

ContainerHttpGet withPort(int port)

Set the port property: The port number to probe.

ContainerHttpGet withScheme(Scheme scheme)

Set the scheme property: The scheme.

Methods inherited from java.lang.Object

Constructor Details

ContainerHttpGet

public ContainerHttpGet()

Creates an instance of ContainerHttpGet class.

Method Details

fromJson

public static ContainerHttpGet fromJson(JsonReader jsonReader)

Reads an instance of ContainerHttpGet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

httpHeaders

public List httpHeaders()

Get the httpHeaders property: The HTTP headers.

Returns:

the httpHeaders value.

path

public String path()

Get the path property: The path to probe.

Returns:

the path value.

port

public int port()

Get the port property: The port number to probe.

Returns:

the port value.

scheme

public Scheme scheme()

Get the scheme property: The scheme.

Returns:

the scheme value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHttpHeaders

public ContainerHttpGet withHttpHeaders(List httpHeaders)

Set the httpHeaders property: The HTTP headers.

Parameters:

httpHeaders - the httpHeaders value to set.

Returns:

the ContainerHttpGet object itself.

withPath

public ContainerHttpGet withPath(String path)

Set the path property: The path to probe.

Parameters:

path - the path value to set.

Returns:

the ContainerHttpGet object itself.

withPort

public ContainerHttpGet withPort(int port)

Set the port property: The port number to probe.

Parameters:

port - the port value to set.

Returns:

the ContainerHttpGet object itself.

withScheme

public ContainerHttpGet withScheme(Scheme scheme)

Set the scheme property: The scheme.

Parameters:

scheme - the scheme value to set.

Returns:

the ContainerHttpGet object itself.

Applies to