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

com.pulumi.azurenative.datareplication.inputs.ProtectedItemModelPropertiesArgs 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.azurenative.datareplication.inputs;

import com.pulumi.azurenative.datareplication.inputs.HyperVToAzStackHCIProtectedItemModelCustomPropertiesArgs;
import com.pulumi.azurenative.datareplication.inputs.VMwareToAzStackHCIProtectedItemModelCustomPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Protected item model properties.
 * 
 */
public final class ProtectedItemModelPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ProtectedItemModelPropertiesArgs Empty = new ProtectedItemModelPropertiesArgs();

    /**
     * Protected item model custom properties.
     * 
     */
    @Import(name="customProperties", required=true)
    private Output> customProperties;

    /**
     * @return Protected item model custom properties.
     * 
     */
    public Output> customProperties() {
        return this.customProperties;
    }

    /**
     * Gets or sets the policy name.
     * 
     */
    @Import(name="policyName", required=true)
    private Output policyName;

    /**
     * @return Gets or sets the policy name.
     * 
     */
    public Output policyName() {
        return this.policyName;
    }

    /**
     * Gets or sets the replication extension name.
     * 
     */
    @Import(name="replicationExtensionName", required=true)
    private Output replicationExtensionName;

    /**
     * @return Gets or sets the replication extension name.
     * 
     */
    public Output replicationExtensionName() {
        return this.replicationExtensionName;
    }

    private ProtectedItemModelPropertiesArgs() {}

    private ProtectedItemModelPropertiesArgs(ProtectedItemModelPropertiesArgs $) {
        this.customProperties = $.customProperties;
        this.policyName = $.policyName;
        this.replicationExtensionName = $.replicationExtensionName;
    }

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

    public static final class Builder {
        private ProtectedItemModelPropertiesArgs $;

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

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

        /**
         * @param customProperties Protected item model custom properties.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(Output> customProperties) {
            $.customProperties = customProperties;
            return this;
        }

        /**
         * @param customProperties Protected item model custom properties.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(Either customProperties) {
            return customProperties(Output.of(customProperties));
        }

        /**
         * @param customProperties Protected item model custom properties.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(HyperVToAzStackHCIProtectedItemModelCustomPropertiesArgs customProperties) {
            return customProperties(Either.ofLeft(customProperties));
        }

        /**
         * @param customProperties Protected item model custom properties.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(VMwareToAzStackHCIProtectedItemModelCustomPropertiesArgs customProperties) {
            return customProperties(Either.ofRight(customProperties));
        }

        /**
         * @param policyName Gets or sets the policy name.
         * 
         * @return builder
         * 
         */
        public Builder policyName(Output policyName) {
            $.policyName = policyName;
            return this;
        }

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

        /**
         * @param replicationExtensionName Gets or sets the replication extension name.
         * 
         * @return builder
         * 
         */
        public Builder replicationExtensionName(Output replicationExtensionName) {
            $.replicationExtensionName = replicationExtensionName;
            return this;
        }

        /**
         * @param replicationExtensionName Gets or sets the replication extension name.
         * 
         * @return builder
         * 
         */
        public Builder replicationExtensionName(String replicationExtensionName) {
            return replicationExtensionName(Output.of(replicationExtensionName));
        }

        public ProtectedItemModelPropertiesArgs build() {
            if ($.customProperties == null) {
                throw new MissingRequiredPropertyException("ProtectedItemModelPropertiesArgs", "customProperties");
            }
            if ($.policyName == null) {
                throw new MissingRequiredPropertyException("ProtectedItemModelPropertiesArgs", "policyName");
            }
            if ($.replicationExtensionName == null) {
                throw new MissingRequiredPropertyException("ProtectedItemModelPropertiesArgs", "replicationExtensionName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy