AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename DurationT = Aws::String>
50 void SetDuration(DurationT&& value) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
51 template<typename DurationT = Aws::String>
52 FreeTrialPricingTerm& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
54
56
60 inline const Aws::Vector<GrantItem>& GetGrants() const { return m_grants; }
61 inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
62 template<typename GrantsT = Aws::Vector<GrantItem>>
63 void SetGrants(GrantsT&& value) { m_grantsHasBeenSet = true; m_grants = std::forward<GrantsT>(value); }
64 template<typename GrantsT = Aws::Vector<GrantItem>>
65 FreeTrialPricingTerm& WithGrants(GrantsT&& value) { SetGrants(std::forward<GrantsT>(value)); return *this;}
66 template<typename GrantsT = GrantItem>
67 FreeTrialPricingTerm& AddGrants(GrantsT&& value) { m_grantsHasBeenSet = true; m_grants.emplace_back(std::forward<GrantsT>(value)); return *this; }
69
71
74 inline const Aws::String& GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 template<typename TypeT = Aws::String>
77 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
78 template<typename TypeT = Aws::String>
79 FreeTrialPricingTerm& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
81 private:
82
83 Aws::String m_duration;
84 bool m_durationHasBeenSet = false;
85
87 bool m_grantsHasBeenSet = false;
88
89 Aws::String m_type;
90 bool m_typeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace AgreementService
95} // namespace Aws
FreeTrialPricingTerm & WithGrants(GrantsT &&value)
const Aws::Vector< GrantItem > & GetGrants() const
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm(Aws::Utils::Json::JsonView jsonValue)
AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm()=default
FreeTrialPricingTerm & WithType(TypeT &&value)
AWS_AGREEMENTSERVICE_API FreeTrialPricingTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
FreeTrialPricingTerm & AddGrants(GrantsT &&value)
FreeTrialPricingTerm & WithDuration(DurationT &&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