com.pulumi.aws.appsync.outputs.DataSourceOpensearchserviceConfig 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.
The newest version!
// *** 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.appsync.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DataSourceOpensearchserviceConfig {
/**
* @return HTTP endpoint of the OpenSearch domain.
*
*/
private String endpoint;
/**
* @return AWS region of the OpenSearch domain. Defaults to current region.
*
*/
private @Nullable String region;
private DataSourceOpensearchserviceConfig() {}
/**
* @return HTTP endpoint of the OpenSearch domain.
*
*/
public String endpoint() {
return this.endpoint;
}
/**
* @return AWS region of the OpenSearch domain. Defaults to current region.
*
*/
public Optional region() {
return Optional.ofNullable(this.region);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DataSourceOpensearchserviceConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String endpoint;
private @Nullable String region;
public Builder() {}
public Builder(DataSourceOpensearchserviceConfig defaults) {
Objects.requireNonNull(defaults);
this.endpoint = defaults.endpoint;
this.region = defaults.region;
}
@CustomType.Setter
public Builder endpoint(String endpoint) {
if (endpoint == null) {
throw new MissingRequiredPropertyException("DataSourceOpensearchserviceConfig", "endpoint");
}
this.endpoint = endpoint;
return this;
}
@CustomType.Setter
public Builder region(@Nullable String region) {
this.region = region;
return this;
}
public DataSourceOpensearchserviceConfig build() {
final var _resultValue = new DataSourceOpensearchserviceConfig();
_resultValue.endpoint = endpoint;
_resultValue.region = region;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy