Class ContainerExecResponseInner
java.lang.Object
com.azure.resourcemanager.containerinstance.fluent.models.ContainerExecResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerExecResponseInner>
public final class ContainerExecResponseInner
extends Object
implements com.azure.json.JsonSerializable<ContainerExecResponseInner>
The information for the container exec command.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerExecResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerExecResponseInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerExecResponseInner from the JsonReader.password()Get the password property: The password to start the exec command.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the webSocketUri property: The uri for the exec websocket.withPassword(String password) Set the password property: The password to start the exec command.withWebSocketUri(String webSocketUri) Set the webSocketUri property: The uri for the exec websocket.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
-
ContainerExecResponseInner
public ContainerExecResponseInner()Creates an instance of ContainerExecResponseInner class.
-
-
Method Details
-
webSocketUri
Get the webSocketUri property: The uri for the exec websocket.- Returns:
- the webSocketUri value.
-
withWebSocketUri
Set the webSocketUri property: The uri for the exec websocket.- Parameters:
webSocketUri- the webSocketUri value to set.- Returns:
- the ContainerExecResponseInner object itself.
-
password
Get the password property: The password to start the exec command.- Returns:
- the password value.
-
withPassword
Set the password property: The password to start the exec command.- Parameters:
password- the password value to set.- Returns:
- the ContainerExecResponseInner 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<ContainerExecResponseInner>- Throws:
IOException
-
fromJson
public static ContainerExecResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerExecResponseInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerExecResponseInner 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 ContainerExecResponseInner.
-