AWS SDK for C++  1.9.104
AWS SDK for C++
DisassociateResourceRequest.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 "DisassociateResource"; }
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 DisassociateResourceRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
65 
69  inline DisassociateResourceRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
70 
74  inline DisassociateResourceRequest& 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 DisassociateResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
101 
105  inline DisassociateResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
106 
107 
111  inline const Aws::String& GetResource() const{ return m_resource; }
112 
116  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
117 
121  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
122 
126  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
127 
131  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
132 
136  inline DisassociateResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
137 
141  inline DisassociateResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
142 
146  inline DisassociateResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
147 
148  private:
149 
150  Aws::String m_application;
151  bool m_applicationHasBeenSet;
152 
153  ResourceType m_resourceType;
154  bool m_resourceTypeHasBeenSet;
155 
156  Aws::String m_resource;
157  bool m_resourceHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace AppRegistry
162 } // namespace Aws
Aws::AppRegistry::Model::DisassociateResourceRequest::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: DisassociateResourceRequest.h:95
Aws::AppRegistry::AppRegistryRequest
Definition: AppRegistryRequest.h:17
Aws::AppRegistry::Model::DisassociateResourceRequest::SetApplication
void SetApplication(Aws::String &&value)
Definition: DisassociateResourceRequest.h:54
AWS_APPREGISTRY_API
#define AWS_APPREGISTRY_API
Definition: AppRegistry_EXPORTS.h:28
Aws::AppRegistry::Model::DisassociateResourceRequest::ApplicationHasBeenSet
bool ApplicationHasBeenSet() const
Definition: DisassociateResourceRequest.h:44
ResourceType.h
Aws::AppRegistry::Model::DisassociateResourceRequest::WithResourceType
DisassociateResourceRequest & WithResourceType(ResourceType &&value)
Definition: DisassociateResourceRequest.h:105
Aws::AppRegistry::Model::DisassociateResourceRequest::WithResource
DisassociateResourceRequest & WithResource(Aws::String &&value)
Definition: DisassociateResourceRequest.h:141
Aws::AppRegistry::Model::DisassociateResourceRequest::WithResourceType
DisassociateResourceRequest & WithResourceType(const ResourceType &value)
Definition: DisassociateResourceRequest.h:100
Aws::AppRegistry::Model::DisassociateResourceRequest::GetResourceType
const ResourceType & GetResourceType() const
Definition: DisassociateResourceRequest.h:80
Aws::AppRegistry::Model::DisassociateResourceRequest::DisassociateResourceRequest
DisassociateResourceRequest()
Aws::AppRegistry::Model::DisassociateResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRegistry::Model::DisassociateResourceRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: DisassociateResourceRequest.h:85
Aws::AppRegistry::Model::DisassociateResourceRequest::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: DisassociateResourceRequest.h:90
AWSString.h
Aws::AppRegistry::Model::DisassociateResourceRequest::WithResource
DisassociateResourceRequest & WithResource(const Aws::String &value)
Definition: DisassociateResourceRequest.h:136
Aws::AppRegistry::Model::DisassociateResourceRequest::WithResource
DisassociateResourceRequest & WithResource(const char *value)
Definition: DisassociateResourceRequest.h:146
Aws::AppRegistry::Model::DisassociateResourceRequest::GetApplication
const Aws::String & GetApplication() const
Definition: DisassociateResourceRequest.h:39
Aws::AppRegistry::Model::DisassociateResourceRequest::SetApplication
void SetApplication(const Aws::String &value)
Definition: DisassociateResourceRequest.h:49
Aws::AppRegistry::Model::DisassociateResourceRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: DisassociateResourceRequest.h:116
Aws::AppRegistry::Model::DisassociateResourceRequest::SetResource
void SetResource(Aws::String &&value)
Definition: DisassociateResourceRequest.h:126
AppRegistryRequest.h
Aws::AppRegistry::Model::DisassociateResourceRequest::WithApplication
DisassociateResourceRequest & WithApplication(const char *value)
Definition: DisassociateResourceRequest.h:74
Aws
Definition: AccessManagementClient.h:15
Aws::AppRegistry::Model::DisassociateResourceRequest::WithApplication
DisassociateResourceRequest & WithApplication(const Aws::String &value)
Definition: DisassociateResourceRequest.h:64
Aws::AppRegistry::Model::DisassociateResourceRequest::SetApplication
void SetApplication(const char *value)
Definition: DisassociateResourceRequest.h:59
Aws::AppRegistry::Model::DisassociateResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateResourceRequest.h:31
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::DisassociateResourceRequest::GetResource
const Aws::String & GetResource() const
Definition: DisassociateResourceRequest.h:111
Aws::AppRegistry::Model::DisassociateResourceRequest
Definition: DisassociateResourceRequest.h:23
Aws::AppRegistry::Model::DisassociateResourceRequest::SetResource
void SetResource(const char *value)
Definition: DisassociateResourceRequest.h:131
Aws::AppRegistry::Model::DisassociateResourceRequest::SetResource
void SetResource(const Aws::String &value)
Definition: DisassociateResourceRequest.h:121
Aws::AppRegistry::Model::DisassociateResourceRequest::WithApplication
DisassociateResourceRequest & WithApplication(Aws::String &&value)
Definition: DisassociateResourceRequest.h:69
AppRegistry_EXPORTS.h