AWS SDK for C++  0.14.3
AWS SDK for C++
ComplianceByResource.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 
41  {
42  public:
45  ComplianceByResource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
52 
56  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
57 
61  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62 
66  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
67 
71  inline ComplianceByResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
72 
76  inline ComplianceByResource& WithResourceType(Aws::String&& value) { SetResourceType(value); return *this;}
77 
81  inline ComplianceByResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
82 
86  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
87 
91  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
92 
96  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
97 
101  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
102 
106  inline ComplianceByResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
107 
111  inline ComplianceByResource& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
112 
116  inline ComplianceByResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
117 
122  inline const Compliance& GetCompliance() const{ return m_compliance; }
123 
128  inline void SetCompliance(const Compliance& value) { m_complianceHasBeenSet = true; m_compliance = value; }
129 
134  inline void SetCompliance(Compliance&& value) { m_complianceHasBeenSet = true; m_compliance = value; }
135 
140  inline ComplianceByResource& WithCompliance(const Compliance& value) { SetCompliance(value); return *this;}
141 
146  inline ComplianceByResource& WithCompliance(Compliance&& value) { SetCompliance(value); return *this;}
147 
148  private:
149  Aws::String m_resourceType;
150  bool m_resourceTypeHasBeenSet;
151  Aws::String m_resourceId;
152  bool m_resourceIdHasBeenSet;
153  Compliance m_compliance;
154  bool m_complianceHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace ConfigService
159 } // namespace Aws
ComplianceByResource & WithResourceType(Aws::String &&value)
ComplianceByResource & WithCompliance(const Compliance &value)
ComplianceByResource & WithResourceType(const char *value)
ComplianceByResource & WithResourceId(const char *value)
ComplianceByResource & WithResourceType(const Aws::String &value)
ComplianceByResource & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CONFIGSERVICE_API
ComplianceByResource & WithResourceId(Aws::String &&value)
JSON (JavaScript Object Notation).
ComplianceByResource & WithCompliance(Compliance &&value)