AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceOperation.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/application-signals/model/MetricReference.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 ApplicationSignals
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_APPLICATIONSIGNALS_API ServiceOperation();
40 AWS_APPLICATIONSIGNALS_API ServiceOperation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONSIGNALS_API ServiceOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline ServiceOperation& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline ServiceOperation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline ServiceOperation& WithName(const char* value) { SetName(value); return *this;}
58
60
65 inline const Aws::Vector<MetricReference>& GetMetricReferences() const{ return m_metricReferences; }
66 inline bool MetricReferencesHasBeenSet() const { return m_metricReferencesHasBeenSet; }
67 inline void SetMetricReferences(const Aws::Vector<MetricReference>& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = value; }
68 inline void SetMetricReferences(Aws::Vector<MetricReference>&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences = std::move(value); }
71 inline ServiceOperation& AddMetricReferences(const MetricReference& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(value); return *this; }
72 inline ServiceOperation& AddMetricReferences(MetricReference&& value) { m_metricReferencesHasBeenSet = true; m_metricReferences.push_back(std::move(value)); return *this; }
74 private:
75
76 Aws::String m_name;
77 bool m_nameHasBeenSet = false;
78
79 Aws::Vector<MetricReference> m_metricReferences;
80 bool m_metricReferencesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ApplicationSignals
85} // namespace Aws
ServiceOperation & AddMetricReferences(MetricReference &&value)
ServiceOperation & AddMetricReferences(const MetricReference &value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceOperation & WithName(const char *value)
AWS_APPLICATIONSIGNALS_API ServiceOperation()
ServiceOperation & WithMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceOperation & WithName(Aws::String &&value)
AWS_APPLICATIONSIGNALS_API ServiceOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< MetricReference > & GetMetricReferences() const
ServiceOperation & WithName(const Aws::String &value)
AWS_APPLICATIONSIGNALS_API ServiceOperation(Aws::Utils::Json::JsonView jsonValue)
void SetMetricReferences(Aws::Vector< MetricReference > &&value)
void SetMetricReferences(const Aws::Vector< MetricReference > &value)
ServiceOperation & WithMetricReferences(Aws::Vector< MetricReference > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue