AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgreementDuration(const Aws::String& value) { m_agreementDurationHasBeenSet = true; m_agreementDuration = value; }
52 inline void SetAgreementDuration(Aws::String&& value) { m_agreementDurationHasBeenSet = true; m_agreementDuration = std::move(value); }
53 inline void SetAgreementDuration(const char* value) { m_agreementDurationHasBeenSet = true; m_agreementDuration.assign(value); }
54 inline ValidityTerm& WithAgreementDuration(const Aws::String& value) { SetAgreementDuration(value); return *this;}
55 inline ValidityTerm& WithAgreementDuration(Aws::String&& value) { SetAgreementDuration(std::move(value)); return *this;}
56 inline ValidityTerm& WithAgreementDuration(const char* value) { SetAgreementDuration(value); return *this;}
58
60
65 inline const Aws::Utils::DateTime& GetAgreementEndDate() const{ return m_agreementEndDate; }
66 inline bool AgreementEndDateHasBeenSet() const { return m_agreementEndDateHasBeenSet; }
67 inline void SetAgreementEndDate(const Aws::Utils::DateTime& value) { m_agreementEndDateHasBeenSet = true; m_agreementEndDate = value; }
68 inline void SetAgreementEndDate(Aws::Utils::DateTime&& value) { m_agreementEndDateHasBeenSet = true; m_agreementEndDate = std::move(value); }
69 inline ValidityTerm& WithAgreementEndDate(const Aws::Utils::DateTime& value) { SetAgreementEndDate(value); return *this;}
70 inline ValidityTerm& WithAgreementEndDate(Aws::Utils::DateTime&& value) { SetAgreementEndDate(std::move(value)); return *this;}
72
74
79 inline const Aws::Utils::DateTime& GetAgreementStartDate() const{ return m_agreementStartDate; }
80 inline bool AgreementStartDateHasBeenSet() const { return m_agreementStartDateHasBeenSet; }
81 inline void SetAgreementStartDate(const Aws::Utils::DateTime& value) { m_agreementStartDateHasBeenSet = true; m_agreementStartDate = value; }
82 inline void SetAgreementStartDate(Aws::Utils::DateTime&& value) { m_agreementStartDateHasBeenSet = true; m_agreementStartDate = std::move(value); }
84 inline ValidityTerm& WithAgreementStartDate(Aws::Utils::DateTime&& value) { SetAgreementStartDate(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
96 inline ValidityTerm& WithType(const Aws::String& value) { SetType(value); return *this;}
97 inline ValidityTerm& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
98 inline ValidityTerm& WithType(const char* value) { SetType(value); return *this;}
100 private:
101
102 Aws::String m_agreementDuration;
103 bool m_agreementDurationHasBeenSet = false;
104
105 Aws::Utils::DateTime m_agreementEndDate;
106 bool m_agreementEndDateHasBeenSet = false;
107
108 Aws::Utils::DateTime m_agreementStartDate;
109 bool m_agreementStartDateHasBeenSet = false;
110
111 Aws::String m_type;
112 bool m_typeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AgreementService
117} // namespace Aws
ValidityTerm & WithAgreementEndDate(Aws::Utils::DateTime &&value)
ValidityTerm & WithType(const Aws::String &value)
ValidityTerm & WithAgreementEndDate(const Aws::Utils::DateTime &value)
ValidityTerm & WithAgreementStartDate(const Aws::Utils::DateTime &value)
void SetAgreementEndDate(Aws::Utils::DateTime &&value)
void SetAgreementDuration(const char *value)
ValidityTerm & WithAgreementDuration(Aws::String &&value)
const Aws::String & GetAgreementDuration() const
void SetAgreementStartDate(const Aws::Utils::DateTime &value)
ValidityTerm & WithAgreementDuration(const Aws::String &value)
ValidityTerm & WithAgreementDuration(const char *value)
const Aws::String & GetType() const
void SetAgreementEndDate(const Aws::Utils::DateTime &value)
void SetAgreementStartDate(Aws::Utils::DateTime &&value)
ValidityTerm & WithType(const char *value)
void SetAgreementDuration(const Aws::String &value)
void SetAgreementDuration(Aws::String &&value)
ValidityTerm & WithAgreementStartDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetAgreementEndDate() const
AWS_AGREEMENTSERVICE_API ValidityTerm()
const Aws::Utils::DateTime & GetAgreementStartDate() const
AWS_AGREEMENTSERVICE_API ValidityTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidityTerm & WithType(Aws::String &&value)
AWS_AGREEMENTSERVICE_API ValidityTerm(Aws::Utils::Json::JsonView jsonValue)
void SetType(const Aws::String &value)
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue