AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ValidityTerm.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/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AgreementService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AGREEMENTSERVICE_API ValidityTerm() = default;
37 AWS_AGREEMENTSERVICE_API ValidityTerm(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGREEMENTSERVICE_API ValidityTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetAgreementDuration() const { return m_agreementDuration; }
50 inline bool AgreementDurationHasBeenSet() const { return m_agreementDurationHasBeenSet; }
51 template<typename AgreementDurationT = Aws::String>
52 void SetAgreementDuration(AgreementDurationT&& value) { m_agreementDurationHasBeenSet = true; m_agreementDuration = std::forward<AgreementDurationT>(value); }
53 template<typename AgreementDurationT = Aws::String>
54 ValidityTerm& WithAgreementDuration(AgreementDurationT&& value) { SetAgreementDuration(std::forward<AgreementDurationT>(value)); return *this;}
56
58
63 inline const Aws::Utils::DateTime& GetAgreementEndDate() const { return m_agreementEndDate; }
64 inline bool AgreementEndDateHasBeenSet() const { return m_agreementEndDateHasBeenSet; }
65 template<typename AgreementEndDateT = Aws::Utils::DateTime>
66 void SetAgreementEndDate(AgreementEndDateT&& value) { m_agreementEndDateHasBeenSet = true; m_agreementEndDate = std::forward<AgreementEndDateT>(value); }
67 template<typename AgreementEndDateT = Aws::Utils::DateTime>
68 ValidityTerm& WithAgreementEndDate(AgreementEndDateT&& value) { SetAgreementEndDate(std::forward<AgreementEndDateT>(value)); return *this;}
70
72
77 inline const Aws::Utils::DateTime& GetAgreementStartDate() const { return m_agreementStartDate; }
78 inline bool AgreementStartDateHasBeenSet() const { return m_agreementStartDateHasBeenSet; }
79 template<typename AgreementStartDateT = Aws::Utils::DateTime>
80 void SetAgreementStartDate(AgreementStartDateT&& value) { m_agreementStartDateHasBeenSet = true; m_agreementStartDate = std::forward<AgreementStartDateT>(value); }
81 template<typename AgreementStartDateT = Aws::Utils::DateTime>
82 ValidityTerm& WithAgreementStartDate(AgreementStartDateT&& value) { SetAgreementStartDate(std::forward<AgreementStartDateT>(value)); return *this;}
84
86
89 inline const Aws::String& GetType() const { return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 template<typename TypeT = Aws::String>
92 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
93 template<typename TypeT = Aws::String>
94 ValidityTerm& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
96 private:
97
98 Aws::String m_agreementDuration;
99 bool m_agreementDurationHasBeenSet = false;
100
101 Aws::Utils::DateTime m_agreementEndDate{};
102 bool m_agreementEndDateHasBeenSet = false;
103
104 Aws::Utils::DateTime m_agreementStartDate{};
105 bool m_agreementStartDateHasBeenSet = false;
106
107 Aws::String m_type;
108 bool m_typeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace AgreementService
113} // namespace Aws
ValidityTerm & WithAgreementDuration(AgreementDurationT &&value)
void SetAgreementEndDate(AgreementEndDateT &&value)
const Aws::String & GetAgreementDuration() const
const Aws::String & GetType() const
ValidityTerm & WithAgreementEndDate(AgreementEndDateT &&value)
ValidityTerm & WithType(TypeT &&value)
const Aws::Utils::DateTime & GetAgreementEndDate() const
const Aws::Utils::DateTime & GetAgreementStartDate() const
AWS_AGREEMENTSERVICE_API ValidityTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAgreementStartDate(AgreementStartDateT &&value)
AWS_AGREEMENTSERVICE_API ValidityTerm(Aws::Utils::Json::JsonView jsonValue)
ValidityTerm & WithAgreementStartDate(AgreementStartDateT &&value)
AWS_AGREEMENTSERVICE_API ValidityTerm()=default
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgreementDuration(AgreementDurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue