/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An error that occurred with the job request.See Also:
AWS
* API Reference
The code for the job error.
*/ inline const Code& GetCode() const{ return m_code; } /** *The code for the job error.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The code for the job error.
*/ inline void SetCode(const Code& value) { m_codeHasBeenSet = true; m_code = value; } /** *The code for the job error.
*/ inline void SetCode(Code&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The code for the job error.
*/ inline JobError& WithCode(const Code& value) { SetCode(value); return *this;} /** *The code for the job error.
*/ inline JobError& WithCode(Code&& value) { SetCode(std::move(value)); return *this;} /** *The details about the job error.
*/ inline const Details& GetDetails() const{ return m_details; } /** *The details about the job error.
*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *The details about the job error.
*/ inline void SetDetails(const Details& value) { m_detailsHasBeenSet = true; m_details = value; } /** *The details about the job error.
*/ inline void SetDetails(Details&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *The details about the job error.
*/ inline JobError& WithDetails(const Details& value) { SetDetails(value); return *this;} /** *The details about the job error.
*/ inline JobError& WithDetails(Details&& value) { SetDetails(std::move(value)); return *this;} /** *The name of the limit that was reached.
*/ inline const JobErrorLimitName& GetLimitName() const{ return m_limitName; } /** *The name of the limit that was reached.
*/ inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; } /** *The name of the limit that was reached.
*/ inline void SetLimitName(const JobErrorLimitName& value) { m_limitNameHasBeenSet = true; m_limitName = value; } /** *The name of the limit that was reached.
*/ inline void SetLimitName(JobErrorLimitName&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); } /** *The name of the limit that was reached.
*/ inline JobError& WithLimitName(const JobErrorLimitName& value) { SetLimitName(value); return *this;} /** *The name of the limit that was reached.
*/ inline JobError& WithLimitName(JobErrorLimitName&& value) { SetLimitName(std::move(value)); return *this;} /** *The value of the exceeded limit.
*/ inline double GetLimitValue() const{ return m_limitValue; } /** *The value of the exceeded limit.
*/ inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; } /** *The value of the exceeded limit.
*/ inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; } /** *The value of the exceeded limit.
*/ inline JobError& WithLimitValue(double value) { SetLimitValue(value); return *this;} /** *The message related to the job error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The message related to the job error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The message related to the job error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The message related to the job error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The message related to the job error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The message related to the job error.
*/ inline JobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The message related to the job error.
*/ inline JobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The message related to the job error.
*/ inline JobError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The unique identifier for the resource related to the error.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The unique identifier for the resource related to the error.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The unique identifier for the resource related to the error.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The unique identifier for the resource related to the error.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The unique identifier for the resource related to the error.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The unique identifier for the resource related to the error.
*/ inline JobError& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The unique identifier for the resource related to the error.
*/ inline JobError& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The unique identifier for the resource related to the error.
*/ inline JobError& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *The type of resource related to the error.
*/ inline const JobErrorResourceTypes& GetResourceType() const{ return m_resourceType; } /** *The type of resource related to the error.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of resource related to the error.
*/ inline void SetResourceType(const JobErrorResourceTypes& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of resource related to the error.
*/ inline void SetResourceType(JobErrorResourceTypes&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of resource related to the error.
*/ inline JobError& WithResourceType(const JobErrorResourceTypes& value) { SetResourceType(value); return *this;} /** *The type of resource related to the error.
*/ inline JobError& WithResourceType(JobErrorResourceTypes&& value) { SetResourceType(std::move(value)); return *this;} private: Code m_code; bool m_codeHasBeenSet = false; Details m_details; bool m_detailsHasBeenSet = false; JobErrorLimitName m_limitName; bool m_limitNameHasBeenSet = false; double m_limitValue; bool m_limitValueHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; JobErrorResourceTypes m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws