AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ComplianceByResource.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/Compliance.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
32 public:
33 AWS_CONFIGSERVICE_API ComplianceByResource() = default;
34 AWS_CONFIGSERVICE_API ComplianceByResource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetResourceType() const { return m_resourceType; }
43 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
44 template <typename ResourceTypeT = Aws::String>
45 void SetResourceType(ResourceTypeT&& value) {
46 m_resourceTypeHasBeenSet = true;
47 m_resourceType = std::forward<ResourceTypeT>(value);
48 }
49 template <typename ResourceTypeT = Aws::String>
50 ComplianceByResource& WithResourceType(ResourceTypeT&& value) {
51 SetResourceType(std::forward<ResourceTypeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetResourceId() const { return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 template <typename ResourceIdT = Aws::String>
63 void SetResourceId(ResourceIdT&& value) {
64 m_resourceIdHasBeenSet = true;
65 m_resourceId = std::forward<ResourceIdT>(value);
66 }
67 template <typename ResourceIdT = Aws::String>
68 ComplianceByResource& WithResourceId(ResourceIdT&& value) {
69 SetResourceId(std::forward<ResourceIdT>(value));
70 return *this;
71 }
73
75
79 inline const Compliance& GetCompliance() const { return m_compliance; }
80 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
81 template <typename ComplianceT = Compliance>
82 void SetCompliance(ComplianceT&& value) {
83 m_complianceHasBeenSet = true;
84 m_compliance = std::forward<ComplianceT>(value);
85 }
86 template <typename ComplianceT = Compliance>
87 ComplianceByResource& WithCompliance(ComplianceT&& value) {
88 SetCompliance(std::forward<ComplianceT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_resourceType;
94
95 Aws::String m_resourceId;
96
97 Compliance m_compliance;
98 bool m_resourceTypeHasBeenSet = false;
99 bool m_resourceIdHasBeenSet = false;
100 bool m_complianceHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ConfigService
105} // namespace Aws
ComplianceByResource & WithResourceId(ResourceIdT &&value)
AWS_CONFIGSERVICE_API ComplianceByResource()=default
ComplianceByResource & WithCompliance(ComplianceT &&value)
ComplianceByResource & WithResourceType(ResourceTypeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API ComplianceByResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ComplianceByResource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue