// *** 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.ses;

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 IdentityPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final IdentityPolicyArgs Empty = new IdentityPolicyArgs();

    /**
     * Name or Amazon Resource Name (ARN) of the SES Identity.
     * 
     */
    @Import(name="identity", required=true)
    private Output<String> identity;

    /**
     * @return Name or Amazon Resource Name (ARN) of the SES Identity.
     * 
     */
    public Output<String> identity() {
        return this.identity;
    }

    /**
     * Name of the policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Name of the policy.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * JSON string of the policy.
     * 
     */
    @Import(name="policy", required=true)
    private Output<String> policy;

    /**
     * @return JSON string of the policy.
     * 
     */
    public Output<String> policy() {
        return this.policy;
    }

    private IdentityPolicyArgs() {}

    private IdentityPolicyArgs(IdentityPolicyArgs $) {
        this.identity = $.identity;
        this.name = $.name;
        this.policy = $.policy;
    }

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

    public static final class Builder {
        private IdentityPolicyArgs $;

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

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

        /**
         * @param identity Name or Amazon Resource Name (ARN) of the SES Identity.
         * 
         * @return builder
         * 
         */
        public Builder identity(Output<String> identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Name or Amazon Resource Name (ARN) of the SES Identity.
         * 
         * @return builder
         * 
         */
        public Builder identity(String identity) {
            return identity(Output.of(identity));
        }

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

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

        /**
         * @param policy JSON string of the policy.
         * 
         * @return builder
         * 
         */
        public Builder policy(Output<String> policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy JSON string of the policy.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        public IdentityPolicyArgs build() {
            $.identity = Objects.requireNonNull($.identity, "expected parameter 'identity' to be non-null");
            $.policy = Objects.requireNonNull($.policy, "expected parameter 'policy' to be non-null");
            return $;
        }
    }

}
