AWS SDK for C++  1.9.104
AWS SDK for C++
SyncResourceRequest.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 "SyncResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
40 
44  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
45 
49  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
50 
54  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
55 
59  inline SyncResourceRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
60 
64  inline SyncResourceRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
65 
66 
72  inline const Aws::String& GetResource() const{ return m_resource; }
73 
79  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
80 
86  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
87 
93  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
94 
100  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
101 
107  inline SyncResourceRequest& WithResource(const Aws::String& value) { SetResource(value); return *this;}
108 
114  inline SyncResourceRequest& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
115 
121  inline SyncResourceRequest& WithResource(const char* value) { SetResource(value); return *this;}
122 
123  private:
124 
125  ResourceType m_resourceType;
126  bool m_resourceTypeHasBeenSet;
127 
128  Aws::String m_resource;
129  bool m_resourceHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace AppRegistry
134 } // namespace Aws
Aws::AppRegistry::Model::SyncResourceRequest::GetResourceType
const ResourceType & GetResourceType() const
Definition: SyncResourceRequest.h:39
Aws::AppRegistry::AppRegistryRequest
Definition: AppRegistryRequest.h:17
AWS_APPREGISTRY_API
#define AWS_APPREGISTRY_API
Definition: AppRegistry_EXPORTS.h:28
Aws::AppRegistry::Model::SyncResourceRequest::WithResource
SyncResourceRequest & WithResource(Aws::String &&value)
Definition: SyncResourceRequest.h:114
Aws::AppRegistry::Model::SyncResourceRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: SyncResourceRequest.h:79
Aws::AppRegistry::Model::SyncResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SyncResourceRequest.h:31
Aws::AppRegistry::Model::SyncResourceRequest::SetResource
void SetResource(const char *value)
Definition: SyncResourceRequest.h:100
Aws::AppRegistry::Model::SyncResourceRequest::WithResourceType
SyncResourceRequest & WithResourceType(ResourceType &&value)
Definition: SyncResourceRequest.h:64
ResourceType.h
Aws::AppRegistry::Model::SyncResourceRequest::SetResource
void SetResource(const Aws::String &value)
Definition: SyncResourceRequest.h:86
Aws::AppRegistry::Model::SyncResourceRequest::WithResourceType
SyncResourceRequest & WithResourceType(const ResourceType &value)
Definition: SyncResourceRequest.h:59
Aws::AppRegistry::Model::SyncResourceRequest::SetResource
void SetResource(Aws::String &&value)
Definition: SyncResourceRequest.h:93
Aws::AppRegistry::Model::SyncResourceRequest::WithResource
SyncResourceRequest & WithResource(const Aws::String &value)
Definition: SyncResourceRequest.h:107
AWSString.h
Aws::AppRegistry::Model::SyncResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRegistry::Model::SyncResourceRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: SyncResourceRequest.h:44
AppRegistryRequest.h
Aws::AppRegistry::Model::SyncResourceRequest::GetResource
const Aws::String & GetResource() const
Definition: SyncResourceRequest.h:72
Aws::AppRegistry::Model::SyncResourceRequest::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: SyncResourceRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::AppRegistry::Model::SyncResourceRequest::WithResource
SyncResourceRequest & WithResource(const char *value)
Definition: SyncResourceRequest.h:121
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::SyncResourceRequest::SyncResourceRequest
SyncResourceRequest()
Aws::AppRegistry::Model::SyncResourceRequest
Definition: SyncResourceRequest.h:23
AppRegistry_EXPORTS.h
Aws::AppRegistry::Model::SyncResourceRequest::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: SyncResourceRequest.h:49