AWS SDK for C++  1.9.156
AWS SDK for C++
Resource.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoTSiteWise
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const PortalResource& GetPortal() const{ return m_portal; }
46 
50  inline bool PortalHasBeenSet() const { return m_portalHasBeenSet; }
51 
55  inline void SetPortal(const PortalResource& value) { m_portalHasBeenSet = true; m_portal = value; }
56 
60  inline void SetPortal(PortalResource&& value) { m_portalHasBeenSet = true; m_portal = std::move(value); }
61 
65  inline Resource& WithPortal(const PortalResource& value) { SetPortal(value); return *this;}
66 
70  inline Resource& WithPortal(PortalResource&& value) { SetPortal(std::move(value)); return *this;}
71 
72 
76  inline const ProjectResource& GetProject() const{ return m_project; }
77 
81  inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
82 
86  inline void SetProject(const ProjectResource& value) { m_projectHasBeenSet = true; m_project = value; }
87 
91  inline void SetProject(ProjectResource&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
92 
96  inline Resource& WithProject(const ProjectResource& value) { SetProject(value); return *this;}
97 
101  inline Resource& WithProject(ProjectResource&& value) { SetProject(std::move(value)); return *this;}
102 
103  private:
104 
105  PortalResource m_portal;
106  bool m_portalHasBeenSet;
107 
108  ProjectResource m_project;
109  bool m_projectHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace IoTSiteWise
114 } // namespace Aws
Aws::IoTSiteWise::Model::ProjectResource
Definition: ProjectResource.h:33
Aws::IoTSiteWise::Model::PortalResource
Definition: PortalResource.h:32
Aws::IoTSiteWise::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::Resource::SetProject
void SetProject(const ProjectResource &value)
Definition: Resource.h:86
Aws::IoTSiteWise::Model::Resource::WithProject
Resource & WithProject(ProjectResource &&value)
Definition: Resource.h:101
Aws::IoTSiteWise::Model::Resource::WithPortal
Resource & WithPortal(PortalResource &&value)
Definition: Resource.h:70
Aws::IoTSiteWise::Model::Resource::ProjectHasBeenSet
bool ProjectHasBeenSet() const
Definition: Resource.h:81
Aws::IoTSiteWise::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::Resource::PortalHasBeenSet
bool PortalHasBeenSet() const
Definition: Resource.h:50
Aws::IoTSiteWise::Model::Resource::GetProject
const ProjectResource & GetProject() const
Definition: Resource.h:76
PortalResource.h
Aws::IoTSiteWise::Model::Resource::Resource
Resource()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoTSiteWise::Model::Resource::SetPortal
void SetPortal(const PortalResource &value)
Definition: Resource.h:55
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::Resource::SetProject
void SetProject(ProjectResource &&value)
Definition: Resource.h:91
ProjectResource.h
Aws::IoTSiteWise::Model::Resource::GetPortal
const PortalResource & GetPortal() const
Definition: Resource.h:45
Aws::IoTSiteWise::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::Resource::WithProject
Resource & WithProject(const ProjectResource &value)
Definition: Resource.h:96
Aws::IoTSiteWise::Model::Resource
Definition: Resource.h:34
Aws::IoTSiteWise::Model::Resource::SetPortal
void SetPortal(PortalResource &&value)
Definition: Resource.h:60
Aws::IoTSiteWise::Model::Resource::WithPortal
Resource & WithPortal(const PortalResource &value)
Definition: Resource.h:65