AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetDeploymentGroupsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeDeploy {
16namespace Model {
17
25 public:
26 AWS_CODEDEPLOY_API BatchGetDeploymentGroupsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchGetDeploymentGroups"; }
33
34 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
44 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
45 template <typename ApplicationNameT = Aws::String>
46 void SetApplicationName(ApplicationNameT&& value) {
47 m_applicationNameHasBeenSet = true;
48 m_applicationName = std::forward<ApplicationNameT>(value);
49 }
50 template <typename ApplicationNameT = Aws::String>
52 SetApplicationName(std::forward<ApplicationNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Aws::String>& GetDeploymentGroupNames() const { return m_deploymentGroupNames; }
62 inline bool DeploymentGroupNamesHasBeenSet() const { return m_deploymentGroupNamesHasBeenSet; }
63 template <typename DeploymentGroupNamesT = Aws::Vector<Aws::String>>
64 void SetDeploymentGroupNames(DeploymentGroupNamesT&& value) {
65 m_deploymentGroupNamesHasBeenSet = true;
66 m_deploymentGroupNames = std::forward<DeploymentGroupNamesT>(value);
67 }
68 template <typename DeploymentGroupNamesT = Aws::Vector<Aws::String>>
70 SetDeploymentGroupNames(std::forward<DeploymentGroupNamesT>(value));
71 return *this;
72 }
73 template <typename DeploymentGroupNamesT = Aws::String>
75 m_deploymentGroupNamesHasBeenSet = true;
76 m_deploymentGroupNames.emplace_back(std::forward<DeploymentGroupNamesT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_applicationName;
82
83 Aws::Vector<Aws::String> m_deploymentGroupNames;
84 bool m_applicationNameHasBeenSet = false;
85 bool m_deploymentGroupNamesHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CodeDeploy
90} // namespace Aws
BatchGetDeploymentGroupsRequest & WithDeploymentGroupNames(DeploymentGroupNamesT &&value)
BatchGetDeploymentGroupsRequest & WithApplicationName(ApplicationNameT &&value)
BatchGetDeploymentGroupsRequest & AddDeploymentGroupNames(DeploymentGroupNamesT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API BatchGetDeploymentGroupsRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector