AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
BusinessUnit.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payments/Payments_EXPORTS.h>
9#include <aws/payments/model/LineOfBusiness.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Payments {
21namespace Model {
22
32 public:
33 AWS_PAYMENTS_API BusinessUnit() = default;
34 AWS_PAYMENTS_API BusinessUnit(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetMerchantOfRecord() const { return m_merchantOfRecord; }
47 inline bool MerchantOfRecordHasBeenSet() const { return m_merchantOfRecordHasBeenSet; }
48 template <typename MerchantOfRecordT = Aws::String>
49 void SetMerchantOfRecord(MerchantOfRecordT&& value) {
50 m_merchantOfRecordHasBeenSet = true;
51 m_merchantOfRecord = std::forward<MerchantOfRecordT>(value);
52 }
53 template <typename MerchantOfRecordT = Aws::String>
54 BusinessUnit& WithMerchantOfRecord(MerchantOfRecordT&& value) {
55 SetMerchantOfRecord(std::forward<MerchantOfRecordT>(value));
56 return *this;
57 }
59
61
71 inline LineOfBusiness GetLineOfBusiness() const { return m_lineOfBusiness; }
72 inline bool LineOfBusinessHasBeenSet() const { return m_lineOfBusinessHasBeenSet; }
73 inline void SetLineOfBusiness(LineOfBusiness value) {
74 m_lineOfBusinessHasBeenSet = true;
75 m_lineOfBusiness = value;
76 }
78 SetLineOfBusiness(value);
79 return *this;
80 }
82 private:
83 Aws::String m_merchantOfRecord;
84
86 bool m_merchantOfRecordHasBeenSet = false;
87 bool m_lineOfBusinessHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Payments
92} // namespace Aws
LineOfBusiness GetLineOfBusiness() const
BusinessUnit & WithLineOfBusiness(LineOfBusiness value)
void SetMerchantOfRecord(MerchantOfRecordT &&value)
AWS_PAYMENTS_API BusinessUnit(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTS_API BusinessUnit & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMerchantOfRecord() const
AWS_PAYMENTS_API BusinessUnit()=default
BusinessUnit & WithMerchantOfRecord(MerchantOfRecordT &&value)
void SetLineOfBusiness(LineOfBusiness value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue