AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Offer.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/TermDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
28class Offer {
29 public:
30 AWS_BEDROCK_API Offer() = default;
33 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetOfferId() const { return m_offerId; }
40 inline bool OfferIdHasBeenSet() const { return m_offerIdHasBeenSet; }
41 template <typename OfferIdT = Aws::String>
42 void SetOfferId(OfferIdT&& value) {
43 m_offerIdHasBeenSet = true;
44 m_offerId = std::forward<OfferIdT>(value);
45 }
46 template <typename OfferIdT = Aws::String>
48 SetOfferId(std::forward<OfferIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetOfferToken() const { return m_offerToken; }
58 inline bool OfferTokenHasBeenSet() const { return m_offerTokenHasBeenSet; }
59 template <typename OfferTokenT = Aws::String>
60 void SetOfferToken(OfferTokenT&& value) {
61 m_offerTokenHasBeenSet = true;
62 m_offerToken = std::forward<OfferTokenT>(value);
63 }
64 template <typename OfferTokenT = Aws::String>
66 SetOfferToken(std::forward<OfferTokenT>(value));
67 return *this;
68 }
70
72
75 inline const TermDetails& GetTermDetails() const { return m_termDetails; }
76 inline bool TermDetailsHasBeenSet() const { return m_termDetailsHasBeenSet; }
77 template <typename TermDetailsT = TermDetails>
79 m_termDetailsHasBeenSet = true;
80 m_termDetails = std::forward<TermDetailsT>(value);
81 }
82 template <typename TermDetailsT = TermDetails>
84 SetTermDetails(std::forward<TermDetailsT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_offerId;
90
91 Aws::String m_offerToken;
92
93 TermDetails m_termDetails;
94 bool m_offerIdHasBeenSet = false;
95 bool m_offerTokenHasBeenSet = false;
96 bool m_termDetailsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Bedrock
101} // namespace Aws
void SetOfferId(OfferIdT &&value)
Definition Offer.h:42
bool OfferIdHasBeenSet() const
Definition Offer.h:40
AWS_BEDROCK_API Offer(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
Offer & WithTermDetails(TermDetailsT &&value)
Definition Offer.h:83
const Aws::String & GetOfferToken() const
Definition Offer.h:57
AWS_BEDROCK_API Offer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOfferToken(OfferTokenT &&value)
Definition Offer.h:60
bool OfferTokenHasBeenSet() const
Definition Offer.h:58
AWS_BEDROCK_API Offer()=default
bool TermDetailsHasBeenSet() const
Definition Offer.h:76
const Aws::String & GetOfferId() const
Definition Offer.h:39
const TermDetails & GetTermDetails() const
Definition Offer.h:75
void SetTermDetails(TermDetailsT &&value)
Definition Offer.h:78
Offer & WithOfferId(OfferIdT &&value)
Definition Offer.h:47
Offer & WithOfferToken(OfferTokenT &&value)
Definition Offer.h:65
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue