
com.pulumi.azurenative.app.outputs.TrafficWeightResponse 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TrafficWeightResponse {
/**
* @return Associates a traffic label with a revision
*
*/
private @Nullable String label;
/**
* @return Indicates that the traffic weight belongs to a latest stable revision
*
*/
private @Nullable Boolean latestRevision;
/**
* @return Name of a revision
*
*/
private @Nullable String revisionName;
/**
* @return Traffic weight assigned to a revision
*
*/
private @Nullable Integer weight;
private TrafficWeightResponse() {}
/**
* @return Associates a traffic label with a revision
*
*/
public Optional label() {
return Optional.ofNullable(this.label);
}
/**
* @return Indicates that the traffic weight belongs to a latest stable revision
*
*/
public Optional latestRevision() {
return Optional.ofNullable(this.latestRevision);
}
/**
* @return Name of a revision
*
*/
public Optional revisionName() {
return Optional.ofNullable(this.revisionName);
}
/**
* @return Traffic weight assigned to a revision
*
*/
public Optional weight() {
return Optional.ofNullable(this.weight);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TrafficWeightResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String label;
private @Nullable Boolean latestRevision;
private @Nullable String revisionName;
private @Nullable Integer weight;
public Builder() {}
public Builder(TrafficWeightResponse defaults) {
Objects.requireNonNull(defaults);
this.label = defaults.label;
this.latestRevision = defaults.latestRevision;
this.revisionName = defaults.revisionName;
this.weight = defaults.weight;
}
@CustomType.Setter
public Builder label(@Nullable String label) {
this.label = label;
return this;
}
@CustomType.Setter
public Builder latestRevision(@Nullable Boolean latestRevision) {
this.latestRevision = latestRevision;
return this;
}
@CustomType.Setter
public Builder revisionName(@Nullable String revisionName) {
this.revisionName = revisionName;
return this;
}
@CustomType.Setter
public Builder weight(@Nullable Integer weight) {
this.weight = weight;
return this;
}
public TrafficWeightResponse build() {
final var _resultValue = new TrafficWeightResponse();
_resultValue.label = label;
_resultValue.latestRevision = latestRevision;
_resultValue.revisionName = revisionName;
_resultValue.weight = weight;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy