All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datazone.model.FormEntryOutput Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.datazone.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The details of the form entry. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FormEntryOutput implements Serializable, Cloneable, StructuredPojo { /** *

* Specifies whether a form entry is required. *

*/ private Boolean required; /** *

* The name of the type of the form entry. *

*/ private String typeName; /** *

* The type revision of the form entry. *

*/ private String typeRevision; /** *

* Specifies whether a form entry is required. *

* * @param required * Specifies whether a form entry is required. */ public void setRequired(Boolean required) { this.required = required; } /** *

* Specifies whether a form entry is required. *

* * @return Specifies whether a form entry is required. */ public Boolean getRequired() { return this.required; } /** *

* Specifies whether a form entry is required. *

* * @param required * Specifies whether a form entry is required. * @return Returns a reference to this object so that method calls can be chained together. */ public FormEntryOutput withRequired(Boolean required) { setRequired(required); return this; } /** *

* Specifies whether a form entry is required. *

* * @return Specifies whether a form entry is required. */ public Boolean isRequired() { return this.required; } /** *

* The name of the type of the form entry. *

* * @param typeName * The name of the type of the form entry. */ public void setTypeName(String typeName) { this.typeName = typeName; } /** *

* The name of the type of the form entry. *

* * @return The name of the type of the form entry. */ public String getTypeName() { return this.typeName; } /** *

* The name of the type of the form entry. *

* * @param typeName * The name of the type of the form entry. * @return Returns a reference to this object so that method calls can be chained together. */ public FormEntryOutput withTypeName(String typeName) { setTypeName(typeName); return this; } /** *

* The type revision of the form entry. *

* * @param typeRevision * The type revision of the form entry. */ public void setTypeRevision(String typeRevision) { this.typeRevision = typeRevision; } /** *

* The type revision of the form entry. *

* * @return The type revision of the form entry. */ public String getTypeRevision() { return this.typeRevision; } /** *

* The type revision of the form entry. *

* * @param typeRevision * The type revision of the form entry. * @return Returns a reference to this object so that method calls can be chained together. */ public FormEntryOutput withTypeRevision(String typeRevision) { setTypeRevision(typeRevision); 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 (getRequired() != null) sb.append("Required: ").append(getRequired()).append(","); if (getTypeName() != null) sb.append("TypeName: ").append("***Sensitive Data Redacted***").append(","); if (getTypeRevision() != null) sb.append("TypeRevision: ").append(getTypeRevision()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FormEntryOutput == false) return false; FormEntryOutput other = (FormEntryOutput) obj; if (other.getRequired() == null ^ this.getRequired() == null) return false; if (other.getRequired() != null && other.getRequired().equals(this.getRequired()) == false) return false; if (other.getTypeName() == null ^ this.getTypeName() == null) return false; if (other.getTypeName() != null && other.getTypeName().equals(this.getTypeName()) == false) return false; if (other.getTypeRevision() == null ^ this.getTypeRevision() == null) return false; if (other.getTypeRevision() != null && other.getTypeRevision().equals(this.getTypeRevision()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRequired() == null) ? 0 : getRequired().hashCode()); hashCode = prime * hashCode + ((getTypeName() == null) ? 0 : getTypeName().hashCode()); hashCode = prime * hashCode + ((getTypeRevision() == null) ? 0 : getTypeRevision().hashCode()); return hashCode; } @Override public FormEntryOutput clone() { try { return (FormEntryOutput) 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.datazone.model.transform.FormEntryOutputMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy