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

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

There is a newer version: 1.12.782
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.elasticsearch.model;

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

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* Container for request parameters to UpdatePackage operation. *

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

* Unique identifier for the package. *

*/ private String packageID; private PackageSource packageSource; /** *

* New description of the package. *

*/ private String packageDescription; /** *

* An info message for the new version which will be shown as part of GetPackageVersionHistoryResponse. *

*/ private String commitMessage; /** *

* Unique identifier for the package. *

* * @param packageID * Unique identifier for the package. */ public void setPackageID(String packageID) { this.packageID = packageID; } /** *

* Unique identifier for the package. *

* * @return Unique identifier for the package. */ public String getPackageID() { return this.packageID; } /** *

* Unique identifier for the package. *

* * @param packageID * Unique identifier for the package. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePackageRequest withPackageID(String packageID) { setPackageID(packageID); return this; } /** * @param packageSource */ public void setPackageSource(PackageSource packageSource) { this.packageSource = packageSource; } /** * @return */ public PackageSource getPackageSource() { return this.packageSource; } /** * @param packageSource * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePackageRequest withPackageSource(PackageSource packageSource) { setPackageSource(packageSource); return this; } /** *

* New description of the package. *

* * @param packageDescription * New description of the package. */ public void setPackageDescription(String packageDescription) { this.packageDescription = packageDescription; } /** *

* New description of the package. *

* * @return New description of the package. */ public String getPackageDescription() { return this.packageDescription; } /** *

* New description of the package. *

* * @param packageDescription * New description of the package. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePackageRequest withPackageDescription(String packageDescription) { setPackageDescription(packageDescription); return this; } /** *

* An info message for the new version which will be shown as part of GetPackageVersionHistoryResponse. *

* * @param commitMessage * An info message for the new version which will be shown as part of * GetPackageVersionHistoryResponse. */ public void setCommitMessage(String commitMessage) { this.commitMessage = commitMessage; } /** *

* An info message for the new version which will be shown as part of GetPackageVersionHistoryResponse. *

* * @return An info message for the new version which will be shown as part of * GetPackageVersionHistoryResponse. */ public String getCommitMessage() { return this.commitMessage; } /** *

* An info message for the new version which will be shown as part of GetPackageVersionHistoryResponse. *

* * @param commitMessage * An info message for the new version which will be shown as part of * GetPackageVersionHistoryResponse. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePackageRequest withCommitMessage(String commitMessage) { setCommitMessage(commitMessage); 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 (getPackageID() != null) sb.append("PackageID: ").append(getPackageID()).append(","); if (getPackageSource() != null) sb.append("PackageSource: ").append(getPackageSource()).append(","); if (getPackageDescription() != null) sb.append("PackageDescription: ").append(getPackageDescription()).append(","); if (getCommitMessage() != null) sb.append("CommitMessage: ").append(getCommitMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdatePackageRequest == false) return false; UpdatePackageRequest other = (UpdatePackageRequest) obj; if (other.getPackageID() == null ^ this.getPackageID() == null) return false; if (other.getPackageID() != null && other.getPackageID().equals(this.getPackageID()) == false) return false; if (other.getPackageSource() == null ^ this.getPackageSource() == null) return false; if (other.getPackageSource() != null && other.getPackageSource().equals(this.getPackageSource()) == false) return false; if (other.getPackageDescription() == null ^ this.getPackageDescription() == null) return false; if (other.getPackageDescription() != null && other.getPackageDescription().equals(this.getPackageDescription()) == false) return false; if (other.getCommitMessage() == null ^ this.getCommitMessage() == null) return false; if (other.getCommitMessage() != null && other.getCommitMessage().equals(this.getCommitMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPackageID() == null) ? 0 : getPackageID().hashCode()); hashCode = prime * hashCode + ((getPackageSource() == null) ? 0 : getPackageSource().hashCode()); hashCode = prime * hashCode + ((getPackageDescription() == null) ? 0 : getPackageDescription().hashCode()); hashCode = prime * hashCode + ((getCommitMessage() == null) ? 0 : getCommitMessage().hashCode()); return hashCode; } @Override public UpdatePackageRequest clone() { return (UpdatePackageRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy