AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline ServiceId& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline ServiceId& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline ServiceId& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
60 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
61 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
62 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
63 inline ServiceId& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
64 inline ServiceId& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
65 inline ServiceId& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
66 inline ServiceId& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
67 inline ServiceId& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
69
71
74 inline const Aws::String& GetAccountId() const{ return m_accountId; }
75 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
76 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
77 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
78 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
79 inline ServiceId& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
80 inline ServiceId& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
81 inline ServiceId& WithAccountId(const char* value) { SetAccountId(value); return *this;}
83
85
88 inline const Aws::String& GetType() const{ return m_type; }
89 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
90 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
91 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
92 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
93 inline ServiceId& WithType(const Aws::String& value) { SetType(value); return *this;}
94 inline ServiceId& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
95 inline ServiceId& WithType(const char* value) { SetType(value); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
103 bool m_namesHasBeenSet = false;
104
105 Aws::String m_accountId;
106 bool m_accountIdHasBeenSet = false;
107
108 Aws::String m_type;
109 bool m_typeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace XRay
114} // namespace Aws
AWS_XRAY_API ServiceId(Aws::Utils::Json::JsonView jsonValue)
void SetNames(const Aws::Vector< Aws::String > &value)
Definition ServiceId.h:61
ServiceId & WithAccountId(const char *value)
Definition ServiceId.h:81
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetNames() const
Definition ServiceId.h:59
ServiceId & WithAccountId(Aws::String &&value)
Definition ServiceId.h:80
void SetName(Aws::String &&value)
Definition ServiceId.h:48
ServiceId & WithName(Aws::String &&value)
Definition ServiceId.h:51
void SetAccountId(const char *value)
Definition ServiceId.h:78
ServiceId & WithType(const Aws::String &value)
Definition ServiceId.h:93
const Aws::String & GetType() const
Definition ServiceId.h:88
const Aws::String & GetAccountId() const
Definition ServiceId.h:74
ServiceId & WithNames(const Aws::Vector< Aws::String > &value)
Definition ServiceId.h:63
bool NameHasBeenSet() const
Definition ServiceId.h:46
void SetAccountId(Aws::String &&value)
Definition ServiceId.h:77
void SetType(Aws::String &&value)
Definition ServiceId.h:91
bool AccountIdHasBeenSet() const
Definition ServiceId.h:75
void SetName(const Aws::String &value)
Definition ServiceId.h:47
ServiceId & WithType(const char *value)
Definition ServiceId.h:95
AWS_XRAY_API ServiceId & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceId & WithName(const char *value)
Definition ServiceId.h:52
void SetType(const Aws::String &value)
Definition ServiceId.h:90
bool NamesHasBeenSet() const
Definition ServiceId.h:60
ServiceId & AddNames(Aws::String &&value)
Definition ServiceId.h:66
ServiceId & WithNames(Aws::Vector< Aws::String > &&value)
Definition ServiceId.h:64
const Aws::String & GetName() const
Definition ServiceId.h:45
bool TypeHasBeenSet() const
Definition ServiceId.h:89
void SetAccountId(const Aws::String &value)
Definition ServiceId.h:76
void SetNames(Aws::Vector< Aws::String > &&value)
Definition ServiceId.h:62
ServiceId & WithAccountId(const Aws::String &value)
Definition ServiceId.h:79
void SetName(const char *value)
Definition ServiceId.h:49
void SetType(const char *value)
Definition ServiceId.h:92
ServiceId & AddNames(const Aws::String &value)
Definition ServiceId.h:65
ServiceId & AddNames(const char *value)
Definition ServiceId.h:67
ServiceId & WithName(const Aws::String &value)
Definition ServiceId.h:50
ServiceId & WithType(Aws::String &&value)
Definition ServiceId.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue