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

com.pulumi.azurenative.compute.outputs.TargetRegionResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show 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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.EncryptionImagesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TargetRegionResponse {
    /**
     * @return Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
     * 
     */
    private @Nullable EncryptionImagesResponse encryption;
    /**
     * @return Contains the flag setting to hide an image when users specify version='latest'
     * 
     */
    private @Nullable Boolean excludeFromLatest;
    /**
     * @return The name of the region.
     * 
     */
    private String name;
    /**
     * @return The number of replicas of the Image Version to be created per region. This property is updatable.
     * 
     */
    private @Nullable Integer regionalReplicaCount;
    /**
     * @return Specifies the storage account type to be used to store the image. This property is not updatable.
     * 
     */
    private @Nullable String storageAccountType;

    private TargetRegionResponse() {}
    /**
     * @return Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact.
     * 
     */
    public Optional encryption() {
        return Optional.ofNullable(this.encryption);
    }
    /**
     * @return Contains the flag setting to hide an image when users specify version='latest'
     * 
     */
    public Optional excludeFromLatest() {
        return Optional.ofNullable(this.excludeFromLatest);
    }
    /**
     * @return The name of the region.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The number of replicas of the Image Version to be created per region. This property is updatable.
     * 
     */
    public Optional regionalReplicaCount() {
        return Optional.ofNullable(this.regionalReplicaCount);
    }
    /**
     * @return Specifies the storage account type to be used to store the image. This property is not updatable.
     * 
     */
    public Optional storageAccountType() {
        return Optional.ofNullable(this.storageAccountType);
    }

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

    public static Builder builder(TargetRegionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable EncryptionImagesResponse encryption;
        private @Nullable Boolean excludeFromLatest;
        private String name;
        private @Nullable Integer regionalReplicaCount;
        private @Nullable String storageAccountType;
        public Builder() {}
        public Builder(TargetRegionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.encryption = defaults.encryption;
    	      this.excludeFromLatest = defaults.excludeFromLatest;
    	      this.name = defaults.name;
    	      this.regionalReplicaCount = defaults.regionalReplicaCount;
    	      this.storageAccountType = defaults.storageAccountType;
        }

        @CustomType.Setter
        public Builder encryption(@Nullable EncryptionImagesResponse encryption) {

            this.encryption = encryption;
            return this;
        }
        @CustomType.Setter
        public Builder excludeFromLatest(@Nullable Boolean excludeFromLatest) {

            this.excludeFromLatest = excludeFromLatest;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("TargetRegionResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder regionalReplicaCount(@Nullable Integer regionalReplicaCount) {

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

            this.storageAccountType = storageAccountType;
            return this;
        }
        public TargetRegionResponse build() {
            final var _resultValue = new TargetRegionResponse();
            _resultValue.encryption = encryption;
            _resultValue.excludeFromLatest = excludeFromLatest;
            _resultValue.name = name;
            _resultValue.regionalReplicaCount = regionalReplicaCount;
            _resultValue.storageAccountType = storageAccountType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy