/* * 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.mq.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Returns information about all configurations. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Configuration implements Serializable, Cloneable, StructuredPojo { /** ** Required. The ARN of the configuration. *
*/ private String arn; /** ** Optional. The authentication strategy associated with the configuration. The default is SIMPLE. *
*/ private String authenticationStrategy; /** ** Required. The date and time of the configuration revision. *
*/ private java.util.Date created; /** ** Required. The description of the configuration. *
*/ private String description; /** ** Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. *
*/ private String engineType; /** ** Required. The broker engine's version. For a list of supported engine versions, see, Supported engines. *
*/ private String engineVersion; /** ** Required. The unique ID that Amazon MQ generates for the configuration. *
*/ private String id; /** ** Required. The latest revision of the configuration. *
*/ private ConfigurationRevision latestRevision; /** ** Required. 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 all tags associated with this configuration. *
*/ private java.util.Map* Required. The ARN of the configuration. *
* * @param arn * Required. The ARN of the configuration. */ public void setArn(String arn) { this.arn = arn; } /** ** Required. The ARN of the configuration. *
* * @return Required. The ARN of the configuration. */ public String getArn() { return this.arn; } /** ** Required. The ARN of the configuration. *
* * @param arn * Required. The ARN of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public Configuration withArn(String arn) { setArn(arn); return this; } /** ** Optional. The authentication strategy associated with the configuration. The default is SIMPLE. *
* * @param authenticationStrategy * Optional. The authentication strategy associated with the configuration. The default is SIMPLE. * @see AuthenticationStrategy */ public void setAuthenticationStrategy(String authenticationStrategy) { this.authenticationStrategy = authenticationStrategy; } /** ** Optional. The authentication strategy associated with the configuration. The default is SIMPLE. *
* * @return Optional. The authentication strategy associated with the configuration. The default is SIMPLE. * @see AuthenticationStrategy */ public String getAuthenticationStrategy() { return this.authenticationStrategy; } /** ** Optional. The authentication strategy associated with the configuration. The default is SIMPLE. *
* * @param authenticationStrategy * Optional. The authentication strategy associated with the configuration. The default is SIMPLE. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthenticationStrategy */ public Configuration withAuthenticationStrategy(String authenticationStrategy) { setAuthenticationStrategy(authenticationStrategy); return this; } /** ** Optional. The authentication strategy associated with the configuration. The default is SIMPLE. *
* * @param authenticationStrategy * Optional. The authentication strategy associated with the configuration. The default is SIMPLE. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthenticationStrategy */ public Configuration withAuthenticationStrategy(AuthenticationStrategy authenticationStrategy) { this.authenticationStrategy = authenticationStrategy.toString(); return this; } /** ** Required. The date and time of the configuration revision. *
* * @param created * Required. The date and time of the configuration revision. */ public void setCreated(java.util.Date created) { this.created = created; } /** ** Required. The date and time of the configuration revision. *
* * @return Required. The date and time of the configuration revision. */ public java.util.Date getCreated() { return this.created; } /** ** Required. The date and time of the configuration revision. *
* * @param created * Required. The date and time of the configuration revision. * @return Returns a reference to this object so that method calls can be chained together. */ public Configuration withCreated(java.util.Date created) { setCreated(created); return this; } /** ** Required. The description of the configuration. *
* * @param description * Required. The description of the configuration. */ public void setDescription(String description) { this.description = description; } /** ** Required. The description of the configuration. *
* * @return Required. The description of the configuration. */ public String getDescription() { return this.description; } /** ** Required. The description of the configuration. *
* * @param description * Required. The description of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public Configuration withDescription(String description) { setDescription(description); return this; } /** ** Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. *
* * @param engineType * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. * @see EngineType */ public void setEngineType(String engineType) { this.engineType = engineType; } /** ** Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. *
* * @return Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. * @see EngineType */ public String getEngineType() { return this.engineType; } /** ** Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. *
* * @param engineType * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public Configuration withEngineType(String engineType) { setEngineType(engineType); return this; } /** ** Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. *
* * @param engineType * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public Configuration withEngineType(EngineType engineType) { this.engineType = engineType.toString(); return this; } /** ** Required. The broker engine's version. For a list of supported engine versions, see, Supported engines. *
* * @param engineVersion * Required. The broker engine's version. For a list of supported engine versions, see, Supported * engines. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** ** Required. The broker engine's version. For a list of supported engine versions, see, Supported engines. *
* * @return Required. The broker engine's version. For a list of supported engine versions, see, Supported * engines. */ public String getEngineVersion() { return this.engineVersion; } /** ** Required. The broker engine's version. For a list of supported engine versions, see, Supported engines. *
* * @param engineVersion * Required. The broker engine's version. For a list of supported engine versions, see, Supported * engines. * @return Returns a reference to this object so that method calls can be chained together. */ public Configuration withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** ** Required. The unique ID that Amazon MQ generates for the configuration. *
* * @param id * Required. The unique ID that Amazon MQ generates for the configuration. */ public void setId(String id) { this.id = id; } /** ** Required. The unique ID that Amazon MQ generates for the configuration. *
* * @return Required. The unique ID that Amazon MQ generates for the configuration. */ public String getId() { return this.id; } /** ** Required. The unique ID that Amazon MQ generates for the configuration. *
* * @param id * Required. 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 Configuration withId(String id) { setId(id); return this; } /** ** Required. The latest revision of the configuration. *
* * @param latestRevision * Required. The latest revision of the configuration. */ public void setLatestRevision(ConfigurationRevision latestRevision) { this.latestRevision = latestRevision; } /** ** Required. The latest revision of the configuration. *
* * @return Required. The latest revision of the configuration. */ public ConfigurationRevision getLatestRevision() { return this.latestRevision; } /** ** Required. The latest revision of the configuration. *
* * @param latestRevision * Required. The latest revision of the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public Configuration withLatestRevision(ConfigurationRevision latestRevision) { setLatestRevision(latestRevision); return this; } /** ** Required. 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 * Required. 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; } /** ** Required. 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 Required. 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; } /** ** Required. 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 * Required. 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 Configuration withName(String name) { setName(name); return this; } /** ** The list of all tags associated with this configuration. *
* * @return The list of all tags associated with this configuration. */ public java.util.Map* The list of all tags associated with this configuration. *
* * @param tags * The list of all tags associated with this configuration. */ public void setTags(java.util.Map* The list of all tags associated with this configuration. *
* * @param tags * The list of all tags associated with this configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public Configuration withTags(java.util.Map