1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 <utility>
12 
13 namespace Aws
14 {
15 namespace AppRegistry
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_APPREGISTRY_API AssociateResourceRequest : public AppRegistryRequest
23   {
24   public:
25     AssociateResourceRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "AssociateResource"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The name or ID of the application.</p>
38      */
GetApplication()39     inline const Aws::String& GetApplication() const{ return m_application; }
40 
41     /**
42      * <p>The name or ID of the application.</p>
43      */
ApplicationHasBeenSet()44     inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
45 
46     /**
47      * <p>The name or ID of the application.</p>
48      */
SetApplication(const Aws::String & value)49     inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; }
50 
51     /**
52      * <p>The name or ID of the application.</p>
53      */
SetApplication(Aws::String && value)54     inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); }
55 
56     /**
57      * <p>The name or ID of the application.</p>
58      */
SetApplication(const char * value)59     inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); }
60 
61     /**
62      * <p>The name or ID of the application.</p>
63      */
WithApplication(const Aws::String & value)64     inline AssociateResourceRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
65 
66     /**
67      * <p>The name or ID of the application.</p>
68      */
WithApplication(Aws::String && value)69     inline AssociateResourceRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
70 
71     /**
72      * <p>The name or ID of the application.</p>
73      */
WithApplication(const char * value)74     inline AssociateResourceRequest& WithApplication(const char* value) { SetApplication(value); return *this;}
75 
76 
77     /**
78      * <p>The type of resource of which the application will be associated.</p>
79      */
GetResourceType()80     inline const ResourceType& GetResourceType() const{ return m_resourceType; }
81 
82     /**
83      * <p>The type of resource of which the application will be associated.</p>
84      */
ResourceTypeHasBeenSet()85     inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
86 
87     /**
88      * <p>The type of resource of which the application will be associated.</p>
89      */
SetResourceType(const ResourceType & value)90     inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
91 
92     /**
93      * <p>The type of resource of which the application will be associated.</p>
94      */
SetResourceType(ResourceType && value)95     inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
96 
97     /**
98      * <p>The type of resource of which the application will be associated.</p>
99      */
WithResourceType(const ResourceType & value)100     inline AssociateResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
101 
102     /**
103      * <p>The type of resource of which the application will be associated.</p>
104      */
WithResourceType(ResourceType && value)105     inline AssociateResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
106 
107 
108     /**
109      * <p>The name or ID of the resource of which the application will be
110      * associated.</p>
111      */
GetResource()112     inline const Aws::String& GetResource() const{ return m_resource; }
113 
114     /**
115      * <p>The name or ID of the resource of which the application will be
116      * associated.</p>
117      */
ResourceHasBeenSet()118     inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
119 
120     /**
121      * <p>The name or ID of the resource of which the application will be
122      * associated.</p>
123      */
SetResource(const Aws::String & value)124     inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
125 
126     /**
127      * <p>The name or ID of the resource of which the application will be
128      * associated.</p>
129      */
SetResource(Aws::String && value)130     inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
131 
132     /**
133      * <p>The name or ID of the resource of which the application will be
134      * associated.</p>
135      */
SetResource(const char * value)136     inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
137 
138     /**
139      * <p>The name or ID of the resource of which the application will be
140      * associated.</p>
141      */
WithResource(const Aws::String & value)142     inline AssociateResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
143 
144     /**
145      * <p>The name or ID of the resource of which the application will be
146      * associated.</p>
147      */
WithResource(Aws::String && value)148     inline AssociateResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
149 
150     /**
151      * <p>The name or ID of the resource of which the application will be
152      * associated.</p>
153      */
WithResource(const char * value)154     inline AssociateResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
155 
156   private:
157 
158     Aws::String m_application;
159     bool m_applicationHasBeenSet;
160 
161     ResourceType m_resourceType;
162     bool m_resourceTypeHasBeenSet;
163 
164     Aws::String m_resource;
165     bool m_resourceHasBeenSet;
166   };
167 
168 } // namespace Model
169 } // namespace AppRegistry
170 } // namespace Aws
171