AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateSyncJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoTTwinMaker {
16namespace Model {
17
21 public:
22 AWS_IOTTWINMAKER_API CreateSyncJobRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateSyncJob"; }
29
30 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
37 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
38 template <typename WorkspaceIdT = Aws::String>
39 void SetWorkspaceId(WorkspaceIdT&& value) {
40 m_workspaceIdHasBeenSet = true;
41 m_workspaceId = std::forward<WorkspaceIdT>(value);
42 }
43 template <typename WorkspaceIdT = Aws::String>
44 CreateSyncJobRequest& WithWorkspaceId(WorkspaceIdT&& value) {
45 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetSyncSource() const { return m_syncSource; }
56 inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
57 template <typename SyncSourceT = Aws::String>
58 void SetSyncSource(SyncSourceT&& value) {
59 m_syncSourceHasBeenSet = true;
60 m_syncSource = std::forward<SyncSourceT>(value);
61 }
62 template <typename SyncSourceT = Aws::String>
63 CreateSyncJobRequest& WithSyncSource(SyncSourceT&& value) {
64 SetSyncSource(std::forward<SyncSourceT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetSyncRole() const { return m_syncRole; }
75 inline bool SyncRoleHasBeenSet() const { return m_syncRoleHasBeenSet; }
76 template <typename SyncRoleT = Aws::String>
77 void SetSyncRole(SyncRoleT&& value) {
78 m_syncRoleHasBeenSet = true;
79 m_syncRole = std::forward<SyncRoleT>(value);
80 }
81 template <typename SyncRoleT = Aws::String>
82 CreateSyncJobRequest& WithSyncRole(SyncRoleT&& value) {
83 SetSyncRole(std::forward<SyncRoleT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 CreateSyncJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_workspaceId;
113
114 Aws::String m_syncSource;
115
116 Aws::String m_syncRole;
117
119 bool m_workspaceIdHasBeenSet = false;
120 bool m_syncSourceHasBeenSet = false;
121 bool m_syncRoleHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace IoTTwinMaker
127} // 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