org.mongodb.awscdk.resources.mongodbatlas.CloudProviderConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of awscdk-resources-mongodbatlas Show documentation
Show all versions of awscdk-resources-mongodbatlas Show documentation
MongoDB Atlas CDK Construct Library for AWS CloudFormation Resources
package org.mongodb.awscdk.resources.mongodbatlas;
/**
* Cloud provider linked to this data lake..
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.995Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CloudProviderConfig")
@software.amazon.jsii.Jsii.Proxy(CloudProviderConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CloudProviderConfig extends software.amazon.jsii.JsiiSerializable {
/**
* Unique identifier of the role that the data lake can use to access the data stores.Required if specifying cloudProviderConfig.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getExternalId() {
return null;
}
/**
* Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the data lake assumes when accessing data stores.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getIamAssumedRoleArn() {
return null;
}
/**
* Amazon Resource Name (ARN) of the user that the data lake assumes when accessing data stores.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getIamUserArn() {
return null;
}
/**
* Unique identifier of the role that the data lake can use to access the data stores.Required if specifying cloudProviderConfig.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getRoleId() {
return null;
}
/**
* Name of the S3 data bucket that the provided role ID is authorized to access.Required if specifying cloudProviderConfig.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getTestS3Bucket() {
return null;
}
/**
* @return a {@link Builder} of {@link CloudProviderConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CloudProviderConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String externalId;
java.lang.String iamAssumedRoleArn;
java.lang.String iamUserArn;
java.lang.String roleId;
java.lang.String testS3Bucket;
/**
* Sets the value of {@link CloudProviderConfig#getExternalId}
* @param externalId Unique identifier of the role that the data lake can use to access the data stores.Required if specifying cloudProviderConfig.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder externalId(java.lang.String externalId) {
this.externalId = externalId;
return this;
}
/**
* Sets the value of {@link CloudProviderConfig#getIamAssumedRoleArn}
* @param iamAssumedRoleArn Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the data lake assumes when accessing data stores.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder iamAssumedRoleArn(java.lang.String iamAssumedRoleArn) {
this.iamAssumedRoleArn = iamAssumedRoleArn;
return this;
}
/**
* Sets the value of {@link CloudProviderConfig#getIamUserArn}
* @param iamUserArn Amazon Resource Name (ARN) of the user that the data lake assumes when accessing data stores.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder iamUserArn(java.lang.String iamUserArn) {
this.iamUserArn = iamUserArn;
return this;
}
/**
* Sets the value of {@link CloudProviderConfig#getRoleId}
* @param roleId Unique identifier of the role that the data lake can use to access the data stores.Required if specifying cloudProviderConfig.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder roleId(java.lang.String roleId) {
this.roleId = roleId;
return this;
}
/**
* Sets the value of {@link CloudProviderConfig#getTestS3Bucket}
* @param testS3Bucket Name of the S3 data bucket that the provided role ID is authorized to access.Required if specifying cloudProviderConfig.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder testS3Bucket(java.lang.String testS3Bucket) {
this.testS3Bucket = testS3Bucket;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CloudProviderConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CloudProviderConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link CloudProviderConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CloudProviderConfig {
private final java.lang.String externalId;
private final java.lang.String iamAssumedRoleArn;
private final java.lang.String iamUserArn;
private final java.lang.String roleId;
private final java.lang.String testS3Bucket;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.externalId = software.amazon.jsii.Kernel.get(this, "externalId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.iamAssumedRoleArn = software.amazon.jsii.Kernel.get(this, "iamAssumedRoleArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.iamUserArn = software.amazon.jsii.Kernel.get(this, "iamUserArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.roleId = software.amazon.jsii.Kernel.get(this, "roleId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.testS3Bucket = software.amazon.jsii.Kernel.get(this, "testS3Bucket", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.externalId = builder.externalId;
this.iamAssumedRoleArn = builder.iamAssumedRoleArn;
this.iamUserArn = builder.iamUserArn;
this.roleId = builder.roleId;
this.testS3Bucket = builder.testS3Bucket;
}
@Override
public final java.lang.String getExternalId() {
return this.externalId;
}
@Override
public final java.lang.String getIamAssumedRoleArn() {
return this.iamAssumedRoleArn;
}
@Override
public final java.lang.String getIamUserArn() {
return this.iamUserArn;
}
@Override
public final java.lang.String getRoleId() {
return this.roleId;
}
@Override
public final java.lang.String getTestS3Bucket() {
return this.testS3Bucket;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
if (this.getExternalId() != null) {
data.set("externalId", om.valueToTree(this.getExternalId()));
}
if (this.getIamAssumedRoleArn() != null) {
data.set("iamAssumedRoleArn", om.valueToTree(this.getIamAssumedRoleArn()));
}
if (this.getIamUserArn() != null) {
data.set("iamUserArn", om.valueToTree(this.getIamUserArn()));
}
if (this.getRoleId() != null) {
data.set("roleId", om.valueToTree(this.getRoleId()));
}
if (this.getTestS3Bucket() != null) {
data.set("testS3Bucket", om.valueToTree(this.getTestS3Bucket()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CloudProviderConfig"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CloudProviderConfig.Jsii$Proxy that = (CloudProviderConfig.Jsii$Proxy) o;
if (this.externalId != null ? !this.externalId.equals(that.externalId) : that.externalId != null) return false;
if (this.iamAssumedRoleArn != null ? !this.iamAssumedRoleArn.equals(that.iamAssumedRoleArn) : that.iamAssumedRoleArn != null) return false;
if (this.iamUserArn != null ? !this.iamUserArn.equals(that.iamUserArn) : that.iamUserArn != null) return false;
if (this.roleId != null ? !this.roleId.equals(that.roleId) : that.roleId != null) return false;
return this.testS3Bucket != null ? this.testS3Bucket.equals(that.testS3Bucket) : that.testS3Bucket == null;
}
@Override
public final int hashCode() {
int result = this.externalId != null ? this.externalId.hashCode() : 0;
result = 31 * result + (this.iamAssumedRoleArn != null ? this.iamAssumedRoleArn.hashCode() : 0);
result = 31 * result + (this.iamUserArn != null ? this.iamUserArn.hashCode() : 0);
result = 31 * result + (this.roleId != null ? this.roleId.hashCode() : 0);
result = 31 * result + (this.testS3Bucket != null ? this.testS3Bucket.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy