ContainerAttachResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.fluent.models.ContainerAttachResponseInner

Implements

public final class ContainerAttachResponseInner
implements JsonSerializable<ContainerAttachResponseInner>

The information for the output stream from container attach.

Constructor Summary

Constructor Description
ContainerAttachResponseInner()

Creates an instance of ContainerAttachResponseInner class.

Method Summary

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

Reads an instance of ContainerAttachResponseInner from the JsonReader.

String password()

Get the password property: The password to the output stream from the attach.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String webSocketUri()

Get the webSocketUri property: The uri for the output stream from the attach.

ContainerAttachResponseInner withPassword(String password)

Set the password property: The password to the output stream from the attach.

ContainerAttachResponseInner withWebSocketUri(String webSocketUri)

Set the webSocketUri property: The uri for the output stream from the attach.

Methods inherited from java.lang.Object

Constructor Details

ContainerAttachResponseInner

public ContainerAttachResponseInner()

Creates an instance of ContainerAttachResponseInner class.

Method Details

fromJson

public static ContainerAttachResponseInner fromJson(JsonReader jsonReader)

Reads an instance of ContainerAttachResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

password

public String password()

Get the password property: The password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

webSocketUri

public String webSocketUri()

Get the webSocketUri property: The uri for the output stream from the attach.

Returns:

the webSocketUri value.

withPassword

public ContainerAttachResponseInner withPassword(String password)

Set the password property: The password to the output stream from the attach. Send as an Authorization header value when connecting to the websocketUri.

Parameters:

password - the password value to set.

Returns:

the ContainerAttachResponseInner object itself.

withWebSocketUri

public ContainerAttachResponseInner withWebSocketUri(String webSocketUri)

Set the webSocketUri property: The uri for the output stream from the attach.

Parameters:

webSocketUri - the webSocketUri value to set.

Returns:

the ContainerAttachResponseInner object itself.

Applies to