/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/b2bi/B2BI_EXPORTS.h>
#include <aws/b2bi/model/X12Details.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace B2BI {
namespace Model {

/**
 * <p>A structure that contains the X12 transaction set and version.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/FormatOptions">AWS
 * API Reference</a></p>
 */
class FormatOptions {
 public:
  AWS_B2BI_API FormatOptions() = default;
  AWS_B2BI_API FormatOptions(Aws::Utils::Json::JsonView jsonValue);
  AWS_B2BI_API FormatOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_B2BI_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{

  inline const X12Details& GetX12() const { return m_x12; }
  inline bool X12HasBeenSet() const { return m_x12HasBeenSet; }
  template <typename X12T = X12Details>
  void SetX12(X12T&& value) {
    m_x12HasBeenSet = true;
    m_x12 = std::forward<X12T>(value);
  }
  template <typename X12T = X12Details>
  FormatOptions& WithX12(X12T&& value) {
    SetX12(std::forward<X12T>(value));
    return *this;
  }
  ///@}
 private:
  X12Details m_x12;
  bool m_x12HasBeenSet = false;
};

}  // namespace Model
}  // namespace B2BI
}  // namespace Aws
