
com.pulumi.azurenative.providerhub.outputs.SubscriptionStateRuleResponse 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.providerhub.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SubscriptionStateRuleResponse {
private @Nullable List allowedActions;
private @Nullable String state;
private SubscriptionStateRuleResponse() {}
public List allowedActions() {
return this.allowedActions == null ? List.of() : this.allowedActions;
}
public Optional state() {
return Optional.ofNullable(this.state);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SubscriptionStateRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List allowedActions;
private @Nullable String state;
public Builder() {}
public Builder(SubscriptionStateRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.allowedActions = defaults.allowedActions;
this.state = defaults.state;
}
@CustomType.Setter
public Builder allowedActions(@Nullable List allowedActions) {
this.allowedActions = allowedActions;
return this;
}
public Builder allowedActions(String... allowedActions) {
return allowedActions(List.of(allowedActions));
}
@CustomType.Setter
public Builder state(@Nullable String state) {
this.state = state;
return this;
}
public SubscriptionStateRuleResponse build() {
final var _resultValue = new SubscriptionStateRuleResponse();
_resultValue.allowedActions = allowedActions;
_resultValue.state = state;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy