
com.pulumi.azurenative.awsconnector.outputs.RulesSourceListResponse 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.awsconnector.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 RulesSourceListResponse {
/**
* @return Property generatedRulesType
*
*/
private @Nullable String generatedRulesType;
/**
* @return Property targetTypes
*
*/
private @Nullable List targetTypes;
/**
* @return Property targets
*
*/
private @Nullable List targets;
private RulesSourceListResponse() {}
/**
* @return Property generatedRulesType
*
*/
public Optional generatedRulesType() {
return Optional.ofNullable(this.generatedRulesType);
}
/**
* @return Property targetTypes
*
*/
public List targetTypes() {
return this.targetTypes == null ? List.of() : this.targetTypes;
}
/**
* @return Property targets
*
*/
public List targets() {
return this.targets == null ? List.of() : this.targets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RulesSourceListResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String generatedRulesType;
private @Nullable List targetTypes;
private @Nullable List targets;
public Builder() {}
public Builder(RulesSourceListResponse defaults) {
Objects.requireNonNull(defaults);
this.generatedRulesType = defaults.generatedRulesType;
this.targetTypes = defaults.targetTypes;
this.targets = defaults.targets;
}
@CustomType.Setter
public Builder generatedRulesType(@Nullable String generatedRulesType) {
this.generatedRulesType = generatedRulesType;
return this;
}
@CustomType.Setter
public Builder targetTypes(@Nullable List targetTypes) {
this.targetTypes = targetTypes;
return this;
}
public Builder targetTypes(String... targetTypes) {
return targetTypes(List.of(targetTypes));
}
@CustomType.Setter
public Builder targets(@Nullable List targets) {
this.targets = targets;
return this;
}
public Builder targets(String... targets) {
return targets(List.of(targets));
}
public RulesSourceListResponse build() {
final var _resultValue = new RulesSourceListResponse();
_resultValue.generatedRulesType = generatedRulesType;
_resultValue.targetTypes = targetTypes;
_resultValue.targets = targets;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy