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

com.pulumi.aws.imagebuilder.ComponentArgs 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.imagebuilder;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ComponentArgs Empty = new ComponentArgs();

    /**
     * Change description of the component.
     * 
     */
    @Import(name="changeDescription")
    private @Nullable Output changeDescription;

    /**
     * @return Change description of the component.
     * 
     */
    public Optional> changeDescription() {
        return Optional.ofNullable(this.changeDescription);
    }

    /**
     * Inline YAML string with data of the component. Exactly one of `data` and `uri` can be specified. the provider will only perform drift detection of its value when present in a configuration.
     * 
     */
    @Import(name="data")
    private @Nullable Output data;

    /**
     * @return Inline YAML string with data of the component. Exactly one of `data` and `uri` can be specified. the provider will only perform drift detection of its value when present in a configuration.
     * 
     */
    public Optional> data() {
        return Optional.ofNullable(this.data);
    }

    /**
     * Description of the component.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the component.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component.
     * 
     */
    @Import(name="kmsKeyId")
    private @Nullable Output kmsKeyId;

    /**
     * @return Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component.
     * 
     */
    public Optional> kmsKeyId() {
        return Optional.ofNullable(this.kmsKeyId);
    }

    /**
     * Name of the component.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the component.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Platform of the component.
     * 
     */
    @Import(name="platform", required=true)
    private Output platform;

    /**
     * @return Platform of the component.
     * 
     */
    public Output platform() {
        return this.platform;
    }

    /**
     * Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to `false`.
     * 
     */
    @Import(name="skipDestroy")
    private @Nullable Output skipDestroy;

    /**
     * @return Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to `false`.
     * 
     */
    public Optional> skipDestroy() {
        return Optional.ofNullable(this.skipDestroy);
    }

    /**
     * Set of Operating Systems (OS) supported by the component.
     * 
     */
    @Import(name="supportedOsVersions")
    private @Nullable Output> supportedOsVersions;

    /**
     * @return Set of Operating Systems (OS) supported by the component.
     * 
     */
    public Optional>> supportedOsVersions() {
        return Optional.ofNullable(this.supportedOsVersions);
    }

    /**
     * Key-value map of resource tags for the component. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags for the component. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * S3 URI with data of the component. Exactly one of `data` and `uri` can be specified.
     * 
     * > **NOTE:** Updating `data` or `uri` requires specifying a new `version`. This causes replacement of the resource. The `skip_destroy` argument can be used to retain the old version.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return S3 URI with data of the component. Exactly one of `data` and `uri` can be specified.
     * 
     * > **NOTE:** Updating `data` or `uri` requires specifying a new `version`. This causes replacement of the resource. The `skip_destroy` argument can be used to retain the old version.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    /**
     * Version of the component.
     * 
     * The following attributes are optional:
     * 
     */
    @Import(name="version", required=true)
    private Output version;

    /**
     * @return Version of the component.
     * 
     * The following attributes are optional:
     * 
     */
    public Output version() {
        return this.version;
    }

    private ComponentArgs() {}

    private ComponentArgs(ComponentArgs $) {
        this.changeDescription = $.changeDescription;
        this.data = $.data;
        this.description = $.description;
        this.kmsKeyId = $.kmsKeyId;
        this.name = $.name;
        this.platform = $.platform;
        this.skipDestroy = $.skipDestroy;
        this.supportedOsVersions = $.supportedOsVersions;
        this.tags = $.tags;
        this.uri = $.uri;
        this.version = $.version;
    }

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

    public static final class Builder {
        private ComponentArgs $;

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

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

        /**
         * @param changeDescription Change description of the component.
         * 
         * @return builder
         * 
         */
        public Builder changeDescription(@Nullable Output changeDescription) {
            $.changeDescription = changeDescription;
            return this;
        }

        /**
         * @param changeDescription Change description of the component.
         * 
         * @return builder
         * 
         */
        public Builder changeDescription(String changeDescription) {
            return changeDescription(Output.of(changeDescription));
        }

        /**
         * @param data Inline YAML string with data of the component. Exactly one of `data` and `uri` can be specified. the provider will only perform drift detection of its value when present in a configuration.
         * 
         * @return builder
         * 
         */
        public Builder data(@Nullable Output data) {
            $.data = data;
            return this;
        }

        /**
         * @param data Inline YAML string with data of the component. Exactly one of `data` and `uri` can be specified. the provider will only perform drift detection of its value when present in a configuration.
         * 
         * @return builder
         * 
         */
        public Builder data(String data) {
            return data(Output.of(data));
        }

        /**
         * @param description Description of the component.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the component.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param kmsKeyId Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(@Nullable Output kmsKeyId) {
            $.kmsKeyId = kmsKeyId;
            return this;
        }

        /**
         * @param kmsKeyId Amazon Resource Name (ARN) of the Key Management Service (KMS) Key used to encrypt the component.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(String kmsKeyId) {
            return kmsKeyId(Output.of(kmsKeyId));
        }

        /**
         * @param name Name of the component.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the component.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param platform Platform of the component.
         * 
         * @return builder
         * 
         */
        public Builder platform(Output platform) {
            $.platform = platform;
            return this;
        }

        /**
         * @param platform Platform of the component.
         * 
         * @return builder
         * 
         */
        public Builder platform(String platform) {
            return platform(Output.of(platform));
        }

        /**
         * @param skipDestroy Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder skipDestroy(@Nullable Output skipDestroy) {
            $.skipDestroy = skipDestroy;
            return this;
        }

        /**
         * @param skipDestroy Whether to retain the old version when the resource is destroyed or replacement is necessary. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder skipDestroy(Boolean skipDestroy) {
            return skipDestroy(Output.of(skipDestroy));
        }

        /**
         * @param supportedOsVersions Set of Operating Systems (OS) supported by the component.
         * 
         * @return builder
         * 
         */
        public Builder supportedOsVersions(@Nullable Output> supportedOsVersions) {
            $.supportedOsVersions = supportedOsVersions;
            return this;
        }

        /**
         * @param supportedOsVersions Set of Operating Systems (OS) supported by the component.
         * 
         * @return builder
         * 
         */
        public Builder supportedOsVersions(List supportedOsVersions) {
            return supportedOsVersions(Output.of(supportedOsVersions));
        }

        /**
         * @param supportedOsVersions Set of Operating Systems (OS) supported by the component.
         * 
         * @return builder
         * 
         */
        public Builder supportedOsVersions(String... supportedOsVersions) {
            return supportedOsVersions(List.of(supportedOsVersions));
        }

        /**
         * @param tags Key-value map of resource tags for the component. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags for the component. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param uri S3 URI with data of the component. Exactly one of `data` and `uri` can be specified.
         * 
         * > **NOTE:** Updating `data` or `uri` requires specifying a new `version`. This causes replacement of the resource. The `skip_destroy` argument can be used to retain the old version.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri S3 URI with data of the component. Exactly one of `data` and `uri` can be specified.
         * 
         * > **NOTE:** Updating `data` or `uri` requires specifying a new `version`. This causes replacement of the resource. The `skip_destroy` argument can be used to retain the old version.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        /**
         * @param version Version of the component.
         * 
         * The following attributes are optional:
         * 
         * @return builder
         * 
         */
        public Builder version(Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version of the component.
         * 
         * The following attributes are optional:
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public ComponentArgs build() {
            if ($.platform == null) {
                throw new MissingRequiredPropertyException("ComponentArgs", "platform");
            }
            if ($.version == null) {
                throw new MissingRequiredPropertyException("ComponentArgs", "version");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy