AWS SDK for C++  1.9.108
AWS SDK for C++
ListLongTermPricingRequest.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 "ListLongTermPricing"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline int GetMaxResults() const{ return m_maxResults; }
41 
45  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 
50  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
51 
55  inline ListLongTermPricingRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
56 
57 
62  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
63 
68  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 
74  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
75 
80  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
81 
86  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 
92  inline ListLongTermPricingRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
93 
98  inline ListLongTermPricingRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 
104  inline ListLongTermPricingRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105 
106  private:
107 
108  int m_maxResults;
109  bool m_maxResultsHasBeenSet;
110 
111  Aws::String m_nextToken;
112  bool m_nextTokenHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Snowball
117 } // namespace Aws
Aws::Snowball::Model::ListLongTermPricingRequest
Definition: ListLongTermPricingRequest.h:22
Aws::Snowball::Model::ListLongTermPricingRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListLongTermPricingRequest.h:68
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::ListLongTermPricingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::ListLongTermPricingRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListLongTermPricingRequest.h:45
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::ListLongTermPricingRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListLongTermPricingRequest.h:62
Aws::Snowball::Model::ListLongTermPricingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListLongTermPricingRequest.h:30
SnowballRequest.h
Aws::Snowball::Model::ListLongTermPricingRequest::WithNextToken
ListLongTermPricingRequest & WithNextToken(const char *value)
Definition: ListLongTermPricingRequest.h:104
AWSString.h
Aws::Snowball::Model::ListLongTermPricingRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListLongTermPricingRequest.h:80
Aws::Snowball::Model::ListLongTermPricingRequest::ListLongTermPricingRequest
ListLongTermPricingRequest()
Aws::Snowball::Model::ListLongTermPricingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Snowball::Model::ListLongTermPricingRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListLongTermPricingRequest.h:50
Aws::Snowball::Model::ListLongTermPricingRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListLongTermPricingRequest.h:74
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::ListLongTermPricingRequest::WithNextToken
ListLongTermPricingRequest & WithNextToken(const Aws::String &value)
Definition: ListLongTermPricingRequest.h:92
Aws::Snowball::Model::ListLongTermPricingRequest::GetMaxResults
int GetMaxResults() const
Definition: ListLongTermPricingRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::ListLongTermPricingRequest::WithMaxResults
ListLongTermPricingRequest & WithMaxResults(int value)
Definition: ListLongTermPricingRequest.h:55
Aws::Snowball::Model::ListLongTermPricingRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListLongTermPricingRequest.h:86
Snowball_EXPORTS.h
Aws::Snowball::Model::ListLongTermPricingRequest::WithNextToken
ListLongTermPricingRequest & WithNextToken(Aws::String &&value)
Definition: ListLongTermPricingRequest.h:98