AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 ResourceInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template<typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
65 template<typename ArnT = Aws::String>
66 ResourceInfo& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68
70
74 inline ResourceType GetResourceType() const { return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
77 inline ResourceInfo& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
79
81
84 inline const ResourceDetails& GetResourceDetails() const { return m_resourceDetails; }
85 inline bool ResourceDetailsHasBeenSet() const { return m_resourceDetailsHasBeenSet; }
86 template<typename ResourceDetailsT = ResourceDetails>
87 void SetResourceDetails(ResourceDetailsT&& value) { m_resourceDetailsHasBeenSet = true; m_resourceDetails = std::forward<ResourceDetailsT>(value); }
88 template<typename ResourceDetailsT = ResourceDetails>
89 ResourceInfo& WithResourceDetails(ResourceDetailsT&& value) { SetResourceDetails(std::forward<ResourceDetailsT>(value)); return *this;}
91
93
96 inline const Aws::Vector<AssociationOption>& GetOptions() const { return m_options; }
97 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
98 template<typename OptionsT = Aws::Vector<AssociationOption>>
99 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
100 template<typename OptionsT = Aws::Vector<AssociationOption>>
101 ResourceInfo& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
102 inline ResourceInfo& AddOptions(AssociationOption value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
104 private:
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::String m_arn;
110 bool m_arnHasBeenSet = false;
111
112 ResourceType m_resourceType{ResourceType::NOT_SET};
113 bool m_resourceTypeHasBeenSet = false;
114
115 ResourceDetails m_resourceDetails;
116 bool m_resourceDetailsHasBeenSet = false;
117
119 bool m_optionsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace AppRegistry
124} // namespace Aws
void SetResourceType(ResourceType value)
AWS_APPREGISTRY_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceInfo & WithArn(ArnT &&value)
void SetOptions(OptionsT &&value)
const ResourceDetails & GetResourceDetails() const
AWS_APPREGISTRY_API ResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceInfo & WithName(NameT &&value)
AWS_APPREGISTRY_API ResourceInfo(Aws::Utils::Json::JsonView jsonValue)
ResourceInfo & WithResourceDetails(ResourceDetailsT &&value)
ResourceInfo & AddOptions(AssociationOption value)
const Aws::Vector< AssociationOption > & GetOptions() const
ResourceInfo & WithResourceType(ResourceType value)
ResourceInfo & WithOptions(OptionsT &&value)
void SetResourceDetails(ResourceDetailsT &&value)
const Aws::String & GetName() const
const Aws::String & GetArn() const
AWS_APPREGISTRY_API ResourceInfo()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue