AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
GetEnabledStandardsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/StandardsProvider.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API GetEnabledStandardsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetEnabledStandards"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::Vector<Aws::String>& GetStandardsSubscriptionArns() const { return m_standardsSubscriptionArns; }
39 inline bool StandardsSubscriptionArnsHasBeenSet() const { return m_standardsSubscriptionArnsHasBeenSet; }
40 template <typename StandardsSubscriptionArnsT = Aws::Vector<Aws::String>>
41 void SetStandardsSubscriptionArns(StandardsSubscriptionArnsT&& value) {
42 m_standardsSubscriptionArnsHasBeenSet = true;
43 m_standardsSubscriptionArns = std::forward<StandardsSubscriptionArnsT>(value);
44 }
45 template <typename StandardsSubscriptionArnsT = Aws::Vector<Aws::String>>
46 GetEnabledStandardsRequest& WithStandardsSubscriptionArns(StandardsSubscriptionArnsT&& value) {
47 SetStandardsSubscriptionArns(std::forward<StandardsSubscriptionArnsT>(value));
48 return *this;
49 }
50 template <typename StandardsSubscriptionArnsT = Aws::String>
51 GetEnabledStandardsRequest& AddStandardsSubscriptionArns(StandardsSubscriptionArnsT&& value) {
52 m_standardsSubscriptionArnsHasBeenSet = true;
53 m_standardsSubscriptionArns.emplace_back(std::forward<StandardsSubscriptionArnsT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95
97
102 inline const Aws::Vector<StandardsProvider>& GetProviders() const { return m_providers; }
103 inline bool ProvidersHasBeenSet() const { return m_providersHasBeenSet; }
104 template <typename ProvidersT = Aws::Vector<StandardsProvider>>
105 void SetProviders(ProvidersT&& value) {
106 m_providersHasBeenSet = true;
107 m_providers = std::forward<ProvidersT>(value);
108 }
109 template <typename ProvidersT = Aws::Vector<StandardsProvider>>
111 SetProviders(std::forward<ProvidersT>(value));
112 return *this;
113 }
115 m_providersHasBeenSet = true;
116 m_providers.push_back(value);
117 return *this;
118 }
120 private:
121 Aws::Vector<Aws::String> m_standardsSubscriptionArns;
122
123 Aws::String m_nextToken;
124
125 int m_maxResults{0};
126
128 bool m_standardsSubscriptionArnsHasBeenSet = false;
129 bool m_nextTokenHasBeenSet = false;
130 bool m_maxResultsHasBeenSet = false;
131 bool m_providersHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace SecurityHub
136} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< StandardsProvider > & GetProviders() const
GetEnabledStandardsRequest & WithStandardsSubscriptionArns(StandardsSubscriptionArnsT &&value)
void SetStandardsSubscriptionArns(StandardsSubscriptionArnsT &&value)
GetEnabledStandardsRequest & WithProviders(ProvidersT &&value)
AWS_SECURITYHUB_API GetEnabledStandardsRequest()=default
GetEnabledStandardsRequest & AddStandardsSubscriptionArns(StandardsSubscriptionArnsT &&value)
const Aws::Vector< Aws::String > & GetStandardsSubscriptionArns() const
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetEnabledStandardsRequest & WithNextToken(NextTokenT &&value)
GetEnabledStandardsRequest & AddProviders(StandardsProvider value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector