AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EnableRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2Request.h>
11#include <aws/inspector2/Inspector2_EXPORTS.h>
12#include <aws/inspector2/model/ResourceScanType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Inspector2 {
18namespace Model {
19
23 public:
24 AWS_INSPECTOR2_API EnableRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "Enable"; }
31
32 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
39 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
40 template <typename AccountIdsT = Aws::Vector<Aws::String>>
41 void SetAccountIds(AccountIdsT&& value) {
42 m_accountIdsHasBeenSet = true;
43 m_accountIds = std::forward<AccountIdsT>(value);
44 }
45 template <typename AccountIdsT = Aws::Vector<Aws::String>>
46 EnableRequest& WithAccountIds(AccountIdsT&& value) {
47 SetAccountIds(std::forward<AccountIdsT>(value));
48 return *this;
49 }
50 template <typename AccountIdsT = Aws::String>
51 EnableRequest& AddAccountIds(AccountIdsT&& value) {
52 m_accountIdsHasBeenSet = true;
53 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<ResourceScanType>& GetResourceTypes() const { return m_resourceTypes; }
63 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
64 template <typename ResourceTypesT = Aws::Vector<ResourceScanType>>
65 void SetResourceTypes(ResourceTypesT&& value) {
66 m_resourceTypesHasBeenSet = true;
67 m_resourceTypes = std::forward<ResourceTypesT>(value);
68 }
69 template <typename ResourceTypesT = Aws::Vector<ResourceScanType>>
70 EnableRequest& WithResourceTypes(ResourceTypesT&& value) {
71 SetResourceTypes(std::forward<ResourceTypesT>(value));
72 return *this;
73 }
75 m_resourceTypesHasBeenSet = true;
76 m_resourceTypes.push_back(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetClientToken() const { return m_clientToken; }
86 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
87 template <typename ClientTokenT = Aws::String>
88 void SetClientToken(ClientTokenT&& value) {
89 m_clientTokenHasBeenSet = true;
90 m_clientToken = std::forward<ClientTokenT>(value);
91 }
92 template <typename ClientTokenT = Aws::String>
93 EnableRequest& WithClientToken(ClientTokenT&& value) {
94 SetClientToken(std::forward<ClientTokenT>(value));
95 return *this;
96 }
98 private:
99 Aws::Vector<Aws::String> m_accountIds;
100
101 Aws::Vector<ResourceScanType> m_resourceTypes;
102
104 bool m_accountIdsHasBeenSet = false;
105 bool m_resourceTypesHasBeenSet = false;
106 bool m_clientTokenHasBeenSet = true;
107};
108
109} // namespace Model
110} // namespace Inspector2
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetAccountIds() const
EnableRequest & AddAccountIds(AccountIdsT &&value)
const Aws::Vector< ResourceScanType > & GetResourceTypes() const
AWS_INSPECTOR2_API EnableRequest()=default
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
void SetAccountIds(AccountIdsT &&value)
void SetResourceTypes(ResourceTypesT &&value)
EnableRequest & WithResourceTypes(ResourceTypesT &&value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
EnableRequest & WithClientToken(ClientTokenT &&value)
EnableRequest & AddResourceTypes(ResourceScanType value)
EnableRequest & WithAccountIds(AccountIdsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector