/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { /** *

If this job failed, this element indicates why the job failed.

See * Also:

AWS * API Reference

*/ class JobFailure { public: AWS_S3CONTROL_API JobFailure(); AWS_S3CONTROL_API JobFailure(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API JobFailure& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The failure code, if any, for the specified job.

*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *

The failure code, if any, for the specified job.

*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *

The failure code, if any, for the specified job.

*/ inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *

The failure code, if any, for the specified job.

*/ inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *

The failure code, if any, for the specified job.

*/ inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); } /** *

The failure code, if any, for the specified job.

*/ inline JobFailure& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *

The failure code, if any, for the specified job.

*/ inline JobFailure& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The failure code, if any, for the specified job.

*/ inline JobFailure& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *

The failure reason, if any, for the specified job.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The failure reason, if any, for the specified job.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

The failure reason, if any, for the specified job.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

The failure reason, if any, for the specified job.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

The failure reason, if any, for the specified job.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

The failure reason, if any, for the specified job.

*/ inline JobFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The failure reason, if any, for the specified job.

*/ inline JobFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The failure reason, if any, for the specified job.

*/ inline JobFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws