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

com.amazonaws.services.connectcases.model.AuditEventFieldValueUnion Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Connect Cases module holds the client classes that are used for communicating with Amazon Connect Cases 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.connectcases.model;

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

/**
 * 

* Object to store union of Field values. *

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

* Can be either null, or have a Boolean value type. Only one value can be provided. *

*/ private Boolean booleanValue; /** *

* Can be either null, or have a Double value type. Only one value can be provided. *

*/ private Double doubleValue; private EmptyFieldValue emptyValue; /** *

* Can be either null, or have a String value type. Only one value can be provided. *

*/ private String stringValue; /** *

* Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. *

*/ private String userArnValue; /** *

* Can be either null, or have a Boolean value type. Only one value can be provided. *

* * @param booleanValue * Can be either null, or have a Boolean value type. Only one value can be provided. */ public void setBooleanValue(Boolean booleanValue) { this.booleanValue = booleanValue; } /** *

* Can be either null, or have a Boolean value type. Only one value can be provided. *

* * @return Can be either null, or have a Boolean value type. Only one value can be provided. */ public Boolean getBooleanValue() { return this.booleanValue; } /** *

* Can be either null, or have a Boolean value type. Only one value can be provided. *

* * @param booleanValue * Can be either null, or have a Boolean value type. Only one value can be provided. * @return Returns a reference to this object so that method calls can be chained together. */ public AuditEventFieldValueUnion withBooleanValue(Boolean booleanValue) { setBooleanValue(booleanValue); return this; } /** *

* Can be either null, or have a Boolean value type. Only one value can be provided. *

* * @return Can be either null, or have a Boolean value type. Only one value can be provided. */ public Boolean isBooleanValue() { return this.booleanValue; } /** *

* Can be either null, or have a Double value type. Only one value can be provided. *

* * @param doubleValue * Can be either null, or have a Double value type. Only one value can be provided. */ public void setDoubleValue(Double doubleValue) { this.doubleValue = doubleValue; } /** *

* Can be either null, or have a Double value type. Only one value can be provided. *

* * @return Can be either null, or have a Double value type. Only one value can be provided. */ public Double getDoubleValue() { return this.doubleValue; } /** *

* Can be either null, or have a Double value type. Only one value can be provided. *

* * @param doubleValue * Can be either null, or have a Double value type. Only one value can be provided. * @return Returns a reference to this object so that method calls can be chained together. */ public AuditEventFieldValueUnion withDoubleValue(Double doubleValue) { setDoubleValue(doubleValue); return this; } /** * @param emptyValue */ public void setEmptyValue(EmptyFieldValue emptyValue) { this.emptyValue = emptyValue; } /** * @return */ public EmptyFieldValue getEmptyValue() { return this.emptyValue; } /** * @param emptyValue * @return Returns a reference to this object so that method calls can be chained together. */ public AuditEventFieldValueUnion withEmptyValue(EmptyFieldValue emptyValue) { setEmptyValue(emptyValue); return this; } /** *

* Can be either null, or have a String value type. Only one value can be provided. *

* * @param stringValue * Can be either null, or have a String value type. Only one value can be provided. */ public void setStringValue(String stringValue) { this.stringValue = stringValue; } /** *

* Can be either null, or have a String value type. Only one value can be provided. *

* * @return Can be either null, or have a String value type. Only one value can be provided. */ public String getStringValue() { return this.stringValue; } /** *

* Can be either null, or have a String value type. Only one value can be provided. *

* * @param stringValue * Can be either null, or have a String value type. Only one value can be provided. * @return Returns a reference to this object so that method calls can be chained together. */ public AuditEventFieldValueUnion withStringValue(String stringValue) { setStringValue(stringValue); return this; } /** *

* Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. *

* * @param userArnValue * Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. */ public void setUserArnValue(String userArnValue) { this.userArnValue = userArnValue; } /** *

* Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. *

* * @return Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. */ public String getUserArnValue() { return this.userArnValue; } /** *

* Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. *

* * @param userArnValue * Can be either null, or have a String value type formatted as an ARN. Only one value can be provided. * @return Returns a reference to this object so that method calls can be chained together. */ public AuditEventFieldValueUnion withUserArnValue(String userArnValue) { setUserArnValue(userArnValue); 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 (getBooleanValue() != null) sb.append("BooleanValue: ").append(getBooleanValue()).append(","); if (getDoubleValue() != null) sb.append("DoubleValue: ").append(getDoubleValue()).append(","); if (getEmptyValue() != null) sb.append("EmptyValue: ").append(getEmptyValue()).append(","); if (getStringValue() != null) sb.append("StringValue: ").append(getStringValue()).append(","); if (getUserArnValue() != null) sb.append("UserArnValue: ").append(getUserArnValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AuditEventFieldValueUnion == false) return false; AuditEventFieldValueUnion other = (AuditEventFieldValueUnion) obj; if (other.getBooleanValue() == null ^ this.getBooleanValue() == null) return false; if (other.getBooleanValue() != null && other.getBooleanValue().equals(this.getBooleanValue()) == false) return false; if (other.getDoubleValue() == null ^ this.getDoubleValue() == null) return false; if (other.getDoubleValue() != null && other.getDoubleValue().equals(this.getDoubleValue()) == false) return false; if (other.getEmptyValue() == null ^ this.getEmptyValue() == null) return false; if (other.getEmptyValue() != null && other.getEmptyValue().equals(this.getEmptyValue()) == false) return false; if (other.getStringValue() == null ^ this.getStringValue() == null) return false; if (other.getStringValue() != null && other.getStringValue().equals(this.getStringValue()) == false) return false; if (other.getUserArnValue() == null ^ this.getUserArnValue() == null) return false; if (other.getUserArnValue() != null && other.getUserArnValue().equals(this.getUserArnValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBooleanValue() == null) ? 0 : getBooleanValue().hashCode()); hashCode = prime * hashCode + ((getDoubleValue() == null) ? 0 : getDoubleValue().hashCode()); hashCode = prime * hashCode + ((getEmptyValue() == null) ? 0 : getEmptyValue().hashCode()); hashCode = prime * hashCode + ((getStringValue() == null) ? 0 : getStringValue().hashCode()); hashCode = prime * hashCode + ((getUserArnValue() == null) ? 0 : getUserArnValue().hashCode()); return hashCode; } @Override public AuditEventFieldValueUnion clone() { try { return (AuditEventFieldValueUnion) 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.connectcases.model.transform.AuditEventFieldValueUnionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy