/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides a summary of the properties of a metric attribution. For a complete
* listing, call the DescribeMetricAttribution.See
* Also:
AWS
* API Reference
The name of the metric attribution.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the metric attribution.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the metric attribution.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the metric attribution.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the metric attribution.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the metric attribution.
*/ inline MetricAttributionSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the metric attribution.
*/ inline MetricAttributionSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the metric attribution.
*/ inline MetricAttributionSummary& WithName(const char* value) { SetName(value); return *this;} /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline const Aws::String& GetMetricAttributionArn() const{ return m_metricAttributionArn; } /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; } /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline void SetMetricAttributionArn(const Aws::String& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = value; } /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline void SetMetricAttributionArn(Aws::String&& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::move(value); } /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline void SetMetricAttributionArn(const char* value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn.assign(value); } /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline MetricAttributionSummary& WithMetricAttributionArn(const Aws::String& value) { SetMetricAttributionArn(value); return *this;} /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline MetricAttributionSummary& WithMetricAttributionArn(Aws::String&& value) { SetMetricAttributionArn(std::move(value)); return *this;} /** *The metric attribution's Amazon Resource Name (ARN).
*/ inline MetricAttributionSummary& WithMetricAttributionArn(const char* value) { SetMetricAttributionArn(value); return *this;} /** *The metric attribution's status.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The metric attribution's status.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The metric attribution's status.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The metric attribution's status.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The metric attribution's status.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The metric attribution's status.
*/ inline MetricAttributionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The metric attribution's status.
*/ inline MetricAttributionSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The metric attribution's status.
*/ inline MetricAttributionSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *The metric attribution's creation date time.
*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *The metric attribution's creation date time.
*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *The metric attribution's creation date time.
*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *The metric attribution's creation date time.
*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *The metric attribution's creation date time.
*/ inline MetricAttributionSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *The metric attribution's creation date time.
*/ inline MetricAttributionSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *The metric attribution's last updated date time.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *The metric attribution's last updated date time.
*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *The metric attribution's last updated date time.
*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *The metric attribution's last updated date time.
*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } /** *The metric attribution's last updated date time.
*/ inline MetricAttributionSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *The metric attribution's last updated date time.
*/ inline MetricAttributionSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} /** *The metric attribution's failure reason.
*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *The metric attribution's failure reason.
*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *The metric attribution's failure reason.
*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *The metric attribution's failure reason.
*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *The metric attribution's failure reason.
*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *The metric attribution's failure reason.
*/ inline MetricAttributionSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *The metric attribution's failure reason.
*/ inline MetricAttributionSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *The metric attribution's failure reason.
*/ inline MetricAttributionSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_metricAttributionArn; bool m_metricAttributionArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws