// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.iam.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetSessionContextResult {
    private String arn;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return IAM source role ARN if `arn` corresponds to an STS assumed role. Otherwise, `issuer_arn` is equal to `arn`.
     * 
     */
    private String issuerArn;
    /**
     * @return Unique identifier of the IAM role that issues the STS assumed role.
     * 
     */
    private String issuerId;
    /**
     * @return Name of the source role. Only available if `arn` corresponds to an STS assumed role.
     * 
     */
    private String issuerName;
    /**
     * @return Name of the STS session. Only available if `arn` corresponds to an STS assumed role.
     * 
     */
    private String sessionName;

    private GetSessionContextResult() {}
    public String arn() {
        return this.arn;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return IAM source role ARN if `arn` corresponds to an STS assumed role. Otherwise, `issuer_arn` is equal to `arn`.
     * 
     */
    public String issuerArn() {
        return this.issuerArn;
    }
    /**
     * @return Unique identifier of the IAM role that issues the STS assumed role.
     * 
     */
    public String issuerId() {
        return this.issuerId;
    }
    /**
     * @return Name of the source role. Only available if `arn` corresponds to an STS assumed role.
     * 
     */
    public String issuerName() {
        return this.issuerName;
    }
    /**
     * @return Name of the STS session. Only available if `arn` corresponds to an STS assumed role.
     * 
     */
    public String sessionName() {
        return this.sessionName;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetSessionContextResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private String id;
        private String issuerArn;
        private String issuerId;
        private String issuerName;
        private String sessionName;
        public Builder() {}
        public Builder(GetSessionContextResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.id = defaults.id;
    	      this.issuerArn = defaults.issuerArn;
    	      this.issuerId = defaults.issuerId;
    	      this.issuerName = defaults.issuerName;
    	      this.sessionName = defaults.sessionName;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            this.arn = Objects.requireNonNull(arn);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder issuerArn(String issuerArn) {
            this.issuerArn = Objects.requireNonNull(issuerArn);
            return this;
        }
        @CustomType.Setter
        public Builder issuerId(String issuerId) {
            this.issuerId = Objects.requireNonNull(issuerId);
            return this;
        }
        @CustomType.Setter
        public Builder issuerName(String issuerName) {
            this.issuerName = Objects.requireNonNull(issuerName);
            return this;
        }
        @CustomType.Setter
        public Builder sessionName(String sessionName) {
            this.sessionName = Objects.requireNonNull(sessionName);
            return this;
        }
        public GetSessionContextResult build() {
            final var o = new GetSessionContextResult();
            o.arn = arn;
            o.id = id;
            o.issuerArn = issuerArn;
            o.issuerId = issuerId;
            o.issuerName = issuerName;
            o.sessionName = sessionName;
            return o;
        }
    }
}
