AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; }
45 inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); }
46 inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); }
47 inline AssociateResourceRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
48 inline AssociateResourceRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
49 inline AssociateResourceRequest& WithApplication(const char* value) { SetApplication(value); return *this;}
51
53
56 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
57 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
58 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
59 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
60 inline AssociateResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
61 inline AssociateResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
63
65
69 inline const Aws::String& GetResource() const{ return m_resource; }
70 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
71 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
72 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
73 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
74 inline AssociateResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
75 inline AssociateResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
76 inline AssociateResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
78
80
83 inline const Aws::Vector<AssociationOption>& GetOptions() const{ return m_options; }
84 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
85 inline void SetOptions(const Aws::Vector<AssociationOption>& value) { m_optionsHasBeenSet = true; m_options = value; }
86 inline void SetOptions(Aws::Vector<AssociationOption>&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
88 inline AssociateResourceRequest& WithOptions(Aws::Vector<AssociationOption>&& value) { SetOptions(std::move(value)); return *this;}
89 inline AssociateResourceRequest& AddOptions(const AssociationOption& value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
90 inline AssociateResourceRequest& AddOptions(AssociationOption&& value) { m_optionsHasBeenSet = true; m_options.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_application;
95 bool m_applicationHasBeenSet = false;
96
97 ResourceType m_resourceType;
98 bool m_resourceTypeHasBeenSet = false;
99
100 Aws::String m_resource;
101 bool m_resourceHasBeenSet = false;
102
104 bool m_optionsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AppRegistry
109} // namespace Aws
AWS_APPREGISTRY_API Aws::String SerializePayload() const override
AssociateResourceRequest & AddOptions(AssociationOption &&value)
const Aws::Vector< AssociationOption > & GetOptions() const
AssociateResourceRequest & WithResource(const Aws::String &value)
AssociateResourceRequest & AddOptions(const AssociationOption &value)
virtual const char * GetServiceRequestName() const override
AssociateResourceRequest & WithApplication(Aws::String &&value)
AssociateResourceRequest & WithResourceType(const ResourceType &value)
AssociateResourceRequest & WithApplication(const char *value)
AssociateResourceRequest & WithResource(const char *value)
AssociateResourceRequest & WithApplication(const Aws::String &value)
AssociateResourceRequest & WithOptions(Aws::Vector< AssociationOption > &&value)
void SetOptions(Aws::Vector< AssociationOption > &&value)
AssociateResourceRequest & WithResourceType(ResourceType &&value)
void SetOptions(const Aws::Vector< AssociationOption > &value)
AssociateResourceRequest & WithResource(Aws::String &&value)
AssociateResourceRequest & WithOptions(const Aws::Vector< AssociationOption > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector