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

com.pulumi.aws.route53recoveryreadiness.outputs.ResourceSetResource Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
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.aws.route53recoveryreadiness.outputs;

import com.pulumi.aws.route53recoveryreadiness.outputs.ResourceSetResourceDnsTargetResource;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ResourceSetResource {
    private @Nullable String componentId;
    /**
     * @return Component for DNS/Routing Control Readiness Checks.
     * 
     */
    private @Nullable ResourceSetResourceDnsTargetResource dnsTargetResource;
    /**
     * @return Recovery group ARN or cell ARN that contains this resource set.
     * 
     */
    private @Nullable List readinessScopes;
    /**
     * @return ARN of the resource.
     * 
     */
    private @Nullable String resourceArn;

    private ResourceSetResource() {}
    public Optional componentId() {
        return Optional.ofNullable(this.componentId);
    }
    /**
     * @return Component for DNS/Routing Control Readiness Checks.
     * 
     */
    public Optional dnsTargetResource() {
        return Optional.ofNullable(this.dnsTargetResource);
    }
    /**
     * @return Recovery group ARN or cell ARN that contains this resource set.
     * 
     */
    public List readinessScopes() {
        return this.readinessScopes == null ? List.of() : this.readinessScopes;
    }
    /**
     * @return ARN of the resource.
     * 
     */
    public Optional resourceArn() {
        return Optional.ofNullable(this.resourceArn);
    }

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

    public static Builder builder(ResourceSetResource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String componentId;
        private @Nullable ResourceSetResourceDnsTargetResource dnsTargetResource;
        private @Nullable List readinessScopes;
        private @Nullable String resourceArn;
        public Builder() {}
        public Builder(ResourceSetResource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.componentId = defaults.componentId;
    	      this.dnsTargetResource = defaults.dnsTargetResource;
    	      this.readinessScopes = defaults.readinessScopes;
    	      this.resourceArn = defaults.resourceArn;
        }

        @CustomType.Setter
        public Builder componentId(@Nullable String componentId) {

            this.componentId = componentId;
            return this;
        }
        @CustomType.Setter
        public Builder dnsTargetResource(@Nullable ResourceSetResourceDnsTargetResource dnsTargetResource) {

            this.dnsTargetResource = dnsTargetResource;
            return this;
        }
        @CustomType.Setter
        public Builder readinessScopes(@Nullable List readinessScopes) {

            this.readinessScopes = readinessScopes;
            return this;
        }
        public Builder readinessScopes(String... readinessScopes) {
            return readinessScopes(List.of(readinessScopes));
        }
        @CustomType.Setter
        public Builder resourceArn(@Nullable String resourceArn) {

            this.resourceArn = resourceArn;
            return this;
        }
        public ResourceSetResource build() {
            final var _resultValue = new ResourceSetResource();
            _resultValue.componentId = componentId;
            _resultValue.dnsTargetResource = dnsTargetResource;
            _resultValue.readinessScopes = readinessScopes;
            _resultValue.resourceArn = resourceArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy