
com.pulumi.azurenative.appplatform.outputs.BuildResourceRequestsResponse 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.appplatform.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BuildResourceRequestsResponse {
/**
* @return Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
* The default value is 1, this should not exceed build service agent pool cpu size.
*
*/
private @Nullable String cpu;
/**
* @return Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
* The default value is 2Gi, this should not exceed build service agent pool memory size.
*
*/
private @Nullable String memory;
private BuildResourceRequestsResponse() {}
/**
* @return Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
* The default value is 1, this should not exceed build service agent pool cpu size.
*
*/
public Optional cpu() {
return Optional.ofNullable(this.cpu);
}
/**
* @return Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
* The default value is 2Gi, this should not exceed build service agent pool memory size.
*
*/
public Optional memory() {
return Optional.ofNullable(this.memory);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BuildResourceRequestsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cpu;
private @Nullable String memory;
public Builder() {}
public Builder(BuildResourceRequestsResponse defaults) {
Objects.requireNonNull(defaults);
this.cpu = defaults.cpu;
this.memory = defaults.memory;
}
@CustomType.Setter
public Builder cpu(@Nullable String cpu) {
this.cpu = cpu;
return this;
}
@CustomType.Setter
public Builder memory(@Nullable String memory) {
this.memory = memory;
return this;
}
public BuildResourceRequestsResponse build() {
final var _resultValue = new BuildResourceRequestsResponse();
_resultValue.cpu = cpu;
_resultValue.memory = memory;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy