/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IoTTwinMaker { namespace Model { /** */ class ListSyncResourcesRequest : public IoTTwinMakerRequest { public: AWS_IOTTWINMAKER_API ListSyncResourcesRequest(); // 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 "ListSyncResources"; } AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override; /** *

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The ID of the workspace that contains the sync job.

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

The sync source.

Currently the only supported syncSource is * SITEWISE .

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

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline ListSyncResourcesRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline ListSyncResourcesRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline ListSyncResourcesRequest& AddFilters(const SyncResourceFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

A list of objects that filter the request.

The following filter * combinations are supported:

  • Filter with state

  • *

    Filter with ResourceType and ResourceId

  • Filter with * ResourceType and ExternalId

*/ inline ListSyncResourcesRequest& AddFilters(SyncResourceFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The maximum number of results to return at one time. The default is 50.

*

Valid Range: Minimum value of 0. Maximum value of 200.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return at one time. The default is 50.

*

Valid Range: Minimum value of 0. Maximum value of 200.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return at one time. The default is 50.

*

Valid Range: Minimum value of 0. Maximum value of 200.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return at one time. The default is 50.

*

Valid Range: Minimum value of 0. Maximum value of 200.

*/ inline ListSyncResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The string that specifies the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The string that specifies the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The string that specifies the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The string that specifies the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The string that specifies the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The string that specifies the next page of results.

*/ inline ListSyncResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The string that specifies the next page of results.

*/ inline ListSyncResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The string that specifies the next page of results.

*/ inline ListSyncResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::String m_syncSource; bool m_syncSourceHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws