AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AggregateComplianceByConfigRule.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
36 {
37 public:
38 AWS_CONFIGSERVICE_API AggregateComplianceByConfigRule() = default;
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 template<typename ConfigRuleNameT = Aws::String>
51 void SetConfigRuleName(ConfigRuleNameT&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::forward<ConfigRuleNameT>(value); }
52 template<typename ConfigRuleNameT = Aws::String>
53 AggregateComplianceByConfigRule& WithConfigRuleName(ConfigRuleNameT&& value) { SetConfigRuleName(std::forward<ConfigRuleNameT>(value)); return *this;}
55
57
61 inline const Compliance& GetCompliance() const { return m_compliance; }
62 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
63 template<typename ComplianceT = Compliance>
64 void SetCompliance(ComplianceT&& value) { m_complianceHasBeenSet = true; m_compliance = std::forward<ComplianceT>(value); }
65 template<typename ComplianceT = Compliance>
66 AggregateComplianceByConfigRule& WithCompliance(ComplianceT&& value) { SetCompliance(std::forward<ComplianceT>(value)); return *this;}
68
70
73 inline const Aws::String& GetAccountId() const { return m_accountId; }
74 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
75 template<typename AccountIdT = Aws::String>
76 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
77 template<typename AccountIdT = Aws::String>
78 AggregateComplianceByConfigRule& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
86 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
87 template<typename AwsRegionT = Aws::String>
88 void SetAwsRegion(AwsRegionT&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
89 template<typename AwsRegionT = Aws::String>
90 AggregateComplianceByConfigRule& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
92 private:
93
94 Aws::String m_configRuleName;
95 bool m_configRuleNameHasBeenSet = false;
96
97 Compliance m_compliance;
98 bool m_complianceHasBeenSet = false;
99
100 Aws::String m_accountId;
101 bool m_accountIdHasBeenSet = false;
102
103 Aws::String m_awsRegion;
104 bool m_awsRegionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ConfigService
109} // namespace Aws
AggregateComplianceByConfigRule & WithAccountId(AccountIdT &&value)
AggregateComplianceByConfigRule & WithConfigRuleName(ConfigRuleNameT &&value)
AWS_CONFIGSERVICE_API AggregateComplianceByConfigRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API AggregateComplianceByConfigRule(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API AggregateComplianceByConfigRule()=default
AggregateComplianceByConfigRule & WithAwsRegion(AwsRegionT &&value)
AggregateComplianceByConfigRule & WithCompliance(ComplianceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue