AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AuditTargetEntity.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/CanaryEntity.h>
9#include <aws/application-signals/model/ServiceEntity.h>
10#include <aws/application-signals/model/ServiceLevelObjectiveEntity.h>
11#include <aws/application-signals/model/ServiceOperationEntity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ApplicationSignals {
23namespace Model {
24
32 public:
33 AWS_APPLICATIONSIGNALS_API AuditTargetEntity() = default;
34 AWS_APPLICATIONSIGNALS_API AuditTargetEntity(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API AuditTargetEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ServiceEntity& GetService() const { return m_service; }
43 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
44 template <typename ServiceT = ServiceEntity>
45 void SetService(ServiceT&& value) {
46 m_serviceHasBeenSet = true;
47 m_service = std::forward<ServiceT>(value);
48 }
49 template <typename ServiceT = ServiceEntity>
50 AuditTargetEntity& WithService(ServiceT&& value) {
51 SetService(std::forward<ServiceT>(value));
52 return *this;
53 }
55
57
61 inline const ServiceLevelObjectiveEntity& GetSlo() const { return m_slo; }
62 inline bool SloHasBeenSet() const { return m_sloHasBeenSet; }
63 template <typename SloT = ServiceLevelObjectiveEntity>
64 void SetSlo(SloT&& value) {
65 m_sloHasBeenSet = true;
66 m_slo = std::forward<SloT>(value);
67 }
68 template <typename SloT = ServiceLevelObjectiveEntity>
69 AuditTargetEntity& WithSlo(SloT&& value) {
70 SetSlo(std::forward<SloT>(value));
71 return *this;
72 }
74
76
80 inline const ServiceOperationEntity& GetServiceOperation() const { return m_serviceOperation; }
81 inline bool ServiceOperationHasBeenSet() const { return m_serviceOperationHasBeenSet; }
82 template <typename ServiceOperationT = ServiceOperationEntity>
83 void SetServiceOperation(ServiceOperationT&& value) {
84 m_serviceOperationHasBeenSet = true;
85 m_serviceOperation = std::forward<ServiceOperationT>(value);
86 }
87 template <typename ServiceOperationT = ServiceOperationEntity>
88 AuditTargetEntity& WithServiceOperation(ServiceOperationT&& value) {
89 SetServiceOperation(std::forward<ServiceOperationT>(value));
90 return *this;
91 }
93
95
99 inline const CanaryEntity& GetCanary() const { return m_canary; }
100 inline bool CanaryHasBeenSet() const { return m_canaryHasBeenSet; }
101 template <typename CanaryT = CanaryEntity>
102 void SetCanary(CanaryT&& value) {
103 m_canaryHasBeenSet = true;
104 m_canary = std::forward<CanaryT>(value);
105 }
106 template <typename CanaryT = CanaryEntity>
107 AuditTargetEntity& WithCanary(CanaryT&& value) {
108 SetCanary(std::forward<CanaryT>(value));
109 return *this;
110 }
112 private:
113 ServiceEntity m_service;
114
116
117 ServiceOperationEntity m_serviceOperation;
118
119 CanaryEntity m_canary;
120 bool m_serviceHasBeenSet = false;
121 bool m_sloHasBeenSet = false;
122 bool m_serviceOperationHasBeenSet = false;
123 bool m_canaryHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ApplicationSignals
128} // namespace Aws
AuditTargetEntity & WithCanary(CanaryT &&value)
AuditTargetEntity & WithServiceOperation(ServiceOperationT &&value)
AWS_APPLICATIONSIGNALS_API AuditTargetEntity()=default
void SetServiceOperation(ServiceOperationT &&value)
AWS_APPLICATIONSIGNALS_API AuditTargetEntity(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API AuditTargetEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
AuditTargetEntity & WithService(ServiceT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const ServiceLevelObjectiveEntity & GetSlo() const
const ServiceOperationEntity & GetServiceOperation() const
Aws::Utils::Json::JsonValue JsonValue