AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateSyncJobRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoTTwinMaker
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOTTWINMAKER_API CreateSyncJobRequest() = 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 "CreateSyncJob"; }
32
33 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
41 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
42 template<typename WorkspaceIdT = Aws::String>
43 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
44 template<typename WorkspaceIdT = Aws::String>
45 CreateSyncJobRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
47
49
53 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
54 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
55 template<typename SyncSourceT = Aws::String>
56 void SetSyncSource(SyncSourceT&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::forward<SyncSourceT>(value); }
57 template<typename SyncSourceT = Aws::String>
58 CreateSyncJobRequest& WithSyncSource(SyncSourceT&& value) { SetSyncSource(std::forward<SyncSourceT>(value)); return *this;}
60
62
66 inline const Aws::String& GetSyncRole() const { return m_syncRole; }
67 inline bool SyncRoleHasBeenSet() const { return m_syncRoleHasBeenSet; }
68 template<typename SyncRoleT = Aws::String>
69 void SetSyncRole(SyncRoleT&& value) { m_syncRoleHasBeenSet = true; m_syncRole = std::forward<SyncRoleT>(value); }
70 template<typename SyncRoleT = Aws::String>
71 CreateSyncJobRequest& WithSyncRole(SyncRoleT&& value) { SetSyncRole(std::forward<SyncRoleT>(value)); return *this;}
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 CreateSyncJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 CreateSyncJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
87 }
89 private:
90
91 Aws::String m_workspaceId;
92 bool m_workspaceIdHasBeenSet = false;
93
94 Aws::String m_syncSource;
95 bool m_syncSourceHasBeenSet = false;
96
97 Aws::String m_syncRole;
98 bool m_syncRoleHasBeenSet = false;
99
101 bool m_tagsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace IoTTwinMaker
106} // namespace Aws
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSyncJobRequest & WithTags(TagsT &&value)
CreateSyncJobRequest & WithSyncSource(SyncSourceT &&value)
CreateSyncJobRequest & WithWorkspaceId(WorkspaceIdT &&value)
AWS_IOTTWINMAKER_API CreateSyncJobRequest()=default
virtual const char * GetServiceRequestName() const override
CreateSyncJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSyncJobRequest & WithSyncRole(SyncRoleT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String