/** * 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 Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeDeploy { namespace Model { /** *

Represents the output of a BatchGetDeploymentGroups * operation.

See Also:

AWS * API Reference

*/ class BatchGetDeploymentGroupsResult { public: AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult(); AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult(const Aws::AmazonWebServiceResult& result); AWS_CODEDEPLOY_API BatchGetDeploymentGroupsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Information about the deployment groups.

*/ inline const Aws::Vector& GetDeploymentGroupsInfo() const{ return m_deploymentGroupsInfo; } /** *

Information about the deployment groups.

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

Information about the deployment groups.

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

Information about the deployment groups.

*/ inline BatchGetDeploymentGroupsResult& WithDeploymentGroupsInfo(const Aws::Vector& value) { SetDeploymentGroupsInfo(value); return *this;} /** *

Information about the deployment groups.

*/ inline BatchGetDeploymentGroupsResult& WithDeploymentGroupsInfo(Aws::Vector&& value) { SetDeploymentGroupsInfo(std::move(value)); return *this;} /** *

Information about the deployment groups.

*/ inline BatchGetDeploymentGroupsResult& AddDeploymentGroupsInfo(const DeploymentGroupInfo& value) { m_deploymentGroupsInfo.push_back(value); return *this; } /** *

Information about the deployment groups.

*/ inline BatchGetDeploymentGroupsResult& AddDeploymentGroupsInfo(DeploymentGroupInfo&& value) { m_deploymentGroupsInfo.push_back(std::move(value)); return *this; } /** *

Information about errors that might have occurred during the API call.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

Information about errors that might have occurred during the API call.

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

Information about errors that might have occurred during the API call.

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

Information about errors that might have occurred during the API call.

*/ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** *

Information about errors that might have occurred during the API call.

*/ inline BatchGetDeploymentGroupsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

Information about errors that might have occurred during the API call.

*/ inline BatchGetDeploymentGroupsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

Information about errors that might have occurred during the API call.

*/ inline BatchGetDeploymentGroupsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchGetDeploymentGroupsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetDeploymentGroupsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetDeploymentGroupsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_deploymentGroupsInfo; Aws::String m_errorMessage; Aws::String m_requestId; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws