AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComplianceByResource.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 ComplianceByResource();
39 AWS_CONFIGSERVICE_API ComplianceByResource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
49 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
50 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
51 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
52 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
53 inline ComplianceByResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
54 inline ComplianceByResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
55 inline ComplianceByResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
57
59
62 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
65 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
66 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
67 inline ComplianceByResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
68 inline ComplianceByResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
69 inline ComplianceByResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
71
73
77 inline const Compliance& GetCompliance() const{ return m_compliance; }
78 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
79 inline void SetCompliance(const Compliance& value) { m_complianceHasBeenSet = true; m_compliance = value; }
80 inline void SetCompliance(Compliance&& value) { m_complianceHasBeenSet = true; m_compliance = std::move(value); }
81 inline ComplianceByResource& WithCompliance(const Compliance& value) { SetCompliance(value); return *this;}
82 inline ComplianceByResource& WithCompliance(Compliance&& value) { SetCompliance(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_resourceType;
87 bool m_resourceTypeHasBeenSet = false;
88
89 Aws::String m_resourceId;
90 bool m_resourceIdHasBeenSet = false;
91
92 Compliance m_compliance;
93 bool m_complianceHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ConfigService
98} // namespace Aws
ComplianceByResource & WithResourceType(Aws::String &&value)
ComplianceByResource & WithResourceId(Aws::String &&value)
ComplianceByResource & WithResourceId(const Aws::String &value)
ComplianceByResource & WithResourceId(const char *value)
ComplianceByResource & WithCompliance(const Compliance &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ComplianceByResource & WithResourceType(const Aws::String &value)
AWS_CONFIGSERVICE_API ComplianceByResource & operator=(Aws::Utils::Json::JsonView jsonValue)
ComplianceByResource & WithCompliance(Compliance &&value)
AWS_CONFIGSERVICE_API ComplianceByResource(Aws::Utils::Json::JsonView jsonValue)
ComplianceByResource & WithResourceType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue