AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConformancePackRuleCompliance.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/config/model/ConformancePackComplianceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 ConfigService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CONFIGSERVICE_API ConformancePackRuleCompliance();
41 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; }
49 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
50 inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
51 inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
52 inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
54 inline ConformancePackRuleCompliance& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
55 inline ConformancePackRuleCompliance& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
57
59
62 inline const ConformancePackComplianceType& GetComplianceType() const{ return m_complianceType; }
63 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
64 inline void SetComplianceType(const ConformancePackComplianceType& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
65 inline void SetComplianceType(ConformancePackComplianceType&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
69
71
76 inline const Aws::Vector<Aws::String>& GetControls() const{ return m_controls; }
77 inline bool ControlsHasBeenSet() const { return m_controlsHasBeenSet; }
78 inline void SetControls(const Aws::Vector<Aws::String>& value) { m_controlsHasBeenSet = true; m_controls = value; }
79 inline void SetControls(Aws::Vector<Aws::String>&& value) { m_controlsHasBeenSet = true; m_controls = std::move(value); }
81 inline ConformancePackRuleCompliance& WithControls(Aws::Vector<Aws::String>&& value) { SetControls(std::move(value)); return *this;}
82 inline ConformancePackRuleCompliance& AddControls(const Aws::String& value) { m_controlsHasBeenSet = true; m_controls.push_back(value); return *this; }
83 inline ConformancePackRuleCompliance& AddControls(Aws::String&& value) { m_controlsHasBeenSet = true; m_controls.push_back(std::move(value)); return *this; }
84 inline ConformancePackRuleCompliance& AddControls(const char* value) { m_controlsHasBeenSet = true; m_controls.push_back(value); return *this; }
86 private:
87
88 Aws::String m_configRuleName;
89 bool m_configRuleNameHasBeenSet = false;
90
91 ConformancePackComplianceType m_complianceType;
92 bool m_complianceTypeHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_controls;
95 bool m_controlsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ConfigService
100} // namespace Aws
ConformancePackRuleCompliance & AddControls(const Aws::String &value)
ConformancePackRuleCompliance & AddControls(Aws::String &&value)
ConformancePackRuleCompliance & WithComplianceType(const ConformancePackComplianceType &value)
AWS_CONFIGSERVICE_API ConformancePackRuleCompliance & operator=(Aws::Utils::Json::JsonView jsonValue)
ConformancePackRuleCompliance & WithControls(const Aws::Vector< Aws::String > &value)
ConformancePackRuleCompliance & WithComplianceType(ConformancePackComplianceType &&value)
ConformancePackRuleCompliance & WithConfigRuleName(Aws::String &&value)
ConformancePackRuleCompliance & WithConfigRuleName(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API ConformancePackRuleCompliance(Aws::Utils::Json::JsonView jsonValue)
void SetComplianceType(const ConformancePackComplianceType &value)
ConformancePackRuleCompliance & WithControls(Aws::Vector< Aws::String > &&value)
ConformancePackRuleCompliance & AddControls(const char *value)
const ConformancePackComplianceType & GetComplianceType() const
ConformancePackRuleCompliance & WithConfigRuleName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue