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

com.pulumi.azurenative.compute.outputs.DiskInstanceViewResponse 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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.DiskEncryptionSettingsResponse;
import com.pulumi.azurenative.compute.outputs.InstanceViewStatusResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DiskInstanceViewResponse {
    /**
     * @return Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15
     * 
     */
    private @Nullable List encryptionSettings;
    /**
     * @return The disk name.
     * 
     */
    private @Nullable String name;
    /**
     * @return The resource status information.
     * 
     */
    private @Nullable List statuses;

    private DiskInstanceViewResponse() {}
    /**
     * @return Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15
     * 
     */
    public List encryptionSettings() {
        return this.encryptionSettings == null ? List.of() : this.encryptionSettings;
    }
    /**
     * @return The disk name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The resource status information.
     * 
     */
    public List statuses() {
        return this.statuses == null ? List.of() : this.statuses;
    }

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

    public static Builder builder(DiskInstanceViewResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List encryptionSettings;
        private @Nullable String name;
        private @Nullable List statuses;
        public Builder() {}
        public Builder(DiskInstanceViewResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.encryptionSettings = defaults.encryptionSettings;
    	      this.name = defaults.name;
    	      this.statuses = defaults.statuses;
        }

        @CustomType.Setter
        public Builder encryptionSettings(@Nullable List encryptionSettings) {

            this.encryptionSettings = encryptionSettings;
            return this;
        }
        public Builder encryptionSettings(DiskEncryptionSettingsResponse... encryptionSettings) {
            return encryptionSettings(List.of(encryptionSettings));
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder statuses(@Nullable List statuses) {

            this.statuses = statuses;
            return this;
        }
        public Builder statuses(InstanceViewStatusResponse... statuses) {
            return statuses(List.of(statuses));
        }
        public DiskInstanceViewResponse build() {
            final var _resultValue = new DiskInstanceViewResponse();
            _resultValue.encryptionSettings = encryptionSettings;
            _resultValue.name = name;
            _resultValue.statuses = statuses;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy