AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExternalEvaluation.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ComplianceType.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConfigService {
22namespace Model {
23
32 public:
33 AWS_CONFIGSERVICE_API ExternalEvaluation() = default;
34 AWS_CONFIGSERVICE_API ExternalEvaluation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONFIGSERVICE_API ExternalEvaluation& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetComplianceResourceType() const { return m_complianceResourceType; }
44 inline bool ComplianceResourceTypeHasBeenSet() const { return m_complianceResourceTypeHasBeenSet; }
45 template <typename ComplianceResourceTypeT = Aws::String>
46 void SetComplianceResourceType(ComplianceResourceTypeT&& value) {
47 m_complianceResourceTypeHasBeenSet = true;
48 m_complianceResourceType = std::forward<ComplianceResourceTypeT>(value);
49 }
50 template <typename ComplianceResourceTypeT = Aws::String>
51 ExternalEvaluation& WithComplianceResourceType(ComplianceResourceTypeT&& value) {
52 SetComplianceResourceType(std::forward<ComplianceResourceTypeT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetComplianceResourceId() const { return m_complianceResourceId; }
63 inline bool ComplianceResourceIdHasBeenSet() const { return m_complianceResourceIdHasBeenSet; }
64 template <typename ComplianceResourceIdT = Aws::String>
65 void SetComplianceResourceId(ComplianceResourceIdT&& value) {
66 m_complianceResourceIdHasBeenSet = true;
67 m_complianceResourceId = std::forward<ComplianceResourceIdT>(value);
68 }
69 template <typename ComplianceResourceIdT = Aws::String>
70 ExternalEvaluation& WithComplianceResourceId(ComplianceResourceIdT&& value) {
71 SetComplianceResourceId(std::forward<ComplianceResourceIdT>(value));
72 return *this;
73 }
75
77
81 inline ComplianceType GetComplianceType() const { return m_complianceType; }
82 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
83 inline void SetComplianceType(ComplianceType value) {
84 m_complianceTypeHasBeenSet = true;
85 m_complianceType = value;
86 }
88 SetComplianceType(value);
89 return *this;
90 }
92
94
98 inline const Aws::String& GetAnnotation() const { return m_annotation; }
99 inline bool AnnotationHasBeenSet() const { return m_annotationHasBeenSet; }
100 template <typename AnnotationT = Aws::String>
101 void SetAnnotation(AnnotationT&& value) {
102 m_annotationHasBeenSet = true;
103 m_annotation = std::forward<AnnotationT>(value);
104 }
105 template <typename AnnotationT = Aws::String>
106 ExternalEvaluation& WithAnnotation(AnnotationT&& value) {
107 SetAnnotation(std::forward<AnnotationT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetOrderingTimestamp() const { return m_orderingTimestamp; }
117 inline bool OrderingTimestampHasBeenSet() const { return m_orderingTimestampHasBeenSet; }
118 template <typename OrderingTimestampT = Aws::Utils::DateTime>
119 void SetOrderingTimestamp(OrderingTimestampT&& value) {
120 m_orderingTimestampHasBeenSet = true;
121 m_orderingTimestamp = std::forward<OrderingTimestampT>(value);
122 }
123 template <typename OrderingTimestampT = Aws::Utils::DateTime>
124 ExternalEvaluation& WithOrderingTimestamp(OrderingTimestampT&& value) {
125 SetOrderingTimestamp(std::forward<OrderingTimestampT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_complianceResourceType;
131
132 Aws::String m_complianceResourceId;
133
134 ComplianceType m_complianceType{ComplianceType::NOT_SET};
135
136 Aws::String m_annotation;
137
138 Aws::Utils::DateTime m_orderingTimestamp{};
139 bool m_complianceResourceTypeHasBeenSet = false;
140 bool m_complianceResourceIdHasBeenSet = false;
141 bool m_complianceTypeHasBeenSet = false;
142 bool m_annotationHasBeenSet = false;
143 bool m_orderingTimestampHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ConfigService
148} // namespace Aws
AWS_CONFIGSERVICE_API ExternalEvaluation(Aws::Utils::Json::JsonView jsonValue)
void SetOrderingTimestamp(OrderingTimestampT &&value)
ExternalEvaluation & WithComplianceResourceType(ComplianceResourceTypeT &&value)
AWS_CONFIGSERVICE_API ExternalEvaluation()=default
AWS_CONFIGSERVICE_API ExternalEvaluation & operator=(Aws::Utils::Json::JsonView jsonValue)
ExternalEvaluation & WithComplianceType(ComplianceType value)
const Aws::String & GetComplianceResourceId() const
const Aws::String & GetComplianceResourceType() const
void SetComplianceResourceType(ComplianceResourceTypeT &&value)
const Aws::Utils::DateTime & GetOrderingTimestamp() const
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ExternalEvaluation & WithComplianceResourceId(ComplianceResourceIdT &&value)
void SetComplianceResourceId(ComplianceResourceIdT &&value)
ExternalEvaluation & WithOrderingTimestamp(OrderingTimestampT &&value)
ExternalEvaluation & WithAnnotation(AnnotationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue