AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceOperationEntity.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/ServiceEntity.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 ApplicationSignals {
21namespace Model {
22
30 public:
31 AWS_APPLICATIONSIGNALS_API ServiceOperationEntity() = default;
32 AWS_APPLICATIONSIGNALS_API ServiceOperationEntity(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API ServiceOperationEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ServiceEntity& GetService() const { return m_service; }
41 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
42 template <typename ServiceT = ServiceEntity>
43 void SetService(ServiceT&& value) {
44 m_serviceHasBeenSet = true;
45 m_service = std::forward<ServiceT>(value);
46 }
47 template <typename ServiceT = ServiceEntity>
49 SetService(std::forward<ServiceT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetOperation() const { return m_operation; }
59 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
60 template <typename OperationT = Aws::String>
61 void SetOperation(OperationT&& value) {
62 m_operationHasBeenSet = true;
63 m_operation = std::forward<OperationT>(value);
64 }
65 template <typename OperationT = Aws::String>
67 SetOperation(std::forward<OperationT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMetricType() const { return m_metricType; }
77 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
78 template <typename MetricTypeT = Aws::String>
79 void SetMetricType(MetricTypeT&& value) {
80 m_metricTypeHasBeenSet = true;
81 m_metricType = std::forward<MetricTypeT>(value);
82 }
83 template <typename MetricTypeT = Aws::String>
84 ServiceOperationEntity& WithMetricType(MetricTypeT&& value) {
85 SetMetricType(std::forward<MetricTypeT>(value));
86 return *this;
87 }
89 private:
90 ServiceEntity m_service;
91
92 Aws::String m_operation;
93
94 Aws::String m_metricType;
95 bool m_serviceHasBeenSet = false;
96 bool m_operationHasBeenSet = false;
97 bool m_metricTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ApplicationSignals
102} // namespace Aws
ServiceOperationEntity & WithOperation(OperationT &&value)
AWS_APPLICATIONSIGNALS_API ServiceOperationEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceOperationEntity()=default
ServiceOperationEntity & WithMetricType(MetricTypeT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONSIGNALS_API ServiceOperationEntity(Aws::Utils::Json::JsonView jsonValue)
ServiceOperationEntity & WithService(ServiceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue