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

com.pulumi.aws.imagebuilder.inputs.WorkflowState 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.72.0
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.imagebuilder.inputs;

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


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

    public static final WorkflowState Empty = new WorkflowState();

    /**
     * Amazon Resource Name (ARN) of the workflow.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return Amazon Resource Name (ARN) of the workflow.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

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

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

    /**
     * Inline YAML string with data of the workflow. Exactly one of `data` and `uri` can be specified.
     * 
     */
    @Import(name="data")
    private @Nullable Output data;

    /**
     * @return Inline YAML string with data of the workflow. Exactly one of `data` and `uri` can be specified.
     * 
     */
    public Optional> data() {
        return Optional.ofNullable(this.data);
    }

    /**
     * Date the workflow was created.
     * 
     */
    @Import(name="dateCreated")
    private @Nullable Output dateCreated;

    /**
     * @return Date the workflow was created.
     * 
     */
    public Optional> dateCreated() {
        return Optional.ofNullable(this.dateCreated);
    }

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

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

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

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

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

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

    /**
     * Owner of the workflow.
     * 
     */
    @Import(name="owner")
    private @Nullable Output owner;

    /**
     * @return Owner of the workflow.
     * 
     */
    public Optional> owner() {
        return Optional.ofNullable(this.owner);
    }

    /**
     * Key-value map of resource tags for the workflow. 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 workflow. 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);
    }

    /**
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * Type of the workflow. Valid values: `BUILD`, `TEST`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of the workflow. Valid values: `BUILD`, `TEST`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * S3 URI with data of the workflow. Exactly one of `data` and `uri` can be specified.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return S3 URI with data of the workflow. Exactly one of `data` and `uri` can be specified.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    /**
     * Version of the workflow.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the workflow.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private WorkflowState() {}

    private WorkflowState(WorkflowState $) {
        this.arn = $.arn;
        this.changeDescription = $.changeDescription;
        this.data = $.data;
        this.dateCreated = $.dateCreated;
        this.description = $.description;
        this.kmsKeyId = $.kmsKeyId;
        this.name = $.name;
        this.owner = $.owner;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.type = $.type;
        this.uri = $.uri;
        this.version = $.version;
    }

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

    public static final class Builder {
        private WorkflowState $;

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

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

        /**
         * @param arn Amazon Resource Name (ARN) of the workflow.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn Amazon Resource Name (ARN) of the workflow.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

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

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

        /**
         * @param data Inline YAML string with data of the workflow. Exactly one of `data` and `uri` can be specified.
         * 
         * @return builder
         * 
         */
        public Builder data(@Nullable Output data) {
            $.data = data;
            return this;
        }

        /**
         * @param data Inline YAML string with data of the workflow. Exactly one of `data` and `uri` can be specified.
         * 
         * @return builder
         * 
         */
        public Builder data(String data) {
            return data(Output.of(data));
        }

        /**
         * @param dateCreated Date the workflow was created.
         * 
         * @return builder
         * 
         */
        public Builder dateCreated(@Nullable Output dateCreated) {
            $.dateCreated = dateCreated;
            return this;
        }

        /**
         * @param dateCreated Date the workflow was created.
         * 
         * @return builder
         * 
         */
        public Builder dateCreated(String dateCreated) {
            return dateCreated(Output.of(dateCreated));
        }

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

        /**
         * @param description Description of the workflow.
         * 
         * @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 workflow.
         * 
         * @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 workflow.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(String kmsKeyId) {
            return kmsKeyId(Output.of(kmsKeyId));
        }

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

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

        /**
         * @param owner Owner of the workflow.
         * 
         * @return builder
         * 
         */
        public Builder owner(@Nullable Output owner) {
            $.owner = owner;
            return this;
        }

        /**
         * @param owner Owner of the workflow.
         * 
         * @return builder
         * 
         */
        public Builder owner(String owner) {
            return owner(Output.of(owner));
        }

        /**
         * @param tags Key-value map of resource tags for the workflow. 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 workflow. 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));
        }

        /**
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param type Type of the workflow. Valid values: `BUILD`, `TEST`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the workflow. Valid values: `BUILD`, `TEST`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param uri S3 URI with data of the workflow. Exactly one of `data` and `uri` can be specified.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri S3 URI with data of the workflow. Exactly one of `data` and `uri` can be specified.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

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

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

        public WorkflowState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy