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

com.pulumi.azurenative.storsimple.outputs.GetBandwidthSettingResult 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.storsimple.outputs;

import com.pulumi.azurenative.storsimple.outputs.BandwidthScheduleResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetBandwidthSettingResult {
    /**
     * @return The path ID that uniquely identifies the object.
     * 
     */
    private String id;
    /**
     * @return The Kind of the object. Currently only Series8000 is supported
     * 
     */
    private @Nullable String kind;
    /**
     * @return The name of the object.
     * 
     */
    private String name;
    /**
     * @return The schedules.
     * 
     */
    private List schedules;
    /**
     * @return The hierarchical type of the object.
     * 
     */
    private String type;
    /**
     * @return The number of volumes that uses the bandwidth setting.
     * 
     */
    private Integer volumeCount;

    private GetBandwidthSettingResult() {}
    /**
     * @return The path ID that uniquely identifies the object.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The Kind of the object. Currently only Series8000 is supported
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return The name of the object.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The schedules.
     * 
     */
    public List schedules() {
        return this.schedules;
    }
    /**
     * @return The hierarchical type of the object.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The number of volumes that uses the bandwidth setting.
     * 
     */
    public Integer volumeCount() {
        return this.volumeCount;
    }

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

    public static Builder builder(GetBandwidthSettingResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private @Nullable String kind;
        private String name;
        private List schedules;
        private String type;
        private Integer volumeCount;
        public Builder() {}
        public Builder(GetBandwidthSettingResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.schedules = defaults.schedules;
    	      this.type = defaults.type;
    	      this.volumeCount = defaults.volumeCount;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetBandwidthSettingResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetBandwidthSettingResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder schedules(List schedules) {
            if (schedules == null) {
              throw new MissingRequiredPropertyException("GetBandwidthSettingResult", "schedules");
            }
            this.schedules = schedules;
            return this;
        }
        public Builder schedules(BandwidthScheduleResponse... schedules) {
            return schedules(List.of(schedules));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetBandwidthSettingResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder volumeCount(Integer volumeCount) {
            if (volumeCount == null) {
              throw new MissingRequiredPropertyException("GetBandwidthSettingResult", "volumeCount");
            }
            this.volumeCount = volumeCount;
            return this;
        }
        public GetBandwidthSettingResult build() {
            final var _resultValue = new GetBandwidthSettingResult();
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.name = name;
            _resultValue.schedules = schedules;
            _resultValue.type = type;
            _resultValue.volumeCount = volumeCount;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy