/* * 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.eks.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object representing an asynchronous update. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Update implements Serializable, Cloneable, StructuredPojo { /** ** A UUID that is used to track the update. *
*/ private String id; /** ** The current status of the update. *
*/ private String status; /** ** The type of the update. *
*/ private String type; /** ** A key-value map that contains the parameters associated with the update. *
*/ private java.util.List* The Unix epoch timestamp in seconds for when the update was created. *
*/ private java.util.Date createdAt; /** *
* Any errors associated with a Failed
update.
*
* A UUID that is used to track the update. *
* * @param id * A UUID that is used to track the update. */ public void setId(String id) { this.id = id; } /** ** A UUID that is used to track the update. *
* * @return A UUID that is used to track the update. */ public String getId() { return this.id; } /** ** A UUID that is used to track the update. *
* * @param id * A UUID that is used to track the update. * @return Returns a reference to this object so that method calls can be chained together. */ public Update withId(String id) { setId(id); return this; } /** ** The current status of the update. *
* * @param status * The current status of the update. * @see UpdateStatus */ public void setStatus(String status) { this.status = status; } /** ** The current status of the update. *
* * @return The current status of the update. * @see UpdateStatus */ public String getStatus() { return this.status; } /** ** The current status of the update. *
* * @param status * The current status of the update. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateStatus */ public Update withStatus(String status) { setStatus(status); return this; } /** ** The current status of the update. *
* * @param status * The current status of the update. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateStatus */ public Update withStatus(UpdateStatus status) { this.status = status.toString(); return this; } /** ** The type of the update. *
* * @param type * The type of the update. * @see UpdateType */ public void setType(String type) { this.type = type; } /** ** The type of the update. *
* * @return The type of the update. * @see UpdateType */ public String getType() { return this.type; } /** ** The type of the update. *
* * @param type * The type of the update. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateType */ public Update withType(String type) { setType(type); return this; } /** ** The type of the update. *
* * @param type * The type of the update. * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateType */ public Update withType(UpdateType type) { this.type = type.toString(); return this; } /** ** A key-value map that contains the parameters associated with the update. *
* * @return A key-value map that contains the parameters associated with the update. */ public java.util.List* A key-value map that contains the parameters associated with the update. *
* * @param params * A key-value map that contains the parameters associated with the update. */ public void setParams(java.util.Collection* A key-value map that contains the parameters associated with the update. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setParams(java.util.Collection)} or {@link #withParams(java.util.Collection)} if you want to override the * existing values. *
* * @param params * A key-value map that contains the parameters associated with the update. * @return Returns a reference to this object so that method calls can be chained together. */ public Update withParams(UpdateParam... params) { if (this.params == null) { setParams(new java.util.ArrayList* A key-value map that contains the parameters associated with the update. *
* * @param params * A key-value map that contains the parameters associated with the update. * @return Returns a reference to this object so that method calls can be chained together. */ public Update withParams(java.util.Collection* The Unix epoch timestamp in seconds for when the update was created. *
* * @param createdAt * The Unix epoch timestamp in seconds for when the update was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The Unix epoch timestamp in seconds for when the update was created. *
* * @return The Unix epoch timestamp in seconds for when the update was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The Unix epoch timestamp in seconds for when the update was created. *
* * @param createdAt * The Unix epoch timestamp in seconds for when the update was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Update withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *
* Any errors associated with a Failed
update.
*
Failed
update.
*/
public java.util.List
* Any errors associated with a Failed
update.
*
Failed
update.
*/
public void setErrors(java.util.Collection
* Any errors associated with a Failed
update.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the * existing values. *
* * @param errors * Any errors associated with aFailed
update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Update withErrors(ErrorDetail... errors) {
if (this.errors == null) {
setErrors(new java.util.ArrayList
* Any errors associated with a Failed
update.
*
Failed
update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Update withErrors(java.util.Collection