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

com.pulumi.azure.siterecovery.inputs.HyperVReplicationPolicyAssociationState 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.azure.siterecovery.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 HyperVReplicationPolicyAssociationState extends com.pulumi.resources.ResourceArgs {

    public static final HyperVReplicationPolicyAssociationState Empty = new HyperVReplicationPolicyAssociationState();

    /**
     * The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created.
     * 
     */
    @Import(name="hypervSiteId")
    private @Nullable Output hypervSiteId;

    /**
     * @return The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created.
     * 
     */
    public Optional> hypervSiteId() {
        return Optional.ofNullable(this.hypervSiteId);
    }

    /**
     * The name of the replication policy association. Changing this forces a new association to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the replication policy association. Changing this forces a new association to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created.
     * 
     */
    @Import(name="policyId")
    private @Nullable Output policyId;

    /**
     * @return The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created.
     * 
     */
    public Optional> policyId() {
        return Optional.ofNullable(this.policyId);
    }

    private HyperVReplicationPolicyAssociationState() {}

    private HyperVReplicationPolicyAssociationState(HyperVReplicationPolicyAssociationState $) {
        this.hypervSiteId = $.hypervSiteId;
        this.name = $.name;
        this.policyId = $.policyId;
    }

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

    public static final class Builder {
        private HyperVReplicationPolicyAssociationState $;

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

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

        /**
         * @param hypervSiteId The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created.
         * 
         * @return builder
         * 
         */
        public Builder hypervSiteId(@Nullable Output hypervSiteId) {
            $.hypervSiteId = hypervSiteId;
            return this;
        }

        /**
         * @param hypervSiteId The ID of the HyperV site to which the policy should be associated. Changing this forces a new association to be created.
         * 
         * @return builder
         * 
         */
        public Builder hypervSiteId(String hypervSiteId) {
            return hypervSiteId(Output.of(hypervSiteId));
        }

        /**
         * @param name The name of the replication policy association. Changing this forces a new association to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the replication policy association. Changing this forces a new association to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param policyId The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created.
         * 
         * @return builder
         * 
         */
        public Builder policyId(@Nullable Output policyId) {
            $.policyId = policyId;
            return this;
        }

        /**
         * @param policyId The ID of the HyperV replication policy which to be associated. Changing this forces a new association to be created.
         * 
         * @return builder
         * 
         */
        public Builder policyId(String policyId) {
            return policyId(Output.of(policyId));
        }

        public HyperVReplicationPolicyAssociationState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy