AWS SDK for C++  1.9.131
AWS SDK for C++
DescribeActionTargetsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SecurityHub
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeActionTargets"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::Vector<Aws::String>& GetActionTargetArns() const{ return m_actionTargetArns; }
41 
46  inline bool ActionTargetArnsHasBeenSet() const { return m_actionTargetArnsHasBeenSet; }
47 
52  inline void SetActionTargetArns(const Aws::Vector<Aws::String>& value) { m_actionTargetArnsHasBeenSet = true; m_actionTargetArns = value; }
53 
58  inline void SetActionTargetArns(Aws::Vector<Aws::String>&& value) { m_actionTargetArnsHasBeenSet = true; m_actionTargetArns = std::move(value); }
59 
64  inline DescribeActionTargetsRequest& WithActionTargetArns(const Aws::Vector<Aws::String>& value) { SetActionTargetArns(value); return *this;}
65 
70  inline DescribeActionTargetsRequest& WithActionTargetArns(Aws::Vector<Aws::String>&& value) { SetActionTargetArns(std::move(value)); return *this;}
71 
76  inline DescribeActionTargetsRequest& AddActionTargetArns(const Aws::String& value) { m_actionTargetArnsHasBeenSet = true; m_actionTargetArns.push_back(value); return *this; }
77 
82  inline DescribeActionTargetsRequest& AddActionTargetArns(Aws::String&& value) { m_actionTargetArnsHasBeenSet = true; m_actionTargetArns.push_back(std::move(value)); return *this; }
83 
88  inline DescribeActionTargetsRequest& AddActionTargetArns(const char* value) { m_actionTargetArnsHasBeenSet = true; m_actionTargetArns.push_back(value); return *this; }
89 
90 
98  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 
107  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 
116  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
117 
125  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
126 
134  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
135 
143  inline DescribeActionTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
144 
152  inline DescribeActionTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
153 
161  inline DescribeActionTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
162 
163 
167  inline int GetMaxResults() const{ return m_maxResults; }
168 
172  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
173 
177  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
178 
182  inline DescribeActionTargetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
183 
184  private:
185 
186  Aws::Vector<Aws::String> m_actionTargetArns;
187  bool m_actionTargetArnsHasBeenSet;
188 
189  Aws::String m_nextToken;
190  bool m_nextTokenHasBeenSet;
191 
192  int m_maxResults;
193  bool m_maxResultsHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace SecurityHub
198 } // namespace Aws
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeActionTargetsRequest.h:125
Aws::SecurityHub::Model::DescribeActionTargetsRequest::WithNextToken
DescribeActionTargetsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeActionTargetsRequest.h:152
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SetActionTargetArns
void SetActionTargetArns(Aws::Vector< Aws::String > &&value)
Definition: DescribeActionTargetsRequest.h:58
Aws::SecurityHub::Model::DescribeActionTargetsRequest::AddActionTargetArns
DescribeActionTargetsRequest & AddActionTargetArns(Aws::String &&value)
Definition: DescribeActionTargetsRequest.h:82
Aws::SecurityHub::Model::DescribeActionTargetsRequest::WithNextToken
DescribeActionTargetsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeActionTargetsRequest.h:143
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeActionTargetsRequest.h:134
Aws::SecurityHub::Model::DescribeActionTargetsRequest::WithActionTargetArns
DescribeActionTargetsRequest & WithActionTargetArns(Aws::Vector< Aws::String > &&value)
Definition: DescribeActionTargetsRequest.h:70
Aws::SecurityHub::Model::DescribeActionTargetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeActionTargetsRequest.h:98
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecurityHub::Model::DescribeActionTargetsRequest::WithNextToken
DescribeActionTargetsRequest & WithNextToken(const char *value)
Definition: DescribeActionTargetsRequest.h:161
Aws::SecurityHub::Model::DescribeActionTargetsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeActionTargetsRequest.h:167
AWSVector.h
Aws::SecurityHub::Model::DescribeActionTargetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeActionTargetsRequest.h:172
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeActionTargetsRequest.h:116
Aws::SecurityHub::Model::DescribeActionTargetsRequest::ActionTargetArnsHasBeenSet
bool ActionTargetArnsHasBeenSet() const
Definition: DescribeActionTargetsRequest.h:46
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::SecurityHubRequest
Definition: SecurityHubRequest.h:17
Aws::SecurityHub::Model::DescribeActionTargetsRequest::AddActionTargetArns
DescribeActionTargetsRequest & AddActionTargetArns(const char *value)
Definition: DescribeActionTargetsRequest.h:88
Aws::SecurityHub::Model::DescribeActionTargetsRequest::WithActionTargetArns
DescribeActionTargetsRequest & WithActionTargetArns(const Aws::Vector< Aws::String > &value)
Definition: DescribeActionTargetsRequest.h:64
AWSString.h
SecurityHubRequest.h
Aws::SecurityHub::Model::DescribeActionTargetsRequest
Definition: DescribeActionTargetsRequest.h:23
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeActionTargetsRequest.h:177
Aws::SecurityHub::Model::DescribeActionTargetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeActionTargetsRequest.h:31
Aws::SecurityHub::Model::DescribeActionTargetsRequest::WithMaxResults
DescribeActionTargetsRequest & WithMaxResults(int value)
Definition: DescribeActionTargetsRequest.h:182
Aws::SecurityHub::Model::DescribeActionTargetsRequest::GetActionTargetArns
const Aws::Vector< Aws::String > & GetActionTargetArns() const
Definition: DescribeActionTargetsRequest.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecurityHub::Model::DescribeActionTargetsRequest::AddActionTargetArns
DescribeActionTargetsRequest & AddActionTargetArns(const Aws::String &value)
Definition: DescribeActionTargetsRequest.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::DescribeActionTargetsRequest::SetActionTargetArns
void SetActionTargetArns(const Aws::Vector< Aws::String > &value)
Definition: DescribeActionTargetsRequest.h:52
Aws::SecurityHub::Model::DescribeActionTargetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeActionTargetsRequest.h:107
Aws::SecurityHub::Model::DescribeActionTargetsRequest::DescribeActionTargetsRequest
DescribeActionTargetsRequest()