
com.pulumi.azurenative.awsconnector.outputs.ReplicationRuleAndOperatorResponse 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.azurenative.awsconnector.outputs.TagFilterResponse;
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 ReplicationRuleAndOperatorResponse {
/**
* @return An object key name prefix that identifies the subset of objects to which the rule applies.
*
*/
private @Nullable String prefix;
/**
* @return An array of tags containing key and value pairs.
*
*/
private @Nullable List tagFilters;
private ReplicationRuleAndOperatorResponse() {}
/**
* @return An object key name prefix that identifies the subset of objects to which the rule applies.
*
*/
public Optional prefix() {
return Optional.ofNullable(this.prefix);
}
/**
* @return An array of tags containing key and value pairs.
*
*/
public List tagFilters() {
return this.tagFilters == null ? List.of() : this.tagFilters;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReplicationRuleAndOperatorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String prefix;
private @Nullable List tagFilters;
public Builder() {}
public Builder(ReplicationRuleAndOperatorResponse defaults) {
Objects.requireNonNull(defaults);
this.prefix = defaults.prefix;
this.tagFilters = defaults.tagFilters;
}
@CustomType.Setter
public Builder prefix(@Nullable String prefix) {
this.prefix = prefix;
return this;
}
@CustomType.Setter
public Builder tagFilters(@Nullable List tagFilters) {
this.tagFilters = tagFilters;
return this;
}
public Builder tagFilters(TagFilterResponse... tagFilters) {
return tagFilters(List.of(tagFilters));
}
public ReplicationRuleAndOperatorResponse build() {
final var _resultValue = new ReplicationRuleAndOperatorResponse();
_resultValue.prefix = prefix;
_resultValue.tagFilters = tagFilters;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy