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/servicecatalog-appregistry/AppRegistry_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/servicecatalog-appregistry/model/ResourceIntegrations.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppRegistry
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_APPREGISTRY_API Resource();
37 AWS_APPREGISTRY_API Resource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPREGISTRY_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline Resource& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetArn() const{ return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
63 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
64 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
66 inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
67 inline Resource& WithArn(const char* value) { SetArn(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetAssociationTime() const{ return m_associationTime; }
75 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
76 inline void SetAssociationTime(const Aws::Utils::DateTime& value) { m_associationTimeHasBeenSet = true; m_associationTime = value; }
77 inline void SetAssociationTime(Aws::Utils::DateTime&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::move(value); }
78 inline Resource& WithAssociationTime(const Aws::Utils::DateTime& value) { SetAssociationTime(value); return *this;}
79 inline Resource& WithAssociationTime(Aws::Utils::DateTime&& value) { SetAssociationTime(std::move(value)); return *this;}
81
83
86 inline const ResourceIntegrations& GetIntegrations() const{ return m_integrations; }
87 inline bool IntegrationsHasBeenSet() const { return m_integrationsHasBeenSet; }
88 inline void SetIntegrations(const ResourceIntegrations& value) { m_integrationsHasBeenSet = true; m_integrations = value; }
89 inline void SetIntegrations(ResourceIntegrations&& value) { m_integrationsHasBeenSet = true; m_integrations = std::move(value); }
90 inline Resource& WithIntegrations(const ResourceIntegrations& value) { SetIntegrations(value); return *this;}
91 inline Resource& WithIntegrations(ResourceIntegrations&& value) { SetIntegrations(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_arn;
99 bool m_arnHasBeenSet = false;
100
101 Aws::Utils::DateTime m_associationTime;
102 bool m_associationTimeHasBeenSet = false;
103
104 ResourceIntegrations m_integrations;
105 bool m_integrationsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace AppRegistry
110} // namespace Aws
void SetArn(const Aws::String &value)
Definition Resource.h:62
void SetIntegrations(ResourceIntegrations &&value)
Definition Resource.h:89
Resource & WithName(Aws::String &&value)
Definition Resource.h:52
Resource & WithArn(Aws::String &&value)
Definition Resource.h:66
Resource & WithIntegrations(const ResourceIntegrations &value)
Definition Resource.h:90
AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithArn(const char *value)
Definition Resource.h:67
Resource & WithAssociationTime(const Aws::Utils::DateTime &value)
Definition Resource.h:78
Resource & WithArn(const Aws::String &value)
Definition Resource.h:65
const ResourceIntegrations & GetIntegrations() const
Definition Resource.h:86
void SetAssociationTime(const Aws::Utils::DateTime &value)
Definition Resource.h:76
Resource & WithAssociationTime(Aws::Utils::DateTime &&value)
Definition Resource.h:79
AWS_APPREGISTRY_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithName(const Aws::String &value)
Definition Resource.h:51
AWS_APPREGISTRY_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool AssociationTimeHasBeenSet() const
Definition Resource.h:75
void SetIntegrations(const ResourceIntegrations &value)
Definition Resource.h:88
void SetAssociationTime(Aws::Utils::DateTime &&value)
Definition Resource.h:77
void SetArn(const char *value)
Definition Resource.h:64
Resource & WithName(const char *value)
Definition Resource.h:53
const Aws::String & GetArn() const
Definition Resource.h:60
void SetName(const Aws::String &value)
Definition Resource.h:48
void SetName(Aws::String &&value)
Definition Resource.h:49
const Aws::Utils::DateTime & GetAssociationTime() const
Definition Resource.h:74
AWS_APPREGISTRY_API Resource()
const Aws::String & GetName() const
Definition Resource.h:46
void SetName(const char *value)
Definition Resource.h:50
Resource & WithIntegrations(ResourceIntegrations &&value)
Definition Resource.h:91
void SetArn(Aws::String &&value)
Definition Resource.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue