AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityControlCustomParameter.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/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/ParameterConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API SecurityControlCustomParameter() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
45 m_securityControlIdHasBeenSet = true;
46 m_securityControlId = std::forward<SecurityControlIdT>(value);
47 }
48 template <typename SecurityControlIdT = Aws::String>
50 SetSecurityControlId(std::forward<SecurityControlIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Map<Aws::String, ParameterConfiguration>& GetParameters() const { return m_parameters; }
61 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
62 template <typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
63 void SetParameters(ParametersT&& value) {
64 m_parametersHasBeenSet = true;
65 m_parameters = std::forward<ParametersT>(value);
66 }
67 template <typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
69 SetParameters(std::forward<ParametersT>(value));
70 return *this;
71 }
72 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterConfiguration>
73 SecurityControlCustomParameter& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
74 m_parametersHasBeenSet = true;
75 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_securityControlId;
81
83 bool m_securityControlIdHasBeenSet = false;
84 bool m_parametersHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace SecurityHub
89} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API SecurityControlCustomParameter()=default
AWS_SECURITYHUB_API SecurityControlCustomParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityControlCustomParameter & WithParameters(ParametersT &&value)
const Aws::Map< Aws::String, ParameterConfiguration > & GetParameters() const
SecurityControlCustomParameter & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
SecurityControlCustomParameter & WithSecurityControlId(SecurityControlIdT &&value)
AWS_SECURITYHUB_API SecurityControlCustomParameter(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue