/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ElasticBeanstalk { namespace Model { /** *

Swaps the CNAMEs of two environments.

See Also:

AWS * API Reference

*/ class SwapEnvironmentCNAMEsRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_API SwapEnvironmentCNAMEsRequest(); // 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 "SwapEnvironmentCNAMEs"; } AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override; protected: AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline const Aws::String& GetSourceEnvironmentId() const{ return m_sourceEnvironmentId; } /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline bool SourceEnvironmentIdHasBeenSet() const { return m_sourceEnvironmentIdHasBeenSet; } /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline void SetSourceEnvironmentId(const Aws::String& value) { m_sourceEnvironmentIdHasBeenSet = true; m_sourceEnvironmentId = value; } /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline void SetSourceEnvironmentId(Aws::String&& value) { m_sourceEnvironmentIdHasBeenSet = true; m_sourceEnvironmentId = std::move(value); } /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline void SetSourceEnvironmentId(const char* value) { m_sourceEnvironmentIdHasBeenSet = true; m_sourceEnvironmentId.assign(value); } /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentId(const Aws::String& value) { SetSourceEnvironmentId(value); return *this;} /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentId(Aws::String&& value) { SetSourceEnvironmentId(std::move(value)); return *this;} /** *

The ID of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentId, you must specify the * DestinationEnvironmentId.

*/ inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentId(const char* value) { SetSourceEnvironmentId(value); return *this;} /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline const Aws::String& GetSourceEnvironmentName() const{ return m_sourceEnvironmentName; } /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline bool SourceEnvironmentNameHasBeenSet() const { return m_sourceEnvironmentNameHasBeenSet; } /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline void SetSourceEnvironmentName(const Aws::String& value) { m_sourceEnvironmentNameHasBeenSet = true; m_sourceEnvironmentName = value; } /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline void SetSourceEnvironmentName(Aws::String&& value) { m_sourceEnvironmentNameHasBeenSet = true; m_sourceEnvironmentName = std::move(value); } /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline void SetSourceEnvironmentName(const char* value) { m_sourceEnvironmentNameHasBeenSet = true; m_sourceEnvironmentName.assign(value); } /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentName(const Aws::String& value) { SetSourceEnvironmentName(value); return *this;} /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentName(Aws::String&& value) { SetSourceEnvironmentName(std::move(value)); return *this;} /** *

The name of the source environment.

Condition: You must specify at * least the SourceEnvironmentID or the * SourceEnvironmentName. You may also specify both. If you specify * the SourceEnvironmentName, you must specify the * DestinationEnvironmentName.

*/ inline SwapEnvironmentCNAMEsRequest& WithSourceEnvironmentName(const char* value) { SetSourceEnvironmentName(value); return *this;} /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline const Aws::String& GetDestinationEnvironmentId() const{ return m_destinationEnvironmentId; } /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline bool DestinationEnvironmentIdHasBeenSet() const { return m_destinationEnvironmentIdHasBeenSet; } /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline void SetDestinationEnvironmentId(const Aws::String& value) { m_destinationEnvironmentIdHasBeenSet = true; m_destinationEnvironmentId = value; } /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline void SetDestinationEnvironmentId(Aws::String&& value) { m_destinationEnvironmentIdHasBeenSet = true; m_destinationEnvironmentId = std::move(value); } /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline void SetDestinationEnvironmentId(const char* value) { m_destinationEnvironmentIdHasBeenSet = true; m_destinationEnvironmentId.assign(value); } /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentId(const Aws::String& value) { SetDestinationEnvironmentId(value); return *this;} /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentId(Aws::String&& value) { SetDestinationEnvironmentId(std::move(value)); return *this;} /** *

The ID of the destination environment.

Condition: You must specify at * least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentId with the * DestinationEnvironmentId.

*/ inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentId(const char* value) { SetDestinationEnvironmentId(value); return *this;} /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline const Aws::String& GetDestinationEnvironmentName() const{ return m_destinationEnvironmentName; } /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline bool DestinationEnvironmentNameHasBeenSet() const { return m_destinationEnvironmentNameHasBeenSet; } /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline void SetDestinationEnvironmentName(const Aws::String& value) { m_destinationEnvironmentNameHasBeenSet = true; m_destinationEnvironmentName = value; } /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline void SetDestinationEnvironmentName(Aws::String&& value) { m_destinationEnvironmentNameHasBeenSet = true; m_destinationEnvironmentName = std::move(value); } /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline void SetDestinationEnvironmentName(const char* value) { m_destinationEnvironmentNameHasBeenSet = true; m_destinationEnvironmentName.assign(value); } /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentName(const Aws::String& value) { SetDestinationEnvironmentName(value); return *this;} /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentName(Aws::String&& value) { SetDestinationEnvironmentName(std::move(value)); return *this;} /** *

The name of the destination environment.

Condition: You must specify * at least the DestinationEnvironmentID or the * DestinationEnvironmentName. You may also specify both. You must * specify the SourceEnvironmentName with the * DestinationEnvironmentName.

*/ inline SwapEnvironmentCNAMEsRequest& WithDestinationEnvironmentName(const char* value) { SetDestinationEnvironmentName(value); return *this;} private: Aws::String m_sourceEnvironmentId; bool m_sourceEnvironmentIdHasBeenSet = false; Aws::String m_sourceEnvironmentName; bool m_sourceEnvironmentNameHasBeenSet = false; Aws::String m_destinationEnvironmentId; bool m_destinationEnvironmentIdHasBeenSet = false; Aws::String m_destinationEnvironmentName; bool m_destinationEnvironmentNameHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws