com.pulumi.azurenative.app.inputs.WorkloadProfileArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.app.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
/**
* Workload profile to scope container app execution.
*
*/
public final class WorkloadProfileArgs extends com.pulumi.resources.ResourceArgs {
public static final WorkloadProfileArgs Empty = new WorkloadProfileArgs();
/**
* The maximum capacity.
*
*/
@Import(name="maximumCount", required=true)
private Output maximumCount;
/**
* @return The maximum capacity.
*
*/
public Output maximumCount() {
return this.maximumCount;
}
/**
* The minimum capacity.
*
*/
@Import(name="minimumCount", required=true)
private Output minimumCount;
/**
* @return The minimum capacity.
*
*/
public Output minimumCount() {
return this.minimumCount;
}
/**
* Workload profile type for the workloads to run on.
*
*/
@Import(name="workloadProfileType", required=true)
private Output workloadProfileType;
/**
* @return Workload profile type for the workloads to run on.
*
*/
public Output workloadProfileType() {
return this.workloadProfileType;
}
private WorkloadProfileArgs() {}
private WorkloadProfileArgs(WorkloadProfileArgs $) {
this.maximumCount = $.maximumCount;
this.minimumCount = $.minimumCount;
this.workloadProfileType = $.workloadProfileType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkloadProfileArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WorkloadProfileArgs $;
public Builder() {
$ = new WorkloadProfileArgs();
}
public Builder(WorkloadProfileArgs defaults) {
$ = new WorkloadProfileArgs(Objects.requireNonNull(defaults));
}
/**
* @param maximumCount The maximum capacity.
*
* @return builder
*
*/
public Builder maximumCount(Output maximumCount) {
$.maximumCount = maximumCount;
return this;
}
/**
* @param maximumCount The maximum capacity.
*
* @return builder
*
*/
public Builder maximumCount(Integer maximumCount) {
return maximumCount(Output.of(maximumCount));
}
/**
* @param minimumCount The minimum capacity.
*
* @return builder
*
*/
public Builder minimumCount(Output minimumCount) {
$.minimumCount = minimumCount;
return this;
}
/**
* @param minimumCount The minimum capacity.
*
* @return builder
*
*/
public Builder minimumCount(Integer minimumCount) {
return minimumCount(Output.of(minimumCount));
}
/**
* @param workloadProfileType Workload profile type for the workloads to run on.
*
* @return builder
*
*/
public Builder workloadProfileType(Output workloadProfileType) {
$.workloadProfileType = workloadProfileType;
return this;
}
/**
* @param workloadProfileType Workload profile type for the workloads to run on.
*
* @return builder
*
*/
public Builder workloadProfileType(String workloadProfileType) {
return workloadProfileType(Output.of(workloadProfileType));
}
public WorkloadProfileArgs build() {
if ($.maximumCount == null) {
throw new MissingRequiredPropertyException("WorkloadProfileArgs", "maximumCount");
}
if ($.minimumCount == null) {
throw new MissingRequiredPropertyException("WorkloadProfileArgs", "minimumCount");
}
if ($.workloadProfileType == null) {
throw new MissingRequiredPropertyException("WorkloadProfileArgs", "workloadProfileType");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy