AWS SDK for C++  1.9.158
AWS SDK for C++
AssociateResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AppRegistry
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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.
31  inline virtual const char* GetServiceRequestName() const override { return "AssociateResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetApplication() const{ return m_application; }
40 
44  inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
45 
49  inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; }
50 
54  inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); }
55 
59  inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); }
60 
64  inline AssociateResourceRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
65 
69  inline AssociateResourceRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
70 
74  inline AssociateResourceRequest& WithApplication(const char* value) { SetApplication(value); return *this;}
75 
76 
80  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
81 
85  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
86 
90  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
91 
95  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
96 
100  inline AssociateResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
101 
105  inline AssociateResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
106 
107 
112  inline const Aws::String& GetResource() const{ return m_resource; }
113 
118  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
119 
124  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
125 
130  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
131 
136  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
137 
142  inline AssociateResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
143 
148  inline AssociateResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
149 
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
Aws::AppRegistry::Model::AssociateResourceRequest::GetResource
const Aws::String & GetResource() const
Definition: AssociateResourceRequest.h:112
Aws::AppRegistry::AppRegistryRequest
Definition: AppRegistryRequest.h:17
AWS_APPREGISTRY_API
#define AWS_APPREGISTRY_API
Definition: AppRegistry_EXPORTS.h:28
Aws::AppRegistry::Model::AssociateResourceRequest::SetResource
void SetResource(Aws::String &&value)
Definition: AssociateResourceRequest.h:130
Aws::AppRegistry::Model::AssociateResourceRequest::SetResource
void SetResource(const char *value)
Definition: AssociateResourceRequest.h:136
Aws::AppRegistry::Model::AssociateResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRegistry::Model::AssociateResourceRequest::GetApplication
const Aws::String & GetApplication() const
Definition: AssociateResourceRequest.h:39
Aws::AppRegistry::Model::AssociateResourceRequest::WithApplication
AssociateResourceRequest & WithApplication(Aws::String &&value)
Definition: AssociateResourceRequest.h:69
Aws::AppRegistry::Model::AssociateResourceRequest::GetResourceType
const ResourceType & GetResourceType() const
Definition: AssociateResourceRequest.h:80
ResourceType.h
Aws::AppRegistry::Model::AssociateResourceRequest::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: AssociateResourceRequest.h:95
Aws::AppRegistry::Model::AssociateResourceRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: AssociateResourceRequest.h:118
Aws::AppRegistry::Model::AssociateResourceRequest::ApplicationHasBeenSet
bool ApplicationHasBeenSet() const
Definition: AssociateResourceRequest.h:44
Aws::AppRegistry::Model::AssociateResourceRequest::SetApplication
void SetApplication(Aws::String &&value)
Definition: AssociateResourceRequest.h:54
Aws::AppRegistry::Model::AssociateResourceRequest::WithResource
AssociateResourceRequest & WithResource(const char *value)
Definition: AssociateResourceRequest.h:154
Aws::AppRegistry::Model::AssociateResourceRequest::WithResourceType
AssociateResourceRequest & WithResourceType(ResourceType &&value)
Definition: AssociateResourceRequest.h:105
Aws::AppRegistry::Model::AssociateResourceRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: AssociateResourceRequest.h:85
Aws::AppRegistry::Model::AssociateResourceRequest::SetResource
void SetResource(const Aws::String &value)
Definition: AssociateResourceRequest.h:124
Aws::AppRegistry::Model::AssociateResourceRequest
Definition: AssociateResourceRequest.h:23
Aws::AppRegistry::Model::AssociateResourceRequest::SetApplication
void SetApplication(const char *value)
Definition: AssociateResourceRequest.h:59
Aws::AppRegistry::Model::AssociateResourceRequest::WithApplication
AssociateResourceRequest & WithApplication(const char *value)
Definition: AssociateResourceRequest.h:74
AWSString.h
Aws::AppRegistry::Model::AssociateResourceRequest::WithResource
AssociateResourceRequest & WithResource(Aws::String &&value)
Definition: AssociateResourceRequest.h:148
AppRegistryRequest.h
Aws::AppRegistry::Model::AssociateResourceRequest::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: AssociateResourceRequest.h:90
Aws::AppRegistry::Model::AssociateResourceRequest::WithApplication
AssociateResourceRequest & WithApplication(const Aws::String &value)
Definition: AssociateResourceRequest.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::AppRegistry::Model::AssociateResourceRequest::AssociateResourceRequest
AssociateResourceRequest()
Aws::AppRegistry::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppRegistry::Model::AssociateResourceRequest::SetApplication
void SetApplication(const Aws::String &value)
Definition: AssociateResourceRequest.h:49
Aws::AppRegistry::Model::AssociateResourceRequest::WithResourceType
AssociateResourceRequest & WithResourceType(const ResourceType &value)
Definition: AssociateResourceRequest.h:100
Aws::AppRegistry::Model::AssociateResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateResourceRequest.h:31
AppRegistry_EXPORTS.h
Aws::AppRegistry::Model::AssociateResourceRequest::WithResource
AssociateResourceRequest & WithResource(const Aws::String &value)
Definition: AssociateResourceRequest.h:142