AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Alias.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
32 class Alias
33 {
34 public:
35 AWS_XRAY_API Alias();
36 AWS_XRAY_API Alias(Aws::Utils::Json::JsonView jsonValue);
37 AWS_XRAY_API Alias& operator=(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 Alias& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Alias& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Alias& 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 Alias& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
64 inline Alias& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
65 inline Alias& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
66 inline Alias& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
67 inline Alias& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
69
71
74 inline const Aws::String& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
79 inline Alias& WithType(const Aws::String& value) { SetType(value); return *this;}
80 inline Alias& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
81 inline Alias& WithType(const char* value) { SetType(value); return *this;}
83 private:
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
89 bool m_namesHasBeenSet = false;
90
91 Aws::String m_type;
92 bool m_typeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace XRay
97} // namespace Aws
void SetName(Aws::String &&value)
Definition Alias.h:48
void SetName(const char *value)
Definition Alias.h:49
void SetNames(Aws::Vector< Aws::String > &&value)
Definition Alias.h:62
void SetType(Aws::String &&value)
Definition Alias.h:77
Alias & WithName(const Aws::String &value)
Definition Alias.h:50
Alias & WithType(Aws::String &&value)
Definition Alias.h:80
Alias & WithType(const Aws::String &value)
Definition Alias.h:79
bool TypeHasBeenSet() const
Definition Alias.h:75
void SetNames(const Aws::Vector< Aws::String > &value)
Definition Alias.h:61
void SetType(const char *value)
Definition Alias.h:78
Alias & WithNames(Aws::Vector< Aws::String > &&value)
Definition Alias.h:64
bool NameHasBeenSet() const
Definition Alias.h:46
Alias & WithNames(const Aws::Vector< Aws::String > &value)
Definition Alias.h:63
Alias & WithType(const char *value)
Definition Alias.h:81
Alias & WithName(Aws::String &&value)
Definition Alias.h:51
AWS_XRAY_API Alias & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition Alias.h:47
Alias & AddNames(Aws::String &&value)
Definition Alias.h:66
AWS_XRAY_API Alias(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
Alias & AddNames(const Aws::String &value)
Definition Alias.h:65
AWS_XRAY_API Alias()
void SetType(const Aws::String &value)
Definition Alias.h:76
Alias & AddNames(const char *value)
Definition Alias.h:67
Alias & WithName(const char *value)
Definition Alias.h:52
const Aws::String & GetType() const
Definition Alias.h:74
const Aws::Vector< Aws::String > & GetNames() const
Definition Alias.h:59
const Aws::String & GetName() const
Definition Alias.h:45
bool NamesHasBeenSet() const
Definition Alias.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