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

com.pulumi.aws.iam.outputs.GetRolesResult Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

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.aws.iam.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetRolesResult {
    /**
     * @return Set of ARNs of the matched IAM roles.
     * 
     */
    private List arns;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private @Nullable String nameRegex;
    /**
     * @return Set of Names of the matched IAM roles.
     * 
     */
    private List names;
    private @Nullable String pathPrefix;

    private GetRolesResult() {}
    /**
     * @return Set of ARNs of the matched IAM roles.
     * 
     */
    public List arns() {
        return this.arns;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Optional nameRegex() {
        return Optional.ofNullable(this.nameRegex);
    }
    /**
     * @return Set of Names of the matched IAM roles.
     * 
     */
    public List names() {
        return this.names;
    }
    public Optional pathPrefix() {
        return Optional.ofNullable(this.pathPrefix);
    }

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

    public static Builder builder(GetRolesResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List arns;
        private String id;
        private @Nullable String nameRegex;
        private List names;
        private @Nullable String pathPrefix;
        public Builder() {}
        public Builder(GetRolesResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arns = defaults.arns;
    	      this.id = defaults.id;
    	      this.nameRegex = defaults.nameRegex;
    	      this.names = defaults.names;
    	      this.pathPrefix = defaults.pathPrefix;
        }

        @CustomType.Setter
        public Builder arns(List arns) {
            if (arns == null) {
              throw new MissingRequiredPropertyException("GetRolesResult", "arns");
            }
            this.arns = arns;
            return this;
        }
        public Builder arns(String... arns) {
            return arns(List.of(arns));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRolesResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder nameRegex(@Nullable String nameRegex) {

            this.nameRegex = nameRegex;
            return this;
        }
        @CustomType.Setter
        public Builder names(List names) {
            if (names == null) {
              throw new MissingRequiredPropertyException("GetRolesResult", "names");
            }
            this.names = names;
            return this;
        }
        public Builder names(String... names) {
            return names(List.of(names));
        }
        @CustomType.Setter
        public Builder pathPrefix(@Nullable String pathPrefix) {

            this.pathPrefix = pathPrefix;
            return this;
        }
        public GetRolesResult build() {
            final var _resultValue = new GetRolesResult();
            _resultValue.arns = arns;
            _resultValue.id = id;
            _resultValue.nameRegex = nameRegex;
            _resultValue.names = names;
            _resultValue.pathPrefix = pathPrefix;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy