org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings 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;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:29.056Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.ProjectSettings")
@software.amazon.jsii.Jsii.Proxy(ProjectSettings.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ProjectSettings extends software.amazon.jsii.JsiiSerializable {
/**
* Flag that indicates whether to collect database-specific metrics for the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getIsCollectDatabaseSpecificsStatisticsEnabled() {
return null;
}
/**
* Flag that indicates whether to enable the Data Explorer for the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getIsDataExplorerEnabled() {
return null;
}
/**
* Flag that indicates whether to enable extended storage sizes for the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getIsExtendedStorageSizesEnabled() {
return null;
}
/**
* Flag that indicates whether to enable the Performance Advisor and Profiler for the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getIsPerformanceAdvisorEnabled() {
return null;
}
/**
* Flag that indicates whether to enable the Real Time Performance Panel for the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getIsRealtimePerformancePanelEnabled() {
return null;
}
/**
* Flag that indicates whether to enable the Schema Advisor for the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getIsSchemaAdvisorEnabled() {
return null;
}
/**
* @return a {@link Builder} of {@link ProjectSettings}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ProjectSettings}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Boolean isCollectDatabaseSpecificsStatisticsEnabled;
java.lang.Boolean isDataExplorerEnabled;
java.lang.Boolean isExtendedStorageSizesEnabled;
java.lang.Boolean isPerformanceAdvisorEnabled;
java.lang.Boolean isRealtimePerformancePanelEnabled;
java.lang.Boolean isSchemaAdvisorEnabled;
/**
* Sets the value of {@link ProjectSettings#getIsCollectDatabaseSpecificsStatisticsEnabled}
* @param isCollectDatabaseSpecificsStatisticsEnabled Flag that indicates whether to collect database-specific metrics for the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder isCollectDatabaseSpecificsStatisticsEnabled(java.lang.Boolean isCollectDatabaseSpecificsStatisticsEnabled) {
this.isCollectDatabaseSpecificsStatisticsEnabled = isCollectDatabaseSpecificsStatisticsEnabled;
return this;
}
/**
* Sets the value of {@link ProjectSettings#getIsDataExplorerEnabled}
* @param isDataExplorerEnabled Flag that indicates whether to enable the Data Explorer for the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder isDataExplorerEnabled(java.lang.Boolean isDataExplorerEnabled) {
this.isDataExplorerEnabled = isDataExplorerEnabled;
return this;
}
/**
* Sets the value of {@link ProjectSettings#getIsExtendedStorageSizesEnabled}
* @param isExtendedStorageSizesEnabled Flag that indicates whether to enable extended storage sizes for the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder isExtendedStorageSizesEnabled(java.lang.Boolean isExtendedStorageSizesEnabled) {
this.isExtendedStorageSizesEnabled = isExtendedStorageSizesEnabled;
return this;
}
/**
* Sets the value of {@link ProjectSettings#getIsPerformanceAdvisorEnabled}
* @param isPerformanceAdvisorEnabled Flag that indicates whether to enable the Performance Advisor and Profiler for the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder isPerformanceAdvisorEnabled(java.lang.Boolean isPerformanceAdvisorEnabled) {
this.isPerformanceAdvisorEnabled = isPerformanceAdvisorEnabled;
return this;
}
/**
* Sets the value of {@link ProjectSettings#getIsRealtimePerformancePanelEnabled}
* @param isRealtimePerformancePanelEnabled Flag that indicates whether to enable the Real Time Performance Panel for the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder isRealtimePerformancePanelEnabled(java.lang.Boolean isRealtimePerformancePanelEnabled) {
this.isRealtimePerformancePanelEnabled = isRealtimePerformancePanelEnabled;
return this;
}
/**
* Sets the value of {@link ProjectSettings#getIsSchemaAdvisorEnabled}
* @param isSchemaAdvisorEnabled Flag that indicates whether to enable the Schema Advisor for the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder isSchemaAdvisorEnabled(java.lang.Boolean isSchemaAdvisorEnabled) {
this.isSchemaAdvisorEnabled = isSchemaAdvisorEnabled;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ProjectSettings}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public ProjectSettings build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link ProjectSettings}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ProjectSettings {
private final java.lang.Boolean isCollectDatabaseSpecificsStatisticsEnabled;
private final java.lang.Boolean isDataExplorerEnabled;
private final java.lang.Boolean isExtendedStorageSizesEnabled;
private final java.lang.Boolean isPerformanceAdvisorEnabled;
private final java.lang.Boolean isRealtimePerformancePanelEnabled;
private final java.lang.Boolean isSchemaAdvisorEnabled;
/**
* 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.isCollectDatabaseSpecificsStatisticsEnabled = software.amazon.jsii.Kernel.get(this, "isCollectDatabaseSpecificsStatisticsEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.isDataExplorerEnabled = software.amazon.jsii.Kernel.get(this, "isDataExplorerEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.isExtendedStorageSizesEnabled = software.amazon.jsii.Kernel.get(this, "isExtendedStorageSizesEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.isPerformanceAdvisorEnabled = software.amazon.jsii.Kernel.get(this, "isPerformanceAdvisorEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.isRealtimePerformancePanelEnabled = software.amazon.jsii.Kernel.get(this, "isRealtimePerformancePanelEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.isSchemaAdvisorEnabled = software.amazon.jsii.Kernel.get(this, "isSchemaAdvisorEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.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.isCollectDatabaseSpecificsStatisticsEnabled = builder.isCollectDatabaseSpecificsStatisticsEnabled;
this.isDataExplorerEnabled = builder.isDataExplorerEnabled;
this.isExtendedStorageSizesEnabled = builder.isExtendedStorageSizesEnabled;
this.isPerformanceAdvisorEnabled = builder.isPerformanceAdvisorEnabled;
this.isRealtimePerformancePanelEnabled = builder.isRealtimePerformancePanelEnabled;
this.isSchemaAdvisorEnabled = builder.isSchemaAdvisorEnabled;
}
@Override
public final java.lang.Boolean getIsCollectDatabaseSpecificsStatisticsEnabled() {
return this.isCollectDatabaseSpecificsStatisticsEnabled;
}
@Override
public final java.lang.Boolean getIsDataExplorerEnabled() {
return this.isDataExplorerEnabled;
}
@Override
public final java.lang.Boolean getIsExtendedStorageSizesEnabled() {
return this.isExtendedStorageSizesEnabled;
}
@Override
public final java.lang.Boolean getIsPerformanceAdvisorEnabled() {
return this.isPerformanceAdvisorEnabled;
}
@Override
public final java.lang.Boolean getIsRealtimePerformancePanelEnabled() {
return this.isRealtimePerformancePanelEnabled;
}
@Override
public final java.lang.Boolean getIsSchemaAdvisorEnabled() {
return this.isSchemaAdvisorEnabled;
}
@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.getIsCollectDatabaseSpecificsStatisticsEnabled() != null) {
data.set("isCollectDatabaseSpecificsStatisticsEnabled", om.valueToTree(this.getIsCollectDatabaseSpecificsStatisticsEnabled()));
}
if (this.getIsDataExplorerEnabled() != null) {
data.set("isDataExplorerEnabled", om.valueToTree(this.getIsDataExplorerEnabled()));
}
if (this.getIsExtendedStorageSizesEnabled() != null) {
data.set("isExtendedStorageSizesEnabled", om.valueToTree(this.getIsExtendedStorageSizesEnabled()));
}
if (this.getIsPerformanceAdvisorEnabled() != null) {
data.set("isPerformanceAdvisorEnabled", om.valueToTree(this.getIsPerformanceAdvisorEnabled()));
}
if (this.getIsRealtimePerformancePanelEnabled() != null) {
data.set("isRealtimePerformancePanelEnabled", om.valueToTree(this.getIsRealtimePerformancePanelEnabled()));
}
if (this.getIsSchemaAdvisorEnabled() != null) {
data.set("isSchemaAdvisorEnabled", om.valueToTree(this.getIsSchemaAdvisorEnabled()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.ProjectSettings"));
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;
ProjectSettings.Jsii$Proxy that = (ProjectSettings.Jsii$Proxy) o;
if (this.isCollectDatabaseSpecificsStatisticsEnabled != null ? !this.isCollectDatabaseSpecificsStatisticsEnabled.equals(that.isCollectDatabaseSpecificsStatisticsEnabled) : that.isCollectDatabaseSpecificsStatisticsEnabled != null) return false;
if (this.isDataExplorerEnabled != null ? !this.isDataExplorerEnabled.equals(that.isDataExplorerEnabled) : that.isDataExplorerEnabled != null) return false;
if (this.isExtendedStorageSizesEnabled != null ? !this.isExtendedStorageSizesEnabled.equals(that.isExtendedStorageSizesEnabled) : that.isExtendedStorageSizesEnabled != null) return false;
if (this.isPerformanceAdvisorEnabled != null ? !this.isPerformanceAdvisorEnabled.equals(that.isPerformanceAdvisorEnabled) : that.isPerformanceAdvisorEnabled != null) return false;
if (this.isRealtimePerformancePanelEnabled != null ? !this.isRealtimePerformancePanelEnabled.equals(that.isRealtimePerformancePanelEnabled) : that.isRealtimePerformancePanelEnabled != null) return false;
return this.isSchemaAdvisorEnabled != null ? this.isSchemaAdvisorEnabled.equals(that.isSchemaAdvisorEnabled) : that.isSchemaAdvisorEnabled == null;
}
@Override
public final int hashCode() {
int result = this.isCollectDatabaseSpecificsStatisticsEnabled != null ? this.isCollectDatabaseSpecificsStatisticsEnabled.hashCode() : 0;
result = 31 * result + (this.isDataExplorerEnabled != null ? this.isDataExplorerEnabled.hashCode() : 0);
result = 31 * result + (this.isExtendedStorageSizesEnabled != null ? this.isExtendedStorageSizesEnabled.hashCode() : 0);
result = 31 * result + (this.isPerformanceAdvisorEnabled != null ? this.isPerformanceAdvisorEnabled.hashCode() : 0);
result = 31 * result + (this.isRealtimePerformancePanelEnabled != null ? this.isRealtimePerformancePanelEnabled.hashCode() : 0);
result = 31 * result + (this.isSchemaAdvisorEnabled != null ? this.isSchemaAdvisorEnabled.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy