AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SyncResourceRequest.h
1
6#pragma once
7#include <aws/servicecatalog-appregistry/AppRegistry_EXPORTS.h>
8#include <aws/servicecatalog-appregistry/AppRegistryRequest.h>
9#include <aws/servicecatalog-appregistry/model/ResourceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppRegistry
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPREGISTRY_API SyncResourceRequest();
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 "SyncResource"; }
32
33 AWS_APPREGISTRY_API Aws::String SerializePayload() const override;
34
35
37
40 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
41 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
42 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
43 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
44 inline SyncResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
45 inline SyncResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
47
49
54 inline const Aws::String& GetResource() const{ return m_resource; }
55 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
56 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
57 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
58 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
59 inline SyncResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
60 inline SyncResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
61 inline SyncResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
63 private:
64
65 ResourceType m_resourceType;
66 bool m_resourceTypeHasBeenSet = false;
67
68 Aws::String m_resource;
69 bool m_resourceHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace AppRegistry
74} // namespace Aws
SyncResourceRequest & WithResourceType(ResourceType &&value)
AWS_APPREGISTRY_API Aws::String SerializePayload() const override
SyncResourceRequest & WithResource(const char *value)
void SetResourceType(const ResourceType &value)
SyncResourceRequest & WithResource(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SyncResourceRequest & WithResourceType(const ResourceType &value)
SyncResourceRequest & WithResource(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String