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

com.pulumi.alicloud.ram.inputs.RolePolicyAttachmentState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show 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.alicloud.ram.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 RolePolicyAttachmentState extends com.pulumi.resources.ResourceArgs {

    public static final RolePolicyAttachmentState Empty = new RolePolicyAttachmentState();

    /**
     * Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen.
     * 
     */
    @Import(name="policyName")
    private @Nullable Output policyName;

    /**
     * @return Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen.
     * 
     */
    public Optional> policyName() {
        return Optional.ofNullable(this.policyName);
    }

    /**
     * Type of the RAM policy. It must be `Custom` or `System`.
     * 
     */
    @Import(name="policyType")
    private @Nullable Output policyType;

    /**
     * @return Type of the RAM policy. It must be `Custom` or `System`.
     * 
     */
    public Optional> policyType() {
        return Optional.ofNullable(this.policyType);
    }

    /**
     * Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen.
     * 
     */
    @Import(name="roleName")
    private @Nullable Output roleName;

    /**
     * @return Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen.
     * 
     */
    public Optional> roleName() {
        return Optional.ofNullable(this.roleName);
    }

    private RolePolicyAttachmentState() {}

    private RolePolicyAttachmentState(RolePolicyAttachmentState $) {
        this.policyName = $.policyName;
        this.policyType = $.policyType;
        this.roleName = $.roleName;
    }

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

    public static final class Builder {
        private RolePolicyAttachmentState $;

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

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

        /**
         * @param policyName Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen.
         * 
         * @return builder
         * 
         */
        public Builder policyName(@Nullable Output policyName) {
            $.policyName = policyName;
            return this;
        }

        /**
         * @param policyName Name of the RAM policy. This name can have a string of 1 to 128 characters, must contain only alphanumeric characters or hyphen "-", and must not begin with a hyphen.
         * 
         * @return builder
         * 
         */
        public Builder policyName(String policyName) {
            return policyName(Output.of(policyName));
        }

        /**
         * @param policyType Type of the RAM policy. It must be `Custom` or `System`.
         * 
         * @return builder
         * 
         */
        public Builder policyType(@Nullable Output policyType) {
            $.policyType = policyType;
            return this;
        }

        /**
         * @param policyType Type of the RAM policy. It must be `Custom` or `System`.
         * 
         * @return builder
         * 
         */
        public Builder policyType(String policyType) {
            return policyType(Output.of(policyType));
        }

        /**
         * @param roleName Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen.
         * 
         * @return builder
         * 
         */
        public Builder roleName(@Nullable Output roleName) {
            $.roleName = roleName;
            return this;
        }

        /**
         * @param roleName Name of the RAM Role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen.
         * 
         * @return builder
         * 
         */
        public Builder roleName(String roleName) {
            return roleName(Output.of(roleName));
        }

        public RolePolicyAttachmentState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy