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

com.pulumi.aws.ecrpublic.inputs.RepositoryPolicyState 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.ecrpublic.inputs;

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


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

    public static final RepositoryPolicyState Empty = new RepositoryPolicyState();

    /**
     * The policy document. This is a JSON formatted string.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return The policy document. This is a JSON formatted string.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * The registry ID where the repository was created.
     * 
     */
    @Import(name="registryId")
    private @Nullable Output registryId;

    /**
     * @return The registry ID where the repository was created.
     * 
     */
    public Optional> registryId() {
        return Optional.ofNullable(this.registryId);
    }

    /**
     * Name of the repository to apply the policy.
     * 
     */
    @Import(name="repositoryName")
    private @Nullable Output repositoryName;

    /**
     * @return Name of the repository to apply the policy.
     * 
     */
    public Optional> repositoryName() {
        return Optional.ofNullable(this.repositoryName);
    }

    private RepositoryPolicyState() {}

    private RepositoryPolicyState(RepositoryPolicyState $) {
        this.policy = $.policy;
        this.registryId = $.registryId;
        this.repositoryName = $.repositoryName;
    }

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

    public static final class Builder {
        private RepositoryPolicyState $;

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

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

        /**
         * @param policy The policy document. This is a JSON formatted string.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The policy document. This is a JSON formatted string.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param registryId The registry ID where the repository was created.
         * 
         * @return builder
         * 
         */
        public Builder registryId(@Nullable Output registryId) {
            $.registryId = registryId;
            return this;
        }

        /**
         * @param registryId The registry ID where the repository was created.
         * 
         * @return builder
         * 
         */
        public Builder registryId(String registryId) {
            return registryId(Output.of(registryId));
        }

        /**
         * @param repositoryName Name of the repository to apply the policy.
         * 
         * @return builder
         * 
         */
        public Builder repositoryName(@Nullable Output repositoryName) {
            $.repositoryName = repositoryName;
            return this;
        }

        /**
         * @param repositoryName Name of the repository to apply the policy.
         * 
         * @return builder
         * 
         */
        public Builder repositoryName(String repositoryName) {
            return repositoryName(Output.of(repositoryName));
        }

        public RepositoryPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy