AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ServiceId.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/XRay_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace XRay {
21namespace Model {
22
28class ServiceId {
29 public:
30 AWS_XRAY_API ServiceId() = default;
31 AWS_XRAY_API ServiceId(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 ServiceId& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
58 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
59 template <typename NamesT = Aws::Vector<Aws::String>>
60 void SetNames(NamesT&& value) {
61 m_namesHasBeenSet = true;
62 m_names = std::forward<NamesT>(value);
63 }
64 template <typename NamesT = Aws::Vector<Aws::String>>
65 ServiceId& WithNames(NamesT&& value) {
66 SetNames(std::forward<NamesT>(value));
67 return *this;
68 }
69 template <typename NamesT = Aws::String>
70 ServiceId& AddNames(NamesT&& value) {
71 m_namesHasBeenSet = true;
72 m_names.emplace_back(std::forward<NamesT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetAccountId() const { return m_accountId; }
82 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
83 template <typename AccountIdT = Aws::String>
84 void SetAccountId(AccountIdT&& value) {
85 m_accountIdHasBeenSet = true;
86 m_accountId = std::forward<AccountIdT>(value);
87 }
88 template <typename AccountIdT = Aws::String>
89 ServiceId& WithAccountId(AccountIdT&& value) {
90 SetAccountId(std::forward<AccountIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 template <typename TypeT = Aws::String>
102 void SetType(TypeT&& value) {
103 m_typeHasBeenSet = true;
104 m_type = std::forward<TypeT>(value);
105 }
106 template <typename TypeT = Aws::String>
107 ServiceId& WithType(TypeT&& value) {
108 SetType(std::forward<TypeT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
116
117 Aws::String m_accountId;
118
119 Aws::String m_type;
120 bool m_nameHasBeenSet = false;
121 bool m_namesHasBeenSet = false;
122 bool m_accountIdHasBeenSet = false;
123 bool m_typeHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace XRay
128} // namespace Aws
AWS_XRAY_API ServiceId(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetNames() const
Definition ServiceId.h:57
void SetName(NameT &&value)
Definition ServiceId.h:42
AWS_XRAY_API ServiceId()=default
const Aws::String & GetType() const
Definition ServiceId.h:99
const Aws::String & GetAccountId() const
Definition ServiceId.h:81
ServiceId & WithAccountId(AccountIdT &&value)
Definition ServiceId.h:89
bool NameHasBeenSet() const
Definition ServiceId.h:40
ServiceId & AddNames(NamesT &&value)
Definition ServiceId.h:70
ServiceId & WithNames(NamesT &&value)
Definition ServiceId.h:65
ServiceId & WithName(NameT &&value)
Definition ServiceId.h:47
void SetAccountId(AccountIdT &&value)
Definition ServiceId.h:84
bool AccountIdHasBeenSet() const
Definition ServiceId.h:82
AWS_XRAY_API ServiceId & operator=(Aws::Utils::Json::JsonView jsonValue)
bool NamesHasBeenSet() const
Definition ServiceId.h:58
const Aws::String & GetName() const
Definition ServiceId.h:39
ServiceId & WithType(TypeT &&value)
Definition ServiceId.h:107
void SetType(TypeT &&value)
Definition ServiceId.h:102
void SetNames(NamesT &&value)
Definition ServiceId.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue