AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisableRequest.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
14namespace Aws
15{
16namespace Inspector2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR2_API DisableRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "Disable"; }
33
34 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
42 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
43 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
44 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
45 inline DisableRequest& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
46 inline DisableRequest& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
47 inline DisableRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
48 inline DisableRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
49 inline DisableRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
51
53
56 inline const Aws::Vector<ResourceScanType>& GetResourceTypes() const{ return m_resourceTypes; }
57 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
58 inline void SetResourceTypes(const Aws::Vector<ResourceScanType>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
59 inline void SetResourceTypes(Aws::Vector<ResourceScanType>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
61 inline DisableRequest& WithResourceTypes(Aws::Vector<ResourceScanType>&& value) { SetResourceTypes(std::move(value)); return *this;}
62 inline DisableRequest& AddResourceTypes(const ResourceScanType& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
63 inline DisableRequest& AddResourceTypes(ResourceScanType&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
65 private:
66
67 Aws::Vector<Aws::String> m_accountIds;
68 bool m_accountIdsHasBeenSet = false;
69
70 Aws::Vector<ResourceScanType> m_resourceTypes;
71 bool m_resourceTypesHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Inspector2
76} // namespace Aws
DisableRequest & AddResourceTypes(const ResourceScanType &value)
DisableRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
DisableRequest & WithResourceTypes(const Aws::Vector< ResourceScanType > &value)
DisableRequest & AddAccountIds(const char *value)
DisableRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
DisableRequest & WithResourceTypes(Aws::Vector< ResourceScanType > &&value)
void SetResourceTypes(Aws::Vector< ResourceScanType > &&value)
void SetAccountIds(Aws::Vector< Aws::String > &&value)
void SetAccountIds(const Aws::Vector< Aws::String > &value)
DisableRequest & AddAccountIds(Aws::String &&value)
void SetResourceTypes(const Aws::Vector< ResourceScanType > &value)
const Aws::Vector< Aws::String > & GetAccountIds() const
const Aws::Vector< ResourceScanType > & GetResourceTypes() const
virtual const char * GetServiceRequestName() const override
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
DisableRequest & AddResourceTypes(ResourceScanType &&value)
DisableRequest & AddAccountIds(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector