shiver.me.timbers.aws.sagemaker.NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.sagemaker;
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;
/**
* NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"Content"
})
public class NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content
*
*/
@JsonProperty("Content")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content")
private CharSequence content;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content
*
*/
@JsonIgnore
public CharSequence getContent() {
return content;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content
*
*/
@JsonIgnore
public void setContent(CharSequence content) {
this.content = content;
}
public NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook withContent(CharSequence content) {
this.content = content;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("content", content).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(content).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook) == false) {
return false;
}
NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook rhs = ((NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook) other);
return new EqualsBuilder().append(content, rhs.content).isEquals();
}
}