text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
  #include <aws/greengrassv2/GreengrassV2Request.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/greengrassv2/model/CoreDeviceStatus.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Http
  {
      class URI;
  } //namespace Http
  namespace GreengrassV2
  {
  namespace Model
  {
  
    /**
     */
    class AWS_GREENGRASSV2_API ListCoreDevicesRequest : public GreengrassV2Request
    {
    public:
      ListCoreDevicesRequest();
  
      // 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 "ListCoreDevices"; }
  
      Aws::String SerializePayload() const override;
  
      void AddQueryStringParameters(Aws::Http::URI& uri) const override;
  
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; }
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; }
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = value; }
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::move(value); }
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline void SetThingGroupArn(const char* value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn.assign(value); }
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline ListCoreDevicesRequest& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;}
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline ListCoreDevicesRequest& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;}
  
      /**
       * <p>The <a
       * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>
       * of the IoT thing group by which to filter. If you specify this parameter, the
       * list includes only core devices that are members of this thing group.</p>
       */
      inline ListCoreDevicesRequest& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;}
  
  
      /**
       * <p>The core device status by which to filter. If you specify this parameter, the
       * list includes only core devices that have this status. Choose one of the
       * following options:</p> <ul> <li> <p> <code>HEALTHY</code> – The IoT Greengrass
       * Core software and all components run on the core device without issue.</p> </li>
       * <li> <p> <code>UNHEALTHY</code> – The IoT Greengrass Core software or a
       * component is in a failed state on the core device.</p> </li> </ul>
       */
      inline const CoreDeviceStatus& GetStatus() const{ return m_status; }
  
      /**
       * <p>The core device status by which to filter. If you specify this parameter, the
       * list includes only core devices that have this status. Choose one of the
       * following options:</p> <ul> <li> <p> <code>HEALTHY</code> – The IoT Greengrass
       * Core software and all components run on the core device without issue.</p> </li>
       * <li> <p> <code>UNHEALTHY</code> – The IoT Greengrass Core software or a
       * component is in a failed state on the core device.</p> </li> </ul>
       */
      inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
  
      /**
       * <p>The core device status by which to filter. If you specify this parameter, the
       * list includes only core devices that have this status. Choose one of the
       * following options:</p> <ul> <li> <p> <code>HEALTHY</code> – The IoT Greengrass
       * Core software and all components run on the core device without issue.</p> </li>
       * <li> <p> <code>UNHEALTHY</code> – The IoT Greengrass Core software or a
       * component is in a failed state on the core device.</p> </li> </ul>
       */
      inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
  
      /**
       * <p>The core device status by which to filter. If you specify this parameter, the
       * list includes only core devices that have this status. Choose one of the
       * following options:</p> <ul> <li> <p> <code>HEALTHY</code> – The IoT Greengrass
       * Core software and all components run on the core device without issue.</p> </li>
       * <li> <p> <code>UNHEALTHY</code> – The IoT Greengrass Core software or a
       * component is in a failed state on the core device.</p> </li> </ul>
       */
      inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
  
      /**
       * <p>The core device status by which to filter. If you specify this parameter, the
       * list includes only core devices that have this status. Choose one of the
       * following options:</p> <ul> <li> <p> <code>HEALTHY</code> – The IoT Greengrass
       * Core software and all components run on the core device without issue.</p> </li>
       * <li> <p> <code>UNHEALTHY</code> – The IoT Greengrass Core software or a
       * component is in a failed state on the core device.</p> </li> </ul>
       */
      inline ListCoreDevicesRequest& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;}
  
      /**
       * <p>The core device status by which to filter. If you specify this parameter, the
       * list includes only core devices that have this status. Choose one of the
       * following options:</p> <ul> <li> <p> <code>HEALTHY</code> – The IoT Greengrass
       * Core software and all components run on the core device without issue.</p> </li>
       * <li> <p> <code>UNHEALTHY</code> – The IoT Greengrass Core software or a
       * component is in a failed state on the core device.</p> </li> </ul>
       */
      inline ListCoreDevicesRequest& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;}
  
  
      /**
       * <p>The maximum number of results to be returned per paginated request.</p>
       */
      inline int GetMaxResults() const{ return m_maxResults; }
  
      /**
       * <p>The maximum number of results to be returned per paginated request.</p>
       */
      inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
  
      /**
       * <p>The maximum number of results to be returned per paginated request.</p>
       */
      inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
  
      /**
       * <p>The maximum number of results to be returned per paginated request.</p>
       */
      inline ListCoreDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
  
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline const Aws::String& GetNextToken() const{ return m_nextToken; }
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline ListCoreDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline ListCoreDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
  
      /**
       * <p>The token to be used for the next set of paginated results.</p>
       */
      inline ListCoreDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
  
    private:
  
      Aws::String m_thingGroupArn;
      bool m_thingGroupArnHasBeenSet;
  
      CoreDeviceStatus m_status;
      bool m_statusHasBeenSet;
  
      int m_maxResults;
      bool m_maxResultsHasBeenSet;
  
      Aws::String m_nextToken;
      bool m_nextTokenHasBeenSet;
    };
  
  } // namespace Model
  } // namespace GreengrassV2
  } // namespace Aws
  