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

com.amazonaws.services.amplifyuibuilder.model.FormBindingElement Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Amplify UI Builder module holds the client classes that are used for communicating with AWS Amplify UI Builder Service

There is a newer version: 1.12.772
Show 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.amplifyuibuilder.model;

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

/**
 * 

* Describes how to bind a component property to form data. *

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

* The name of the component to retrieve a value from. *

*/ private String element; /** *

* The property to retrieve a value from. *

*/ private String property; /** *

* The name of the component to retrieve a value from. *

* * @param element * The name of the component to retrieve a value from. */ public void setElement(String element) { this.element = element; } /** *

* The name of the component to retrieve a value from. *

* * @return The name of the component to retrieve a value from. */ public String getElement() { return this.element; } /** *

* The name of the component to retrieve a value from. *

* * @param element * The name of the component to retrieve a value from. * @return Returns a reference to this object so that method calls can be chained together. */ public FormBindingElement withElement(String element) { setElement(element); return this; } /** *

* The property to retrieve a value from. *

* * @param property * The property to retrieve a value from. */ public void setProperty(String property) { this.property = property; } /** *

* The property to retrieve a value from. *

* * @return The property to retrieve a value from. */ public String getProperty() { return this.property; } /** *

* The property to retrieve a value from. *

* * @param property * The property to retrieve a value from. * @return Returns a reference to this object so that method calls can be chained together. */ public FormBindingElement withProperty(String property) { setProperty(property); 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 (getElement() != null) sb.append("Element: ").append(getElement()).append(","); if (getProperty() != null) sb.append("Property: ").append(getProperty()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FormBindingElement == false) return false; FormBindingElement other = (FormBindingElement) obj; if (other.getElement() == null ^ this.getElement() == null) return false; if (other.getElement() != null && other.getElement().equals(this.getElement()) == false) return false; if (other.getProperty() == null ^ this.getProperty() == null) return false; if (other.getProperty() != null && other.getProperty().equals(this.getProperty()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getElement() == null) ? 0 : getElement().hashCode()); hashCode = prime * hashCode + ((getProperty() == null) ? 0 : getProperty().hashCode()); return hashCode; } @Override public FormBindingElement clone() { try { return (FormBindingElement) 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.amplifyuibuilder.model.transform.FormBindingElementMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy