AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
Offer.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/TermDetails.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 Bedrock
23{
24namespace Model
25{
26
32 class Offer
33 {
34 public:
35 AWS_BEDROCK_API Offer() = default;
36 AWS_BEDROCK_API Offer(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCK_API Offer& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetOfferId() const { return m_offerId; }
46 inline bool OfferIdHasBeenSet() const { return m_offerIdHasBeenSet; }
47 template<typename OfferIdT = Aws::String>
48 void SetOfferId(OfferIdT&& value) { m_offerIdHasBeenSet = true; m_offerId = std::forward<OfferIdT>(value); }
49 template<typename OfferIdT = Aws::String>
50 Offer& WithOfferId(OfferIdT&& value) { SetOfferId(std::forward<OfferIdT>(value)); return *this;}
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) { m_offerTokenHasBeenSet = true; m_offerToken = std::forward<OfferTokenT>(value); }
61 template<typename OfferTokenT = Aws::String>
62 Offer& WithOfferToken(OfferTokenT&& value) { SetOfferToken(std::forward<OfferTokenT>(value)); return *this;}
64
66
69 inline const TermDetails& GetTermDetails() const { return m_termDetails; }
70 inline bool TermDetailsHasBeenSet() const { return m_termDetailsHasBeenSet; }
71 template<typename TermDetailsT = TermDetails>
72 void SetTermDetails(TermDetailsT&& value) { m_termDetailsHasBeenSet = true; m_termDetails = std::forward<TermDetailsT>(value); }
73 template<typename TermDetailsT = TermDetails>
74 Offer& WithTermDetails(TermDetailsT&& value) { SetTermDetails(std::forward<TermDetailsT>(value)); return *this;}
76 private:
77
78 Aws::String m_offerId;
79 bool m_offerIdHasBeenSet = false;
80
81 Aws::String m_offerToken;
82 bool m_offerTokenHasBeenSet = false;
83
84 TermDetails m_termDetails;
85 bool m_termDetailsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Bedrock
90} // namespace Aws
void SetOfferId(OfferIdT &&value)
Definition Offer.h:48
bool OfferIdHasBeenSet() const
Definition Offer.h:46
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:74
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:70
const Aws::String & GetOfferId() const
Definition Offer.h:45
const TermDetails & GetTermDetails() const
Definition Offer.h:69
void SetTermDetails(TermDetailsT &&value)
Definition Offer.h:72
Offer & WithOfferId(OfferIdT &&value)
Definition Offer.h:50
Offer & WithOfferToken(OfferTokenT &&value)
Definition Offer.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue