AWS SDK for C++  1.9.105
AWS SDK for C++
GetDistributionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
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 "GetDistributions"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetDistributionName() const{ return m_distributionName; }
43 
49  inline bool DistributionNameHasBeenSet() const { return m_distributionNameHasBeenSet; }
50 
56  inline void SetDistributionName(const Aws::String& value) { m_distributionNameHasBeenSet = true; m_distributionName = value; }
57 
63  inline void SetDistributionName(Aws::String&& value) { m_distributionNameHasBeenSet = true; m_distributionName = std::move(value); }
64 
70  inline void SetDistributionName(const char* value) { m_distributionNameHasBeenSet = true; m_distributionName.assign(value); }
71 
77  inline GetDistributionsRequest& WithDistributionName(const Aws::String& value) { SetDistributionName(value); return *this;}
78 
84  inline GetDistributionsRequest& WithDistributionName(Aws::String&& value) { SetDistributionName(std::move(value)); return *this;}
85 
91  inline GetDistributionsRequest& WithDistributionName(const char* value) { SetDistributionName(value); return *this;}
92 
93 
100  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
101 
108  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
109 
116  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
117 
124  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
125 
132  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
133 
140  inline GetDistributionsRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
141 
148  inline GetDistributionsRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
149 
156  inline GetDistributionsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
157 
158  private:
159 
160  Aws::String m_distributionName;
161  bool m_distributionNameHasBeenSet;
162 
163  Aws::String m_pageToken;
164  bool m_pageTokenHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Lightsail
169 } // namespace Aws
Aws::Lightsail::Model::GetDistributionsRequest::SetDistributionName
void SetDistributionName(Aws::String &&value)
Definition: GetDistributionsRequest.h:63
Aws::Lightsail::Model::GetDistributionsRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: GetDistributionsRequest.h:116
Aws::Lightsail::Model::GetDistributionsRequest::SetPageToken
void SetPageToken(const char *value)
Definition: GetDistributionsRequest.h:132
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetDistributionsRequest
Definition: GetDistributionsRequest.h:22
Aws::Lightsail::Model::GetDistributionsRequest::WithPageToken
GetDistributionsRequest & WithPageToken(Aws::String &&value)
Definition: GetDistributionsRequest.h:148
Aws::Lightsail::Model::GetDistributionsRequest::GetDistributionsRequest
GetDistributionsRequest()
Aws::Lightsail::Model::GetDistributionsRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: GetDistributionsRequest.h:124
Aws::Lightsail::Model::GetDistributionsRequest::WithDistributionName
GetDistributionsRequest & WithDistributionName(const char *value)
Definition: GetDistributionsRequest.h:91
Aws::Lightsail::Model::GetDistributionsRequest::GetDistributionName
const Aws::String & GetDistributionName() const
Definition: GetDistributionsRequest.h:42
Aws::Lightsail::Model::GetDistributionsRequest::WithDistributionName
GetDistributionsRequest & WithDistributionName(Aws::String &&value)
Definition: GetDistributionsRequest.h:84
LightsailRequest.h
Aws::Lightsail::Model::GetDistributionsRequest::DistributionNameHasBeenSet
bool DistributionNameHasBeenSet() const
Definition: GetDistributionsRequest.h:49
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetDistributionsRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: GetDistributionsRequest.h:108
AWSString.h
Aws::Lightsail::Model::GetDistributionsRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: GetDistributionsRequest.h:100
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetDistributionsRequest::WithPageToken
GetDistributionsRequest & WithPageToken(const char *value)
Definition: GetDistributionsRequest.h:156
Aws::Lightsail::Model::GetDistributionsRequest::WithPageToken
GetDistributionsRequest & WithPageToken(const Aws::String &value)
Definition: GetDistributionsRequest.h:140
Aws::Lightsail::Model::GetDistributionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDistributionsRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetDistributionsRequest::SetDistributionName
void SetDistributionName(const Aws::String &value)
Definition: GetDistributionsRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetDistributionsRequest::WithDistributionName
GetDistributionsRequest & WithDistributionName(const Aws::String &value)
Definition: GetDistributionsRequest.h:77
Aws::Lightsail::Model::GetDistributionsRequest::SetDistributionName
void SetDistributionName(const char *value)
Definition: GetDistributionsRequest.h:70
Aws::Lightsail::Model::GetDistributionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetDistributionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override