io.github.cdklabs.cdk.data.zone.EnvironmentProfileProps 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.578Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.data.zone.$Module.class, fqn = "cdk-data-zone.EnvironmentProfileProps")
@software.amazon.jsii.Jsii.Proxy(EnvironmentProfileProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface EnvironmentProfileProps extends software.amazon.jsii.JsiiSerializable {
/**
* (experimental) The identifier of a blueprint with which an environment profile is created.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentprofile.html#cfn-datazone-environmentprofile-environmentblueprintidentifier
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.data.zone.IBlueprint getBlueprint();
/**
* (experimental) The name of the environment profile.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentprofile.html#cfn-datazone-environmentprofile-name
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* (experimental) The identifier of a project in which an environment profile exists.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentprofile.html#cfn-datazone-environmentprofile-projectidentifier
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.data.zone.IProject getProject();
/**
* (experimental) The identifier of an AWS account in which an environment profile exists.
*
* Default: the Domain account
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getAwsAccountId() {
return null;
}
/**
* (experimental) The AWS Region in which an environment profile exists.
*
* Default: the Domain region
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getAwsAccountRegion() {
return null;
}
/**
* (experimental) The description of the environment profile.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentprofile.html#cfn-datazone-environmentprofile-description
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getDescription() {
return null;
}
/**
* (experimental) The user parameters of this Amazon environment profile.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-environmentprofile.html#cfn-datazone-environmentprofile-userparameters
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Object getUserParameters() {
return null;
}
/**
* @return a {@link Builder} of {@link EnvironmentProfileProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link EnvironmentProfileProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
io.github.cdklabs.cdk.data.zone.IBlueprint blueprint;
java.lang.String name;
io.github.cdklabs.cdk.data.zone.IProject project;
java.lang.String awsAccountId;
java.lang.String awsAccountRegion;
java.lang.String description;
java.lang.Object userParameters;
/**
* Sets the value of {@link EnvironmentProfileProps#getBlueprint}
* @param blueprint The identifier of a blueprint with which an environment profile is created. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder blueprint(io.github.cdklabs.cdk.data.zone.IBlueprint blueprint) {
this.blueprint = blueprint;
return this;
}
/**
* Sets the value of {@link EnvironmentProfileProps#getName}
* @param name The name of the environment profile. 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 EnvironmentProfileProps#getProject}
* @param project The identifier of a project in which an environment profile exists. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder project(io.github.cdklabs.cdk.data.zone.IProject project) {
this.project = project;
return this;
}
/**
* Sets the value of {@link EnvironmentProfileProps#getAwsAccountId}
* @param awsAccountId The identifier of an AWS account in which an environment profile exists.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder awsAccountId(java.lang.String awsAccountId) {
this.awsAccountId = awsAccountId;
return this;
}
/**
* Sets the value of {@link EnvironmentProfileProps#getAwsAccountRegion}
* @param awsAccountRegion The AWS Region in which an environment profile exists.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder awsAccountRegion(java.lang.String awsAccountRegion) {
this.awsAccountRegion = awsAccountRegion;
return this;
}
/**
* Sets the value of {@link EnvironmentProfileProps#getDescription}
* @param description The description of the environment profile.
* @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 EnvironmentProfileProps#getUserParameters}
* @param userParameters The user parameters of this Amazon environment profile.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder userParameters(software.amazon.awscdk.IResolvable userParameters) {
this.userParameters = userParameters;
return this;
}
/**
* Sets the value of {@link EnvironmentProfileProps#getUserParameters}
* @param userParameters The user parameters of this Amazon environment profile.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder userParameters(java.util.List extends java.lang.Object> userParameters) {
this.userParameters = userParameters;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link EnvironmentProfileProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public EnvironmentProfileProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link EnvironmentProfileProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EnvironmentProfileProps {
private final io.github.cdklabs.cdk.data.zone.IBlueprint blueprint;
private final java.lang.String name;
private final io.github.cdklabs.cdk.data.zone.IProject project;
private final java.lang.String awsAccountId;
private final java.lang.String awsAccountRegion;
private final java.lang.String description;
private final java.lang.Object userParameters;
/**
* 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.blueprint = software.amazon.jsii.Kernel.get(this, "blueprint", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.data.zone.IBlueprint.class));
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.project = software.amazon.jsii.Kernel.get(this, "project", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.data.zone.IProject.class));
this.awsAccountId = software.amazon.jsii.Kernel.get(this, "awsAccountId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.awsAccountRegion = software.amazon.jsii.Kernel.get(this, "awsAccountRegion", 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.userParameters = software.amazon.jsii.Kernel.get(this, "userParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.blueprint = java.util.Objects.requireNonNull(builder.blueprint, "blueprint is required");
this.name = java.util.Objects.requireNonNull(builder.name, "name is required");
this.project = java.util.Objects.requireNonNull(builder.project, "project is required");
this.awsAccountId = builder.awsAccountId;
this.awsAccountRegion = builder.awsAccountRegion;
this.description = builder.description;
this.userParameters = builder.userParameters;
}
@Override
public final io.github.cdklabs.cdk.data.zone.IBlueprint getBlueprint() {
return this.blueprint;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final io.github.cdklabs.cdk.data.zone.IProject getProject() {
return this.project;
}
@Override
public final java.lang.String getAwsAccountId() {
return this.awsAccountId;
}
@Override
public final java.lang.String getAwsAccountRegion() {
return this.awsAccountRegion;
}
@Override
public final java.lang.String getDescription() {
return this.description;
}
@Override
public final java.lang.Object getUserParameters() {
return this.userParameters;
}
@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("blueprint", om.valueToTree(this.getBlueprint()));
data.set("name", om.valueToTree(this.getName()));
data.set("project", om.valueToTree(this.getProject()));
if (this.getAwsAccountId() != null) {
data.set("awsAccountId", om.valueToTree(this.getAwsAccountId()));
}
if (this.getAwsAccountRegion() != null) {
data.set("awsAccountRegion", om.valueToTree(this.getAwsAccountRegion()));
}
if (this.getDescription() != null) {
data.set("description", om.valueToTree(this.getDescription()));
}
if (this.getUserParameters() != null) {
data.set("userParameters", om.valueToTree(this.getUserParameters()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("cdk-data-zone.EnvironmentProfileProps"));
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;
EnvironmentProfileProps.Jsii$Proxy that = (EnvironmentProfileProps.Jsii$Proxy) o;
if (!blueprint.equals(that.blueprint)) return false;
if (!name.equals(that.name)) return false;
if (!project.equals(that.project)) return false;
if (this.awsAccountId != null ? !this.awsAccountId.equals(that.awsAccountId) : that.awsAccountId != null) return false;
if (this.awsAccountRegion != null ? !this.awsAccountRegion.equals(that.awsAccountRegion) : that.awsAccountRegion != null) return false;
if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false;
return this.userParameters != null ? this.userParameters.equals(that.userParameters) : that.userParameters == null;
}
@Override
public final int hashCode() {
int result = this.blueprint.hashCode();
result = 31 * result + (this.name.hashCode());
result = 31 * result + (this.project.hashCode());
result = 31 * result + (this.awsAccountId != null ? this.awsAccountId.hashCode() : 0);
result = 31 * result + (this.awsAccountRegion != null ? this.awsAccountRegion.hashCode() : 0);
result = 31 * result + (this.description != null ? this.description.hashCode() : 0);
result = 31 * result + (this.userParameters != null ? this.userParameters.hashCode() : 0);
return result;
}
}
}