AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateResourceRequest.h
1
6#pragma once
7#include <aws/servicecatalog-appregistry/AppRegistry_EXPORTS.h>
8#include <aws/servicecatalog-appregistry/AppRegistryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicecatalog-appregistry/model/ResourceType.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 AppRegistry
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPREGISTRY_API AssociateResourceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AssociateResource"; }
34
35 AWS_APPREGISTRY_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetApplication() const { return m_application; }
43 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
44 template<typename ApplicationT = Aws::String>
45 void SetApplication(ApplicationT&& value) { m_applicationHasBeenSet = true; m_application = std::forward<ApplicationT>(value); }
46 template<typename ApplicationT = Aws::String>
47 AssociateResourceRequest& WithApplication(ApplicationT&& value) { SetApplication(std::forward<ApplicationT>(value)); return *this;}
49
51
54 inline ResourceType GetResourceType() const { return m_resourceType; }
55 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
56 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
59
61
65 inline const Aws::String& GetResource() const { return m_resource; }
66 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
67 template<typename ResourceT = Aws::String>
68 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
69 template<typename ResourceT = Aws::String>
70 AssociateResourceRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
72
74
77 inline const Aws::Vector<AssociationOption>& GetOptions() const { return m_options; }
78 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
79 template<typename OptionsT = Aws::Vector<AssociationOption>>
80 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
81 template<typename OptionsT = Aws::Vector<AssociationOption>>
82 AssociateResourceRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
83 inline AssociateResourceRequest& AddOptions(AssociationOption value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
85 private:
86
87 Aws::String m_application;
88 bool m_applicationHasBeenSet = false;
89
90 ResourceType m_resourceType{ResourceType::NOT_SET};
91 bool m_resourceTypeHasBeenSet = false;
92
93 Aws::String m_resource;
94 bool m_resourceHasBeenSet = false;
95
97 bool m_optionsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace AppRegistry
102} // namespace Aws
AWS_APPREGISTRY_API Aws::String SerializePayload() const override
const Aws::Vector< AssociationOption > & GetOptions() const
AssociateResourceRequest & WithApplication(ApplicationT &&value)
virtual const char * GetServiceRequestName() const override
AssociateResourceRequest & AddOptions(AssociationOption value)
AssociateResourceRequest & WithResourceType(ResourceType value)
AssociateResourceRequest & WithOptions(OptionsT &&value)
AWS_APPREGISTRY_API AssociateResourceRequest()=default
AssociateResourceRequest & WithResource(ResourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector