/** * 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 LookoutEquipment { namespace Model { /** */ class ListLabelsRequest : public LookoutEquipmentRequest { public: AWS_LOOKOUTEQUIPMENT_API ListLabelsRequest(); // 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 "ListLabels"; } AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override; AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Retruns the name of the label group.

*/ inline const Aws::String& GetLabelGroupName() const{ return m_labelGroupName; } /** *

Retruns the name of the label group.

*/ inline bool LabelGroupNameHasBeenSet() const { return m_labelGroupNameHasBeenSet; } /** *

Retruns the name of the label group.

*/ inline void SetLabelGroupName(const Aws::String& value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName = value; } /** *

Retruns the name of the label group.

*/ inline void SetLabelGroupName(Aws::String&& value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName = std::move(value); } /** *

Retruns the name of the label group.

*/ inline void SetLabelGroupName(const char* value) { m_labelGroupNameHasBeenSet = true; m_labelGroupName.assign(value); } /** *

Retruns the name of the label group.

*/ inline ListLabelsRequest& WithLabelGroupName(const Aws::String& value) { SetLabelGroupName(value); return *this;} /** *

Retruns the name of the label group.

*/ inline ListLabelsRequest& WithLabelGroupName(Aws::String&& value) { SetLabelGroupName(std::move(value)); return *this;} /** *

Retruns the name of the label group.

*/ inline ListLabelsRequest& WithLabelGroupName(const char* value) { SetLabelGroupName(value); return *this;} /** *

Returns all the labels with a end time equal to or later than the start time * given.

*/ inline const Aws::Utils::DateTime& GetIntervalStartTime() const{ return m_intervalStartTime; } /** *

Returns all the labels with a end time equal to or later than the start time * given.

*/ inline bool IntervalStartTimeHasBeenSet() const { return m_intervalStartTimeHasBeenSet; } /** *

Returns all the labels with a end time equal to or later than the start time * given.

*/ inline void SetIntervalStartTime(const Aws::Utils::DateTime& value) { m_intervalStartTimeHasBeenSet = true; m_intervalStartTime = value; } /** *

Returns all the labels with a end time equal to or later than the start time * given.

*/ inline void SetIntervalStartTime(Aws::Utils::DateTime&& value) { m_intervalStartTimeHasBeenSet = true; m_intervalStartTime = std::move(value); } /** *

Returns all the labels with a end time equal to or later than the start time * given.

*/ inline ListLabelsRequest& WithIntervalStartTime(const Aws::Utils::DateTime& value) { SetIntervalStartTime(value); return *this;} /** *

Returns all the labels with a end time equal to or later than the start time * given.

*/ inline ListLabelsRequest& WithIntervalStartTime(Aws::Utils::DateTime&& value) { SetIntervalStartTime(std::move(value)); return *this;} /** *

Returns all labels with a start time earlier than the end time given.

*/ inline const Aws::Utils::DateTime& GetIntervalEndTime() const{ return m_intervalEndTime; } /** *

Returns all labels with a start time earlier than the end time given.

*/ inline bool IntervalEndTimeHasBeenSet() const { return m_intervalEndTimeHasBeenSet; } /** *

Returns all labels with a start time earlier than the end time given.

*/ inline void SetIntervalEndTime(const Aws::Utils::DateTime& value) { m_intervalEndTimeHasBeenSet = true; m_intervalEndTime = value; } /** *

Returns all labels with a start time earlier than the end time given.

*/ inline void SetIntervalEndTime(Aws::Utils::DateTime&& value) { m_intervalEndTimeHasBeenSet = true; m_intervalEndTime = std::move(value); } /** *

Returns all labels with a start time earlier than the end time given.

*/ inline ListLabelsRequest& WithIntervalEndTime(const Aws::Utils::DateTime& value) { SetIntervalEndTime(value); return *this;} /** *

Returns all labels with a start time earlier than the end time given.

*/ inline ListLabelsRequest& WithIntervalEndTime(Aws::Utils::DateTime&& value) { SetIntervalEndTime(std::move(value)); return *this;} /** *

Returns labels with a particular fault code.

*/ inline const Aws::String& GetFaultCode() const{ return m_faultCode; } /** *

Returns labels with a particular fault code.

*/ inline bool FaultCodeHasBeenSet() const { return m_faultCodeHasBeenSet; } /** *

Returns labels with a particular fault code.

*/ inline void SetFaultCode(const Aws::String& value) { m_faultCodeHasBeenSet = true; m_faultCode = value; } /** *

Returns labels with a particular fault code.

*/ inline void SetFaultCode(Aws::String&& value) { m_faultCodeHasBeenSet = true; m_faultCode = std::move(value); } /** *

Returns labels with a particular fault code.

*/ inline void SetFaultCode(const char* value) { m_faultCodeHasBeenSet = true; m_faultCode.assign(value); } /** *

Returns labels with a particular fault code.

*/ inline ListLabelsRequest& WithFaultCode(const Aws::String& value) { SetFaultCode(value); return *this;} /** *

Returns labels with a particular fault code.

*/ inline ListLabelsRequest& WithFaultCode(Aws::String&& value) { SetFaultCode(std::move(value)); return *this;} /** *

Returns labels with a particular fault code.

*/ inline ListLabelsRequest& WithFaultCode(const char* value) { SetFaultCode(value); return *this;} /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline const Aws::String& GetEquipment() const{ return m_equipment; } /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline bool EquipmentHasBeenSet() const { return m_equipmentHasBeenSet; } /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline void SetEquipment(const Aws::String& value) { m_equipmentHasBeenSet = true; m_equipment = value; } /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline void SetEquipment(Aws::String&& value) { m_equipmentHasBeenSet = true; m_equipment = std::move(value); } /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline void SetEquipment(const char* value) { m_equipmentHasBeenSet = true; m_equipment.assign(value); } /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline ListLabelsRequest& WithEquipment(const Aws::String& value) { SetEquipment(value); return *this;} /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline ListLabelsRequest& WithEquipment(Aws::String&& value) { SetEquipment(std::move(value)); return *this;} /** *

Lists the labels that pertain to a particular piece of equipment.

*/ inline ListLabelsRequest& WithEquipment(const char* value) { SetEquipment(value); return *this;} /** *

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

An opaque pagination token indicating where to continue the listing of label * groups.

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

Specifies the maximum number of labels to list.

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

Specifies the maximum number of labels to list.

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

Specifies the maximum number of labels to list.

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

Specifies the maximum number of labels to list.

*/ inline ListLabelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_labelGroupName; bool m_labelGroupNameHasBeenSet = false; Aws::Utils::DateTime m_intervalStartTime; bool m_intervalStartTimeHasBeenSet = false; Aws::Utils::DateTime m_intervalEndTime; bool m_intervalEndTimeHasBeenSet = false; Aws::String m_faultCode; bool m_faultCodeHasBeenSet = false; Aws::String m_equipment; bool m_equipmentHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace LookoutEquipment } // namespace Aws