AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComplianceByConfigRule.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/Compliance.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CONFIGSERVICE_API ComplianceByConfigRule();
38 AWS_CONFIGSERVICE_API ComplianceByConfigRule(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; }
48 inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
49 inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
50 inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
51 inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
52 inline ComplianceByConfigRule& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;}
53 inline ComplianceByConfigRule& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
54 inline ComplianceByConfigRule& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
56
58
61 inline const Compliance& GetCompliance() const{ return m_compliance; }
62 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
63 inline void SetCompliance(const Compliance& value) { m_complianceHasBeenSet = true; m_compliance = value; }
64 inline void SetCompliance(Compliance&& value) { m_complianceHasBeenSet = true; m_compliance = std::move(value); }
65 inline ComplianceByConfigRule& WithCompliance(const Compliance& value) { SetCompliance(value); return *this;}
66 inline ComplianceByConfigRule& WithCompliance(Compliance&& value) { SetCompliance(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_configRuleName;
71 bool m_configRuleNameHasBeenSet = false;
72
73 Compliance m_compliance;
74 bool m_complianceHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ConfigService
79} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ComplianceByConfigRule & WithConfigRuleName(Aws::String &&value)
AWS_CONFIGSERVICE_API ComplianceByConfigRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ComplianceByConfigRule(Aws::Utils::Json::JsonView jsonValue)
ComplianceByConfigRule & WithCompliance(Compliance &&value)
ComplianceByConfigRule & WithConfigRuleName(const char *value)
ComplianceByConfigRule & WithCompliance(const Compliance &value)
ComplianceByConfigRule & WithConfigRuleName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue