com.pulumi.alicloud.actiontrail.inputs.GetConsumerGroupsPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.actiontrail.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetConsumerGroupsPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetConsumerGroupsPlainArgs Empty = new GetConsumerGroupsPlainArgs();
/**
* A regex string to filter results by the consumer group id.
*
*/
@Import(name="consumerIdRegex")
private @Nullable String consumerIdRegex;
/**
* @return A regex string to filter results by the consumer group id.
*
*/
public Optional consumerIdRegex() {
return Optional.ofNullable(this.consumerIdRegex);
}
/**
* A list of ALIKAFKA Consumer Groups IDs, It is formatted to `<instance_id>:<consumer_id>`.
*
*/
@Import(name="ids")
private @Nullable List ids;
/**
* @return A list of ALIKAFKA Consumer Groups IDs, It is formatted to `<instance_id>:<consumer_id>`.
*
*/
public Optional> ids() {
return Optional.ofNullable(this.ids);
}
/**
* ID of the ALIKAFKA Instance that owns the consumer groups.
*
*/
@Import(name="instanceId", required=true)
private String instanceId;
/**
* @return ID of the ALIKAFKA Instance that owns the consumer groups.
*
*/
public String instanceId() {
return this.instanceId;
}
/**
* File name where to save data source results (after running `pulumi preview`).
*
*/
@Import(name="outputFile")
private @Nullable String outputFile;
/**
* @return File name where to save data source results (after running `pulumi preview`).
*
*/
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
private GetConsumerGroupsPlainArgs() {}
private GetConsumerGroupsPlainArgs(GetConsumerGroupsPlainArgs $) {
this.consumerIdRegex = $.consumerIdRegex;
this.ids = $.ids;
this.instanceId = $.instanceId;
this.outputFile = $.outputFile;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetConsumerGroupsPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetConsumerGroupsPlainArgs $;
public Builder() {
$ = new GetConsumerGroupsPlainArgs();
}
public Builder(GetConsumerGroupsPlainArgs defaults) {
$ = new GetConsumerGroupsPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param consumerIdRegex A regex string to filter results by the consumer group id.
*
* @return builder
*
*/
public Builder consumerIdRegex(@Nullable String consumerIdRegex) {
$.consumerIdRegex = consumerIdRegex;
return this;
}
/**
* @param ids A list of ALIKAFKA Consumer Groups IDs, It is formatted to `<instance_id>:<consumer_id>`.
*
* @return builder
*
*/
public Builder ids(@Nullable List ids) {
$.ids = ids;
return this;
}
/**
* @param ids A list of ALIKAFKA Consumer Groups IDs, It is formatted to `<instance_id>:<consumer_id>`.
*
* @return builder
*
*/
public Builder ids(String... ids) {
return ids(List.of(ids));
}
/**
* @param instanceId ID of the ALIKAFKA Instance that owns the consumer groups.
*
* @return builder
*
*/
public Builder instanceId(String instanceId) {
$.instanceId = instanceId;
return this;
}
/**
* @param outputFile File name where to save data source results (after running `pulumi preview`).
*
* @return builder
*
*/
public Builder outputFile(@Nullable String outputFile) {
$.outputFile = outputFile;
return this;
}
public GetConsumerGroupsPlainArgs build() {
if ($.instanceId == null) {
throw new MissingRequiredPropertyException("GetConsumerGroupsPlainArgs", "instanceId");
}
return $;
}
}
}