AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DisassociateResourceRequest.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 <utility>
12
13namespace Aws
14{
15namespace AppRegistry
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPREGISTRY_API DisassociateResourceRequest() = default;
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_APPREGISTRY_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetApplication() const { return m_application; }
41 inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
42 template<typename ApplicationT = Aws::String>
43 void SetApplication(ApplicationT&& value) { m_applicationHasBeenSet = true; m_application = std::forward<ApplicationT>(value); }
44 template<typename ApplicationT = Aws::String>
45 DisassociateResourceRequest& WithApplication(ApplicationT&& value) { SetApplication(std::forward<ApplicationT>(value)); return *this;}
47
49
52 inline ResourceType GetResourceType() const { return m_resourceType; }
53 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
54 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
57
59
62 inline const Aws::String& GetResource() const { return m_resource; }
63 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
64 template<typename ResourceT = Aws::String>
65 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
66 template<typename ResourceT = Aws::String>
67 DisassociateResourceRequest& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
69 private:
70
71 Aws::String m_application;
72 bool m_applicationHasBeenSet = false;
73
74 ResourceType m_resourceType{ResourceType::NOT_SET};
75 bool m_resourceTypeHasBeenSet = false;
76
77 Aws::String m_resource;
78 bool m_resourceHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace AppRegistry
83} // namespace Aws
DisassociateResourceRequest & WithResource(ResourceT &&value)
AWS_APPREGISTRY_API DisassociateResourceRequest()=default
AWS_APPREGISTRY_API Aws::String SerializePayload() const override
DisassociateResourceRequest & WithApplication(ApplicationT &&value)
DisassociateResourceRequest & WithResourceType(ResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String