/** * 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 SageMaker { namespace Model { /** */ class ListDevicesRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API ListDevicesRequest(); // 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 "ListDevices"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

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

The response from the last list when returning a list large enough to need * tokening.

*/ inline ListDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Maximum number of results to select.

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

Maximum number of results to select.

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

Maximum number of results to select.

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

Maximum number of results to select.

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

Select fleets where the job was updated after X

*/ inline const Aws::Utils::DateTime& GetLatestHeartbeatAfter() const{ return m_latestHeartbeatAfter; } /** *

Select fleets where the job was updated after X

*/ inline bool LatestHeartbeatAfterHasBeenSet() const { return m_latestHeartbeatAfterHasBeenSet; } /** *

Select fleets where the job was updated after X

*/ inline void SetLatestHeartbeatAfter(const Aws::Utils::DateTime& value) { m_latestHeartbeatAfterHasBeenSet = true; m_latestHeartbeatAfter = value; } /** *

Select fleets where the job was updated after X

*/ inline void SetLatestHeartbeatAfter(Aws::Utils::DateTime&& value) { m_latestHeartbeatAfterHasBeenSet = true; m_latestHeartbeatAfter = std::move(value); } /** *

Select fleets where the job was updated after X

*/ inline ListDevicesRequest& WithLatestHeartbeatAfter(const Aws::Utils::DateTime& value) { SetLatestHeartbeatAfter(value); return *this;} /** *

Select fleets where the job was updated after X

*/ inline ListDevicesRequest& WithLatestHeartbeatAfter(Aws::Utils::DateTime&& value) { SetLatestHeartbeatAfter(std::move(value)); return *this;} /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline ListDevicesRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline ListDevicesRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

A filter that searches devices that contains this name in any of their * models.

*/ inline ListDevicesRequest& WithModelName(const char* value) { SetModelName(value); return *this;} /** *

Filter for fleets containing this name in their device fleet name.

*/ inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; } /** *

Filter for fleets containing this name in their device fleet name.

*/ inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; } /** *

Filter for fleets containing this name in their device fleet name.

*/ inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; } /** *

Filter for fleets containing this name in their device fleet name.

*/ inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); } /** *

Filter for fleets containing this name in their device fleet name.

*/ inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); } /** *

Filter for fleets containing this name in their device fleet name.

*/ inline ListDevicesRequest& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;} /** *

Filter for fleets containing this name in their device fleet name.

*/ inline ListDevicesRequest& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;} /** *

Filter for fleets containing this name in their device fleet name.

*/ inline ListDevicesRequest& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Utils::DateTime m_latestHeartbeatAfter; bool m_latestHeartbeatAfterHasBeenSet = false; Aws::String m_modelName; bool m_modelNameHasBeenSet = false; Aws::String m_deviceFleetName; bool m_deviceFleetNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws