AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 AggregateComplianceByConfigRule& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
55 inline AggregateComplianceByConfigRule& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
57
59
63 inline const Compliance& GetCompliance() const{ return m_compliance; }
64 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
65 inline void SetCompliance(const Compliance& value) { m_complianceHasBeenSet = true; m_compliance = value; }
66 inline void SetCompliance(Compliance&& value) { m_complianceHasBeenSet = true; m_compliance = std::move(value); }
67 inline AggregateComplianceByConfigRule& WithCompliance(const Compliance& value) { SetCompliance(value); return *this;}
68 inline AggregateComplianceByConfigRule& WithCompliance(Compliance&& value) { SetCompliance(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetAccountId() const{ return m_accountId; }
76 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
77 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
78 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
79 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
80 inline AggregateComplianceByConfigRule& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
81 inline AggregateComplianceByConfigRule& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
82 inline AggregateComplianceByConfigRule& WithAccountId(const char* value) { SetAccountId(value); return *this;}
84
86
89 inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
90 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
91 inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
92 inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
93 inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
94 inline AggregateComplianceByConfigRule& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
95 inline AggregateComplianceByConfigRule& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
96 inline AggregateComplianceByConfigRule& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
98 private:
99
100 Aws::String m_configRuleName;
101 bool m_configRuleNameHasBeenSet = false;
102
103 Compliance m_compliance;
104 bool m_complianceHasBeenSet = false;
105
106 Aws::String m_accountId;
107 bool m_accountIdHasBeenSet = false;
108
109 Aws::String m_awsRegion;
110 bool m_awsRegionHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ConfigService
115} // namespace Aws
AggregateComplianceByConfigRule & WithAccountId(const char *value)
AggregateComplianceByConfigRule & WithConfigRuleName(const Aws::String &value)
AggregateComplianceByConfigRule & WithConfigRuleName(Aws::String &&value)
AggregateComplianceByConfigRule & WithAccountId(Aws::String &&value)
AggregateComplianceByConfigRule & WithConfigRuleName(const char *value)
AWS_CONFIGSERVICE_API AggregateComplianceByConfigRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregateComplianceByConfigRule & WithAccountId(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API AggregateComplianceByConfigRule(Aws::Utils::Json::JsonView jsonValue)
AggregateComplianceByConfigRule & WithAwsRegion(Aws::String &&value)
AggregateComplianceByConfigRule & WithCompliance(Compliance &&value)
AggregateComplianceByConfigRule & WithAwsRegion(const char *value)
AggregateComplianceByConfigRule & WithAwsRegion(const Aws::String &value)
AggregateComplianceByConfigRule & WithCompliance(const Compliance &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue