AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComplianceViolator.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fms/model/ViolationReason.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FMS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_FMS_API ComplianceViolator() = default;
41
42
44
47 inline const Aws::String& GetResourceId() const { return m_resourceId; }
48 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
49 template<typename ResourceIdT = Aws::String>
50 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
51 template<typename ResourceIdT = Aws::String>
52 ComplianceViolator& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
54
56
59 inline ViolationReason GetViolationReason() const { return m_violationReason; }
60 inline bool ViolationReasonHasBeenSet() const { return m_violationReasonHasBeenSet; }
61 inline void SetViolationReason(ViolationReason value) { m_violationReasonHasBeenSet = true; m_violationReason = value; }
64
66
74 inline const Aws::String& GetResourceType() const { return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 template<typename ResourceTypeT = Aws::String>
77 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
78 template<typename ResourceTypeT = Aws::String>
79 ComplianceViolator& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
81
83
86 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
87 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
88 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
89 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
90 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
91 ComplianceViolator& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
92 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
93 ComplianceViolator& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
94 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
95 }
97 private:
98
99 Aws::String m_resourceId;
100 bool m_resourceIdHasBeenSet = false;
101
102 ViolationReason m_violationReason{ViolationReason::NOT_SET};
103 bool m_violationReasonHasBeenSet = false;
104
105 Aws::String m_resourceType;
106 bool m_resourceTypeHasBeenSet = false;
107
109 bool m_metadataHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace FMS
114} // namespace Aws
ViolationReason GetViolationReason() const
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API ComplianceViolator(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceType() const
AWS_FMS_API ComplianceViolator()=default
AWS_FMS_API ComplianceViolator & operator=(Aws::Utils::Json::JsonView jsonValue)
ComplianceViolator & WithResourceType(ResourceTypeT &&value)
ComplianceViolator & WithResourceId(ResourceIdT &&value)
void SetResourceId(ResourceIdT &&value)
void SetResourceType(ResourceTypeT &&value)
ComplianceViolator & WithViolationReason(ViolationReason value)
const Aws::String & GetResourceId() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetViolationReason(ViolationReason value)
ComplianceViolator & WithMetadata(MetadataT &&value)
ComplianceViolator & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue