AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeActionTargetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API DescribeActionTargetsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeActionTargets"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::Vector<Aws::String>& GetActionTargetArns() const { return m_actionTargetArns; }
38 inline bool ActionTargetArnsHasBeenSet() const { return m_actionTargetArnsHasBeenSet; }
39 template <typename ActionTargetArnsT = Aws::Vector<Aws::String>>
40 void SetActionTargetArns(ActionTargetArnsT&& value) {
41 m_actionTargetArnsHasBeenSet = true;
42 m_actionTargetArns = std::forward<ActionTargetArnsT>(value);
43 }
44 template <typename ActionTargetArnsT = Aws::Vector<Aws::String>>
46 SetActionTargetArns(std::forward<ActionTargetArnsT>(value));
47 return *this;
48 }
49 template <typename ActionTargetArnsT = Aws::String>
51 m_actionTargetArnsHasBeenSet = true;
52 m_actionTargetArns.emplace_back(std::forward<ActionTargetArnsT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 template <typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) {
69 m_nextTokenHasBeenSet = true;
70 m_nextToken = std::forward<NextTokenT>(value);
71 }
72 template <typename NextTokenT = Aws::String>
74 SetNextToken(std::forward<NextTokenT>(value));
75 return *this;
76 }
78
80
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) {
86 m_maxResultsHasBeenSet = true;
87 m_maxResults = value;
88 }
90 SetMaxResults(value);
91 return *this;
92 }
94 private:
95 Aws::Vector<Aws::String> m_actionTargetArns;
96
97 Aws::String m_nextToken;
98
99 int m_maxResults{0};
100 bool m_actionTargetArnsHasBeenSet = false;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_maxResultsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace SecurityHub
107} // namespace Aws
AWS_SECURITYHUB_API DescribeActionTargetsRequest()=default
DescribeActionTargetsRequest & WithActionTargetArns(ActionTargetArnsT &&value)
const Aws::Vector< Aws::String > & GetActionTargetArns() const
DescribeActionTargetsRequest & WithNextToken(NextTokenT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
DescribeActionTargetsRequest & AddActionTargetArns(ActionTargetArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector