/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace MQ { namespace Model { /** * Creates a new configuration for the specified configuration name. Amazon MQ uses * the default configuration (the engine type and version).

See Also:

* AWS * API Reference

*/ class AWS_MQ_API CreateConfigurationRequest : public MQRequest { public: CreateConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateConfiguration"; } Aws::String SerializePayload() const override; /** * The authentication strategy associated with the configuration. */ inline const AuthenticationStrategy& GetAuthenticationStrategy() const{ return m_authenticationStrategy; } /** * The authentication strategy associated with the configuration. */ inline bool AuthenticationStrategyHasBeenSet() const { return m_authenticationStrategyHasBeenSet; } /** * The authentication strategy associated with the configuration. */ inline void SetAuthenticationStrategy(const AuthenticationStrategy& value) { m_authenticationStrategyHasBeenSet = true; m_authenticationStrategy = value; } /** * The authentication strategy associated with the configuration. */ inline void SetAuthenticationStrategy(AuthenticationStrategy&& value) { m_authenticationStrategyHasBeenSet = true; m_authenticationStrategy = std::move(value); } /** * The authentication strategy associated with the configuration. */ inline CreateConfigurationRequest& WithAuthenticationStrategy(const AuthenticationStrategy& value) { SetAuthenticationStrategy(value); return *this;} /** * The authentication strategy associated with the configuration. */ inline CreateConfigurationRequest& WithAuthenticationStrategy(AuthenticationStrategy&& value) { SetAuthenticationStrategy(std::move(value)); return *this;} /** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only * ACTIVEMQ. */ inline const EngineType& GetEngineType() const{ return m_engineType; } /** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only * ACTIVEMQ. */ inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; } /** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only * ACTIVEMQ. */ inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; } /** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only * ACTIVEMQ. */ inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); } /** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only * ACTIVEMQ. */ inline CreateConfigurationRequest& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;} /** * Required. The type of broker engine. Note: Currently, Amazon MQ supports only * ACTIVEMQ. */ inline CreateConfigurationRequest& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;} /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline CreateConfigurationRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline CreateConfigurationRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** * Required. The version of the broker engine. For a list of supported engine * versions, see * https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html */ inline CreateConfigurationRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); 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. */ inline const Aws::String& GetName() const{ return m_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. */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * 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. */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * 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. */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * 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. */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * 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. */ inline CreateConfigurationRequest& WithName(const Aws::String& value) { SetName(value); 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. */ inline CreateConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); 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. */ inline CreateConfigurationRequest& WithName(const char* value) { SetName(value); return *this;} /** * Create tags when creating the configuration. */ inline const Aws::Map& GetTags() const{ return m_tags; } /** * Create tags when creating the configuration. */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** * Create tags when creating the configuration. */ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** * Create tags when creating the configuration. */ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** * Create tags when creating the configuration. */ inline CreateConfigurationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: AuthenticationStrategy m_authenticationStrategy; bool m_authenticationStrategyHasBeenSet; EngineType m_engineType; bool m_engineTypeHasBeenSet; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace MQ } // namespace Aws