/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoTTwinMaker { namespace Model { /** */ class CreateSyncJobRequest : public IoTTwinMakerRequest { public: AWS_IOTTWINMAKER_API CreateSyncJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateSyncJob"; } AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override; /** *

The workspace ID.

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The workspace ID.

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The workspace ID.

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The workspace ID.

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The workspace ID.

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The workspace ID.

*/ inline CreateSyncJobRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The workspace ID.

*/ inline CreateSyncJobRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The workspace ID.

*/ inline CreateSyncJobRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline const Aws::String& GetSyncSource() const{ return m_syncSource; } /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; } /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline void SetSyncSource(const Aws::String& value) { m_syncSourceHasBeenSet = true; m_syncSource = value; } /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline void SetSyncSource(Aws::String&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::move(value); } /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline void SetSyncSource(const char* value) { m_syncSourceHasBeenSet = true; m_syncSource.assign(value); } /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline CreateSyncJobRequest& WithSyncSource(const Aws::String& value) { SetSyncSource(value); return *this;} /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline CreateSyncJobRequest& WithSyncSource(Aws::String&& value) { SetSyncSource(std::move(value)); return *this;} /** *

The sync source.

Currently the only supported syncSoource is * SITEWISE .

*/ inline CreateSyncJobRequest& WithSyncSource(const char* value) { SetSyncSource(value); return *this;} /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline const Aws::String& GetSyncRole() const{ return m_syncRole; } /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline bool SyncRoleHasBeenSet() const { return m_syncRoleHasBeenSet; } /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline void SetSyncRole(const Aws::String& value) { m_syncRoleHasBeenSet = true; m_syncRole = value; } /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline void SetSyncRole(Aws::String&& value) { m_syncRoleHasBeenSet = true; m_syncRole = std::move(value); } /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline void SetSyncRole(const char* value) { m_syncRoleHasBeenSet = true; m_syncRole.assign(value); } /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline CreateSyncJobRequest& WithSyncRole(const Aws::String& value) { SetSyncRole(value); return *this;} /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline CreateSyncJobRequest& WithSyncRole(Aws::String&& value) { SetSyncRole(std::move(value)); return *this;} /** *

The SyncJob IAM role. This IAM role is used by the SyncJob to read from the * syncSource, and create, update, or delete the corresponding resources.

*/ inline CreateSyncJobRequest& WithSyncRole(const char* value) { SetSyncRole(value); return *this;} /** *

The SyncJob tags.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The SyncJob tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The SyncJob tags.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The SyncJob tags.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The SyncJob tags.

*/ inline CreateSyncJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_syncSource; bool m_syncSourceHasBeenSet = false; Aws::String m_syncRole; bool m_syncRoleHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws