com.tencentcloudapi.sts.v20180813.models.GetFederationTokenResponse Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.sts.v20180813.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class GetFederationTokenResponse extends AbstractModel{
/**
* Temporary credentials
*/
@SerializedName("Credentials")
@Expose
private Credentials Credentials;
/**
* Temporary credentials expiration time. A Unix timestamp will be returned which is accurate to the second
*/
@SerializedName("ExpiredTime")
@Expose
private Long ExpiredTime;
/**
* Credentials expiration time in UTC time in ISO 8601 format.
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Expiration")
@Expose
private String Expiration;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
@SerializedName("RequestId")
@Expose
private String RequestId;
/**
* Get Temporary credentials
* @return Credentials Temporary credentials
*/
public Credentials getCredentials() {
return this.Credentials;
}
/**
* Set Temporary credentials
* @param Credentials Temporary credentials
*/
public void setCredentials(Credentials Credentials) {
this.Credentials = Credentials;
}
/**
* Get Temporary credentials expiration time. A Unix timestamp will be returned which is accurate to the second
* @return ExpiredTime Temporary credentials expiration time. A Unix timestamp will be returned which is accurate to the second
*/
public Long getExpiredTime() {
return this.ExpiredTime;
}
/**
* Set Temporary credentials expiration time. A Unix timestamp will be returned which is accurate to the second
* @param ExpiredTime Temporary credentials expiration time. A Unix timestamp will be returned which is accurate to the second
*/
public void setExpiredTime(Long ExpiredTime) {
this.ExpiredTime = ExpiredTime;
}
/**
* Get Credentials expiration time in UTC time in ISO 8601 format.
Note: this field may return null, indicating that no valid values can be obtained.
* @return Expiration Credentials expiration time in UTC time in ISO 8601 format.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getExpiration() {
return this.Expiration;
}
/**
* Set Credentials expiration time in UTC time in ISO 8601 format.
Note: this field may return null, indicating that no valid values can be obtained.
* @param Expiration Credentials expiration time in UTC time in ISO 8601 format.
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setExpiration(String Expiration) {
this.Expiration = Expiration;
}
/**
* Get The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @return RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
public String getRequestId() {
return this.RequestId;
}
/**
* Set The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @param RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem.
*/
public void setRequestId(String RequestId) {
this.RequestId = RequestId;
}
public GetFederationTokenResponse() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public GetFederationTokenResponse(GetFederationTokenResponse source) {
if (source.Credentials != null) {
this.Credentials = new Credentials(source.Credentials);
}
if (source.ExpiredTime != null) {
this.ExpiredTime = new Long(source.ExpiredTime);
}
if (source.Expiration != null) {
this.Expiration = new String(source.Expiration);
}
if (source.RequestId != null) {
this.RequestId = new String(source.RequestId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "Credentials.", this.Credentials);
this.setParamSimple(map, prefix + "ExpiredTime", this.ExpiredTime);
this.setParamSimple(map, prefix + "Expiration", this.Expiration);
this.setParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy