io.github.cdklabs.cdk.data.zone.ProjectOptions Maven / Gradle / Ivy
Show all versions of cdk-data-zone Show documentation
package io.github.cdklabs.cdk.data.zone;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-12-05T19:37:12.607Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.data.zone.$Module.class, fqn = "cdk-data-zone.ProjectOptions")
@software.amazon.jsii.Jsii.Proxy(ProjectOptions.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ProjectOptions extends software.amazon.jsii.JsiiSerializable {
/**
* (experimental) The name of a project.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-project.html#cfn-datazone-project-name
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* (experimental) The description of a project.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-project.html#cfn-datazone-project-description
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getDescription() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.cdk.data.zone.Forms getForms() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.cdklabs.cdk.data.zone.Glossaries getGlossaries() {
return null;
}
/**
* (experimental) The glossary terms that can be used in this Amazon project.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-project.html#cfn-datazone-project-glossaryterms
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.util.List getGlossaryTerms() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.iam.Role getManagementRole() {
return null;
}
/**
* @return a {@link Builder} of {@link ProjectOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ProjectOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String name;
java.lang.String description;
io.github.cdklabs.cdk.data.zone.Forms forms;
io.github.cdklabs.cdk.data.zone.Glossaries glossaries;
java.util.List glossaryTerms;
software.amazon.awscdk.services.iam.Role managementRole;
/**
* Sets the value of {@link ProjectOptions#getName}
* @param name The name of a project. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link ProjectOptions#getDescription}
* @param description The description of a project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder description(java.lang.String description) {
this.description = description;
return this;
}
/**
* Sets the value of {@link ProjectOptions#getForms}
* @param forms the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder forms(io.github.cdklabs.cdk.data.zone.Forms forms) {
this.forms = forms;
return this;
}
/**
* Sets the value of {@link ProjectOptions#getGlossaries}
* @param glossaries the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder glossaries(io.github.cdklabs.cdk.data.zone.Glossaries glossaries) {
this.glossaries = glossaries;
return this;
}
/**
* Sets the value of {@link ProjectOptions#getGlossaryTerms}
* @param glossaryTerms The glossary terms that can be used in this Amazon project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder glossaryTerms(java.util.List glossaryTerms) {
this.glossaryTerms = glossaryTerms;
return this;
}
/**
* Sets the value of {@link ProjectOptions#getManagementRole}
* @param managementRole the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder managementRole(software.amazon.awscdk.services.iam.Role managementRole) {
this.managementRole = managementRole;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ProjectOptions}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public ProjectOptions build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link ProjectOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ProjectOptions {
private final java.lang.String name;
private final java.lang.String description;
private final io.github.cdklabs.cdk.data.zone.Forms forms;
private final io.github.cdklabs.cdk.data.zone.Glossaries glossaries;
private final java.util.List glossaryTerms;
private final software.amazon.awscdk.services.iam.Role managementRole;
/**
* 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.forms = software.amazon.jsii.Kernel.get(this, "forms", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.data.zone.Forms.class));
this.glossaries = software.amazon.jsii.Kernel.get(this, "glossaries", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.data.zone.Glossaries.class));
this.glossaryTerms = software.amazon.jsii.Kernel.get(this, "glossaryTerms", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.managementRole = software.amazon.jsii.Kernel.get(this, "managementRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.Role.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.name = java.util.Objects.requireNonNull(builder.name, "name is required");
this.description = builder.description;
this.forms = builder.forms;
this.glossaries = builder.glossaries;
this.glossaryTerms = builder.glossaryTerms;
this.managementRole = builder.managementRole;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.String getDescription() {
return this.description;
}
@Override
public final io.github.cdklabs.cdk.data.zone.Forms getForms() {
return this.forms;
}
@Override
public final io.github.cdklabs.cdk.data.zone.Glossaries getGlossaries() {
return this.glossaries;
}
@Override
public final java.util.List getGlossaryTerms() {
return this.glossaryTerms;
}
@Override
public final software.amazon.awscdk.services.iam.Role getManagementRole() {
return this.managementRole;
}
@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();
data.set("name", om.valueToTree(this.getName()));
if (this.getDescription() != null) {
data.set("description", om.valueToTree(this.getDescription()));
}
if (this.getForms() != null) {
data.set("forms", om.valueToTree(this.getForms()));
}
if (this.getGlossaries() != null) {
data.set("glossaries", om.valueToTree(this.getGlossaries()));
}
if (this.getGlossaryTerms() != null) {
data.set("glossaryTerms", om.valueToTree(this.getGlossaryTerms()));
}
if (this.getManagementRole() != null) {
data.set("managementRole", om.valueToTree(this.getManagementRole()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("cdk-data-zone.ProjectOptions"));
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;
ProjectOptions.Jsii$Proxy that = (ProjectOptions.Jsii$Proxy) o;
if (!name.equals(that.name)) return false;
if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false;
if (this.forms != null ? !this.forms.equals(that.forms) : that.forms != null) return false;
if (this.glossaries != null ? !this.glossaries.equals(that.glossaries) : that.glossaries != null) return false;
if (this.glossaryTerms != null ? !this.glossaryTerms.equals(that.glossaryTerms) : that.glossaryTerms != null) return false;
return this.managementRole != null ? this.managementRole.equals(that.managementRole) : that.managementRole == null;
}
@Override
public final int hashCode() {
int result = this.name.hashCode();
result = 31 * result + (this.description != null ? this.description.hashCode() : 0);
result = 31 * result + (this.forms != null ? this.forms.hashCode() : 0);
result = 31 * result + (this.glossaries != null ? this.glossaries.hashCode() : 0);
result = 31 * result + (this.glossaryTerms != null ? this.glossaryTerms.hashCode() : 0);
result = 31 * result + (this.managementRole != null ? this.managementRole.hashCode() : 0);
return result;
}
}
}