AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateLongTermPricingRequest.h
1
6#pragma once
7#include <aws/snowball/SnowballRequest.h>
8#include <aws/snowball/Snowball_EXPORTS.h>
9#include <aws/snowball/model/LongTermPricingType.h>
10#include <aws/snowball/model/SnowballType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Snowball {
16namespace Model {
17
21 public:
22 AWS_SNOWBALL_API CreateLongTermPricingRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateLongTermPricing"; }
29
30 AWS_SNOWBALL_API Aws::String SerializePayload() const override;
31
33
35
39 inline LongTermPricingType GetLongTermPricingType() const { return m_longTermPricingType; }
40 inline bool LongTermPricingTypeHasBeenSet() const { return m_longTermPricingTypeHasBeenSet; }
42 m_longTermPricingTypeHasBeenSet = true;
43 m_longTermPricingType = value;
44 }
47 return *this;
48 }
50
52
56 inline bool GetIsLongTermPricingAutoRenew() const { return m_isLongTermPricingAutoRenew; }
57 inline bool IsLongTermPricingAutoRenewHasBeenSet() const { return m_isLongTermPricingAutoRenewHasBeenSet; }
58 inline void SetIsLongTermPricingAutoRenew(bool value) {
59 m_isLongTermPricingAutoRenewHasBeenSet = true;
60 m_isLongTermPricingAutoRenew = value;
61 }
64 return *this;
65 }
67
69
72 inline SnowballType GetSnowballType() const { return m_snowballType; }
73 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
74 inline void SetSnowballType(SnowballType value) {
75 m_snowballTypeHasBeenSet = true;
76 m_snowballType = value;
77 }
79 SetSnowballType(value);
80 return *this;
81 }
83 private:
85
86 bool m_isLongTermPricingAutoRenew{false};
87
88 SnowballType m_snowballType{SnowballType::NOT_SET};
89 bool m_longTermPricingTypeHasBeenSet = false;
90 bool m_isLongTermPricingAutoRenewHasBeenSet = false;
91 bool m_snowballTypeHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Snowball
96} // namespace Aws
CreateLongTermPricingRequest & WithLongTermPricingType(LongTermPricingType value)
CreateLongTermPricingRequest & WithIsLongTermPricingAutoRenew(bool value)
AWS_SNOWBALL_API CreateLongTermPricingRequest()=default
CreateLongTermPricingRequest & WithSnowballType(SnowballType value)
AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SNOWBALL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String