/* * Copyright 2018-2023 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.ssmsap.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 UpdateApplicationSettingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the application. *
*/ private String applicationId; /** ** The credentials to be added or updated. *
*/ private java.util.List* The credentials to be removed. *
*/ private java.util.List* Installation of AWS Backint Agent for SAP HANA. *
*/ private BackintConfig backint; /** ** The ID of the application. *
* * @param applicationId * The ID of the application. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** ** The ID of the application. *
* * @return The ID of the application. */ public String getApplicationId() { return this.applicationId; } /** ** The ID of the application. *
* * @param applicationId * The ID of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationSettingsRequest withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** ** The credentials to be added or updated. *
* * @return The credentials to be added or updated. */ public java.util.List* The credentials to be added or updated. *
* * @param credentialsToAddOrUpdate * The credentials to be added or updated. */ public void setCredentialsToAddOrUpdate(java.util.Collection* The credentials to be added or updated. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCredentialsToAddOrUpdate(java.util.Collection)} or * {@link #withCredentialsToAddOrUpdate(java.util.Collection)} if you want to override the existing values. *
* * @param credentialsToAddOrUpdate * The credentials to be added or updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationSettingsRequest withCredentialsToAddOrUpdate(ApplicationCredential... credentialsToAddOrUpdate) { if (this.credentialsToAddOrUpdate == null) { setCredentialsToAddOrUpdate(new java.util.ArrayList* The credentials to be added or updated. *
* * @param credentialsToAddOrUpdate * The credentials to be added or updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationSettingsRequest withCredentialsToAddOrUpdate(java.util.Collection* The credentials to be removed. *
* * @return The credentials to be removed. */ public java.util.List* The credentials to be removed. *
* * @param credentialsToRemove * The credentials to be removed. */ public void setCredentialsToRemove(java.util.Collection* The credentials to be removed. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCredentialsToRemove(java.util.Collection)} or {@link #withCredentialsToRemove(java.util.Collection)} * if you want to override the existing values. *
* * @param credentialsToRemove * The credentials to be removed. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationSettingsRequest withCredentialsToRemove(ApplicationCredential... credentialsToRemove) { if (this.credentialsToRemove == null) { setCredentialsToRemove(new java.util.ArrayList* The credentials to be removed. *
* * @param credentialsToRemove * The credentials to be removed. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationSettingsRequest withCredentialsToRemove(java.util.Collection* Installation of AWS Backint Agent for SAP HANA. *
* * @param backint * Installation of AWS Backint Agent for SAP HANA. */ public void setBackint(BackintConfig backint) { this.backint = backint; } /** ** Installation of AWS Backint Agent for SAP HANA. *
* * @return Installation of AWS Backint Agent for SAP HANA. */ public BackintConfig getBackint() { return this.backint; } /** ** Installation of AWS Backint Agent for SAP HANA. *
* * @param backint * Installation of AWS Backint Agent for SAP HANA. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationSettingsRequest withBackint(BackintConfig backint) { setBackint(backint); 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 (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getCredentialsToAddOrUpdate() != null) sb.append("CredentialsToAddOrUpdate: ").append(getCredentialsToAddOrUpdate()).append(","); if (getCredentialsToRemove() != null) sb.append("CredentialsToRemove: ").append(getCredentialsToRemove()).append(","); if (getBackint() != null) sb.append("Backint: ").append(getBackint()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateApplicationSettingsRequest == false) return false; UpdateApplicationSettingsRequest other = (UpdateApplicationSettingsRequest) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getCredentialsToAddOrUpdate() == null ^ this.getCredentialsToAddOrUpdate() == null) return false; if (other.getCredentialsToAddOrUpdate() != null && other.getCredentialsToAddOrUpdate().equals(this.getCredentialsToAddOrUpdate()) == false) return false; if (other.getCredentialsToRemove() == null ^ this.getCredentialsToRemove() == null) return false; if (other.getCredentialsToRemove() != null && other.getCredentialsToRemove().equals(this.getCredentialsToRemove()) == false) return false; if (other.getBackint() == null ^ this.getBackint() == null) return false; if (other.getBackint() != null && other.getBackint().equals(this.getBackint()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getCredentialsToAddOrUpdate() == null) ? 0 : getCredentialsToAddOrUpdate().hashCode()); hashCode = prime * hashCode + ((getCredentialsToRemove() == null) ? 0 : getCredentialsToRemove().hashCode()); hashCode = prime * hashCode + ((getBackint() == null) ? 0 : getBackint().hashCode()); return hashCode; } @Override public UpdateApplicationSettingsRequest clone() { return (UpdateApplicationSettingsRequest) super.clone(); } }