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

com.amazonaws.services.customerprofiles.model.ListCalculatedAttributeForProfileItem Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.customerprofiles.model;

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

/**
 * 

* The details of a single calculated attribute for a profile. *

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

* The unique name of the calculated attribute. *

*/ private String calculatedAttributeName; /** *

* The display name of the calculated attribute. *

*/ private String displayName; /** *

* Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is set to * true. *

*/ private String isDataPartial; /** *

* The value of the calculated attribute. *

*/ private String value; /** *

* The unique name of the calculated attribute. *

* * @param calculatedAttributeName * The unique name of the calculated attribute. */ public void setCalculatedAttributeName(String calculatedAttributeName) { this.calculatedAttributeName = calculatedAttributeName; } /** *

* The unique name of the calculated attribute. *

* * @return The unique name of the calculated attribute. */ public String getCalculatedAttributeName() { return this.calculatedAttributeName; } /** *

* The unique name of the calculated attribute. *

* * @param calculatedAttributeName * The unique name of the calculated attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCalculatedAttributeForProfileItem withCalculatedAttributeName(String calculatedAttributeName) { setCalculatedAttributeName(calculatedAttributeName); return this; } /** *

* The display name of the calculated attribute. *

* * @param displayName * The display name of the calculated attribute. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name of the calculated attribute. *

* * @return The display name of the calculated attribute. */ public String getDisplayName() { return this.displayName; } /** *

* The display name of the calculated attribute. *

* * @param displayName * The display name of the calculated attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCalculatedAttributeForProfileItem withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is set to * true. *

* * @param isDataPartial * Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is set * to true. */ public void setIsDataPartial(String isDataPartial) { this.isDataPartial = isDataPartial; } /** *

* Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is set to * true. *

* * @return Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is * set to true. */ public String getIsDataPartial() { return this.isDataPartial; } /** *

* Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is set to * true. *

* * @param isDataPartial * Indicates whether the calculated attribute’s value is based on partial data. If data is partial, it is set * to true. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCalculatedAttributeForProfileItem withIsDataPartial(String isDataPartial) { setIsDataPartial(isDataPartial); return this; } /** *

* The value of the calculated attribute. *

* * @param value * The value of the calculated attribute. */ public void setValue(String value) { this.value = value; } /** *

* The value of the calculated attribute. *

* * @return The value of the calculated attribute. */ public String getValue() { return this.value; } /** *

* The value of the calculated attribute. *

* * @param value * The value of the calculated attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCalculatedAttributeForProfileItem withValue(String value) { setValue(value); 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 (getCalculatedAttributeName() != null) sb.append("CalculatedAttributeName: ").append(getCalculatedAttributeName()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getIsDataPartial() != null) sb.append("IsDataPartial: ").append(getIsDataPartial()).append(","); if (getValue() != null) sb.append("Value: ").append(getValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListCalculatedAttributeForProfileItem == false) return false; ListCalculatedAttributeForProfileItem other = (ListCalculatedAttributeForProfileItem) obj; if (other.getCalculatedAttributeName() == null ^ this.getCalculatedAttributeName() == null) return false; if (other.getCalculatedAttributeName() != null && other.getCalculatedAttributeName().equals(this.getCalculatedAttributeName()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getIsDataPartial() == null ^ this.getIsDataPartial() == null) return false; if (other.getIsDataPartial() != null && other.getIsDataPartial().equals(this.getIsDataPartial()) == false) return false; if (other.getValue() == null ^ this.getValue() == null) return false; if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCalculatedAttributeName() == null) ? 0 : getCalculatedAttributeName().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getIsDataPartial() == null) ? 0 : getIsDataPartial().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); return hashCode; } @Override public ListCalculatedAttributeForProfileItem clone() { try { return (ListCalculatedAttributeForProfileItem) 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.customerprofiles.model.transform.ListCalculatedAttributeForProfileItemMarshaller.getInstance() .marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy