AWS SDK for C++  1.9.109
AWS SDK for C++
UpdateLongTermPricingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Snowball
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "UpdateLongTermPricing"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetLongTermPricingId() const{ return m_longTermPricingId; }
41 
45  inline bool LongTermPricingIdHasBeenSet() const { return m_longTermPricingIdHasBeenSet; }
46 
50  inline void SetLongTermPricingId(const Aws::String& value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId = value; }
51 
55  inline void SetLongTermPricingId(Aws::String&& value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId = std::move(value); }
56 
60  inline void SetLongTermPricingId(const char* value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId.assign(value); }
61 
65  inline UpdateLongTermPricingRequest& WithLongTermPricingId(const Aws::String& value) { SetLongTermPricingId(value); return *this;}
66 
70  inline UpdateLongTermPricingRequest& WithLongTermPricingId(Aws::String&& value) { SetLongTermPricingId(std::move(value)); return *this;}
71 
75  inline UpdateLongTermPricingRequest& WithLongTermPricingId(const char* value) { SetLongTermPricingId(value); return *this;}
76 
77 
82  inline const Aws::String& GetReplacementJob() const{ return m_replacementJob; }
83 
88  inline bool ReplacementJobHasBeenSet() const { return m_replacementJobHasBeenSet; }
89 
94  inline void SetReplacementJob(const Aws::String& value) { m_replacementJobHasBeenSet = true; m_replacementJob = value; }
95 
100  inline void SetReplacementJob(Aws::String&& value) { m_replacementJobHasBeenSet = true; m_replacementJob = std::move(value); }
101 
106  inline void SetReplacementJob(const char* value) { m_replacementJobHasBeenSet = true; m_replacementJob.assign(value); }
107 
112  inline UpdateLongTermPricingRequest& WithReplacementJob(const Aws::String& value) { SetReplacementJob(value); return *this;}
113 
118  inline UpdateLongTermPricingRequest& WithReplacementJob(Aws::String&& value) { SetReplacementJob(std::move(value)); return *this;}
119 
124  inline UpdateLongTermPricingRequest& WithReplacementJob(const char* value) { SetReplacementJob(value); return *this;}
125 
126 
132  inline bool GetIsLongTermPricingAutoRenew() const{ return m_isLongTermPricingAutoRenew; }
133 
139  inline bool IsLongTermPricingAutoRenewHasBeenSet() const { return m_isLongTermPricingAutoRenewHasBeenSet; }
140 
146  inline void SetIsLongTermPricingAutoRenew(bool value) { m_isLongTermPricingAutoRenewHasBeenSet = true; m_isLongTermPricingAutoRenew = value; }
147 
153  inline UpdateLongTermPricingRequest& WithIsLongTermPricingAutoRenew(bool value) { SetIsLongTermPricingAutoRenew(value); return *this;}
154 
155  private:
156 
157  Aws::String m_longTermPricingId;
158  bool m_longTermPricingIdHasBeenSet;
159 
160  Aws::String m_replacementJob;
161  bool m_replacementJobHasBeenSet;
162 
163  bool m_isLongTermPricingAutoRenew;
164  bool m_isLongTermPricingAutoRenewHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Snowball
169 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::UpdateLongTermPricingRequest::GetIsLongTermPricingAutoRenew
bool GetIsLongTermPricingAutoRenew() const
Definition: UpdateLongTermPricingRequest.h:132
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithLongTermPricingId
UpdateLongTermPricingRequest & WithLongTermPricingId(const Aws::String &value)
Definition: UpdateLongTermPricingRequest.h:65
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithReplacementJob
UpdateLongTermPricingRequest & WithReplacementJob(const Aws::String &value)
Definition: UpdateLongTermPricingRequest.h:112
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithLongTermPricingId
UpdateLongTermPricingRequest & WithLongTermPricingId(const char *value)
Definition: UpdateLongTermPricingRequest.h:75
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetLongTermPricingId
void SetLongTermPricingId(const Aws::String &value)
Definition: UpdateLongTermPricingRequest.h:50
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetReplacementJob
void SetReplacementJob(const char *value)
Definition: UpdateLongTermPricingRequest.h:106
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetReplacementJob
void SetReplacementJob(const Aws::String &value)
Definition: UpdateLongTermPricingRequest.h:94
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
SnowballRequest.h
Aws::Snowball::Model::UpdateLongTermPricingRequest::GetReplacementJob
const Aws::String & GetReplacementJob() const
Definition: UpdateLongTermPricingRequest.h:82
Aws::Snowball::Model::UpdateLongTermPricingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetReplacementJob
void SetReplacementJob(Aws::String &&value)
Definition: UpdateLongTermPricingRequest.h:100
Aws::Snowball::Model::UpdateLongTermPricingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithReplacementJob
UpdateLongTermPricingRequest & WithReplacementJob(Aws::String &&value)
Definition: UpdateLongTermPricingRequest.h:118
Aws::Snowball::Model::UpdateLongTermPricingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateLongTermPricingRequest.h:30
AWSString.h
Aws::Snowball::Model::UpdateLongTermPricingRequest::IsLongTermPricingAutoRenewHasBeenSet
bool IsLongTermPricingAutoRenewHasBeenSet() const
Definition: UpdateLongTermPricingRequest.h:139
Aws::Snowball::Model::UpdateLongTermPricingRequest::LongTermPricingIdHasBeenSet
bool LongTermPricingIdHasBeenSet() const
Definition: UpdateLongTermPricingRequest.h:45
Aws::Snowball::Model::UpdateLongTermPricingRequest
Definition: UpdateLongTermPricingRequest.h:22
Aws::Snowball::Model::UpdateLongTermPricingRequest::ReplacementJobHasBeenSet
bool ReplacementJobHasBeenSet() const
Definition: UpdateLongTermPricingRequest.h:88
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetIsLongTermPricingAutoRenew
void SetIsLongTermPricingAutoRenew(bool value)
Definition: UpdateLongTermPricingRequest.h:146
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithReplacementJob
UpdateLongTermPricingRequest & WithReplacementJob(const char *value)
Definition: UpdateLongTermPricingRequest.h:124
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetLongTermPricingId
void SetLongTermPricingId(Aws::String &&value)
Definition: UpdateLongTermPricingRequest.h:55
Aws::Snowball::Model::UpdateLongTermPricingRequest::GetLongTermPricingId
const Aws::String & GetLongTermPricingId() const
Definition: UpdateLongTermPricingRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::UpdateLongTermPricingRequest::UpdateLongTermPricingRequest
UpdateLongTermPricingRequest()
Aws::Snowball::Model::UpdateLongTermPricingRequest::SetLongTermPricingId
void SetLongTermPricingId(const char *value)
Definition: UpdateLongTermPricingRequest.h:60
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithIsLongTermPricingAutoRenew
UpdateLongTermPricingRequest & WithIsLongTermPricingAutoRenew(bool value)
Definition: UpdateLongTermPricingRequest.h:153
Aws::Snowball::Model::UpdateLongTermPricingRequest::WithLongTermPricingId
UpdateLongTermPricingRequest & WithLongTermPricingId(Aws::String &&value)
Definition: UpdateLongTermPricingRequest.h:70
Snowball_EXPORTS.h