AWS SDK for C++  1.9.14
AWS SDK for C++
GetOperationsForResourceRequest.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 "GetOperationsForResource"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
41 
45  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
46 
50  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
51 
55  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
56 
60  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
61 
65  inline GetOperationsForResourceRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
66 
70  inline GetOperationsForResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
71 
75  inline GetOperationsForResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
76 
77 
84  inline const Aws::String& GetPageToken() const{ return m_pageToken; }
85 
92  inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
93 
100  inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
101 
108  inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
109 
116  inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
117 
124  inline GetOperationsForResourceRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
125 
132  inline GetOperationsForResourceRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
133 
140  inline GetOperationsForResourceRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
141 
142  private:
143 
144  Aws::String m_resourceName;
145  bool m_resourceNameHasBeenSet;
146 
147  Aws::String m_pageToken;
148  bool m_pageTokenHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace Lightsail
153 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::GetOperationsForResourceRequest::SetResourceName
void SetResourceName(const char *value)
Definition: GetOperationsForResourceRequest.h:60
Aws::Lightsail::Model::GetOperationsForResourceRequest::GetOperationsForResourceRequest
GetOperationsForResourceRequest()
Aws::Lightsail::Model::GetOperationsForResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::GetOperationsForResourceRequest::WithResourceName
GetOperationsForResourceRequest & WithResourceName(const Aws::String &value)
Definition: GetOperationsForResourceRequest.h:65
Aws::Lightsail::Model::GetOperationsForResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::GetOperationsForResourceRequest::WithPageToken
GetOperationsForResourceRequest & WithPageToken(const Aws::String &value)
Definition: GetOperationsForResourceRequest.h:124
Aws::Lightsail::Model::GetOperationsForResourceRequest::PageTokenHasBeenSet
bool PageTokenHasBeenSet() const
Definition: GetOperationsForResourceRequest.h:92
Aws::Lightsail::Model::GetOperationsForResourceRequest::WithResourceName
GetOperationsForResourceRequest & WithResourceName(const char *value)
Definition: GetOperationsForResourceRequest.h:75
LightsailRequest.h
Aws::Lightsail::Model::GetOperationsForResourceRequest
Definition: GetOperationsForResourceRequest.h:22
Aws::Lightsail::Model::GetOperationsForResourceRequest::SetPageToken
void SetPageToken(const Aws::String &value)
Definition: GetOperationsForResourceRequest.h:100
Aws::Lightsail::Model::GetOperationsForResourceRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: GetOperationsForResourceRequest.h:45
Aws::Lightsail::Model::GetOperationsForResourceRequest::SetPageToken
void SetPageToken(Aws::String &&value)
Definition: GetOperationsForResourceRequest.h:108
Aws::Lightsail::Model::GetOperationsForResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetOperationsForResourceRequest.h:30
Aws::Lightsail::Model::GetOperationsForResourceRequest::WithPageToken
GetOperationsForResourceRequest & WithPageToken(const char *value)
Definition: GetOperationsForResourceRequest.h:140
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::GetOperationsForResourceRequest::WithResourceName
GetOperationsForResourceRequest & WithResourceName(Aws::String &&value)
Definition: GetOperationsForResourceRequest.h:70
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetOperationsForResourceRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: GetOperationsForResourceRequest.h:55
Aws::Lightsail::Model::GetOperationsForResourceRequest::SetPageToken
void SetPageToken(const char *value)
Definition: GetOperationsForResourceRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetOperationsForResourceRequest::WithPageToken
GetOperationsForResourceRequest & WithPageToken(Aws::String &&value)
Definition: GetOperationsForResourceRequest.h:132
Aws::Lightsail::Model::GetOperationsForResourceRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: GetOperationsForResourceRequest.h:40
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetOperationsForResourceRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: GetOperationsForResourceRequest.h:50
Aws::Lightsail::Model::GetOperationsForResourceRequest::GetPageToken
const Aws::String & GetPageToken() const
Definition: GetOperationsForResourceRequest.h:84