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/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrass/model/ResourceDataContainer.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 Greengrass
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GREENGRASS_API Resource();
36 AWS_GREENGRASS_API Resource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Resource& WithId(const char* value) { SetId(value); return *this;}
56
58
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Resource& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const ResourceDataContainer& GetResourceDataContainer() const{ return m_resourceDataContainer; }
78 inline bool ResourceDataContainerHasBeenSet() const { return m_resourceDataContainerHasBeenSet; }
79 inline void SetResourceDataContainer(const ResourceDataContainer& value) { m_resourceDataContainerHasBeenSet = true; m_resourceDataContainer = value; }
80 inline void SetResourceDataContainer(ResourceDataContainer&& value) { m_resourceDataContainerHasBeenSet = true; m_resourceDataContainer = std::move(value); }
82 inline Resource& WithResourceDataContainer(ResourceDataContainer&& value) { SetResourceDataContainer(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_id;
87 bool m_idHasBeenSet = false;
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 ResourceDataContainer m_resourceDataContainer;
93 bool m_resourceDataContainerHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Greengrass
98} // namespace Aws
Resource & WithName(Aws::String &&value)
Definition Resource.h:69
Resource & WithName(const char *value)
Definition Resource.h:70
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Resource.h:65
Resource & WithResourceDataContainer(ResourceDataContainer &&value)
Definition Resource.h:82
void SetId(Aws::String &&value)
Definition Resource.h:50
AWS_GREENGRASS_API Resource(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition Resource.h:51
void SetResourceDataContainer(ResourceDataContainer &&value)
Definition Resource.h:80
Resource & WithName(const Aws::String &value)
Definition Resource.h:68
bool ResourceDataContainerHasBeenSet() const
Definition Resource.h:78
void SetName(const char *value)
Definition Resource.h:67
const Aws::String & GetId() const
Definition Resource.h:47
void SetResourceDataContainer(const ResourceDataContainer &value)
Definition Resource.h:79
void SetName(Aws::String &&value)
Definition Resource.h:66
Resource & WithId(const Aws::String &value)
Definition Resource.h:52
Resource & WithId(Aws::String &&value)
Definition Resource.h:53
void SetId(const Aws::String &value)
Definition Resource.h:49
AWS_GREENGRASS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const ResourceDataContainer & GetResourceDataContainer() const
Definition Resource.h:77
Resource & WithResourceDataContainer(const ResourceDataContainer &value)
Definition Resource.h:81
const Aws::String & GetName() const
Definition Resource.h:63
AWS_GREENGRASS_API Resource()
Resource & WithId(const char *value)
Definition Resource.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue