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

com.pulumi.azurenative.recoveryservices.outputs.RecoveryPlanA2ADetailsResponse Maven / Gradle / Ivy

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.azurenative.recoveryservices.outputs;

import com.pulumi.azurenative.recoveryservices.outputs.ExtendedLocationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RecoveryPlanA2ADetailsResponse {
    /**
     * @return Gets the Instance type.
     * Expected value is 'A2A'.
     * 
     */
    private String instanceType;
    /**
     * @return The primary extended location.
     * 
     */
    private @Nullable ExtendedLocationResponse primaryExtendedLocation;
    /**
     * @return The primary zone.
     * 
     */
    private @Nullable String primaryZone;
    /**
     * @return The recovery extended location.
     * 
     */
    private @Nullable ExtendedLocationResponse recoveryExtendedLocation;
    /**
     * @return The recovery zone.
     * 
     */
    private @Nullable String recoveryZone;

    private RecoveryPlanA2ADetailsResponse() {}
    /**
     * @return Gets the Instance type.
     * Expected value is 'A2A'.
     * 
     */
    public String instanceType() {
        return this.instanceType;
    }
    /**
     * @return The primary extended location.
     * 
     */
    public Optional primaryExtendedLocation() {
        return Optional.ofNullable(this.primaryExtendedLocation);
    }
    /**
     * @return The primary zone.
     * 
     */
    public Optional primaryZone() {
        return Optional.ofNullable(this.primaryZone);
    }
    /**
     * @return The recovery extended location.
     * 
     */
    public Optional recoveryExtendedLocation() {
        return Optional.ofNullable(this.recoveryExtendedLocation);
    }
    /**
     * @return The recovery zone.
     * 
     */
    public Optional recoveryZone() {
        return Optional.ofNullable(this.recoveryZone);
    }

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

    public static Builder builder(RecoveryPlanA2ADetailsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String instanceType;
        private @Nullable ExtendedLocationResponse primaryExtendedLocation;
        private @Nullable String primaryZone;
        private @Nullable ExtendedLocationResponse recoveryExtendedLocation;
        private @Nullable String recoveryZone;
        public Builder() {}
        public Builder(RecoveryPlanA2ADetailsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.instanceType = defaults.instanceType;
    	      this.primaryExtendedLocation = defaults.primaryExtendedLocation;
    	      this.primaryZone = defaults.primaryZone;
    	      this.recoveryExtendedLocation = defaults.recoveryExtendedLocation;
    	      this.recoveryZone = defaults.recoveryZone;
        }

        @CustomType.Setter
        public Builder instanceType(String instanceType) {
            if (instanceType == null) {
              throw new MissingRequiredPropertyException("RecoveryPlanA2ADetailsResponse", "instanceType");
            }
            this.instanceType = instanceType;
            return this;
        }
        @CustomType.Setter
        public Builder primaryExtendedLocation(@Nullable ExtendedLocationResponse primaryExtendedLocation) {

            this.primaryExtendedLocation = primaryExtendedLocation;
            return this;
        }
        @CustomType.Setter
        public Builder primaryZone(@Nullable String primaryZone) {

            this.primaryZone = primaryZone;
            return this;
        }
        @CustomType.Setter
        public Builder recoveryExtendedLocation(@Nullable ExtendedLocationResponse recoveryExtendedLocation) {

            this.recoveryExtendedLocation = recoveryExtendedLocation;
            return this;
        }
        @CustomType.Setter
        public Builder recoveryZone(@Nullable String recoveryZone) {

            this.recoveryZone = recoveryZone;
            return this;
        }
        public RecoveryPlanA2ADetailsResponse build() {
            final var _resultValue = new RecoveryPlanA2ADetailsResponse();
            _resultValue.instanceType = instanceType;
            _resultValue.primaryExtendedLocation = primaryExtendedLocation;
            _resultValue.primaryZone = primaryZone;
            _resultValue.recoveryExtendedLocation = recoveryExtendedLocation;
            _resultValue.recoveryZone = recoveryZone;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy