com.pulumi.alicloud.vpc.outputs.GetVpcFlowLogsResult 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.vpc.outputs;
import com.pulumi.alicloud.vpc.outputs.GetVpcFlowLogsLog;
import com.pulumi.core.annotations.CustomType;
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;
@CustomType
public final class GetVpcFlowLogsResult {
private @Nullable String description;
private @Nullable String flowLogName;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable String logStoreName;
private List logs;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable String projectName;
private @Nullable String resourceId;
private @Nullable String resourceType;
private @Nullable String status;
private @Nullable String trafficType;
private GetVpcFlowLogsResult() {}
public Optional description() {
return Optional.ofNullable(this.description);
}
public Optional flowLogName() {
return Optional.ofNullable(this.flowLogName);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List ids() {
return this.ids;
}
public Optional logStoreName() {
return Optional.ofNullable(this.logStoreName);
}
public List logs() {
return this.logs;
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
public List names() {
return this.names;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public Optional projectName() {
return Optional.ofNullable(this.projectName);
}
public Optional resourceId() {
return Optional.ofNullable(this.resourceId);
}
public Optional resourceType() {
return Optional.ofNullable(this.resourceType);
}
public Optional status() {
return Optional.ofNullable(this.status);
}
public Optional trafficType() {
return Optional.ofNullable(this.trafficType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVpcFlowLogsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable String flowLogName;
private String id;
private List ids;
private @Nullable String logStoreName;
private List logs;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable String projectName;
private @Nullable String resourceId;
private @Nullable String resourceType;
private @Nullable String status;
private @Nullable String trafficType;
public Builder() {}
public Builder(GetVpcFlowLogsResult defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.flowLogName = defaults.flowLogName;
this.id = defaults.id;
this.ids = defaults.ids;
this.logStoreName = defaults.logStoreName;
this.logs = defaults.logs;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
this.outputFile = defaults.outputFile;
this.projectName = defaults.projectName;
this.resourceId = defaults.resourceId;
this.resourceType = defaults.resourceType;
this.status = defaults.status;
this.trafficType = defaults.trafficType;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder flowLogName(@Nullable String flowLogName) {
this.flowLogName = flowLogName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetVpcFlowLogsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetVpcFlowLogsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder logStoreName(@Nullable String logStoreName) {
this.logStoreName = logStoreName;
return this;
}
@CustomType.Setter
public Builder logs(List logs) {
if (logs == null) {
throw new MissingRequiredPropertyException("GetVpcFlowLogsResult", "logs");
}
this.logs = logs;
return this;
}
public Builder logs(GetVpcFlowLogsLog... logs) {
return logs(List.of(logs));
}
@CustomType.Setter
public Builder nameRegex(@Nullable String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
@CustomType.Setter
public Builder names(List names) {
if (names == null) {
throw new MissingRequiredPropertyException("GetVpcFlowLogsResult", "names");
}
this.names = names;
return this;
}
public Builder names(String... names) {
return names(List.of(names));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder projectName(@Nullable String projectName) {
this.projectName = projectName;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
@CustomType.Setter
public Builder resourceType(@Nullable String resourceType) {
this.resourceType = resourceType;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder trafficType(@Nullable String trafficType) {
this.trafficType = trafficType;
return this;
}
public GetVpcFlowLogsResult build() {
final var _resultValue = new GetVpcFlowLogsResult();
_resultValue.description = description;
_resultValue.flowLogName = flowLogName;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.logStoreName = logStoreName;
_resultValue.logs = logs;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
_resultValue.outputFile = outputFile;
_resultValue.projectName = projectName;
_resultValue.resourceId = resourceId;
_resultValue.resourceType = resourceType;
_resultValue.status = status;
_resultValue.trafficType = trafficType;
return _resultValue;
}
}
}