com.aliyun.sdk.service.ecs20140526.models.StartTerminalSessionResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link StartTerminalSessionResponseBody} extends {@link TeaModel}
*
* StartTerminalSessionResponseBody
*/
public class StartTerminalSessionResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.NameInMap("SessionId")
private String sessionId;
@com.aliyun.core.annotation.NameInMap("WebSocketUrl")
private String webSocketUrl;
private StartTerminalSessionResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.securityToken = builder.securityToken;
this.sessionId = builder.sessionId;
this.webSocketUrl = builder.webSocketUrl;
}
public static Builder builder() {
return new Builder();
}
public static StartTerminalSessionResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return sessionId
*/
public String getSessionId() {
return this.sessionId;
}
/**
* @return webSocketUrl
*/
public String getWebSocketUrl() {
return this.webSocketUrl;
}
public static final class Builder {
private String requestId;
private String securityToken;
private String sessionId;
private String webSocketUrl;
/**
* The request ID.
*
* example:
* EB5173B0-8E80-564E-AAD1-3135412*****
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The security token included in the WebSocket request header. The system uses this token to authenticate the request.
*
* example:
* d86c2df2-d19c-4bd8-b817-a19ef123****
*/
public Builder securityToken(String securityToken) {
this.securityToken = securityToken;
return this;
}
/**
* The session ID.
*
* example:
* s-hz023od0x9****
*/
public Builder sessionId(String sessionId) {
this.sessionId = sessionId;
return this;
}
/**
* The URL of the WebSocket session that is used to connect to the instance. The URL includes the session ID (SessionId
) and the authentication token (SecurityToken
).
*
* example:
* wss://cn-hangzhou.axt.aliyuncs.com/session?sessionId=s-hz023od0x9****&token=d86c2df2-d19c-4bd8-b817-a19ef123****
*/
public Builder webSocketUrl(String webSocketUrl) {
this.webSocketUrl = webSocketUrl;
return this;
}
public StartTerminalSessionResponseBody build() {
return new StartTerminalSessionResponseBody(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy