AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateSecurityControlRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/ParameterConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API UpdateSecurityControlRequest() = 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 "UpdateSecurityControl"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetSecurityControlId() const { return m_securityControlId; }
38 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
39 template <typename SecurityControlIdT = Aws::String>
40 void SetSecurityControlId(SecurityControlIdT&& value) {
41 m_securityControlIdHasBeenSet = true;
42 m_securityControlId = std::forward<SecurityControlIdT>(value);
43 }
44 template <typename SecurityControlIdT = Aws::String>
46 SetSecurityControlId(std::forward<SecurityControlIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Map<Aws::String, ParameterConfiguration>& GetParameters() const { return m_parameters; }
56 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
57 template <typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
58 void SetParameters(ParametersT&& value) {
59 m_parametersHasBeenSet = true;
60 m_parameters = std::forward<ParametersT>(value);
61 }
62 template <typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
64 SetParameters(std::forward<ParametersT>(value));
65 return *this;
66 }
67 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterConfiguration>
68 UpdateSecurityControlRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
69 m_parametersHasBeenSet = true;
70 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetLastUpdateReason() const { return m_lastUpdateReason; }
82 inline bool LastUpdateReasonHasBeenSet() const { return m_lastUpdateReasonHasBeenSet; }
83 template <typename LastUpdateReasonT = Aws::String>
84 void SetLastUpdateReason(LastUpdateReasonT&& value) {
85 m_lastUpdateReasonHasBeenSet = true;
86 m_lastUpdateReason = std::forward<LastUpdateReasonT>(value);
87 }
88 template <typename LastUpdateReasonT = Aws::String>
90 SetLastUpdateReason(std::forward<LastUpdateReasonT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_securityControlId;
96
98
99 Aws::String m_lastUpdateReason;
100 bool m_securityControlIdHasBeenSet = false;
101 bool m_parametersHasBeenSet = false;
102 bool m_lastUpdateReasonHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace SecurityHub
107} // namespace Aws
UpdateSecurityControlRequest & WithLastUpdateReason(LastUpdateReasonT &&value)
UpdateSecurityControlRequest & WithParameters(ParametersT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateSecurityControlRequest & WithSecurityControlId(SecurityControlIdT &&value)
const Aws::Map< Aws::String, ParameterConfiguration > & GetParameters() const
AWS_SECURITYHUB_API UpdateSecurityControlRequest()=default
UpdateSecurityControlRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String