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

com.amazonaws.services.rds.model.ModifyDBRecommendationRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database 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.rds.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The identifier of the recommendation to update. *

*/ private String recommendationId; /** *

* The language of the modified recommendation. *

*/ private String locale; /** *

* The recommendation status to update. *

*

* Valid values: *

*
    *
  • *

    * active *

    *
  • *
  • *

    * dismissed *

    *
  • *
*/ private String status; /** *

* The list of recommended action status to update. You can update multiple recommended actions at one time. *

*/ private com.amazonaws.internal.SdkInternalList recommendedActionUpdates; /** *

* The identifier of the recommendation to update. *

* * @param recommendationId * The identifier of the recommendation to update. */ public void setRecommendationId(String recommendationId) { this.recommendationId = recommendationId; } /** *

* The identifier of the recommendation to update. *

* * @return The identifier of the recommendation to update. */ public String getRecommendationId() { return this.recommendationId; } /** *

* The identifier of the recommendation to update. *

* * @param recommendationId * The identifier of the recommendation to update. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBRecommendationRequest withRecommendationId(String recommendationId) { setRecommendationId(recommendationId); return this; } /** *

* The language of the modified recommendation. *

* * @param locale * The language of the modified recommendation. */ public void setLocale(String locale) { this.locale = locale; } /** *

* The language of the modified recommendation. *

* * @return The language of the modified recommendation. */ public String getLocale() { return this.locale; } /** *

* The language of the modified recommendation. *

* * @param locale * The language of the modified recommendation. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBRecommendationRequest withLocale(String locale) { setLocale(locale); return this; } /** *

* The recommendation status to update. *

*

* Valid values: *

*
    *
  • *

    * active *

    *
  • *
  • *

    * dismissed *

    *
  • *
* * @param status * The recommendation status to update.

*

* Valid values: *

*
    *
  • *

    * active *

    *
  • *
  • *

    * dismissed *

    *
  • */ public void setStatus(String status) { this.status = status; } /** *

    * The recommendation status to update. *

    *

    * Valid values: *

    *
      *
    • *

      * active *

      *
    • *
    • *

      * dismissed *

      *
    • *
    * * @return The recommendation status to update.

    *

    * Valid values: *

    *
      *
    • *

      * active *

      *
    • *
    • *

      * dismissed *

      *
    • */ public String getStatus() { return this.status; } /** *

      * The recommendation status to update. *

      *

      * Valid values: *

      *
        *
      • *

        * active *

        *
      • *
      • *

        * dismissed *

        *
      • *
      * * @param status * The recommendation status to update.

      *

      * Valid values: *

      *
        *
      • *

        * active *

        *
      • *
      • *

        * dismissed *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBRecommendationRequest withStatus(String status) { setStatus(status); return this; } /** *

        * The list of recommended action status to update. You can update multiple recommended actions at one time. *

        * * @return The list of recommended action status to update. You can update multiple recommended actions at one time. */ public java.util.List getRecommendedActionUpdates() { if (recommendedActionUpdates == null) { recommendedActionUpdates = new com.amazonaws.internal.SdkInternalList(); } return recommendedActionUpdates; } /** *

        * The list of recommended action status to update. You can update multiple recommended actions at one time. *

        * * @param recommendedActionUpdates * The list of recommended action status to update. You can update multiple recommended actions at one time. */ public void setRecommendedActionUpdates(java.util.Collection recommendedActionUpdates) { if (recommendedActionUpdates == null) { this.recommendedActionUpdates = null; return; } this.recommendedActionUpdates = new com.amazonaws.internal.SdkInternalList(recommendedActionUpdates); } /** *

        * The list of recommended action status to update. You can update multiple recommended actions at one time. *

        *

        * NOTE: This method appends the values to the existing list (if any). Use * {@link #setRecommendedActionUpdates(java.util.Collection)} or * {@link #withRecommendedActionUpdates(java.util.Collection)} if you want to override the existing values. *

        * * @param recommendedActionUpdates * The list of recommended action status to update. You can update multiple recommended actions at one time. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBRecommendationRequest withRecommendedActionUpdates(RecommendedActionUpdate... recommendedActionUpdates) { if (this.recommendedActionUpdates == null) { setRecommendedActionUpdates(new com.amazonaws.internal.SdkInternalList(recommendedActionUpdates.length)); } for (RecommendedActionUpdate ele : recommendedActionUpdates) { this.recommendedActionUpdates.add(ele); } return this; } /** *

        * The list of recommended action status to update. You can update multiple recommended actions at one time. *

        * * @param recommendedActionUpdates * The list of recommended action status to update. You can update multiple recommended actions at one time. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyDBRecommendationRequest withRecommendedActionUpdates(java.util.Collection recommendedActionUpdates) { setRecommendedActionUpdates(recommendedActionUpdates); 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 (getRecommendationId() != null) sb.append("RecommendationId: ").append(getRecommendationId()).append(","); if (getLocale() != null) sb.append("Locale: ").append(getLocale()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getRecommendedActionUpdates() != null) sb.append("RecommendedActionUpdates: ").append(getRecommendedActionUpdates()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyDBRecommendationRequest == false) return false; ModifyDBRecommendationRequest other = (ModifyDBRecommendationRequest) obj; if (other.getRecommendationId() == null ^ this.getRecommendationId() == null) return false; if (other.getRecommendationId() != null && other.getRecommendationId().equals(this.getRecommendationId()) == false) return false; if (other.getLocale() == null ^ this.getLocale() == null) return false; if (other.getLocale() != null && other.getLocale().equals(this.getLocale()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getRecommendedActionUpdates() == null ^ this.getRecommendedActionUpdates() == null) return false; if (other.getRecommendedActionUpdates() != null && other.getRecommendedActionUpdates().equals(this.getRecommendedActionUpdates()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecommendationId() == null) ? 0 : getRecommendationId().hashCode()); hashCode = prime * hashCode + ((getLocale() == null) ? 0 : getLocale().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getRecommendedActionUpdates() == null) ? 0 : getRecommendedActionUpdates().hashCode()); return hashCode; } @Override public ModifyDBRecommendationRequest clone() { return (ModifyDBRecommendationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy