/* * 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.AmazonWebServiceRequest; /** *
* Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the * engine type and version). *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** Optional. The authentication strategy associated with the configuration. The default is SIMPLE. *
*/ private String authenticationStrategy; /** ** 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 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; /** ** Create tags when creating the configuration. *
*/ private java.util.Map* 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 CreateConfigurationRequest 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 CreateConfigurationRequest withAuthenticationStrategy(AuthenticationStrategy authenticationStrategy) { this.authenticationStrategy = authenticationStrategy.toString(); 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 CreateConfigurationRequest 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 CreateConfigurationRequest 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 CreateConfigurationRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); 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 CreateConfigurationRequest withName(String name) { setName(name); return this; } /** ** Create tags when creating the configuration. *
* * @return Create tags when creating the configuration. */ public java.util.Map* Create tags when creating the configuration. *
* * @param tags * Create tags when creating the configuration. */ public void setTags(java.util.Map* Create tags when creating the configuration. *
* * @param tags * Create tags when creating the configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationRequest withTags(java.util.Map