AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceId.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_XRAY_API ServiceId() = default;
36 AWS_XRAY_API ServiceId(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 ServiceId& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
61 template<typename NamesT = Aws::Vector<Aws::String>>
62 ServiceId& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
63 template<typename NamesT = Aws::String>
64 ServiceId& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
66
68
71 inline const Aws::String& GetAccountId() const { return m_accountId; }
72 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
73 template<typename AccountIdT = Aws::String>
74 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
75 template<typename AccountIdT = Aws::String>
76 ServiceId& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 template<typename TypeT = Aws::String>
86 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
87 template<typename TypeT = Aws::String>
88 ServiceId& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
90 private:
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
96 bool m_namesHasBeenSet = false;
97
98 Aws::String m_accountId;
99 bool m_accountIdHasBeenSet = false;
100
101 Aws::String m_type;
102 bool m_typeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace XRay
107} // 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:48
AWS_XRAY_API ServiceId()=default
const Aws::String & GetType() const
Definition ServiceId.h:83
const Aws::String & GetAccountId() const
Definition ServiceId.h:71
ServiceId & WithAccountId(AccountIdT &&value)
Definition ServiceId.h:76
bool NameHasBeenSet() const
Definition ServiceId.h:46
ServiceId & AddNames(NamesT &&value)
Definition ServiceId.h:64
ServiceId & WithNames(NamesT &&value)
Definition ServiceId.h:62
ServiceId & WithName(NameT &&value)
Definition ServiceId.h:50
void SetAccountId(AccountIdT &&value)
Definition ServiceId.h:74
bool AccountIdHasBeenSet() const
Definition ServiceId.h:72
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:45
bool TypeHasBeenSet() const
Definition ServiceId.h:84
ServiceId & WithType(TypeT &&value)
Definition ServiceId.h:88
void SetType(TypeT &&value)
Definition ServiceId.h:86
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