com.pulumi.azurenative.cdn.outputs.CustomRuleListResponse 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.cdn.outputs;
import com.pulumi.azurenative.cdn.outputs.CustomRuleResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class CustomRuleListResponse {
/**
* @return List of rules
*
*/
private @Nullable List rules;
private CustomRuleListResponse() {}
/**
* @return List of rules
*
*/
public List rules() {
return this.rules == null ? List.of() : this.rules;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomRuleListResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List rules;
public Builder() {}
public Builder(CustomRuleListResponse defaults) {
Objects.requireNonNull(defaults);
this.rules = defaults.rules;
}
@CustomType.Setter
public Builder rules(@Nullable List rules) {
this.rules = rules;
return this;
}
public Builder rules(CustomRuleResponse... rules) {
return rules(List.of(rules));
}
public CustomRuleListResponse build() {
final var _resultValue = new CustomRuleListResponse();
_resultValue.rules = rules;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy