AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
BatchGetCommentRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/CommentKey.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Assurance {
17namespace Model {
18
22 public:
23 AWS_ASSURANCE_API BatchGetCommentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchGetComment"; }
30
31 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
40 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
41 template <typename EnvironmentArnT = Aws::String>
42 void SetEnvironmentArn(EnvironmentArnT&& value) {
43 m_environmentArnHasBeenSet = true;
44 m_environmentArn = std::forward<EnvironmentArnT>(value);
45 }
46 template <typename EnvironmentArnT = Aws::String>
47 BatchGetCommentRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
48 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetProject() const { return m_project; }
58 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
59 template <typename ProjectT = Aws::String>
60 void SetProject(ProjectT&& value) {
61 m_projectHasBeenSet = true;
62 m_project = std::forward<ProjectT>(value);
63 }
64 template <typename ProjectT = Aws::String>
66 SetProject(std::forward<ProjectT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<CommentKey>& GetKeys() const { return m_keys; }
77 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
78 template <typename KeysT = Aws::Vector<CommentKey>>
79 void SetKeys(KeysT&& value) {
80 m_keysHasBeenSet = true;
81 m_keys = std::forward<KeysT>(value);
82 }
83 template <typename KeysT = Aws::Vector<CommentKey>>
85 SetKeys(std::forward<KeysT>(value));
86 return *this;
87 }
88 template <typename KeysT = CommentKey>
90 m_keysHasBeenSet = true;
91 m_keys.emplace_back(std::forward<KeysT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_environmentArn;
97
98 Aws::String m_project;
99
101 bool m_environmentArnHasBeenSet = false;
102 bool m_projectHasBeenSet = false;
103 bool m_keysHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Assurance
108} // namespace Aws
AWS_ASSURANCE_API Aws::String SerializePayload() const override
BatchGetCommentRequest & WithEnvironmentArn(EnvironmentArnT &&value)
BatchGetCommentRequest & AddKeys(KeysT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< CommentKey > & GetKeys() const
BatchGetCommentRequest & WithKeys(KeysT &&value)
BatchGetCommentRequest & WithProject(ProjectT &&value)
AWS_ASSURANCE_API BatchGetCommentRequest()=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