Class ContainerAttachResponseInner
java.lang.Object
com.azure.resourcemanager.containerinstance.fluent.models.ContainerAttachResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerAttachResponseInner>
public final class ContainerAttachResponseInner
extends Object
implements com.azure.json.JsonSerializable<ContainerAttachResponseInner>
The information for the output stream from container attach.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerAttachResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerAttachResponseInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerAttachResponseInner from the JsonReader.password()Get the password property: The password to the output stream from the attach.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the webSocketUri property: The uri for the output stream from the attach.withPassword(String password) Set the password property: The password to the output stream from the attach.withWebSocketUri(String webSocketUri) Set the webSocketUri property: The uri for the output stream from the attach.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerAttachResponseInner
public ContainerAttachResponseInner()Creates an instance of ContainerAttachResponseInner class.
-
-
Method Details
-
webSocketUri
Get the webSocketUri property: The uri for the output stream from the attach.- Returns:
- the webSocketUri value.
-
withWebSocketUri
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.
-
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.
-
withPassword
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerAttachResponseInner>- Throws:
IOException
-
fromJson
public static ContainerAttachResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-