/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include If this job failed, this element indicates why the job failed.See
* Also:
AWS
* API Reference
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