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

com.pulumi.aws.backup.outputs.GetSelectionResult Maven / Gradle / Ivy

// *** 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.backup.outputs;

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

@CustomType
public final class GetSelectionResult {
    /**
     * @return ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the [AWS Backup Developer Guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control.html#managed-policies) for additional information about using AWS managed policies or creating custom policies attached to the IAM role.
     * 
     */
    private String iamRoleArn;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Display name of a resource selection document.
     * 
     */
    private String name;
    private String planId;
    /**
     * @return An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan..
     * 
     */
    private List resources;
    private String selectionId;

    private GetSelectionResult() {}
    /**
     * @return ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the [AWS Backup Developer Guide](https://docs.aws.amazon.com/aws-backup/latest/devguide/access-control.html#managed-policies) for additional information about using AWS managed policies or creating custom policies attached to the IAM role.
     * 
     */
    public String iamRoleArn() {
        return this.iamRoleArn;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Display name of a resource selection document.
     * 
     */
    public String name() {
        return this.name;
    }
    public String planId() {
        return this.planId;
    }
    /**
     * @return An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan..
     * 
     */
    public List resources() {
        return this.resources;
    }
    public String selectionId() {
        return this.selectionId;
    }

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

    public static Builder builder(GetSelectionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String iamRoleArn;
        private String id;
        private String name;
        private String planId;
        private List resources;
        private String selectionId;
        public Builder() {}
        public Builder(GetSelectionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.iamRoleArn = defaults.iamRoleArn;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.planId = defaults.planId;
    	      this.resources = defaults.resources;
    	      this.selectionId = defaults.selectionId;
        }

        @CustomType.Setter
        public Builder iamRoleArn(String iamRoleArn) {
            if (iamRoleArn == null) {
              throw new MissingRequiredPropertyException("GetSelectionResult", "iamRoleArn");
            }
            this.iamRoleArn = iamRoleArn;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSelectionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSelectionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder planId(String planId) {
            if (planId == null) {
              throw new MissingRequiredPropertyException("GetSelectionResult", "planId");
            }
            this.planId = planId;
            return this;
        }
        @CustomType.Setter
        public Builder resources(List resources) {
            if (resources == null) {
              throw new MissingRequiredPropertyException("GetSelectionResult", "resources");
            }
            this.resources = resources;
            return this;
        }
        public Builder resources(String... resources) {
            return resources(List.of(resources));
        }
        @CustomType.Setter
        public Builder selectionId(String selectionId) {
            if (selectionId == null) {
              throw new MissingRequiredPropertyException("GetSelectionResult", "selectionId");
            }
            this.selectionId = selectionId;
            return this;
        }
        public GetSelectionResult build() {
            final var _resultValue = new GetSelectionResult();
            _resultValue.iamRoleArn = iamRoleArn;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.planId = planId;
            _resultValue.resources = resources;
            _resultValue.selectionId = selectionId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy