/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class CreateTrafficMirrorTargetResponse { public: AWS_EC2_API CreateTrafficMirrorTargetResponse(); AWS_EC2_API CreateTrafficMirrorTargetResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateTrafficMirrorTargetResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the Traffic Mirror target.

*/ inline const TrafficMirrorTarget& GetTrafficMirrorTarget() const{ return m_trafficMirrorTarget; } /** *

Information about the Traffic Mirror target.

*/ inline void SetTrafficMirrorTarget(const TrafficMirrorTarget& value) { m_trafficMirrorTarget = value; } /** *

Information about the Traffic Mirror target.

*/ inline void SetTrafficMirrorTarget(TrafficMirrorTarget&& value) { m_trafficMirrorTarget = std::move(value); } /** *

Information about the Traffic Mirror target.

*/ inline CreateTrafficMirrorTargetResponse& WithTrafficMirrorTarget(const TrafficMirrorTarget& value) { SetTrafficMirrorTarget(value); return *this;} /** *

Information about the Traffic Mirror target.

*/ inline CreateTrafficMirrorTargetResponse& WithTrafficMirrorTarget(TrafficMirrorTarget&& value) { SetTrafficMirrorTarget(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const char* value) { m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateTrafficMirrorTargetResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateTrafficMirrorTargetResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateTrafficMirrorTargetResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreateTrafficMirrorTargetResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateTrafficMirrorTargetResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: TrafficMirrorTarget m_trafficMirrorTarget; Aws::String m_clientToken; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws