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

com.amazonaws.services.elasticsearch.model.CancelledChangeProperty Maven / Gradle / Ivy

Go to download

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

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

/**
 * 

* A property change that was cancelled for an Amazon OpenSearch Service domain. *

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

* The name of the property whose change was cancelled. *

*/ private String propertyName; /** *

* The pending value of the property that was cancelled. This would have been the eventual value of the property if * the chance had not been cancelled. *

*/ private String cancelledValue; /** *

* The current value of the property, after the change was cancelled. *

*/ private String activeValue; /** *

* The name of the property whose change was cancelled. *

* * @param propertyName * The name of the property whose change was cancelled. */ public void setPropertyName(String propertyName) { this.propertyName = propertyName; } /** *

* The name of the property whose change was cancelled. *

* * @return The name of the property whose change was cancelled. */ public String getPropertyName() { return this.propertyName; } /** *

* The name of the property whose change was cancelled. *

* * @param propertyName * The name of the property whose change was cancelled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelledChangeProperty withPropertyName(String propertyName) { setPropertyName(propertyName); return this; } /** *

* The pending value of the property that was cancelled. This would have been the eventual value of the property if * the chance had not been cancelled. *

* * @param cancelledValue * The pending value of the property that was cancelled. This would have been the eventual value of the * property if the chance had not been cancelled. */ public void setCancelledValue(String cancelledValue) { this.cancelledValue = cancelledValue; } /** *

* The pending value of the property that was cancelled. This would have been the eventual value of the property if * the chance had not been cancelled. *

* * @return The pending value of the property that was cancelled. This would have been the eventual value of the * property if the chance had not been cancelled. */ public String getCancelledValue() { return this.cancelledValue; } /** *

* The pending value of the property that was cancelled. This would have been the eventual value of the property if * the chance had not been cancelled. *

* * @param cancelledValue * The pending value of the property that was cancelled. This would have been the eventual value of the * property if the chance had not been cancelled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelledChangeProperty withCancelledValue(String cancelledValue) { setCancelledValue(cancelledValue); return this; } /** *

* The current value of the property, after the change was cancelled. *

* * @param activeValue * The current value of the property, after the change was cancelled. */ public void setActiveValue(String activeValue) { this.activeValue = activeValue; } /** *

* The current value of the property, after the change was cancelled. *

* * @return The current value of the property, after the change was cancelled. */ public String getActiveValue() { return this.activeValue; } /** *

* The current value of the property, after the change was cancelled. *

* * @param activeValue * The current value of the property, after the change was cancelled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelledChangeProperty withActiveValue(String activeValue) { setActiveValue(activeValue); 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 (getPropertyName() != null) sb.append("PropertyName: ").append(getPropertyName()).append(","); if (getCancelledValue() != null) sb.append("CancelledValue: ").append(getCancelledValue()).append(","); if (getActiveValue() != null) sb.append("ActiveValue: ").append(getActiveValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CancelledChangeProperty == false) return false; CancelledChangeProperty other = (CancelledChangeProperty) obj; if (other.getPropertyName() == null ^ this.getPropertyName() == null) return false; if (other.getPropertyName() != null && other.getPropertyName().equals(this.getPropertyName()) == false) return false; if (other.getCancelledValue() == null ^ this.getCancelledValue() == null) return false; if (other.getCancelledValue() != null && other.getCancelledValue().equals(this.getCancelledValue()) == false) return false; if (other.getActiveValue() == null ^ this.getActiveValue() == null) return false; if (other.getActiveValue() != null && other.getActiveValue().equals(this.getActiveValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPropertyName() == null) ? 0 : getPropertyName().hashCode()); hashCode = prime * hashCode + ((getCancelledValue() == null) ? 0 : getCancelledValue().hashCode()); hashCode = prime * hashCode + ((getActiveValue() == null) ? 0 : getActiveValue().hashCode()); return hashCode; } @Override public CancelledChangeProperty clone() { try { return (CancelledChangeProperty) 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.elasticsearch.model.transform.CancelledChangePropertyMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy