/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LookoutEquipment { namespace Model { /** *

Information about the label.

See Also:

AWS * API Reference

*/ class LabelSummary { public: AWS_LOOKOUTEQUIPMENT_API LabelSummary(); AWS_LOOKOUTEQUIPMENT_API LabelSummary(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTEQUIPMENT_API LabelSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOOKOUTEQUIPMENT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the label group.

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

The name of the label group.

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

The name of the label group.

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

The name of the label group.

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

The name of the label group.

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

The name of the label group.

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

The name of the label group.

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

The name of the label group.

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

The ID of the label.

*/ inline const Aws::String& GetLabelId() const{ return m_labelId; } /** *

The ID of the label.

*/ inline bool LabelIdHasBeenSet() const { return m_labelIdHasBeenSet; } /** *

The ID of the label.

*/ inline void SetLabelId(const Aws::String& value) { m_labelIdHasBeenSet = true; m_labelId = value; } /** *

The ID of the label.

*/ inline void SetLabelId(Aws::String&& value) { m_labelIdHasBeenSet = true; m_labelId = std::move(value); } /** *

The ID of the label.

*/ inline void SetLabelId(const char* value) { m_labelIdHasBeenSet = true; m_labelId.assign(value); } /** *

The ID of the label.

*/ inline LabelSummary& WithLabelId(const Aws::String& value) { SetLabelId(value); return *this;} /** *

The ID of the label.

*/ inline LabelSummary& WithLabelId(Aws::String&& value) { SetLabelId(std::move(value)); return *this;} /** *

The ID of the label.

*/ inline LabelSummary& WithLabelId(const char* value) { SetLabelId(value); return *this;} /** *

The ARN of the label group.

*/ inline const Aws::String& GetLabelGroupArn() const{ return m_labelGroupArn; } /** *

The ARN of the label group.

*/ inline bool LabelGroupArnHasBeenSet() const { return m_labelGroupArnHasBeenSet; } /** *

The ARN of the label group.

*/ inline void SetLabelGroupArn(const Aws::String& value) { m_labelGroupArnHasBeenSet = true; m_labelGroupArn = value; } /** *

The ARN of the label group.

*/ inline void SetLabelGroupArn(Aws::String&& value) { m_labelGroupArnHasBeenSet = true; m_labelGroupArn = std::move(value); } /** *

The ARN of the label group.

*/ inline void SetLabelGroupArn(const char* value) { m_labelGroupArnHasBeenSet = true; m_labelGroupArn.assign(value); } /** *

The ARN of the label group.

*/ inline LabelSummary& WithLabelGroupArn(const Aws::String& value) { SetLabelGroupArn(value); return *this;} /** *

The ARN of the label group.

*/ inline LabelSummary& WithLabelGroupArn(Aws::String&& value) { SetLabelGroupArn(std::move(value)); return *this;} /** *

The ARN of the label group.

*/ inline LabelSummary& WithLabelGroupArn(const char* value) { SetLabelGroupArn(value); return *this;} /** *

The timestamp indicating the start of the label.

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

The timestamp indicating the start of the label.

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

The timestamp indicating the start of the label.

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

The timestamp indicating the start of the label.

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

The timestamp indicating the start of the label.

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

The timestamp indicating the start of the label.

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

The timestamp indicating the end of the label.

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

The timestamp indicating the end of the label.

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

The timestamp indicating the end of the label.

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

The timestamp indicating the end of the label.

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

The timestamp indicating the end of the label.

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

The timestamp indicating the end of the label.

*/ inline LabelSummary& 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 LabelSummary& WithRating(const LabelRating& value) { SetRating(value); return *this;} /** *

Indicates whether a labeled event represents an anomaly.

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

Indicates the type of anomaly associated with 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& GetFaultCode() const{ return m_faultCode; } /** *

Indicates the type of anomaly associated with the label.

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; } /** *

Indicates the type of anomaly associated with the label.

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; } /** *

Indicates the type of anomaly associated with the label.

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); } /** *

Indicates the type of anomaly associated with the label.

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); } /** *

Indicates the type of anomaly associated with the label.

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

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

Indicates the type of anomaly associated with the label.

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

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

Indicates the type of anomaly associated with the label.

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

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

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

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

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

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

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

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

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

*/ 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.

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

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

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

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

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

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

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

The time at which the label was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time at which the label was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time at which the label was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time at which the label was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time at which the label was created.

*/ inline LabelSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time at which the label was created.

*/ inline LabelSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_labelGroupName; bool m_labelGroupNameHasBeenSet = false; Aws::String m_labelId; bool m_labelIdHasBeenSet = false; Aws::String m_labelGroupArn; bool m_labelGroupArnHasBeenSet = 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_equipment; bool m_equipmentHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace LookoutEquipment } // namespace Aws