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

Returns the kind of currency detected.

See Also:

AWS * API Reference

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

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline ExpenseCurrency& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline ExpenseCurrency& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

Currency code for detected currency. the current supported codes are:

*
  • USD

  • EUR

  • GBP

  • *

    CAD

  • INR

  • JPY

  • CHF

    *
  • AUD

  • CNY

  • BZR

  • *

    SEK

  • HKD

*/ inline ExpenseCurrency& WithCode(const char* value) { SetCode(value); return *this;} /** *

Percentage confideence in the detected currency.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

Percentage confideence in the detected currency.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

Percentage confideence in the detected currency.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

Percentage confideence in the detected currency.

*/ inline ExpenseCurrency& WithConfidence(double value) { SetConfidence(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws