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

com.amazonaws.services.elasticsearch.model.ModifyingProperties 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;

/**
 * 

* Information about the domain properties that are currently being modified. *

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

* The name of the property that is currently being modified. *

*/ private String name; /** *

* The current value of the domain property that is being modified. *

*/ private String activeValue; /** *

* The value that the property that is currently being modified will eventually have. *

*/ private String pendingValue; /** *

* The type of value that is currently being modified. Properties can have two types: *

*
    *
  • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
  • *
  • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
  • *
*/ private String valueType; /** *

* The name of the property that is currently being modified. *

* * @param name * The name of the property that is currently being modified. */ public void setName(String name) { this.name = name; } /** *

* The name of the property that is currently being modified. *

* * @return The name of the property that is currently being modified. */ public String getName() { return this.name; } /** *

* The name of the property that is currently being modified. *

* * @param name * The name of the property that is currently being modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyingProperties withName(String name) { setName(name); return this; } /** *

* The current value of the domain property that is being modified. *

* * @param activeValue * The current value of the domain property that is being modified. */ public void setActiveValue(String activeValue) { this.activeValue = activeValue; } /** *

* The current value of the domain property that is being modified. *

* * @return The current value of the domain property that is being modified. */ public String getActiveValue() { return this.activeValue; } /** *

* The current value of the domain property that is being modified. *

* * @param activeValue * The current value of the domain property that is being modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyingProperties withActiveValue(String activeValue) { setActiveValue(activeValue); return this; } /** *

* The value that the property that is currently being modified will eventually have. *

* * @param pendingValue * The value that the property that is currently being modified will eventually have. */ public void setPendingValue(String pendingValue) { this.pendingValue = pendingValue; } /** *

* The value that the property that is currently being modified will eventually have. *

* * @return The value that the property that is currently being modified will eventually have. */ public String getPendingValue() { return this.pendingValue; } /** *

* The value that the property that is currently being modified will eventually have. *

* * @param pendingValue * The value that the property that is currently being modified will eventually have. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyingProperties withPendingValue(String pendingValue) { setPendingValue(pendingValue); return this; } /** *

* The type of value that is currently being modified. Properties can have two types: *

*
    *
  • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
  • *
  • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
  • *
* * @param valueType * The type of value that is currently being modified. Properties can have two types:

*
    *
  • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
  • *
  • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
  • * @see PropertyValueType */ public void setValueType(String valueType) { this.valueType = valueType; } /** *

    * The type of value that is currently being modified. Properties can have two types: *

    *
      *
    • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
    • *
    • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
    • *
    * * @return The type of value that is currently being modified. Properties can have two types:

    *
      *
    • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
    • *
    • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
    • * @see PropertyValueType */ public String getValueType() { return this.valueType; } /** *

      * The type of value that is currently being modified. Properties can have two types: *

      *
        *
      • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
      • *
      • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
      • *
      * * @param valueType * The type of value that is currently being modified. Properties can have two types:

      *
        *
      • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
      • *
      • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
      • * @return Returns a reference to this object so that method calls can be chained together. * @see PropertyValueType */ public ModifyingProperties withValueType(String valueType) { setValueType(valueType); return this; } /** *

        * The type of value that is currently being modified. Properties can have two types: *

        *
          *
        • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
        • *
        • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
        • *
        * * @param valueType * The type of value that is currently being modified. Properties can have two types:

        *
          *
        • PLAIN_TEXT: Contain direct values such as "1", "True", or "c5.large.search".
        • *
        • STRINGIFIED_JSON: Contain content in JSON format, such as {"Enabled":"True"}".
        • * @return Returns a reference to this object so that method calls can be chained together. * @see PropertyValueType */ public ModifyingProperties withValueType(PropertyValueType valueType) { this.valueType = valueType.toString(); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getActiveValue() != null) sb.append("ActiveValue: ").append(getActiveValue()).append(","); if (getPendingValue() != null) sb.append("PendingValue: ").append(getPendingValue()).append(","); if (getValueType() != null) sb.append("ValueType: ").append(getValueType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyingProperties == false) return false; ModifyingProperties other = (ModifyingProperties) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getActiveValue() == null ^ this.getActiveValue() == null) return false; if (other.getActiveValue() != null && other.getActiveValue().equals(this.getActiveValue()) == false) return false; if (other.getPendingValue() == null ^ this.getPendingValue() == null) return false; if (other.getPendingValue() != null && other.getPendingValue().equals(this.getPendingValue()) == false) return false; if (other.getValueType() == null ^ this.getValueType() == null) return false; if (other.getValueType() != null && other.getValueType().equals(this.getValueType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getActiveValue() == null) ? 0 : getActiveValue().hashCode()); hashCode = prime * hashCode + ((getPendingValue() == null) ? 0 : getPendingValue().hashCode()); hashCode = prime * hashCode + ((getValueType() == null) ? 0 : getValueType().hashCode()); return hashCode; } @Override public ModifyingProperties clone() { try { return (ModifyingProperties) 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.ModifyingPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy