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 Details

    • ContainerAttachResponseInner

      public ContainerAttachResponseInner()
      Creates an instance of ContainerAttachResponseInner class.
  • Method Details

    • webSocketUri

      public String webSocketUri()
      Get the webSocketUri property: The uri for the output stream from the attach.
      Returns:
      the webSocketUri value.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.