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

com.pulumi.aws.cloudfront.KeyGroupArgs 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.cloudfront;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final KeyGroupArgs Empty = new KeyGroupArgs();

    /**
     * A comment to describe the key group..
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return A comment to describe the key group..
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * A list of the identifiers of the public keys in the key group.
     * 
     */
    @Import(name="items", required=true)
    private Output> items;

    /**
     * @return A list of the identifiers of the public keys in the key group.
     * 
     */
    public Output> items() {
        return this.items;
    }

    /**
     * A name to identify the key group.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A name to identify the key group.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private KeyGroupArgs() {}

    private KeyGroupArgs(KeyGroupArgs $) {
        this.comment = $.comment;
        this.items = $.items;
        this.name = $.name;
    }

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

    public static final class Builder {
        private KeyGroupArgs $;

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

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

        /**
         * @param comment A comment to describe the key group..
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment A comment to describe the key group..
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param items A list of the identifiers of the public keys in the key group.
         * 
         * @return builder
         * 
         */
        public Builder items(Output> items) {
            $.items = items;
            return this;
        }

        /**
         * @param items A list of the identifiers of the public keys in the key group.
         * 
         * @return builder
         * 
         */
        public Builder items(List items) {
            return items(Output.of(items));
        }

        /**
         * @param items A list of the identifiers of the public keys in the key group.
         * 
         * @return builder
         * 
         */
        public Builder items(String... items) {
            return items(List.of(items));
        }

        /**
         * @param name A name to identify the key group.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A name to identify the key group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public KeyGroupArgs build() {
            if ($.items == null) {
                throw new MissingRequiredPropertyException("KeyGroupArgs", "items");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy