AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceInfo.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/servicecatalog-appregistry/model/ResourceType.h>
10#include <aws/servicecatalog-appregistry/model/ResourceDetails.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/servicecatalog-appregistry/model/AssociationOption.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AppRegistry
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_APPREGISTRY_API ResourceInfo();
39 AWS_APPREGISTRY_API ResourceInfo(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPREGISTRY_API ResourceInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ResourceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ResourceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ResourceInfo& WithName(const char* value) { SetName(value); return *this;}
57
59
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline ResourceInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline ResourceInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline ResourceInfo& WithArn(const char* value) { SetArn(value); return *this;}
72
74
78 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
79 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
80 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
81 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
82 inline ResourceInfo& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
83 inline ResourceInfo& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
85
87
90 inline const ResourceDetails& GetResourceDetails() const{ return m_resourceDetails; }
91 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
92 inline void SetResourceDetails(const ResourceDetails& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = value; }
93 inline void SetResourceDetails(ResourceDetails&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::move(value); }
94 inline ResourceInfo& WithResourceDetails(const ResourceDetails& value) { SetResourceDetails(value); return *this;}
95 inline ResourceInfo& WithResourceDetails(ResourceDetails&& value) { SetResourceDetails(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<AssociationOption>& GetOptions() const{ return m_options; }
103 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
104 inline void SetOptions(const Aws::Vector<AssociationOption>& value) { m_optionsHasBeenSet = true; m_options = value; }
105 inline void SetOptions(Aws::Vector<AssociationOption>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
106 inline ResourceInfo& WithOptions(const Aws::Vector<AssociationOption>& value) { SetOptions(value); return *this;}
107 inline ResourceInfo& WithOptions(Aws::Vector<AssociationOption>&& value) { SetOptions(std::move(value)); return *this;}
108 inline ResourceInfo& AddOptions(const AssociationOption& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
109 inline ResourceInfo& AddOptions(AssociationOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_arn;
117 bool m_arnHasBeenSet = false;
118
119 ResourceType m_resourceType;
120 bool m_resourceTypeHasBeenSet = false;
121
122 ResourceDetails m_resourceDetails;
123 bool m_resourceDetailsHasBeenSet = false;
124
126 bool m_optionsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AppRegistry
131} // namespace Aws
ResourceInfo & WithOptions(Aws::Vector< AssociationOption > &&value)
ResourceInfo & WithArn(const char *value)
ResourceInfo & WithName(const char *value)
AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
ResourceInfo & WithResourceType(ResourceType &&value)
const ResourceDetails & GetResourceDetails() const
void SetResourceDetails(const ResourceDetails &value)
const ResourceType & GetResourceType() const
ResourceInfo & WithName(const Aws::String &value)
void SetResourceDetails(ResourceDetails &&value)
AWS_APPREGISTRY_API ResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
void SetName(const char *value)
AWS_APPREGISTRY_API ResourceInfo(Aws::Utils::Json::JsonView jsonValue)
ResourceInfo & WithOptions(const Aws::Vector< AssociationOption > &value)
ResourceInfo & AddOptions(AssociationOption &&value)
void SetArn(Aws::String &&value)
ResourceInfo & WithResourceType(const ResourceType &value)
void SetArn(const Aws::String &value)
ResourceInfo & WithResourceDetails(const ResourceDetails &value)
const Aws::Vector< AssociationOption > & GetOptions() const
ResourceInfo & WithArn(Aws::String &&value)
ResourceInfo & WithName(Aws::String &&value)
void SetOptions(const Aws::Vector< AssociationOption > &value)
void SetOptions(Aws::Vector< AssociationOption > &&value)
void SetResourceType(ResourceType &&value)
void SetResourceType(const ResourceType &value)
const Aws::String & GetName() const
const Aws::String & GetArn() const
ResourceInfo & WithResourceDetails(ResourceDetails &&value)
ResourceInfo & AddOptions(const AssociationOption &value)
AWS_APPREGISTRY_API ResourceInfo()
ResourceInfo & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue