AWS SDK for C++  0.14.3
AWS SDK for C++
ComplianceByConfigRule.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ConfigService
30 {
31 namespace Model
32 {
33 
40  {
41  public:
44  ComplianceByConfigRule& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; }
51 
55  inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
56 
60  inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
61 
65  inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
66 
70  inline ComplianceByConfigRule& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;}
71 
75  inline ComplianceByConfigRule& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(value); return *this;}
76 
80  inline ComplianceByConfigRule& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
81 
85  inline const Compliance& GetCompliance() const{ return m_compliance; }
86 
90  inline void SetCompliance(const Compliance& value) { m_complianceHasBeenSet = true; m_compliance = value; }
91 
95  inline void SetCompliance(Compliance&& value) { m_complianceHasBeenSet = true; m_compliance = value; }
96 
100  inline ComplianceByConfigRule& WithCompliance(const Compliance& value) { SetCompliance(value); return *this;}
101 
105  inline ComplianceByConfigRule& WithCompliance(Compliance&& value) { SetCompliance(value); return *this;}
106 
107  private:
108  Aws::String m_configRuleName;
109  bool m_configRuleNameHasBeenSet;
110  Compliance m_compliance;
111  bool m_complianceHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace ConfigService
116 } // namespace Aws
ComplianceByConfigRule & WithConfigRuleName(const Aws::String &value)
ComplianceByConfigRule & WithCompliance(const Compliance &value)
ComplianceByConfigRule & WithConfigRuleName(Aws::String &&value)
ComplianceByConfigRule & WithCompliance(Compliance &&value)
ComplianceByConfigRule & WithConfigRuleName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CONFIGSERVICE_API
JSON (JavaScript Object Notation).