/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 CreateFlowLogsResponse { public: AWS_EC2_API CreateFlowLogsResponse(); AWS_EC2_API CreateFlowLogsResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateFlowLogsResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ 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.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateFlowLogsResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The IDs of the flow logs.

*/ inline const Aws::Vector& GetFlowLogIds() const{ return m_flowLogIds; } /** *

The IDs of the flow logs.

*/ inline void SetFlowLogIds(const Aws::Vector& value) { m_flowLogIds = value; } /** *

The IDs of the flow logs.

*/ inline void SetFlowLogIds(Aws::Vector&& value) { m_flowLogIds = std::move(value); } /** *

The IDs of the flow logs.

*/ inline CreateFlowLogsResponse& WithFlowLogIds(const Aws::Vector& value) { SetFlowLogIds(value); return *this;} /** *

The IDs of the flow logs.

*/ inline CreateFlowLogsResponse& WithFlowLogIds(Aws::Vector&& value) { SetFlowLogIds(std::move(value)); return *this;} /** *

The IDs of the flow logs.

*/ inline CreateFlowLogsResponse& AddFlowLogIds(const Aws::String& value) { m_flowLogIds.push_back(value); return *this; } /** *

The IDs of the flow logs.

*/ inline CreateFlowLogsResponse& AddFlowLogIds(Aws::String&& value) { m_flowLogIds.push_back(std::move(value)); return *this; } /** *

The IDs of the flow logs.

*/ inline CreateFlowLogsResponse& AddFlowLogIds(const char* value) { m_flowLogIds.push_back(value); return *this; } /** *

Information about the flow logs that could not be created successfully.

*/ inline const Aws::Vector& GetUnsuccessful() const{ return m_unsuccessful; } /** *

Information about the flow logs that could not be created successfully.

*/ inline void SetUnsuccessful(const Aws::Vector& value) { m_unsuccessful = value; } /** *

Information about the flow logs that could not be created successfully.

*/ inline void SetUnsuccessful(Aws::Vector&& value) { m_unsuccessful = std::move(value); } /** *

Information about the flow logs that could not be created successfully.

*/ inline CreateFlowLogsResponse& WithUnsuccessful(const Aws::Vector& value) { SetUnsuccessful(value); return *this;} /** *

Information about the flow logs that could not be created successfully.

*/ inline CreateFlowLogsResponse& WithUnsuccessful(Aws::Vector&& value) { SetUnsuccessful(std::move(value)); return *this;} /** *

Information about the flow logs that could not be created successfully.

*/ inline CreateFlowLogsResponse& AddUnsuccessful(const UnsuccessfulItem& value) { m_unsuccessful.push_back(value); return *this; } /** *

Information about the flow logs that could not be created successfully.

*/ inline CreateFlowLogsResponse& AddUnsuccessful(UnsuccessfulItem&& value) { m_unsuccessful.push_back(std::move(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 CreateFlowLogsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateFlowLogsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_clientToken; Aws::Vector m_flowLogIds; Aws::Vector m_unsuccessful; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws