AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DATAZONE_API Resource();
36 AWS_DATAZONE_API Resource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
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 Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline Resource& WithName(const char* value) { SetName(value); return *this;}
54
56
60 inline const Aws::String& GetProvider() const{ return m_provider; }
61 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
62 inline void SetProvider(const Aws::String& value) { m_providerHasBeenSet = true; m_provider = value; }
63 inline void SetProvider(Aws::String&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
64 inline void SetProvider(const char* value) { m_providerHasBeenSet = true; m_provider.assign(value); }
65 inline Resource& WithProvider(const Aws::String& value) { SetProvider(value); return *this;}
66 inline Resource& WithProvider(Aws::String&& value) { SetProvider(std::move(value)); return *this;}
67 inline Resource& WithProvider(const char* value) { SetProvider(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 Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
80 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
81 inline Resource& WithType(const char* value) { SetType(value); return *this;}
83
85
88 inline const Aws::String& GetValue() const{ return m_value; }
89 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
91 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
92 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
93 inline Resource& WithValue(const Aws::String& value) { SetValue(value); return *this;}
94 inline Resource& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
95 inline Resource& WithValue(const char* value) { SetValue(value); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_provider;
103 bool m_providerHasBeenSet = false;
104
105 Aws::String m_type;
106 bool m_typeHasBeenSet = false;
107
108 Aws::String m_value;
109 bool m_valueHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace DataZone
114} // namespace Aws
const Aws::String & GetValue() const
Definition Resource.h:88
const Aws::String & GetProvider() const
Definition Resource.h:60
void SetValue(const Aws::String &value)
Definition Resource.h:90
Resource & WithName(const char *value)
Definition Resource.h:52
Resource & WithType(Aws::String &&value)
Definition Resource.h:80
Resource & WithValue(Aws::String &&value)
Definition Resource.h:94
Resource & WithName(Aws::String &&value)
Definition Resource.h:51
void SetType(Aws::String &&value)
Definition Resource.h:77
Resource & WithType(const Aws::String &value)
Definition Resource.h:79
Resource & WithName(const Aws::String &value)
Definition Resource.h:50
const Aws::String & GetName() const
Definition Resource.h:45
Resource & WithType(const char *value)
Definition Resource.h:81
Resource & WithProvider(const char *value)
Definition Resource.h:67
void SetName(const char *value)
Definition Resource.h:49
void SetValue(const char *value)
Definition Resource.h:92
const Aws::String & GetType() const
Definition Resource.h:74
Resource & WithValue(const char *value)
Definition Resource.h:95
void SetProvider(const Aws::String &value)
Definition Resource.h:62
void SetName(const Aws::String &value)
Definition Resource.h:47
Resource & WithProvider(Aws::String &&value)
Definition Resource.h:66
void SetProvider(const char *value)
Definition Resource.h:64
AWS_DATAZONE_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithValue(const Aws::String &value)
Definition Resource.h:93
bool ProviderHasBeenSet() const
Definition Resource.h:61
void SetValue(Aws::String &&value)
Definition Resource.h:91
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const Aws::String &value)
Definition Resource.h:76
Resource & WithProvider(const Aws::String &value)
Definition Resource.h:65
AWS_DATAZONE_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Resource()
void SetProvider(Aws::String &&value)
Definition Resource.h:63
void SetType(const char *value)
Definition Resource.h:78
void SetName(Aws::String &&value)
Definition Resource.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue