AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FixedUpfrontPricingTerm.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/marketplace-agreement/model/GrantItem.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AgreementService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm();
38 AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
48 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
49 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
50 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
51 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
52 inline FixedUpfrontPricingTerm& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
53 inline FixedUpfrontPricingTerm& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
54 inline FixedUpfrontPricingTerm& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
56
58
61 inline const Aws::String& GetDuration() const{ return m_duration; }
62 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
63 inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
64 inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
65 inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
66 inline FixedUpfrontPricingTerm& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
67 inline FixedUpfrontPricingTerm& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
68 inline FixedUpfrontPricingTerm& WithDuration(const char* value) { SetDuration(value); return *this;}
70
72
76 inline const Aws::Vector<GrantItem>& GetGrants() const{ return m_grants; }
77 inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
78 inline void SetGrants(const Aws::Vector<GrantItem>& value) { m_grantsHasBeenSet = true; m_grants = value; }
79 inline void SetGrants(Aws::Vector<GrantItem>&& value) { m_grantsHasBeenSet = true; m_grants = std::move(value); }
80 inline FixedUpfrontPricingTerm& WithGrants(const Aws::Vector<GrantItem>& value) { SetGrants(value); return *this;}
81 inline FixedUpfrontPricingTerm& WithGrants(Aws::Vector<GrantItem>&& value) { SetGrants(std::move(value)); return *this;}
82 inline FixedUpfrontPricingTerm& AddGrants(const GrantItem& value) { m_grantsHasBeenSet = true; m_grants.push_back(value); return *this; }
83 inline FixedUpfrontPricingTerm& AddGrants(GrantItem&& value) { m_grantsHasBeenSet = true; m_grants.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::String& GetPrice() const{ return m_price; }
91 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
92 inline void SetPrice(const Aws::String& value) { m_priceHasBeenSet = true; m_price = value; }
93 inline void SetPrice(Aws::String&& value) { m_priceHasBeenSet = true; m_price = std::move(value); }
94 inline void SetPrice(const char* value) { m_priceHasBeenSet = true; m_price.assign(value); }
95 inline FixedUpfrontPricingTerm& WithPrice(const Aws::String& value) { SetPrice(value); return *this;}
96 inline FixedUpfrontPricingTerm& WithPrice(Aws::String&& value) { SetPrice(std::move(value)); return *this;}
97 inline FixedUpfrontPricingTerm& WithPrice(const char* value) { SetPrice(value); return *this;}
99
101
104 inline const Aws::String& GetType() const{ return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
107 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
108 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
109 inline FixedUpfrontPricingTerm& WithType(const Aws::String& value) { SetType(value); return *this;}
110 inline FixedUpfrontPricingTerm& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
111 inline FixedUpfrontPricingTerm& WithType(const char* value) { SetType(value); return *this;}
113 private:
114
115 Aws::String m_currencyCode;
116 bool m_currencyCodeHasBeenSet = false;
117
118 Aws::String m_duration;
119 bool m_durationHasBeenSet = false;
120
121 Aws::Vector<GrantItem> m_grants;
122 bool m_grantsHasBeenSet = false;
123
124 Aws::String m_price;
125 bool m_priceHasBeenSet = false;
126
127 Aws::String m_type;
128 bool m_typeHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace AgreementService
133} // namespace Aws
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
FixedUpfrontPricingTerm & WithType(const char *value)
FixedUpfrontPricingTerm & WithCurrencyCode(const Aws::String &value)
void SetGrants(const Aws::Vector< GrantItem > &value)
FixedUpfrontPricingTerm & WithPrice(Aws::String &&value)
FixedUpfrontPricingTerm & WithCurrencyCode(const char *value)
FixedUpfrontPricingTerm & WithPrice(const char *value)
FixedUpfrontPricingTerm & WithType(Aws::String &&value)
FixedUpfrontPricingTerm & WithGrants(const Aws::Vector< GrantItem > &value)
FixedUpfrontPricingTerm & AddGrants(GrantItem &&value)
FixedUpfrontPricingTerm & WithDuration(Aws::String &&value)
FixedUpfrontPricingTerm & WithDuration(const Aws::String &value)
FixedUpfrontPricingTerm & WithGrants(Aws::Vector< GrantItem > &&value)
FixedUpfrontPricingTerm & WithPrice(const Aws::String &value)
AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
FixedUpfrontPricingTerm & WithDuration(const char *value)
FixedUpfrontPricingTerm & WithType(const Aws::String &value)
AWS_AGREEMENTSERVICE_API FixedUpfrontPricingTerm(Aws::Utils::Json::JsonView jsonValue)
FixedUpfrontPricingTerm & AddGrants(const GrantItem &value)
FixedUpfrontPricingTerm & WithCurrencyCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue