/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 ListDeploymentGroups * operation.

See Also:

AWS * API Reference

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

The application name.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The application name.

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

The application name.

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

The application name.

*/ inline void SetApplicationName(const char* value) { m_applicationName.assign(value); } /** *

The application name.

*/ inline ListDeploymentGroupsResult& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

The application name.

*/ inline ListDeploymentGroupsResult& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

The application name.

*/ inline ListDeploymentGroupsResult& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

A list of deployment group names.

*/ inline const Aws::Vector& GetDeploymentGroups() const{ return m_deploymentGroups; } /** *

A list of deployment group names.

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

A list of deployment group names.

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

A list of deployment group names.

*/ inline ListDeploymentGroupsResult& WithDeploymentGroups(const Aws::Vector& value) { SetDeploymentGroups(value); return *this;} /** *

A list of deployment group names.

*/ inline ListDeploymentGroupsResult& WithDeploymentGroups(Aws::Vector&& value) { SetDeploymentGroups(std::move(value)); return *this;} /** *

A list of deployment group names.

*/ inline ListDeploymentGroupsResult& AddDeploymentGroups(const Aws::String& value) { m_deploymentGroups.push_back(value); return *this; } /** *

A list of deployment group names.

*/ inline ListDeploymentGroupsResult& AddDeploymentGroups(Aws::String&& value) { m_deploymentGroups.push_back(std::move(value)); return *this; } /** *

A list of deployment group names.

*/ inline ListDeploymentGroupsResult& AddDeploymentGroups(const char* value) { m_deploymentGroups.push_back(value); return *this; } /** *

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

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

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

*/ inline ListDeploymentGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

*/ inline ListDeploymentGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If a large amount of information is returned, an identifier is also returned. * It can be used in a subsequent list deployment groups call to return the next * set of deployment groups in the list.

*/ inline ListDeploymentGroupsResult& WithNextToken(const char* value) { SetNextToken(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 ListDeploymentGroupsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListDeploymentGroupsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListDeploymentGroupsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_applicationName; Aws::Vector m_deploymentGroups; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws