AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnableRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector2/model/ResourceScanType.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Inspector2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_INSPECTOR2_API EnableRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "Enable"; }
34
35 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
43 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
44 template<typename AccountIdsT = Aws::Vector<Aws::String>>
45 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
46 template<typename AccountIdsT = Aws::Vector<Aws::String>>
47 EnableRequest& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
48 template<typename AccountIdsT = Aws::String>
49 EnableRequest& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
51
53
56 inline const Aws::String& GetClientToken() const { return m_clientToken; }
57 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
58 template<typename ClientTokenT = Aws::String>
59 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
60 template<typename ClientTokenT = Aws::String>
61 EnableRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
63
65
68 inline const Aws::Vector<ResourceScanType>& GetResourceTypes() const { return m_resourceTypes; }
69 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
70 template<typename ResourceTypesT = Aws::Vector<ResourceScanType>>
71 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
72 template<typename ResourceTypesT = Aws::Vector<ResourceScanType>>
73 EnableRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
74 inline EnableRequest& AddResourceTypes(ResourceScanType value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
76 private:
77
78 Aws::Vector<Aws::String> m_accountIds;
79 bool m_accountIdsHasBeenSet = false;
80
82 bool m_clientTokenHasBeenSet = true;
83
84 Aws::Vector<ResourceScanType> m_resourceTypes;
85 bool m_resourceTypesHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Inspector2
90} // 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