AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSavingsPlanRequest.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/SavingsPlansRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SavingsPlans
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAVINGSPLANS_API CreateSavingsPlanRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSavingsPlan"; }
34
35 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetSavingsPlanOfferingId() const{ return m_savingsPlanOfferingId; }
43 inline bool SavingsPlanOfferingIdHasBeenSet() const { return m_savingsPlanOfferingIdHasBeenSet; }
44 inline void SetSavingsPlanOfferingId(const Aws::String& value) { m_savingsPlanOfferingIdHasBeenSet = true; m_savingsPlanOfferingId = value; }
45 inline void SetSavingsPlanOfferingId(Aws::String&& value) { m_savingsPlanOfferingIdHasBeenSet = true; m_savingsPlanOfferingId = std::move(value); }
46 inline void SetSavingsPlanOfferingId(const char* value) { m_savingsPlanOfferingIdHasBeenSet = true; m_savingsPlanOfferingId.assign(value); }
49 inline CreateSavingsPlanRequest& WithSavingsPlanOfferingId(const char* value) { SetSavingsPlanOfferingId(value); return *this;}
51
53
58 inline const Aws::String& GetCommitment() const{ return m_commitment; }
59 inline bool CommitmentHasBeenSet() const { return m_commitmentHasBeenSet; }
60 inline void SetCommitment(const Aws::String& value) { m_commitmentHasBeenSet = true; m_commitment = value; }
61 inline void SetCommitment(Aws::String&& value) { m_commitmentHasBeenSet = true; m_commitment = std::move(value); }
62 inline void SetCommitment(const char* value) { m_commitmentHasBeenSet = true; m_commitment.assign(value); }
63 inline CreateSavingsPlanRequest& WithCommitment(const Aws::String& value) { SetCommitment(value); return *this;}
64 inline CreateSavingsPlanRequest& WithCommitment(Aws::String&& value) { SetCommitment(std::move(value)); return *this;}
65 inline CreateSavingsPlanRequest& WithCommitment(const char* value) { SetCommitment(value); return *this;}
67
69
74 inline const Aws::String& GetUpfrontPaymentAmount() const{ return m_upfrontPaymentAmount; }
75 inline bool UpfrontPaymentAmountHasBeenSet() const { return m_upfrontPaymentAmountHasBeenSet; }
76 inline void SetUpfrontPaymentAmount(const Aws::String& value) { m_upfrontPaymentAmountHasBeenSet = true; m_upfrontPaymentAmount = value; }
77 inline void SetUpfrontPaymentAmount(Aws::String&& value) { m_upfrontPaymentAmountHasBeenSet = true; m_upfrontPaymentAmount = std::move(value); }
78 inline void SetUpfrontPaymentAmount(const char* value) { m_upfrontPaymentAmountHasBeenSet = true; m_upfrontPaymentAmount.assign(value); }
80 inline CreateSavingsPlanRequest& WithUpfrontPaymentAmount(Aws::String&& value) { SetUpfrontPaymentAmount(std::move(value)); return *this;}
81 inline CreateSavingsPlanRequest& WithUpfrontPaymentAmount(const char* value) { SetUpfrontPaymentAmount(value); return *this;}
83
85
89 inline const Aws::Utils::DateTime& GetPurchaseTime() const{ return m_purchaseTime; }
90 inline bool PurchaseTimeHasBeenSet() const { return m_purchaseTimeHasBeenSet; }
91 inline void SetPurchaseTime(const Aws::Utils::DateTime& value) { m_purchaseTimeHasBeenSet = true; m_purchaseTime = value; }
92 inline void SetPurchaseTime(Aws::Utils::DateTime&& value) { m_purchaseTimeHasBeenSet = true; m_purchaseTime = std::move(value); }
94 inline CreateSavingsPlanRequest& WithPurchaseTime(Aws::Utils::DateTime&& value) { SetPurchaseTime(std::move(value)); return *this;}
96
98
102 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
105 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
106 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
107 inline CreateSavingsPlanRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
108 inline CreateSavingsPlanRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
109 inline CreateSavingsPlanRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateSavingsPlanRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateSavingsPlanRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 inline CreateSavingsPlanRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateSavingsPlanRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
125 inline CreateSavingsPlanRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
126 inline CreateSavingsPlanRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateSavingsPlanRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
128 inline CreateSavingsPlanRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130 private:
131
132 Aws::String m_savingsPlanOfferingId;
133 bool m_savingsPlanOfferingIdHasBeenSet = false;
134
135 Aws::String m_commitment;
136 bool m_commitmentHasBeenSet = false;
137
138 Aws::String m_upfrontPaymentAmount;
139 bool m_upfrontPaymentAmountHasBeenSet = false;
140
141 Aws::Utils::DateTime m_purchaseTime;
142 bool m_purchaseTimeHasBeenSet = false;
143
144 Aws::String m_clientToken;
145 bool m_clientTokenHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace SavingsPlans
153} // namespace Aws
CreateSavingsPlanRequest & WithPurchaseTime(Aws::Utils::DateTime &&value)
CreateSavingsPlanRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSavingsPlanRequest & WithSavingsPlanOfferingId(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
CreateSavingsPlanRequest & AddTags(Aws::String &&key, const char *value)
CreateSavingsPlanRequest & WithCommitment(const Aws::String &value)
CreateSavingsPlanRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSavingsPlanRequest & WithClientToken(const Aws::String &value)
CreateSavingsPlanRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSavingsPlanRequest & WithPurchaseTime(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
CreateSavingsPlanRequest & WithCommitment(Aws::String &&value)
CreateSavingsPlanRequest & WithClientToken(const char *value)
CreateSavingsPlanRequest & WithSavingsPlanOfferingId(const char *value)
CreateSavingsPlanRequest & WithCommitment(const char *value)
CreateSavingsPlanRequest & WithUpfrontPaymentAmount(const Aws::String &value)
void SetPurchaseTime(const Aws::Utils::DateTime &value)
CreateSavingsPlanRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSavingsPlanRequest & WithUpfrontPaymentAmount(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSavingsPlanRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSavingsPlanRequest & WithSavingsPlanOfferingId(const Aws::String &value)
CreateSavingsPlanRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSavingsPlanRequest & WithClientToken(Aws::String &&value)
CreateSavingsPlanRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSavingsPlanRequest & WithUpfrontPaymentAmount(const char *value)
CreateSavingsPlanRequest & AddTags(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String