AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateRenewalRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/OutpostsRequest.h>
10#include <aws/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/PaymentOption.h>
12#include <aws/outposts/model/PaymentTerm.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Outposts {
18namespace Model {
19
23 public:
24 AWS_OUTPOSTS_API CreateRenewalRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRenewal"; }
31
32 AWS_OUTPOSTS_API Aws::String SerializePayload() const override;
33
35
38 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
39 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
40 inline void SetPaymentOption(PaymentOption value) {
41 m_paymentOptionHasBeenSet = true;
42 m_paymentOption = value;
43 }
45 SetPaymentOption(value);
46 return *this;
47 }
49
51
54 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
55 inline bool PaymentTermHasBeenSet() const { return m_paymentTermHasBeenSet; }
56 inline void SetPaymentTerm(PaymentTerm value) {
57 m_paymentTermHasBeenSet = true;
58 m_paymentTerm = value;
59 }
61 SetPaymentTerm(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetOutpostIdentifier() const { return m_outpostIdentifier; }
71 inline bool OutpostIdentifierHasBeenSet() const { return m_outpostIdentifierHasBeenSet; }
72 template <typename OutpostIdentifierT = Aws::String>
73 void SetOutpostIdentifier(OutpostIdentifierT&& value) {
74 m_outpostIdentifierHasBeenSet = true;
75 m_outpostIdentifier = std::forward<OutpostIdentifierT>(value);
76 }
77 template <typename OutpostIdentifierT = Aws::String>
78 CreateRenewalRequest& WithOutpostIdentifier(OutpostIdentifierT&& value) {
79 SetOutpostIdentifier(std::forward<OutpostIdentifierT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetClientToken() const { return m_clientToken; }
90 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
91 template <typename ClientTokenT = Aws::String>
92 void SetClientToken(ClientTokenT&& value) {
93 m_clientTokenHasBeenSet = true;
94 m_clientToken = std::forward<ClientTokenT>(value);
95 }
96 template <typename ClientTokenT = Aws::String>
97 CreateRenewalRequest& WithClientToken(ClientTokenT&& value) {
98 SetClientToken(std::forward<ClientTokenT>(value));
99 return *this;
100 }
102 private:
103 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
104
105 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
106
107 Aws::String m_outpostIdentifier;
108
110 bool m_paymentOptionHasBeenSet = false;
111 bool m_paymentTermHasBeenSet = false;
112 bool m_outpostIdentifierHasBeenSet = false;
113 bool m_clientTokenHasBeenSet = true;
114};
115
116} // namespace Model
117} // namespace Outposts
118} // namespace Aws
CreateRenewalRequest & WithPaymentOption(PaymentOption value)
AWS_OUTPOSTS_API CreateRenewalRequest()=default
AWS_OUTPOSTS_API Aws::String SerializePayload() const override
void SetOutpostIdentifier(OutpostIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
CreateRenewalRequest & WithClientToken(ClientTokenT &&value)
CreateRenewalRequest & WithOutpostIdentifier(OutpostIdentifierT &&value)
CreateRenewalRequest & WithPaymentTerm(PaymentTerm value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String