AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecurityControlCustomParameter.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/securityhub/model/ParameterConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API SecurityControlCustomParameter() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSecurityControlId() const { return m_securityControlId; }
48 inline bool SecurityControlIdHasBeenSet() const { return m_securityControlIdHasBeenSet; }
49 template<typename SecurityControlIdT = Aws::String>
50 void SetSecurityControlId(SecurityControlIdT&& value) { m_securityControlIdHasBeenSet = true; m_securityControlId = std::forward<SecurityControlIdT>(value); }
51 template<typename SecurityControlIdT = Aws::String>
52 SecurityControlCustomParameter& WithSecurityControlId(SecurityControlIdT&& value) { SetSecurityControlId(std::forward<SecurityControlIdT>(value)); return *this;}
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) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
64 template<typename ParametersT = Aws::Map<Aws::String, ParameterConfiguration>>
65 SecurityControlCustomParameter& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
66 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = ParameterConfiguration>
67 SecurityControlCustomParameter& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
68 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
69 }
71 private:
72
73 Aws::String m_securityControlId;
74 bool m_securityControlIdHasBeenSet = false;
75
77 bool m_parametersHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SecurityHub
82} // 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