com.pulumi.aws.apigatewayv2.outputs.GetExportResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.apigatewayv2.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetExportResult {
private String apiId;
/**
* @return ID of the API.
*
*/
private String body;
private @Nullable String exportVersion;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable Boolean includeExtensions;
private String outputType;
private String specification;
private @Nullable String stageName;
private GetExportResult() {}
public String apiId() {
return this.apiId;
}
/**
* @return ID of the API.
*
*/
public String body() {
return this.body;
}
public Optional exportVersion() {
return Optional.ofNullable(this.exportVersion);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional includeExtensions() {
return Optional.ofNullable(this.includeExtensions);
}
public String outputType() {
return this.outputType;
}
public String specification() {
return this.specification;
}
public Optional stageName() {
return Optional.ofNullable(this.stageName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetExportResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String apiId;
private String body;
private @Nullable String exportVersion;
private String id;
private @Nullable Boolean includeExtensions;
private String outputType;
private String specification;
private @Nullable String stageName;
public Builder() {}
public Builder(GetExportResult defaults) {
Objects.requireNonNull(defaults);
this.apiId = defaults.apiId;
this.body = defaults.body;
this.exportVersion = defaults.exportVersion;
this.id = defaults.id;
this.includeExtensions = defaults.includeExtensions;
this.outputType = defaults.outputType;
this.specification = defaults.specification;
this.stageName = defaults.stageName;
}
@CustomType.Setter
public Builder apiId(String apiId) {
if (apiId == null) {
throw new MissingRequiredPropertyException("GetExportResult", "apiId");
}
this.apiId = apiId;
return this;
}
@CustomType.Setter
public Builder body(String body) {
if (body == null) {
throw new MissingRequiredPropertyException("GetExportResult", "body");
}
this.body = body;
return this;
}
@CustomType.Setter
public Builder exportVersion(@Nullable String exportVersion) {
this.exportVersion = exportVersion;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetExportResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder includeExtensions(@Nullable Boolean includeExtensions) {
this.includeExtensions = includeExtensions;
return this;
}
@CustomType.Setter
public Builder outputType(String outputType) {
if (outputType == null) {
throw new MissingRequiredPropertyException("GetExportResult", "outputType");
}
this.outputType = outputType;
return this;
}
@CustomType.Setter
public Builder specification(String specification) {
if (specification == null) {
throw new MissingRequiredPropertyException("GetExportResult", "specification");
}
this.specification = specification;
return this;
}
@CustomType.Setter
public Builder stageName(@Nullable String stageName) {
this.stageName = stageName;
return this;
}
public GetExportResult build() {
final var _resultValue = new GetExportResult();
_resultValue.apiId = apiId;
_resultValue.body = body;
_resultValue.exportVersion = exportVersion;
_resultValue.id = id;
_resultValue.includeExtensions = includeExtensions;
_resultValue.outputType = outputType;
_resultValue.specification = specification;
_resultValue.stageName = stageName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy