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

com.tencentcloudapi.sts.v20180813.models.AssumeRoleWithSAMLRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class AssumeRoleWithSAMLRequest extends AbstractModel {

    /**
    * Base64-encoded SAML assertion
    */
    @SerializedName("SAMLAssertion")
    @Expose
    private String SAMLAssertion;

    /**
    * Principal access description name
    */
    @SerializedName("PrincipalArn")
    @Expose
    private String PrincipalArn;

    /**
    * Role access description name
    */
    @SerializedName("RoleArn")
    @Expose
    private String RoleArn;

    /**
    * Session name
    */
    @SerializedName("RoleSessionName")
    @Expose
    private String RoleSessionName;

    /**
    * The validity period of the temporary credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
    */
    @SerializedName("DurationSeconds")
    @Expose
    private Long DurationSeconds;

    /**
     * Get Base64-encoded SAML assertion 
     * @return SAMLAssertion Base64-encoded SAML assertion
     */
    public String getSAMLAssertion() {
        return this.SAMLAssertion;
    }

    /**
     * Set Base64-encoded SAML assertion
     * @param SAMLAssertion Base64-encoded SAML assertion
     */
    public void setSAMLAssertion(String SAMLAssertion) {
        this.SAMLAssertion = SAMLAssertion;
    }

    /**
     * Get Principal access description name 
     * @return PrincipalArn Principal access description name
     */
    public String getPrincipalArn() {
        return this.PrincipalArn;
    }

    /**
     * Set Principal access description name
     * @param PrincipalArn Principal access description name
     */
    public void setPrincipalArn(String PrincipalArn) {
        this.PrincipalArn = PrincipalArn;
    }

    /**
     * Get Role access description name 
     * @return RoleArn Role access description name
     */
    public String getRoleArn() {
        return this.RoleArn;
    }

    /**
     * Set Role access description name
     * @param RoleArn Role access description name
     */
    public void setRoleArn(String RoleArn) {
        this.RoleArn = RoleArn;
    }

    /**
     * Get Session name 
     * @return RoleSessionName Session name
     */
    public String getRoleSessionName() {
        return this.RoleSessionName;
    }

    /**
     * Set Session name
     * @param RoleSessionName Session name
     */
    public void setRoleSessionName(String RoleSessionName) {
        this.RoleSessionName = RoleSessionName;
    }

    /**
     * Get The validity period of the temporary credentials in seconds. Default value: 7,200s. Maximum value: 43,200s. 
     * @return DurationSeconds The validity period of the temporary credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
     */
    public Long getDurationSeconds() {
        return this.DurationSeconds;
    }

    /**
     * Set The validity period of the temporary credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
     * @param DurationSeconds The validity period of the temporary credentials in seconds. Default value: 7,200s. Maximum value: 43,200s.
     */
    public void setDurationSeconds(Long DurationSeconds) {
        this.DurationSeconds = DurationSeconds;
    }

    public AssumeRoleWithSAMLRequest() {
    }

    /**
     * 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 AssumeRoleWithSAMLRequest(AssumeRoleWithSAMLRequest source) {
        if (source.SAMLAssertion != null) {
            this.SAMLAssertion = new String(source.SAMLAssertion);
        }
        if (source.PrincipalArn != null) {
            this.PrincipalArn = new String(source.PrincipalArn);
        }
        if (source.RoleArn != null) {
            this.RoleArn = new String(source.RoleArn);
        }
        if (source.RoleSessionName != null) {
            this.RoleSessionName = new String(source.RoleSessionName);
        }
        if (source.DurationSeconds != null) {
            this.DurationSeconds = new Long(source.DurationSeconds);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "SAMLAssertion", this.SAMLAssertion);
        this.setParamSimple(map, prefix + "PrincipalArn", this.PrincipalArn);
        this.setParamSimple(map, prefix + "RoleArn", this.RoleArn);
        this.setParamSimple(map, prefix + "RoleSessionName", this.RoleSessionName);
        this.setParamSimple(map, prefix + "DurationSeconds", this.DurationSeconds);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy