software.amazon.awscdk.services.sagemaker.CfnProjectProps Maven / Gradle / Ivy
Show all versions of sagemaker Show documentation
package software.amazon.awscdk.services.sagemaker;
/**
* Properties for defining a `CfnProject`.
*
* Example:
*
*
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.sagemaker.*;
* Object serviceCatalogProvisioningDetails;
* CfnProjectProps cfnProjectProps = CfnProjectProps.builder()
* .projectName("projectName")
* .serviceCatalogProvisioningDetails(serviceCatalogProvisioningDetails)
* // the properties below are optional
* .projectDescription("projectDescription")
* .tags(List.of(CfnTag.builder()
* .key("key")
* .value("value")
* .build()))
* .build();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.74.0 (build 6d08790)", date = "2023-05-19T23:09:22.831Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.sagemaker.$Module.class, fqn = "@aws-cdk/aws-sagemaker.CfnProjectProps")
@software.amazon.jsii.Jsii.Proxy(CfnProjectProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnProjectProps extends software.amazon.jsii.JsiiSerializable {
/**
* The name of the project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getProjectName();
/**
* The product ID and provisioning artifact ID to provision a service catalog.
*
* For information, see What is AWS Service Catalog .
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getServiceCatalogProvisioningDetails();
/**
* The description of the project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getProjectDescription() {
return null;
}
/**
* A list of key-value pairs to apply to this resource.
*
* For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getTags() {
return null;
}
/**
* @return a {@link Builder} of {@link CfnProjectProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnProjectProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String projectName;
java.lang.Object serviceCatalogProvisioningDetails;
java.lang.String projectDescription;
java.util.List tags;
/**
* Sets the value of {@link CfnProjectProps#getProjectName}
* @param projectName The name of the project. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder projectName(java.lang.String projectName) {
this.projectName = projectName;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getServiceCatalogProvisioningDetails}
* @param serviceCatalogProvisioningDetails The product ID and provisioning artifact ID to provision a service catalog. This parameter is required.
* For information, see What is AWS Service Catalog .
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder serviceCatalogProvisioningDetails(java.lang.Object serviceCatalogProvisioningDetails) {
this.serviceCatalogProvisioningDetails = serviceCatalogProvisioningDetails;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getProjectDescription}
* @param projectDescription The description of the project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder projectDescription(java.lang.String projectDescription) {
this.projectDescription = projectDescription;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getTags}
* @param tags A list of key-value pairs to apply to this resource.
* For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder tags(java.util.List extends software.amazon.awscdk.core.CfnTag> tags) {
this.tags = (java.util.List)tags;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnProjectProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CfnProjectProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link CfnProjectProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnProjectProps {
private final java.lang.String projectName;
private final java.lang.Object serviceCatalogProvisioningDetails;
private final java.lang.String projectDescription;
private final java.util.List tags;
/**
* 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.projectName = software.amazon.jsii.Kernel.get(this, "projectName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.serviceCatalogProvisioningDetails = software.amazon.jsii.Kernel.get(this, "serviceCatalogProvisioningDetails", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.projectDescription = software.amazon.jsii.Kernel.get(this, "projectDescription", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.CfnTag.class)));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.projectName = java.util.Objects.requireNonNull(builder.projectName, "projectName is required");
this.serviceCatalogProvisioningDetails = java.util.Objects.requireNonNull(builder.serviceCatalogProvisioningDetails, "serviceCatalogProvisioningDetails is required");
this.projectDescription = builder.projectDescription;
this.tags = (java.util.List)builder.tags;
}
@Override
public final java.lang.String getProjectName() {
return this.projectName;
}
@Override
public final java.lang.Object getServiceCatalogProvisioningDetails() {
return this.serviceCatalogProvisioningDetails;
}
@Override
public final java.lang.String getProjectDescription() {
return this.projectDescription;
}
@Override
public final java.util.List getTags() {
return this.tags;
}
@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("projectName", om.valueToTree(this.getProjectName()));
data.set("serviceCatalogProvisioningDetails", om.valueToTree(this.getServiceCatalogProvisioningDetails()));
if (this.getProjectDescription() != null) {
data.set("projectDescription", om.valueToTree(this.getProjectDescription()));
}
if (this.getTags() != null) {
data.set("tags", om.valueToTree(this.getTags()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@aws-cdk/aws-sagemaker.CfnProjectProps"));
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;
CfnProjectProps.Jsii$Proxy that = (CfnProjectProps.Jsii$Proxy) o;
if (!projectName.equals(that.projectName)) return false;
if (!serviceCatalogProvisioningDetails.equals(that.serviceCatalogProvisioningDetails)) return false;
if (this.projectDescription != null ? !this.projectDescription.equals(that.projectDescription) : that.projectDescription != null) return false;
return this.tags != null ? this.tags.equals(that.tags) : that.tags == null;
}
@Override
public final int hashCode() {
int result = this.projectName.hashCode();
result = 31 * result + (this.serviceCatalogProvisioningDetails.hashCode());
result = 31 * result + (this.projectDescription != null ? this.projectDescription.hashCode() : 0);
result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0);
return result;
}
}
}