/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace LookoutEquipment { namespace Model { /** */ class CreateLabelRequest : public LookoutEquipmentRequest { public: AWS_LOOKOUTEQUIPMENT_API CreateLabelRequest(); // 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 "CreateLabel"; } AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override; AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The name of a group of labels.

Data in this field will be retained * for service usage. Follow best practices for the security of your data.

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

The start time of the labeled event.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time of the labeled event.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the labeled event.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time of the labeled event.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time of the labeled event.

*/ inline CreateLabelRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the labeled event.

*/ inline CreateLabelRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end time of the labeled event.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time of the labeled event.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time of the labeled event.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time of the labeled event.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time of the labeled event.

*/ inline CreateLabelRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time of the labeled event.

*/ inline CreateLabelRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

Indicates whether a labeled event represents an anomaly.

*/ inline const LabelRating& GetRating() const{ return m_rating; } /** *

Indicates whether a labeled event represents an anomaly.

*/ inline bool RatingHasBeenSet() const { return m_ratingHasBeenSet; } /** *

Indicates whether a labeled event represents an anomaly.

*/ inline void SetRating(const LabelRating& value) { m_ratingHasBeenSet = true; m_rating = value; } /** *

Indicates whether a labeled event represents an anomaly.

*/ inline void SetRating(LabelRating&& value) { m_ratingHasBeenSet = true; m_rating = std::move(value); } /** *

Indicates whether a labeled event represents an anomaly.

*/ inline CreateLabelRequest& WithRating(const LabelRating& value) { SetRating(value); return *this;} /** *

Indicates whether a labeled event represents an anomaly.

*/ inline CreateLabelRequest& WithRating(LabelRating&& value) { SetRating(std::move(value)); return *this;} /** *

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Provides additional information about the label. The fault code must be * defined in the FaultCodes attribute of the label group.

Data in this * field will be retained for service usage. Follow best practices for the security * of your data.

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

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline const Aws::String& GetNotes() const{ return m_notes; } /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; } /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; } /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); } /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); } /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline CreateLabelRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;} /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline CreateLabelRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;} /** *

Metadata providing additional information about the label.

Data in * this field will be retained for service usage. Follow best practices for the * security of your data.

*/ inline CreateLabelRequest& WithNotes(const char* value) { SetNotes(value); return *this;} /** *

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

Indicates that a label pertains to a particular piece of equipment.

*

Data in this field will be retained for service usage. Follow best practices * for the security of your data.

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

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline CreateLabelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline CreateLabelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique identifier for the request to create a label. If you do not set the * client request token, Lookout for Equipment generates one.

*/ inline CreateLabelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_labelGroupName; bool m_labelGroupNameHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; LabelRating m_rating; bool m_ratingHasBeenSet = false; Aws::String m_faultCode; bool m_faultCodeHasBeenSet = false; Aws::String m_notes; bool m_notesHasBeenSet = false; Aws::String m_equipment; bool m_equipmentHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace LookoutEquipment } // namespace Aws