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

com.pulumi.azurenative.containerservice.outputs.OpenShiftManagedClusterAgentPoolProfileResponse 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.containerservice.outputs;

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

@CustomType
public final class OpenShiftManagedClusterAgentPoolProfileResponse {
    /**
     * @return Number of agents (VMs) to host docker containers.
     * 
     */
    private Integer count;
    /**
     * @return Unique name of the pool profile in the context of the subscription and resource group.
     * 
     */
    private String name;
    /**
     * @return OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
     * 
     */
    private @Nullable String osType;
    /**
     * @return Define the role of the AgentPoolProfile.
     * 
     */
    private @Nullable String role;
    /**
     * @return Subnet CIDR for the peering.
     * 
     */
    private @Nullable String subnetCidr;
    /**
     * @return Size of agent VMs.
     * 
     */
    private String vmSize;

    private OpenShiftManagedClusterAgentPoolProfileResponse() {}
    /**
     * @return Number of agents (VMs) to host docker containers.
     * 
     */
    public Integer count() {
        return this.count;
    }
    /**
     * @return Unique name of the pool profile in the context of the subscription and resource group.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
     * 
     */
    public Optional osType() {
        return Optional.ofNullable(this.osType);
    }
    /**
     * @return Define the role of the AgentPoolProfile.
     * 
     */
    public Optional role() {
        return Optional.ofNullable(this.role);
    }
    /**
     * @return Subnet CIDR for the peering.
     * 
     */
    public Optional subnetCidr() {
        return Optional.ofNullable(this.subnetCidr);
    }
    /**
     * @return Size of agent VMs.
     * 
     */
    public String vmSize() {
        return this.vmSize;
    }

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

    public static Builder builder(OpenShiftManagedClusterAgentPoolProfileResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer count;
        private String name;
        private @Nullable String osType;
        private @Nullable String role;
        private @Nullable String subnetCidr;
        private String vmSize;
        public Builder() {}
        public Builder(OpenShiftManagedClusterAgentPoolProfileResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.count = defaults.count;
    	      this.name = defaults.name;
    	      this.osType = defaults.osType;
    	      this.role = defaults.role;
    	      this.subnetCidr = defaults.subnetCidr;
    	      this.vmSize = defaults.vmSize;
        }

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

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

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

            this.subnetCidr = subnetCidr;
            return this;
        }
        @CustomType.Setter
        public Builder vmSize(String vmSize) {
            if (vmSize == null) {
              throw new MissingRequiredPropertyException("OpenShiftManagedClusterAgentPoolProfileResponse", "vmSize");
            }
            this.vmSize = vmSize;
            return this;
        }
        public OpenShiftManagedClusterAgentPoolProfileResponse build() {
            final var _resultValue = new OpenShiftManagedClusterAgentPoolProfileResponse();
            _resultValue.count = count;
            _resultValue.name = name;
            _resultValue.osType = osType;
            _resultValue.role = role;
            _resultValue.subnetCidr = subnetCidr;
            _resultValue.vmSize = vmSize;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy