AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
45 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
46 inline EnableRequest& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
47 inline EnableRequest& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
48 inline EnableRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
49 inline EnableRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
50 inline EnableRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
52
54
57 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
58 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
60 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
61 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
62 inline EnableRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
63 inline EnableRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
64 inline EnableRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
66
68
71 inline const Aws::Vector<ResourceScanType>& GetResourceTypes() const{ return m_resourceTypes; }
72 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
73 inline void SetResourceTypes(const Aws::Vector<ResourceScanType>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
74 inline void SetResourceTypes(Aws::Vector<ResourceScanType>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
76 inline EnableRequest& WithResourceTypes(Aws::Vector<ResourceScanType>&& value) { SetResourceTypes(std::move(value)); return *this;}
77 inline EnableRequest& AddResourceTypes(const ResourceScanType& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
78 inline EnableRequest& AddResourceTypes(ResourceScanType&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::Vector<Aws::String> m_accountIds;
83 bool m_accountIdsHasBeenSet = false;
84
85 Aws::String m_clientToken;
86 bool m_clientTokenHasBeenSet = false;
87
88 Aws::Vector<ResourceScanType> m_resourceTypes;
89 bool m_resourceTypesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Inspector2
94} // namespace Aws
EnableRequest & WithClientToken(const char *value)
void SetResourceTypes(const Aws::Vector< ResourceScanType > &value)
EnableRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
EnableRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
EnableRequest & WithClientToken(Aws::String &&value)
void SetAccountIds(Aws::Vector< Aws::String > &&value)
void SetResourceTypes(Aws::Vector< ResourceScanType > &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
EnableRequest & AddAccountIds(Aws::String &&value)
EnableRequest & WithResourceTypes(Aws::Vector< ResourceScanType > &&value)
EnableRequest & AddAccountIds(const char *value)
void SetClientToken(const char *value)
void SetClientToken(Aws::String &&value)
const Aws::Vector< ResourceScanType > & GetResourceTypes() const
EnableRequest & WithClientToken(const Aws::String &value)
const Aws::String & GetClientToken() const
EnableRequest & AddResourceTypes(ResourceScanType &&value)
void SetClientToken(const Aws::String &value)
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
EnableRequest & AddResourceTypes(const ResourceScanType &value)
EnableRequest & AddAccountIds(const Aws::String &value)
void SetAccountIds(const Aws::Vector< Aws::String > &value)
EnableRequest & WithResourceTypes(const Aws::Vector< ResourceScanType > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector