AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSecurityControlId(const Aws::String& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = value; }
44 inline void SetSecurityControlId(Aws::String&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::move(value); }
45 inline void SetSecurityControlId(const char* value) { m_securityControlIdHasBeenSet = true; m_securityControlId.assign(value); }
47 inline UpdateSecurityControlRequest& WithSecurityControlId(Aws::String&& value) { SetSecurityControlId(std::move(value)); return *this;}
48 inline UpdateSecurityControlRequest& WithSecurityControlId(const char* value) { SetSecurityControlId(value); return *this;}
50
52
55 inline const Aws::Map<Aws::String, ParameterConfiguration>& GetParameters() const{ return m_parameters; }
56 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
57 inline void SetParameters(const Aws::Map<Aws::String, ParameterConfiguration>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
58 inline void SetParameters(Aws::Map<Aws::String, ParameterConfiguration>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
61 inline UpdateSecurityControlRequest& AddParameters(const Aws::String& key, const ParameterConfiguration& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
62 inline UpdateSecurityControlRequest& AddParameters(Aws::String&& key, const ParameterConfiguration& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
63 inline UpdateSecurityControlRequest& AddParameters(const Aws::String& key, ParameterConfiguration&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
64 inline UpdateSecurityControlRequest& AddParameters(Aws::String&& key, ParameterConfiguration&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
65 inline UpdateSecurityControlRequest& AddParameters(const char* key, ParameterConfiguration&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
66 inline UpdateSecurityControlRequest& AddParameters(const char* key, const ParameterConfiguration& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
68
70
75 inline const Aws::String& GetLastUpdateReason() const{ return m_lastUpdateReason; }
76 inline bool LastUpdateReasonHasBeenSet() const { return m_lastUpdateReasonHasBeenSet; }
77 inline void SetLastUpdateReason(const Aws::String& value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason = value; }
78 inline void SetLastUpdateReason(Aws::String&& value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason = std::move(value); }
79 inline void SetLastUpdateReason(const char* value) { m_lastUpdateReasonHasBeenSet = true; m_lastUpdateReason.assign(value); }
81 inline UpdateSecurityControlRequest& WithLastUpdateReason(Aws::String&& value) { SetLastUpdateReason(std::move(value)); return *this;}
82 inline UpdateSecurityControlRequest& WithLastUpdateReason(const char* value) { SetLastUpdateReason(value); return *this;}
84 private:
85
86 Aws::String m_securityControlId;
87 bool m_securityControlIdHasBeenSet = false;
88
90 bool m_parametersHasBeenSet = false;
91
92 Aws::String m_lastUpdateReason;
93 bool m_lastUpdateReasonHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SecurityHub
98} // namespace Aws
UpdateSecurityControlRequest & WithLastUpdateReason(const char *value)
UpdateSecurityControlRequest & AddParameters(Aws::String &&key, const ParameterConfiguration &value)
UpdateSecurityControlRequest & WithSecurityControlId(Aws::String &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateSecurityControlRequest & WithParameters(const Aws::Map< Aws::String, ParameterConfiguration > &value)
UpdateSecurityControlRequest & WithParameters(Aws::Map< Aws::String, ParameterConfiguration > &&value)
UpdateSecurityControlRequest & AddParameters(Aws::String &&key, ParameterConfiguration &&value)
const Aws::Map< Aws::String, ParameterConfiguration > & GetParameters() const
UpdateSecurityControlRequest & AddParameters(const char *key, ParameterConfiguration &&value)
UpdateSecurityControlRequest & WithSecurityControlId(const char *value)
UpdateSecurityControlRequest & AddParameters(const Aws::String &key, const ParameterConfiguration &value)
void SetParameters(const Aws::Map< Aws::String, ParameterConfiguration > &value)
UpdateSecurityControlRequest & WithSecurityControlId(const Aws::String &value)
UpdateSecurityControlRequest & WithLastUpdateReason(Aws::String &&value)
UpdateSecurityControlRequest & AddParameters(const Aws::String &key, ParameterConfiguration &&value)
UpdateSecurityControlRequest & AddParameters(const char *key, const ParameterConfiguration &value)
void SetParameters(Aws::Map< Aws::String, ParameterConfiguration > &&value)
UpdateSecurityControlRequest & WithLastUpdateReason(const Aws::String &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