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

com.pulumi.spotinst.aws.inputs.CredentialsState Maven / Gradle / Ivy

The newest version!
// *** 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.spotinst.aws.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CredentialsState extends com.pulumi.resources.ResourceArgs {

    public static final CredentialsState Empty = new CredentialsState();

    /**
     * The ID of the account associated with your token.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The ID of the account associated with your token.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
     * 
     */
    @Import(name="iamrole")
    private @Nullable Output iamrole;

    /**
     * @return Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
     * 
     */
    public Optional> iamrole() {
        return Optional.ofNullable(this.iamrole);
    }

    private CredentialsState() {}

    private CredentialsState(CredentialsState $) {
        this.accountId = $.accountId;
        this.iamrole = $.iamrole;
    }

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

    public static final class Builder {
        private CredentialsState $;

        public Builder() {
            $ = new CredentialsState();
        }

        public Builder(CredentialsState defaults) {
            $ = new CredentialsState(Objects.requireNonNull(defaults));
        }

        /**
         * @param accountId The ID of the account associated with your token.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The ID of the account associated with your token.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param iamrole Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
         * 
         * @return builder
         * 
         */
        public Builder iamrole(@Nullable Output iamrole) {
            $.iamrole = iamrole;
            return this;
        }

        /**
         * @param iamrole Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
         * 
         * @return builder
         * 
         */
        public Builder iamrole(String iamrole) {
            return iamrole(Output.of(iamrole));
        }

        public CredentialsState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy