shiver.me.timbers.aws.sagemaker.NotebookInstance Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.sagemaker;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
import shiver.me.timbers.aws.Tag;
/**
* NotebookInstance
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"KmsKeyId",
"VolumeSizeInGB",
"AdditionalCodeRepositories",
"DefaultCodeRepository",
"DirectInternetAccess",
"AcceleratorTypes",
"SubnetId",
"SecurityGroupIds",
"RoleArn",
"RootAccess",
"NotebookInstanceName",
"InstanceType",
"LifecycleConfigName",
"Tags"
})
public class NotebookInstance {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-kmskeyid
*
*/
@JsonProperty("KmsKeyId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-kmskeyid")
private CharSequence kmsKeyId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-volumesizeingb
*
*/
@JsonProperty("VolumeSizeInGB")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-volumesizeingb")
private Number volumeSizeInGB;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-additionalcoderepositories
*
*/
@JsonProperty("AdditionalCodeRepositories")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-additionalcoderepositories")
private List additionalCodeRepositories = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-defaultcoderepository
*
*/
@JsonProperty("DefaultCodeRepository")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-defaultcoderepository")
private CharSequence defaultCodeRepository;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-directinternetaccess
*
*/
@JsonProperty("DirectInternetAccess")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-directinternetaccess")
private CharSequence directInternetAccess;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-acceleratortypes
*
*/
@JsonProperty("AcceleratorTypes")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-acceleratortypes")
private List acceleratorTypes = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-subnetid
*
*/
@JsonProperty("SubnetId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-subnetid")
private CharSequence subnetId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-securitygroupids
*
*/
@JsonProperty("SecurityGroupIds")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-securitygroupids")
private List securityGroupIds = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rolearn
*
*/
@JsonProperty("RoleArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rolearn")
private CharSequence roleArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rootaccess
*
*/
@JsonProperty("RootAccess")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rootaccess")
private CharSequence rootAccess;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-notebookinstancename
*
*/
@JsonProperty("NotebookInstanceName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-notebookinstancename")
private CharSequence notebookInstanceName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-instancetype
*
*/
@JsonProperty("InstanceType")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-instancetype")
private CharSequence instanceType;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-lifecycleconfigname
*
*/
@JsonProperty("LifecycleConfigName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-lifecycleconfigname")
private CharSequence lifecycleConfigName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-tags
*
*/
@JsonProperty("Tags")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-tags")
private List> tags = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-kmskeyid
*
*/
@JsonIgnore
public CharSequence getKmsKeyId() {
return kmsKeyId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-kmskeyid
*
*/
@JsonIgnore
public void setKmsKeyId(CharSequence kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
public NotebookInstance withKmsKeyId(CharSequence kmsKeyId) {
this.kmsKeyId = kmsKeyId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-volumesizeingb
*
*/
@JsonIgnore
public Number getVolumeSizeInGB() {
return volumeSizeInGB;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-volumesizeingb
*
*/
@JsonIgnore
public void setVolumeSizeInGB(Number volumeSizeInGB) {
this.volumeSizeInGB = volumeSizeInGB;
}
public NotebookInstance withVolumeSizeInGB(Number volumeSizeInGB) {
this.volumeSizeInGB = volumeSizeInGB;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-additionalcoderepositories
*
*/
@JsonIgnore
public List getAdditionalCodeRepositories() {
return additionalCodeRepositories;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-additionalcoderepositories
*
*/
@JsonIgnore
public void setAdditionalCodeRepositories(List additionalCodeRepositories) {
this.additionalCodeRepositories = additionalCodeRepositories;
}
public NotebookInstance withAdditionalCodeRepositories(List additionalCodeRepositories) {
this.additionalCodeRepositories = additionalCodeRepositories;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-defaultcoderepository
*
*/
@JsonIgnore
public CharSequence getDefaultCodeRepository() {
return defaultCodeRepository;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-defaultcoderepository
*
*/
@JsonIgnore
public void setDefaultCodeRepository(CharSequence defaultCodeRepository) {
this.defaultCodeRepository = defaultCodeRepository;
}
public NotebookInstance withDefaultCodeRepository(CharSequence defaultCodeRepository) {
this.defaultCodeRepository = defaultCodeRepository;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-directinternetaccess
*
*/
@JsonIgnore
public CharSequence getDirectInternetAccess() {
return directInternetAccess;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-directinternetaccess
*
*/
@JsonIgnore
public void setDirectInternetAccess(CharSequence directInternetAccess) {
this.directInternetAccess = directInternetAccess;
}
public NotebookInstance withDirectInternetAccess(CharSequence directInternetAccess) {
this.directInternetAccess = directInternetAccess;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-acceleratortypes
*
*/
@JsonIgnore
public List getAcceleratorTypes() {
return acceleratorTypes;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-acceleratortypes
*
*/
@JsonIgnore
public void setAcceleratorTypes(List acceleratorTypes) {
this.acceleratorTypes = acceleratorTypes;
}
public NotebookInstance withAcceleratorTypes(List acceleratorTypes) {
this.acceleratorTypes = acceleratorTypes;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-subnetid
*
*/
@JsonIgnore
public CharSequence getSubnetId() {
return subnetId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-subnetid
*
*/
@JsonIgnore
public void setSubnetId(CharSequence subnetId) {
this.subnetId = subnetId;
}
public NotebookInstance withSubnetId(CharSequence subnetId) {
this.subnetId = subnetId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-securitygroupids
*
*/
@JsonIgnore
public List getSecurityGroupIds() {
return securityGroupIds;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-securitygroupids
*
*/
@JsonIgnore
public void setSecurityGroupIds(List securityGroupIds) {
this.securityGroupIds = securityGroupIds;
}
public NotebookInstance withSecurityGroupIds(List securityGroupIds) {
this.securityGroupIds = securityGroupIds;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rolearn
*
*/
@JsonIgnore
public CharSequence getRoleArn() {
return roleArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rolearn
*
*/
@JsonIgnore
public void setRoleArn(CharSequence roleArn) {
this.roleArn = roleArn;
}
public NotebookInstance withRoleArn(CharSequence roleArn) {
this.roleArn = roleArn;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rootaccess
*
*/
@JsonIgnore
public CharSequence getRootAccess() {
return rootAccess;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-rootaccess
*
*/
@JsonIgnore
public void setRootAccess(CharSequence rootAccess) {
this.rootAccess = rootAccess;
}
public NotebookInstance withRootAccess(CharSequence rootAccess) {
this.rootAccess = rootAccess;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-notebookinstancename
*
*/
@JsonIgnore
public CharSequence getNotebookInstanceName() {
return notebookInstanceName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-notebookinstancename
*
*/
@JsonIgnore
public void setNotebookInstanceName(CharSequence notebookInstanceName) {
this.notebookInstanceName = notebookInstanceName;
}
public NotebookInstance withNotebookInstanceName(CharSequence notebookInstanceName) {
this.notebookInstanceName = notebookInstanceName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-instancetype
*
*/
@JsonIgnore
public CharSequence getInstanceType() {
return instanceType;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-instancetype
*
*/
@JsonIgnore
public void setInstanceType(CharSequence instanceType) {
this.instanceType = instanceType;
}
public NotebookInstance withInstanceType(CharSequence instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-lifecycleconfigname
*
*/
@JsonIgnore
public CharSequence getLifecycleConfigName() {
return lifecycleConfigName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-lifecycleconfigname
*
*/
@JsonIgnore
public void setLifecycleConfigName(CharSequence lifecycleConfigName) {
this.lifecycleConfigName = lifecycleConfigName;
}
public NotebookInstance withLifecycleConfigName(CharSequence lifecycleConfigName) {
this.lifecycleConfigName = lifecycleConfigName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-tags
*
*/
@JsonIgnore
public List> getTags() {
return tags;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-notebookinstance.html#cfn-sagemaker-notebookinstance-tags
*
*/
@JsonIgnore
public void setTags(List> tags) {
this.tags = tags;
}
public NotebookInstance withTags(List> tags) {
this.tags = tags;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("kmsKeyId", kmsKeyId).append("volumeSizeInGB", volumeSizeInGB).append("additionalCodeRepositories", additionalCodeRepositories).append("defaultCodeRepository", defaultCodeRepository).append("directInternetAccess", directInternetAccess).append("acceleratorTypes", acceleratorTypes).append("subnetId", subnetId).append("securityGroupIds", securityGroupIds).append("roleArn", roleArn).append("rootAccess", rootAccess).append("notebookInstanceName", notebookInstanceName).append("instanceType", instanceType).append("lifecycleConfigName", lifecycleConfigName).append("tags", tags).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(subnetId).append(lifecycleConfigName).append(additionalCodeRepositories).append(volumeSizeInGB).append(rootAccess).append(instanceType).append(directInternetAccess).append(acceleratorTypes).append(tags).append(defaultCodeRepository).append(securityGroupIds).append(roleArn).append(notebookInstanceName).append(kmsKeyId).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof NotebookInstance) == false) {
return false;
}
NotebookInstance rhs = ((NotebookInstance) other);
return new EqualsBuilder().append(subnetId, rhs.subnetId).append(lifecycleConfigName, rhs.lifecycleConfigName).append(additionalCodeRepositories, rhs.additionalCodeRepositories).append(volumeSizeInGB, rhs.volumeSizeInGB).append(rootAccess, rhs.rootAccess).append(instanceType, rhs.instanceType).append(directInternetAccess, rhs.directInternetAccess).append(acceleratorTypes, rhs.acceleratorTypes).append(tags, rhs.tags).append(defaultCodeRepository, rhs.defaultCodeRepository).append(securityGroupIds, rhs.securityGroupIds).append(roleArn, rhs.roleArn).append(notebookInstanceName, rhs.notebookInstanceName).append(kmsKeyId, rhs.kmsKeyId).isEquals();
}
}