AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 Resource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template<typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 Resource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetAssociationTime() const { return m_associationTime; }
71 inline bool AssociationTimeHasBeenSet() const { return m_associationTimeHasBeenSet; }
72 template<typename AssociationTimeT = Aws::Utils::DateTime>
73 void SetAssociationTime(AssociationTimeT&& value) { m_associationTimeHasBeenSet = true; m_associationTime = std::forward<AssociationTimeT>(value); }
74 template<typename AssociationTimeT = Aws::Utils::DateTime>
75 Resource& WithAssociationTime(AssociationTimeT&& value) { SetAssociationTime(std::forward<AssociationTimeT>(value)); return *this;}
77
79
82 inline const ResourceIntegrations& GetIntegrations() const { return m_integrations; }
83 inline bool IntegrationsHasBeenSet() const { return m_integrationsHasBeenSet; }
84 template<typename IntegrationsT = ResourceIntegrations>
85 void SetIntegrations(IntegrationsT&& value) { m_integrationsHasBeenSet = true; m_integrations = std::forward<IntegrationsT>(value); }
86 template<typename IntegrationsT = ResourceIntegrations>
87 Resource& WithIntegrations(IntegrationsT&& value) { SetIntegrations(std::forward<IntegrationsT>(value)); return *this;}
89 private:
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::String m_arn;
95 bool m_arnHasBeenSet = false;
96
97 Aws::Utils::DateTime m_associationTime{};
98 bool m_associationTimeHasBeenSet = false;
99
100 ResourceIntegrations m_integrations;
101 bool m_integrationsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace AppRegistry
106} // namespace Aws
void SetArn(ArnT &&value)
Definition Resource.h:61
AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithAssociationTime(AssociationTimeT &&value)
Definition Resource.h:75
const ResourceIntegrations & GetIntegrations() const
Definition Resource.h:82
Resource & WithArn(ArnT &&value)
Definition Resource.h:63
void SetAssociationTime(AssociationTimeT &&value)
Definition Resource.h:73
AWS_APPREGISTRY_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPREGISTRY_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool AssociationTimeHasBeenSet() const
Definition Resource.h:71
Resource & WithName(NameT &&value)
Definition Resource.h:51
AWS_APPREGISTRY_API Resource()=default
const Aws::String & GetArn() const
Definition Resource.h:58
Resource & WithIntegrations(IntegrationsT &&value)
Definition Resource.h:87
const Aws::Utils::DateTime & GetAssociationTime() const
Definition Resource.h:70
const Aws::String & GetName() const
Definition Resource.h:46
void SetIntegrations(IntegrationsT &&value)
Definition Resource.h:85
void SetName(NameT &&value)
Definition Resource.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue