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

com.amazonaws.services.mq.model.BrokerSummary 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.772
Show newest version
/*
 * Copyright 2017-2022 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Returns information about all brokers. *

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

* The broker's Amazon Resource Name (ARN). *

*/ private String brokerArn; /** *

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

*/ private String brokerId; /** *

* The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only letters, * numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special * characters. *

*/ private String brokerName; /** *

* The broker's status. *

*/ private String brokerState; /** *

* The time when the broker was created. *

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

* The broker's deployment mode. *

*/ private String deploymentMode; /** *

* The type of broker engine. *

*/ private String engineType; /** *

* The broker's instance type. *

*/ private String hostInstanceType; /** *

* The broker's Amazon Resource Name (ARN). *

* * @param brokerArn * The broker's Amazon Resource Name (ARN). */ public void setBrokerArn(String brokerArn) { this.brokerArn = brokerArn; } /** *

* The broker's Amazon Resource Name (ARN). *

* * @return The broker's Amazon Resource Name (ARN). */ public String getBrokerArn() { return this.brokerArn; } /** *

* The broker's Amazon Resource Name (ARN). *

* * @param brokerArn * The broker's Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerSummary withBrokerArn(String brokerArn) { setBrokerArn(brokerArn); return this; } /** *

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

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

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

* * @return The unique ID that Amazon MQ generates for the broker. */ public String getBrokerId() { return this.brokerId; } /** *

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

* * @param brokerId * The unique ID that Amazon MQ generates for the broker. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerSummary withBrokerId(String brokerId) { setBrokerId(brokerId); return this; } /** *

* The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only letters, * numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special * characters. *

* * @param brokerName * The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only * letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard * characters, or special characters. */ public void setBrokerName(String brokerName) { this.brokerName = brokerName; } /** *

* The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only letters, * numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special * characters. *

* * @return The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only * letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard * characters, or special characters. */ public String getBrokerName() { return this.brokerName; } /** *

* The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only letters, * numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special * characters. *

* * @param brokerName * The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only * letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard * characters, or special characters. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerSummary withBrokerName(String brokerName) { setBrokerName(brokerName); return this; } /** *

* The broker's status. *

* * @param brokerState * The broker's status. * @see BrokerState */ public void setBrokerState(String brokerState) { this.brokerState = brokerState; } /** *

* The broker's status. *

* * @return The broker's status. * @see BrokerState */ public String getBrokerState() { return this.brokerState; } /** *

* The broker's status. *

* * @param brokerState * The broker's status. * @return Returns a reference to this object so that method calls can be chained together. * @see BrokerState */ public BrokerSummary withBrokerState(String brokerState) { setBrokerState(brokerState); return this; } /** *

* The broker's status. *

* * @param brokerState * The broker's status. * @return Returns a reference to this object so that method calls can be chained together. * @see BrokerState */ public BrokerSummary withBrokerState(BrokerState brokerState) { this.brokerState = brokerState.toString(); return this; } /** *

* The time when the broker was created. *

* * @param created * The time when the broker was created. */ public void setCreated(java.util.Date created) { this.created = created; } /** *

* The time when the broker was created. *

* * @return The time when the broker was created. */ public java.util.Date getCreated() { return this.created; } /** *

* The time when the broker was created. *

* * @param created * The time when the broker was created. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerSummary withCreated(java.util.Date created) { setCreated(created); return this; } /** *

* The broker's deployment mode. *

* * @param deploymentMode * The broker's deployment mode. * @see DeploymentMode */ public void setDeploymentMode(String deploymentMode) { this.deploymentMode = deploymentMode; } /** *

* The broker's deployment mode. *

* * @return The broker's deployment mode. * @see DeploymentMode */ public String getDeploymentMode() { return this.deploymentMode; } /** *

* The broker's deployment mode. *

* * @param deploymentMode * The broker's deployment mode. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentMode */ public BrokerSummary withDeploymentMode(String deploymentMode) { setDeploymentMode(deploymentMode); return this; } /** *

* The broker's deployment mode. *

* * @param deploymentMode * The broker's deployment mode. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentMode */ public BrokerSummary withDeploymentMode(DeploymentMode deploymentMode) { this.deploymentMode = deploymentMode.toString(); return this; } /** *

* The type of broker engine. *

* * @param engineType * The type of broker engine. * @see EngineType */ public void setEngineType(String engineType) { this.engineType = engineType; } /** *

* The type of broker engine. *

* * @return The type of broker engine. * @see EngineType */ public String getEngineType() { return this.engineType; } /** *

* The type of broker engine. *

* * @param engineType * The type of broker engine. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public BrokerSummary withEngineType(String engineType) { setEngineType(engineType); return this; } /** *

* The type of broker engine. *

* * @param engineType * The type of broker engine. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public BrokerSummary withEngineType(EngineType engineType) { this.engineType = engineType.toString(); return this; } /** *

* The broker's instance type. *

* * @param hostInstanceType * The broker's instance type. */ public void setHostInstanceType(String hostInstanceType) { this.hostInstanceType = hostInstanceType; } /** *

* The broker's instance type. *

* * @return The broker's instance type. */ public String getHostInstanceType() { return this.hostInstanceType; } /** *

* The broker's instance type. *

* * @param hostInstanceType * The broker's instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerSummary withHostInstanceType(String hostInstanceType) { setHostInstanceType(hostInstanceType); 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 (getBrokerArn() != null) sb.append("BrokerArn: ").append(getBrokerArn()).append(","); if (getBrokerId() != null) sb.append("BrokerId: ").append(getBrokerId()).append(","); if (getBrokerName() != null) sb.append("BrokerName: ").append(getBrokerName()).append(","); if (getBrokerState() != null) sb.append("BrokerState: ").append(getBrokerState()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getDeploymentMode() != null) sb.append("DeploymentMode: ").append(getDeploymentMode()).append(","); if (getEngineType() != null) sb.append("EngineType: ").append(getEngineType()).append(","); if (getHostInstanceType() != null) sb.append("HostInstanceType: ").append(getHostInstanceType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BrokerSummary == false) return false; BrokerSummary other = (BrokerSummary) obj; if (other.getBrokerArn() == null ^ this.getBrokerArn() == null) return false; if (other.getBrokerArn() != null && other.getBrokerArn().equals(this.getBrokerArn()) == false) return false; if (other.getBrokerId() == null ^ this.getBrokerId() == null) return false; if (other.getBrokerId() != null && other.getBrokerId().equals(this.getBrokerId()) == false) return false; if (other.getBrokerName() == null ^ this.getBrokerName() == null) return false; if (other.getBrokerName() != null && other.getBrokerName().equals(this.getBrokerName()) == false) return false; if (other.getBrokerState() == null ^ this.getBrokerState() == null) return false; if (other.getBrokerState() != null && other.getBrokerState().equals(this.getBrokerState()) == 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.getDeploymentMode() == null ^ this.getDeploymentMode() == null) return false; if (other.getDeploymentMode() != null && other.getDeploymentMode().equals(this.getDeploymentMode()) == false) return false; if (other.getEngineType() == null ^ this.getEngineType() == null) return false; if (other.getEngineType() != null && other.getEngineType().equals(this.getEngineType()) == false) return false; if (other.getHostInstanceType() == null ^ this.getHostInstanceType() == null) return false; if (other.getHostInstanceType() != null && other.getHostInstanceType().equals(this.getHostInstanceType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBrokerArn() == null) ? 0 : getBrokerArn().hashCode()); hashCode = prime * hashCode + ((getBrokerId() == null) ? 0 : getBrokerId().hashCode()); hashCode = prime * hashCode + ((getBrokerName() == null) ? 0 : getBrokerName().hashCode()); hashCode = prime * hashCode + ((getBrokerState() == null) ? 0 : getBrokerState().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getDeploymentMode() == null) ? 0 : getDeploymentMode().hashCode()); hashCode = prime * hashCode + ((getEngineType() == null) ? 0 : getEngineType().hashCode()); hashCode = prime * hashCode + ((getHostInstanceType() == null) ? 0 : getHostInstanceType().hashCode()); return hashCode; } @Override public BrokerSummary clone() { try { return (BrokerSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.mq.model.transform.BrokerSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy