com.pulumi.azurenative.web.outputs.CustomScaleRuleResponse 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.web.outputs;
import com.pulumi.azurenative.web.outputs.ScaleRuleAuthResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CustomScaleRuleResponse {
/**
* @return Authentication secrets for the custom scale rule.
*
*/
private @Nullable List auth;
/**
* @return Metadata properties to describe custom scale rule.
*
*/
private @Nullable Map metadata;
/**
* @return Type of the custom scale rule
* eg: azure-servicebus, redis etc.
*
*/
private @Nullable String type;
private CustomScaleRuleResponse() {}
/**
* @return Authentication secrets for the custom scale rule.
*
*/
public List auth() {
return this.auth == null ? List.of() : this.auth;
}
/**
* @return Metadata properties to describe custom scale rule.
*
*/
public Map metadata() {
return this.metadata == null ? Map.of() : this.metadata;
}
/**
* @return Type of the custom scale rule
* eg: azure-servicebus, redis etc.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomScaleRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List auth;
private @Nullable Map metadata;
private @Nullable String type;
public Builder() {}
public Builder(CustomScaleRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.auth = defaults.auth;
this.metadata = defaults.metadata;
this.type = defaults.type;
}
@CustomType.Setter
public Builder auth(@Nullable List auth) {
this.auth = auth;
return this;
}
public Builder auth(ScaleRuleAuthResponse... auth) {
return auth(List.of(auth));
}
@CustomType.Setter
public Builder metadata(@Nullable Map metadata) {
this.metadata = metadata;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public CustomScaleRuleResponse build() {
final var _resultValue = new CustomScaleRuleResponse();
_resultValue.auth = auth;
_resultValue.metadata = metadata;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy