/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.nimblestudio.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents a EULA resource. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Eula implements Serializable, Cloneable, StructuredPojo { /** ** The EULA content. *
*/ private String content; /** ** The ISO timestamp in seconds for when the resource was created. *
*/ private java.util.Date createdAt; /** ** The EULA ID. *
*/ private String eulaId; /** ** The name for the EULA. *
*/ private String name; /** ** The ISO timestamp in seconds for when the resource was updated. *
*/ private java.util.Date updatedAt; /** ** The EULA content. *
* * @param content * The EULA content. */ public void setContent(String content) { this.content = content; } /** ** The EULA content. *
* * @return The EULA content. */ public String getContent() { return this.content; } /** ** The EULA content. *
* * @param content * The EULA content. * @return Returns a reference to this object so that method calls can be chained together. */ public Eula withContent(String content) { setContent(content); return this; } /** ** The ISO timestamp in seconds for when the resource was created. *
* * @param createdAt * The ISO timestamp in seconds for when the resource was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The ISO timestamp in seconds for when the resource was created. *
* * @return The ISO timestamp in seconds for when the resource was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The ISO timestamp in seconds for when the resource was created. *
* * @param createdAt * The ISO timestamp in seconds for when the resource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Eula withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The EULA ID. *
* * @param eulaId * The EULA ID. */ public void setEulaId(String eulaId) { this.eulaId = eulaId; } /** ** The EULA ID. *
* * @return The EULA ID. */ public String getEulaId() { return this.eulaId; } /** ** The EULA ID. *
* * @param eulaId * The EULA ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Eula withEulaId(String eulaId) { setEulaId(eulaId); return this; } /** ** The name for the EULA. *
* * @param name * The name for the EULA. */ public void setName(String name) { this.name = name; } /** ** The name for the EULA. *
* * @return The name for the EULA. */ public String getName() { return this.name; } /** ** The name for the EULA. *
* * @param name * The name for the EULA. * @return Returns a reference to this object so that method calls can be chained together. */ public Eula withName(String name) { setName(name); return this; } /** ** The ISO timestamp in seconds for when the resource was updated. *
* * @param updatedAt * The ISO timestamp in seconds for when the resource was updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** ** The ISO timestamp in seconds for when the resource was updated. *
* * @return The ISO timestamp in seconds for when the resource was updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** ** The ISO timestamp in seconds for when the resource was updated. *
* * @param updatedAt * The ISO timestamp in seconds for when the resource was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Eula withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContent() != null) sb.append("Content: ").append(getContent()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getEulaId() != null) sb.append("EulaId: ").append(getEulaId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Eula == false) return false; Eula other = (Eula) obj; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getEulaId() == null ^ this.getEulaId() == null) return false; if (other.getEulaId() != null && other.getEulaId().equals(this.getEulaId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getEulaId() == null) ? 0 : getEulaId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public Eula clone() { try { return (Eula) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.nimblestudio.model.transform.EulaMarshaller.getInstance().marshall(this, protocolMarshaller); } }