All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeTerminalSessionsResponseBody Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeTerminalSessionsResponseBody} extends {@link TeaModel}
 *
 * 

DescribeTerminalSessionsResponseBody

*/ public class DescribeTerminalSessionsResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("NextToken") private String nextToken; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; @com.aliyun.core.annotation.NameInMap("Sessions") private Sessions sessions; private DescribeTerminalSessionsResponseBody(Builder builder) { this.nextToken = builder.nextToken; this.requestId = builder.requestId; this.sessions = builder.sessions; } public static Builder builder() { return new Builder(); } public static DescribeTerminalSessionsResponseBody create() { return builder().build(); } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return requestId */ public String getRequestId() { return this.requestId; } /** * @return sessions */ public Sessions getSessions() { return this.sessions; } public static final class Builder { private String nextToken; private String requestId; private Sessions sessions; /** *

A pagination token. It can be used in the next request to retrieve a new page of results.

* * example: *

AAAAAdDWBF2****

*/ public Builder nextToken(String nextToken) { this.nextToken = nextToken; return this; } /** *

The request ID.

* * example: *

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

*/ public Builder requestId(String requestId) { this.requestId = requestId; return this; } /** *

The information of the sessions.

*/ public Builder sessions(Sessions sessions) { this.sessions = sessions; return this; } public DescribeTerminalSessionsResponseBody build() { return new DescribeTerminalSessionsResponseBody(this); } } /** * * {@link DescribeTerminalSessionsResponseBody} extends {@link TeaModel} * *

DescribeTerminalSessionsResponseBody

*/ public static class Connection extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClosedReason") private String closedReason; @com.aliyun.core.annotation.NameInMap("EndTime") private String endTime; @com.aliyun.core.annotation.NameInMap("InstanceId") private String instanceId; @com.aliyun.core.annotation.NameInMap("StartTime") private String startTime; @com.aliyun.core.annotation.NameInMap("Status") private String status; private Connection(Builder builder) { this.closedReason = builder.closedReason; this.endTime = builder.endTime; this.instanceId = builder.instanceId; this.startTime = builder.startTime; this.status = builder.status; } public static Builder builder() { return new Builder(); } public static Connection create() { return builder().build(); } /** * @return closedReason */ public String getClosedReason() { return this.closedReason; } /** * @return endTime */ public String getEndTime() { return this.endTime; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return startTime */ public String getStartTime() { return this.startTime; } /** * @return status */ public String getStatus() { return this.status; } public static final class Builder { private String closedReason; private String endTime; private String instanceId; private String startTime; private String status; /** *

The reason why the connection was closed. This parameter is returned only when the Status value is Disconnected, Terminated, or Failed. Valid values:

*
    *
  • InstanceNotExists: The specified instance did not exist or was released.
  • *
  • InstanceNotRunning: The specified instance was not running.
  • *
  • DeliveryTimeout: The connection timed out.
  • *
  • AgentNeedUpgrade: Cloud Assistant Agent required an upgrade.
  • *
  • AgentNotOnline: Cloud Assistant Agent was not connected to the Cloud Assistant server.
  • *
  • MessageFormatInvalid: The message format was invalid.
  • *
  • AgentSocketClosed: The connection was closed as expected.
  • *
  • ClientClosed: Session Manager Client closed the connection.
  • *
* * example: *

AgentNeedUpgrade

*/ public Builder closedReason(String closedReason) { this.closedReason = closedReason; return this; } /** *

The time when the connection was closed.

* * example: *

2024-01-19T09:16:46Z

*/ public Builder endTime(String endTime) { this.endTime = endTime; return this; } /** *

The instance ID.

* * example: *

i-bp1i7gg30r52z2em****

*/ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** *

The time when the connection started to be established.

* * example: *

2024-01-19T09:16:40Z

*/ public Builder startTime(String startTime) { this.startTime = startTime; return this; } /** *

The state of the session. Valid values:

*
    *
  • Connecting: The connection is being established.
  • *
  • Connected: The connection is established.
  • *
  • Disconnected: The connection is disconnected.
  • *
  • Terminating: The session is being terminated.
  • *
  • Terminated: The session is terminated.
  • *
  • Failed: The connection failed.
  • *
* * example: *

Connecting

*/ public Builder status(String status) { this.status = status; return this; } public Connection build() { return new Connection(this); } } } /** * * {@link DescribeTerminalSessionsResponseBody} extends {@link TeaModel} * *

DescribeTerminalSessionsResponseBody

*/ public static class Connections extends TeaModel { @com.aliyun.core.annotation.NameInMap("Connection") private java.util.List connection; private Connections(Builder builder) { this.connection = builder.connection; } public static Builder builder() { return new Builder(); } public static Connections create() { return builder().build(); } /** * @return connection */ public java.util.List getConnection() { return this.connection; } public static final class Builder { private java.util.List connection; /** * Connection. */ public Builder connection(java.util.List connection) { this.connection = connection; return this; } public Connections build() { return new Connections(this); } } } /** * * {@link DescribeTerminalSessionsResponseBody} extends {@link TeaModel} * *

DescribeTerminalSessionsResponseBody

*/ public static class Session extends TeaModel { @com.aliyun.core.annotation.NameInMap("ClientIP") private String clientIP; @com.aliyun.core.annotation.NameInMap("Connections") private Connections connections; @com.aliyun.core.annotation.NameInMap("CreationTime") private String creationTime; @com.aliyun.core.annotation.NameInMap("IdentityType") private String identityType; @com.aliyun.core.annotation.NameInMap("PortNumber") private Integer portNumber; @com.aliyun.core.annotation.NameInMap("PrincipalId") private String principalId; @com.aliyun.core.annotation.NameInMap("SessionId") private String sessionId; @com.aliyun.core.annotation.NameInMap("TargetServer") private String targetServer; @com.aliyun.core.annotation.NameInMap("Username") private String username; private Session(Builder builder) { this.clientIP = builder.clientIP; this.connections = builder.connections; this.creationTime = builder.creationTime; this.identityType = builder.identityType; this.portNumber = builder.portNumber; this.principalId = builder.principalId; this.sessionId = builder.sessionId; this.targetServer = builder.targetServer; this.username = builder.username; } public static Builder builder() { return new Builder(); } public static Session create() { return builder().build(); } /** * @return clientIP */ public String getClientIP() { return this.clientIP; } /** * @return connections */ public Connections getConnections() { return this.connections; } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return identityType */ public String getIdentityType() { return this.identityType; } /** * @return portNumber */ public Integer getPortNumber() { return this.portNumber; } /** * @return principalId */ public String getPrincipalId() { return this.principalId; } /** * @return sessionId */ public String getSessionId() { return this.sessionId; } /** * @return targetServer */ public String getTargetServer() { return this.targetServer; } /** * @return username */ public String getUsername() { return this.username; } public static final class Builder { private String clientIP; private Connections connections; private String creationTime; private String identityType; private Integer portNumber; private String principalId; private String sessionId; private String targetServer; private String username; /** *

The IP address of the client used to establish connections.

* * example: *

192.168.1.1

*/ public Builder clientIP(String clientIP) { this.clientIP = clientIP; return this; } /** *

The information of the connections.

*/ public Builder connections(Connections connections) { this.connections = connections; return this; } /** *

The time when the session was created.

* * example: *

2024-01-19T09:15:46Z

*/ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** *

The principal type. Valid values:

*
    *
  • Account: an Alibaba Cloud account
  • *
  • RAMUser: a RAM user
  • *
  • AssumedRoleUser: a RAM role
  • *
* * example: *

RAMUser

*/ public Builder identityType(String identityType) { this.identityType = identityType; return this; } /** *

The port number of the instance, which is used for data forwarding. If no port number was specified for data forwarding when the session was created, this parameter is empty.

* * example: *

22

*/ public Builder portNumber(Integer portNumber) { this.portNumber = portNumber; return this; } /** *

The ID of the principal. Valid values based on the IdentityType value:

*
    *
  • If the requester uses an Alibaba Cloud account to call the operation, the ID of the Alibaba Cloud account is returned.
  • *
  • If the requester uses a Resource Access Management (RAM) user to call the operation, the ID of the RAM user is returned.
  • *
  • If the requester uses a RAM role to call the operation, the ID of the principal that actually calls the operation is returned.
  • *
* * example: *

123456xxxx

*/ public Builder principalId(String principalId) { this.principalId = principalId; return this; } /** *

The session ID.

* * example: *

s-hz023od0x9****

*/ public Builder sessionId(String sessionId) { this.sessionId = sessionId; return this; } /** *

The address of the service that was accessed in a virtual private cloud (VPC) from the instance.

* * example: *

192.168.0.246

*/ public Builder targetServer(String targetServer) { this.targetServer = targetServer; return this; } /** *

The username used to establish connections.

* * example: *

root

*/ public Builder username(String username) { this.username = username; return this; } public Session build() { return new Session(this); } } } /** * * {@link DescribeTerminalSessionsResponseBody} extends {@link TeaModel} * *

DescribeTerminalSessionsResponseBody

*/ public static class Sessions extends TeaModel { @com.aliyun.core.annotation.NameInMap("Session") private java.util.List session; private Sessions(Builder builder) { this.session = builder.session; } public static Builder builder() { return new Builder(); } public static Sessions create() { return builder().build(); } /** * @return session */ public java.util.List getSession() { return this.session; } public static final class Builder { private java.util.List session; /** * Session. */ public Builder session(java.util.List session) { this.session = session; return this; } public Sessions build() { return new Sessions(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy