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

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

Go to download

The AWS Java SDK for Amazon DataZone module holds the client classes that are used for communicating with Amazon DataZone Service

The newest version!
/*
 * 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 a metadata form. *

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

* The content of the metadata form. *

*/ private String content; /** *

* The name of the metadata form. *

*/ private String formName; /** *

* The name of the metadata form type. *

*/ private String typeName; /** *

* The revision of the metadata form type. *

*/ private String typeRevision; /** *

* The content of the metadata form. *

* * @param content * The content of the metadata form. */ public void setContent(String content) { this.content = content; } /** *

* The content of the metadata form. *

* * @return The content of the metadata form. */ public String getContent() { return this.content; } /** *

* The content of the metadata form. *

* * @param content * The content of the metadata form. * @return Returns a reference to this object so that method calls can be chained together. */ public FormOutput withContent(String content) { setContent(content); return this; } /** *

* The name of the metadata form. *

* * @param formName * The name of the metadata form. */ public void setFormName(String formName) { this.formName = formName; } /** *

* The name of the metadata form. *

* * @return The name of the metadata form. */ public String getFormName() { return this.formName; } /** *

* The name of the metadata form. *

* * @param formName * The name of the metadata form. * @return Returns a reference to this object so that method calls can be chained together. */ public FormOutput withFormName(String formName) { setFormName(formName); return this; } /** *

* The name of the metadata form type. *

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

* The name of the metadata form type. *

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

* The name of the metadata form type. *

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

* The revision of the metadata form type. *

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

* The revision of the metadata form type. *

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

* The revision of the metadata form type. *

* * @param typeRevision * The revision of the metadata form type. * @return Returns a reference to this object so that method calls can be chained together. */ public FormOutput 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 (getContent() != null) sb.append("Content: ").append(getContent()).append(","); if (getFormName() != null) sb.append("FormName: ").append(getFormName()).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 FormOutput == false) return false; FormOutput other = (FormOutput) obj; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; if (other.getFormName() == null ^ this.getFormName() == null) return false; if (other.getFormName() != null && other.getFormName().equals(this.getFormName()) == 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 + ((getContent() == null) ? 0 : getContent().hashCode()); hashCode = prime * hashCode + ((getFormName() == null) ? 0 : getFormName().hashCode()); hashCode = prime * hashCode + ((getTypeName() == null) ? 0 : getTypeName().hashCode()); hashCode = prime * hashCode + ((getTypeRevision() == null) ? 0 : getTypeRevision().hashCode()); return hashCode; } @Override public FormOutput clone() { try { return (FormOutput) 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.FormOutputMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy