![JAR search and dependency download from the Maven repository](/logo.png)
io.github.cdklabs.cdkawssagemakerrolemanager.AccessAwsServicesOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-aws-sagemaker-role-manager Show documentation
Show all versions of cdk-aws-sagemaker-role-manager Show documentation
Create roles and policies for ML Activities and ML Personas
package io.github.cdklabs.cdkawssagemakerrolemanager;
/**
* (experimental) SageMaker Activity Static Function Options.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-20T00:20:25.925Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkawssagemakerrolemanager.$Module.class, fqn = "@cdklabs/cdk-aws-sagemaker-role-manager.AccessAwsServicesOptions")
@software.amazon.jsii.Jsii.Proxy(AccessAwsServicesOptions.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface AccessAwsServicesOptions extends software.amazon.jsii.JsiiSerializable, io.github.cdklabs.cdkawssagemakerrolemanager.VPCOptions, io.github.cdklabs.cdkawssagemakerrolemanager.KMSOptions {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.util.List getEcrRepositories();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.util.List getS3Buckets();
/**
* @return a {@link Builder} of {@link AccessAwsServicesOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link AccessAwsServicesOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.List ecrRepositories;
java.util.List s3Buckets;
java.util.List securityGroups;
java.util.List subnets;
java.util.List dataKeys;
java.util.List volumeKeys;
/**
* Sets the value of {@link AccessAwsServicesOptions#getEcrRepositories}
* @param ecrRepositories the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder ecrRepositories(java.util.List extends software.amazon.awscdk.services.ecr.IRepository> ecrRepositories) {
this.ecrRepositories = (java.util.List)ecrRepositories;
return this;
}
/**
* Sets the value of {@link AccessAwsServicesOptions#getS3Buckets}
* @param s3Buckets the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder s3Buckets(java.util.List extends software.amazon.awscdk.services.s3.IBucket> s3Buckets) {
this.s3Buckets = (java.util.List)s3Buckets;
return this;
}
/**
* Sets the value of {@link AccessAwsServicesOptions#getSecurityGroups}
* @param securityGroups the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder securityGroups(java.util.List extends software.amazon.awscdk.services.ec2.ISecurityGroup> securityGroups) {
this.securityGroups = (java.util.List)securityGroups;
return this;
}
/**
* Sets the value of {@link AccessAwsServicesOptions#getSubnets}
* @param subnets the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder subnets(java.util.List extends software.amazon.awscdk.services.ec2.ISubnet> subnets) {
this.subnets = (java.util.List)subnets;
return this;
}
/**
* Sets the value of {@link AccessAwsServicesOptions#getDataKeys}
* @param dataKeys the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder dataKeys(java.util.List extends software.amazon.awscdk.services.kms.IKey> dataKeys) {
this.dataKeys = (java.util.List)dataKeys;
return this;
}
/**
* Sets the value of {@link AccessAwsServicesOptions#getVolumeKeys}
* @param volumeKeys the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder volumeKeys(java.util.List extends software.amazon.awscdk.services.kms.IKey> volumeKeys) {
this.volumeKeys = (java.util.List)volumeKeys;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link AccessAwsServicesOptions}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public AccessAwsServicesOptions build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link AccessAwsServicesOptions}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AccessAwsServicesOptions {
private final java.util.List ecrRepositories;
private final java.util.List s3Buckets;
private final java.util.List securityGroups;
private final java.util.List subnets;
private final java.util.List dataKeys;
private final java.util.List volumeKeys;
/**
* 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.ecrRepositories = software.amazon.jsii.Kernel.get(this, "ecrRepositories", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecr.IRepository.class)));
this.s3Buckets = software.amazon.jsii.Kernel.get(this, "s3Buckets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class)));
this.securityGroups = software.amazon.jsii.Kernel.get(this, "securityGroups", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class)));
this.subnets = software.amazon.jsii.Kernel.get(this, "subnets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.class)));
this.dataKeys = software.amazon.jsii.Kernel.get(this, "dataKeys", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kms.IKey.class)));
this.volumeKeys = software.amazon.jsii.Kernel.get(this, "volumeKeys", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kms.IKey.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.ecrRepositories = (java.util.List)java.util.Objects.requireNonNull(builder.ecrRepositories, "ecrRepositories is required");
this.s3Buckets = (java.util.List)java.util.Objects.requireNonNull(builder.s3Buckets, "s3Buckets is required");
this.securityGroups = (java.util.List)builder.securityGroups;
this.subnets = (java.util.List)builder.subnets;
this.dataKeys = (java.util.List)builder.dataKeys;
this.volumeKeys = (java.util.List)builder.volumeKeys;
}
@Override
public final java.util.List getEcrRepositories() {
return this.ecrRepositories;
}
@Override
public final java.util.List getS3Buckets() {
return this.s3Buckets;
}
@Override
public final java.util.List getSecurityGroups() {
return this.securityGroups;
}
@Override
public final java.util.List getSubnets() {
return this.subnets;
}
@Override
public final java.util.List getDataKeys() {
return this.dataKeys;
}
@Override
public final java.util.List getVolumeKeys() {
return this.volumeKeys;
}
@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("ecrRepositories", om.valueToTree(this.getEcrRepositories()));
data.set("s3Buckets", om.valueToTree(this.getS3Buckets()));
if (this.getSecurityGroups() != null) {
data.set("securityGroups", om.valueToTree(this.getSecurityGroups()));
}
if (this.getSubnets() != null) {
data.set("subnets", om.valueToTree(this.getSubnets()));
}
if (this.getDataKeys() != null) {
data.set("dataKeys", om.valueToTree(this.getDataKeys()));
}
if (this.getVolumeKeys() != null) {
data.set("volumeKeys", om.valueToTree(this.getVolumeKeys()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdklabs/cdk-aws-sagemaker-role-manager.AccessAwsServicesOptions"));
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;
AccessAwsServicesOptions.Jsii$Proxy that = (AccessAwsServicesOptions.Jsii$Proxy) o;
if (!ecrRepositories.equals(that.ecrRepositories)) return false;
if (!s3Buckets.equals(that.s3Buckets)) return false;
if (this.securityGroups != null ? !this.securityGroups.equals(that.securityGroups) : that.securityGroups != null) return false;
if (this.subnets != null ? !this.subnets.equals(that.subnets) : that.subnets != null) return false;
if (this.dataKeys != null ? !this.dataKeys.equals(that.dataKeys) : that.dataKeys != null) return false;
return this.volumeKeys != null ? this.volumeKeys.equals(that.volumeKeys) : that.volumeKeys == null;
}
@Override
public final int hashCode() {
int result = this.ecrRepositories.hashCode();
result = 31 * result + (this.s3Buckets.hashCode());
result = 31 * result + (this.securityGroups != null ? this.securityGroups.hashCode() : 0);
result = 31 * result + (this.subnets != null ? this.subnets.hashCode() : 0);
result = 31 * result + (this.dataKeys != null ? this.dataKeys.hashCode() : 0);
result = 31 * result + (this.volumeKeys != null ? this.volumeKeys.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy