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

com.amazonaws.services.mq.model.UpdateConfigurationResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AmazonMQ module holds the client classes that are used for communicating with AmazonMQ 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.mq.model;

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

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

    /**
     * 

* The Amazon Resource Name (ARN) of the configuration. *

*/ private String arn; /** *

* Required. The date and time of the configuration. *

*/ private java.util.Date created; /** *

* The unique ID that Amazon MQ generates for the configuration. *

*/ private String id; /** *

* The latest revision of the configuration. *

*/ private ConfigurationRevision latestRevision; /** *

* The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 1-150 characters long. *

*/ private String name; /** *

* The list of the first 20 warnings about the configuration elements or attributes that were sanitized. *

*/ private java.util.List warnings; /** *

* The Amazon Resource Name (ARN) of the configuration. *

* * @param arn * The Amazon Resource Name (ARN) of the configuration. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the configuration. *

* * @return The Amazon Resource Name (ARN) of the configuration. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the configuration. *

* * @param arn * The Amazon Resource Name (ARN) of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withArn(String arn) { setArn(arn); return this; } /** *

* Required. The date and time of the configuration. *

* * @param created * Required. The date and time of the configuration. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* Required. The date and time of the configuration. *

* * @return Required. The date and time of the configuration. */ public java.util.Date getCreated() { return this.created; } /** *

* Required. The date and time of the configuration. *

* * @param created * Required. The date and time of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withCreated(java.util.Date created) { setCreated(created); return this; } /** *

* The unique ID that Amazon MQ generates for the configuration. *

* * @param id * The unique ID that Amazon MQ generates for the configuration. */ public void setId(String id) { this.id = id; } /** *

* The unique ID that Amazon MQ generates for the configuration. *

* * @return The unique ID that Amazon MQ generates for the configuration. */ public String getId() { return this.id; } /** *

* The unique ID that Amazon MQ generates for the configuration. *

* * @param id * The unique ID that Amazon MQ generates for the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withId(String id) { setId(id); return this; } /** *

* The latest revision of the configuration. *

* * @param latestRevision * The latest revision of the configuration. */ public void setLatestRevision(ConfigurationRevision latestRevision) { this.latestRevision = latestRevision; } /** *

* The latest revision of the configuration. *

* * @return The latest revision of the configuration. */ public ConfigurationRevision getLatestRevision() { return this.latestRevision; } /** *

* The latest revision of the configuration. *

* * @param latestRevision * The latest revision of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withLatestRevision(ConfigurationRevision latestRevision) { setLatestRevision(latestRevision); return this; } /** *

* The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 1-150 characters long. *

* * @param name * The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, * underscores, and tildes (- . _ ~). This value must be 1-150 characters long. */ public void setName(String name) { this.name = name; } /** *

* The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 1-150 characters long. *

* * @return The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, * underscores, and tildes (- . _ ~). This value must be 1-150 characters long. */ public String getName() { return this.name; } /** *

* The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, * and tildes (- . _ ~). This value must be 1-150 characters long. *

* * @param name * The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, * underscores, and tildes (- . _ ~). This value must be 1-150 characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withName(String name) { setName(name); return this; } /** *

* The list of the first 20 warnings about the configuration elements or attributes that were sanitized. *

* * @return The list of the first 20 warnings about the configuration elements or attributes that were sanitized. */ public java.util.List getWarnings() { return warnings; } /** *

* The list of the first 20 warnings about the configuration elements or attributes that were sanitized. *

* * @param warnings * The list of the first 20 warnings about the configuration elements or attributes that were sanitized. */ public void setWarnings(java.util.Collection warnings) { if (warnings == null) { this.warnings = null; return; } this.warnings = new java.util.ArrayList(warnings); } /** *

* The list of the first 20 warnings about the configuration elements or attributes that were sanitized. *

*

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

* * @param warnings * The list of the first 20 warnings about the configuration elements or attributes that were sanitized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withWarnings(SanitizationWarning... warnings) { if (this.warnings == null) { setWarnings(new java.util.ArrayList(warnings.length)); } for (SanitizationWarning ele : warnings) { this.warnings.add(ele); } return this; } /** *

* The list of the first 20 warnings about the configuration elements or attributes that were sanitized. *

* * @param warnings * The list of the first 20 warnings about the configuration elements or attributes that were sanitized. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateConfigurationResult withWarnings(java.util.Collection warnings) { setWarnings(warnings); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateConfigurationResult == false) return false; UpdateConfigurationResult other = (UpdateConfigurationResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getWarnings() == null ^ this.getWarnings() == null) return false; if (other.getWarnings() != null && other.getWarnings().equals(this.getWarnings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; } @Override public UpdateConfigurationResult clone() { try { return (UpdateConfigurationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy