AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FreeTrialPricingTerm.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 FreeTrialPricingTerm();
38 AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDuration() const{ return m_duration; }
48 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
49 inline void SetDuration(const Aws::String& value) { m_durationHasBeenSet = true; m_duration = value; }
50 inline void SetDuration(Aws::String&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
51 inline void SetDuration(const char* value) { m_durationHasBeenSet = true; m_duration.assign(value); }
52 inline FreeTrialPricingTerm& WithDuration(const Aws::String& value) { SetDuration(value); return *this;}
53 inline FreeTrialPricingTerm& WithDuration(Aws::String&& value) { SetDuration(std::move(value)); return *this;}
54 inline FreeTrialPricingTerm& WithDuration(const char* value) { SetDuration(value); return *this;}
56
58
62 inline const Aws::Vector<GrantItem>& GetGrants() const{ return m_grants; }
63 inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
64 inline void SetGrants(const Aws::Vector<GrantItem>& value) { m_grantsHasBeenSet = true; m_grants = value; }
65 inline void SetGrants(Aws::Vector<GrantItem>&& value) { m_grantsHasBeenSet = true; m_grants = std::move(value); }
66 inline FreeTrialPricingTerm& WithGrants(const Aws::Vector<GrantItem>& value) { SetGrants(value); return *this;}
67 inline FreeTrialPricingTerm& WithGrants(Aws::Vector<GrantItem>&& value) { SetGrants(std::move(value)); return *this;}
68 inline FreeTrialPricingTerm& AddGrants(const GrantItem& value) { m_grantsHasBeenSet = true; m_grants.push_back(value); return *this; }
69 inline FreeTrialPricingTerm& AddGrants(GrantItem&& value) { m_grantsHasBeenSet = true; m_grants.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::String& GetType() const{ return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
79 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
80 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
81 inline FreeTrialPricingTerm& WithType(const Aws::String& value) { SetType(value); return *this;}
82 inline FreeTrialPricingTerm& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
83 inline FreeTrialPricingTerm& WithType(const char* value) { SetType(value); return *this;}
85 private:
86
87 Aws::String m_duration;
88 bool m_durationHasBeenSet = false;
89
91 bool m_grantsHasBeenSet = false;
92
93 Aws::String m_type;
94 bool m_typeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AgreementService
99} // namespace Aws
FreeTrialPricingTerm & WithDuration(const char *value)
void SetGrants(Aws::Vector< GrantItem > &&value)
const Aws::Vector< GrantItem > & GetGrants() const
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTrialPricingTerm & WithGrants(Aws::Vector< GrantItem > &&value)
FreeTrialPricingTerm & AddGrants(const GrantItem &value)
AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm(Aws::Utils::Json::JsonView jsonValue)
FreeTrialPricingTerm & WithType(const Aws::String &value)
FreeTrialPricingTerm & WithDuration(Aws::String &&value)
AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
FreeTrialPricingTerm & WithType(const char *value)
FreeTrialPricingTerm & WithDuration(const Aws::String &value)
FreeTrialPricingTerm & WithGrants(const Aws::Vector< GrantItem > &value)
FreeTrialPricingTerm & WithType(Aws::String &&value)
void SetGrants(const Aws::Vector< GrantItem > &value)
FreeTrialPricingTerm & AddGrants(GrantItem &&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