AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceState.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/AttributeFilter.h>
9#include <aws/application-signals/model/ChangeEvent.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationSignals {
24namespace Model {
25
34 public:
35 AWS_APPLICATIONSIGNALS_API ServiceState() = default;
36 AWS_APPLICATIONSIGNALS_API ServiceState(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONSIGNALS_API ServiceState& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Vector<AttributeFilter>& GetAttributeFilters() const { return m_attributeFilters; }
46 inline bool AttributeFiltersHasBeenSet() const { return m_attributeFiltersHasBeenSet; }
47 template <typename AttributeFiltersT = Aws::Vector<AttributeFilter>>
48 void SetAttributeFilters(AttributeFiltersT&& value) {
49 m_attributeFiltersHasBeenSet = true;
50 m_attributeFilters = std::forward<AttributeFiltersT>(value);
51 }
52 template <typename AttributeFiltersT = Aws::Vector<AttributeFilter>>
53 ServiceState& WithAttributeFilters(AttributeFiltersT&& value) {
54 SetAttributeFilters(std::forward<AttributeFiltersT>(value));
55 return *this;
56 }
57 template <typename AttributeFiltersT = AttributeFilter>
58 ServiceState& AddAttributeFilters(AttributeFiltersT&& value) {
59 m_attributeFiltersHasBeenSet = true;
60 m_attributeFilters.emplace_back(std::forward<AttributeFiltersT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Map<Aws::String, Aws::String>& GetService() const { return m_service; }
71 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
72 template <typename ServiceT = Aws::Map<Aws::String, Aws::String>>
73 void SetService(ServiceT&& value) {
74 m_serviceHasBeenSet = true;
75 m_service = std::forward<ServiceT>(value);
76 }
77 template <typename ServiceT = Aws::Map<Aws::String, Aws::String>>
78 ServiceState& WithService(ServiceT&& value) {
79 SetService(std::forward<ServiceT>(value));
80 return *this;
81 }
82 template <typename ServiceKeyT = Aws::String, typename ServiceValueT = Aws::String>
83 ServiceState& AddService(ServiceKeyT&& key, ServiceValueT&& value) {
84 m_serviceHasBeenSet = true;
85 m_service.emplace(std::forward<ServiceKeyT>(key), std::forward<ServiceValueT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Vector<ChangeEvent>& GetLatestChangeEvents() const { return m_latestChangeEvents; }
97 inline bool LatestChangeEventsHasBeenSet() const { return m_latestChangeEventsHasBeenSet; }
98 template <typename LatestChangeEventsT = Aws::Vector<ChangeEvent>>
99 void SetLatestChangeEvents(LatestChangeEventsT&& value) {
100 m_latestChangeEventsHasBeenSet = true;
101 m_latestChangeEvents = std::forward<LatestChangeEventsT>(value);
102 }
103 template <typename LatestChangeEventsT = Aws::Vector<ChangeEvent>>
104 ServiceState& WithLatestChangeEvents(LatestChangeEventsT&& value) {
105 SetLatestChangeEvents(std::forward<LatestChangeEventsT>(value));
106 return *this;
107 }
108 template <typename LatestChangeEventsT = ChangeEvent>
109 ServiceState& AddLatestChangeEvents(LatestChangeEventsT&& value) {
110 m_latestChangeEventsHasBeenSet = true;
111 m_latestChangeEvents.emplace_back(std::forward<LatestChangeEventsT>(value));
112 return *this;
113 }
115 private:
116 Aws::Vector<AttributeFilter> m_attributeFilters;
117
119
120 Aws::Vector<ChangeEvent> m_latestChangeEvents;
121 bool m_attributeFiltersHasBeenSet = false;
122 bool m_serviceHasBeenSet = false;
123 bool m_latestChangeEventsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ApplicationSignals
128} // namespace Aws
void SetLatestChangeEvents(LatestChangeEventsT &&value)
ServiceState & AddService(ServiceKeyT &&key, ServiceValueT &&value)
ServiceState & AddLatestChangeEvents(LatestChangeEventsT &&value)
void SetAttributeFilters(AttributeFiltersT &&value)
const Aws::Vector< ChangeEvent > & GetLatestChangeEvents() const
ServiceState & AddAttributeFilters(AttributeFiltersT &&value)
ServiceState & WithAttributeFilters(AttributeFiltersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetService() const
AWS_APPLICATIONSIGNALS_API ServiceState(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONSIGNALS_API ServiceState()=default
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AttributeFilter > & GetAttributeFilters() const
ServiceState & WithLatestChangeEvents(LatestChangeEventsT &&value)
AWS_APPLICATIONSIGNALS_API ServiceState & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceState & WithService(ServiceT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue