AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSecurityControlRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/securityhub/model/ParameterConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYHUB_API UpdateSecurityControlRequest() = default;
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 "UpdateSecurityControl"; }
33
34 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetSecurityControlId() const { return m_securityControlId; }
42 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
43 template<typename SecurityControlIdT = Aws::String>
44 void SetSecurityControlId(SecurityControlIdT&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::forward<SecurityControlIdT>(value); }
45 template<typename SecurityControlIdT = Aws::String>
46 UpdateSecurityControlRequest& WithSecurityControlId(SecurityControlIdT&& value) { SetSecurityControlId(std::forward<SecurityControlIdT>(value)); return *this;}
48
50
53 inline const Aws::Map<Aws::String, ParameterConfiguration>& GetParameters() const { return m_parameters; }
54 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
55 template<typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
56 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
57 template<typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
58 UpdateSecurityControlRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
59 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterConfiguration>
60 UpdateSecurityControlRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
61 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
62 }
64
66
71 inline const Aws::String& GetLastUpdateReason() const { return m_lastUpdateReason; }
72 inline bool LastUpdateReasonHasBeenSet() const { return m_lastUpdateReasonHasBeenSet; }
73 template<typename LastUpdateReasonT = Aws::String>
74 void SetLastUpdateReason(LastUpdateReasonT&& value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason = std::forward<LastUpdateReasonT>(value); }
75 template<typename LastUpdateReasonT = Aws::String>
76 UpdateSecurityControlRequest& WithLastUpdateReason(LastUpdateReasonT&& value) { SetLastUpdateReason(std::forward<LastUpdateReasonT>(value)); return *this;}
78 private:
79
80 Aws::String m_securityControlId;
81 bool m_securityControlIdHasBeenSet = false;
82
84 bool m_parametersHasBeenSet = false;
85
86 Aws::String m_lastUpdateReason;
87 bool m_lastUpdateReasonHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SecurityHub
92} // 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