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/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/PortalResource.h>
9#include <aws/iotsitewise/model/ProjectResource.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 IoTSiteWise
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTSITEWISE_API Resource();
37 AWS_IOTSITEWISE_API Resource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSITEWISE_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const PortalResource& GetPortal() const{ return m_portal; }
47 inline bool PortalHasBeenSet() const { return m_portalHasBeenSet; }
48 inline void SetPortal(const PortalResource& value) { m_portalHasBeenSet = true; m_portal = value; }
49 inline void SetPortal(PortalResource&& value) { m_portalHasBeenSet = true; m_portal = std::move(value); }
50 inline Resource& WithPortal(const PortalResource& value) { SetPortal(value); return *this;}
51 inline Resource& WithPortal(PortalResource&& value) { SetPortal(std::move(value)); return *this;}
53
55
58 inline const ProjectResource& GetProject() const{ return m_project; }
59 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
60 inline void SetProject(const ProjectResource& value) { m_projectHasBeenSet = true; m_project = value; }
61 inline void SetProject(ProjectResource&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
62 inline Resource& WithProject(const ProjectResource& value) { SetProject(value); return *this;}
63 inline Resource& WithProject(ProjectResource&& value) { SetProject(std::move(value)); return *this;}
65 private:
66
67 PortalResource m_portal;
68 bool m_portalHasBeenSet = false;
69
70 ProjectResource m_project;
71 bool m_projectHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace IoTSiteWise
76} // namespace Aws
void SetProject(ProjectResource &&value)
Definition Resource.h:61
Resource & WithProject(const ProjectResource &value)
Definition Resource.h:62
void SetPortal(const PortalResource &value)
Definition Resource.h:48
const ProjectResource & GetProject() const
Definition Resource.h:58
void SetPortal(PortalResource &&value)
Definition Resource.h:49
AWS_IOTSITEWISE_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Resource(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Resource()
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
const PortalResource & GetPortal() const
Definition Resource.h:46
Resource & WithProject(ProjectResource &&value)
Definition Resource.h:63
void SetProject(const ProjectResource &value)
Definition Resource.h:60
Resource & WithPortal(PortalResource &&value)
Definition Resource.h:51
Resource & WithPortal(const PortalResource &value)
Definition Resource.h:50
Aws::Utils::Json::JsonValue JsonValue