AWS SDK for C++  1.9.123
AWS SDK for C++
GetResourceCollectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace DevOpsGuru
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "GetResourceCollection"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
46  inline const ResourceCollectionType& GetResourceCollectionType() const{ return m_resourceCollectionType; }
47 
52  inline bool ResourceCollectionTypeHasBeenSet() const { return m_resourceCollectionTypeHasBeenSet; }
53 
58  inline void SetResourceCollectionType(const ResourceCollectionType& value) { m_resourceCollectionTypeHasBeenSet = true; m_resourceCollectionType = value; }
59 
64  inline void SetResourceCollectionType(ResourceCollectionType&& value) { m_resourceCollectionTypeHasBeenSet = true; m_resourceCollectionType = std::move(value); }
65 
70  inline GetResourceCollectionRequest& WithResourceCollectionType(const ResourceCollectionType& value) { SetResourceCollectionType(value); return *this;}
71 
76  inline GetResourceCollectionRequest& WithResourceCollectionType(ResourceCollectionType&& value) { SetResourceCollectionType(std::move(value)); return *this;}
77 
78 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
89  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 
95  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 
101  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
102 
107  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
108 
113  inline GetResourceCollectionRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 
119  inline GetResourceCollectionRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
125  inline GetResourceCollectionRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
126 
127  private:
128 
129  ResourceCollectionType m_resourceCollectionType;
130  bool m_resourceCollectionTypeHasBeenSet;
131 
132  Aws::String m_nextToken;
133  bool m_nextTokenHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace DevOpsGuru
138 } // namespace Aws
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetResourceCollectionRequest.h:95
Aws::Http::URI
Definition: URI.h:32
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetResourceCollectionRequest.h:83
Aws::DevOpsGuru::Model::ResourceCollectionType
ResourceCollectionType
Definition: ResourceCollectionType.h:17
ResourceCollectionType.h
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::WithNextToken
GetResourceCollectionRequest & WithNextToken(Aws::String &&value)
Definition: GetResourceCollectionRequest.h:119
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::WithResourceCollectionType
GetResourceCollectionRequest & WithResourceCollectionType(ResourceCollectionType &&value)
Definition: GetResourceCollectionRequest.h:76
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetResourceCollectionRequest.h:35
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::WithNextToken
GetResourceCollectionRequest & WithNextToken(const Aws::String &value)
Definition: GetResourceCollectionRequest.h:113
DevOpsGuruRequest.h
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::WithResourceCollectionType
GetResourceCollectionRequest & WithResourceCollectionType(const ResourceCollectionType &value)
Definition: GetResourceCollectionRequest.h:70
AWSString.h
Aws::DevOpsGuru::DevOpsGuruRequest
Definition: DevOpsGuruRequest.h:17
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::ResourceCollectionTypeHasBeenSet
bool ResourceCollectionTypeHasBeenSet() const
Definition: GetResourceCollectionRequest.h:52
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::GetResourceCollectionType
const ResourceCollectionType & GetResourceCollectionType() const
Definition: GetResourceCollectionRequest.h:46
Aws::DevOpsGuru::Model::GetResourceCollectionRequest
Definition: GetResourceCollectionRequest.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetResourceCollectionRequest.h:107
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::GetResourceCollectionRequest
GetResourceCollectionRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_DEVOPSGURU_API
#define AWS_DEVOPSGURU_API
Definition: DevOpsGuru_EXPORTS.h:28
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::SetResourceCollectionType
void SetResourceCollectionType(const ResourceCollectionType &value)
Definition: GetResourceCollectionRequest.h:58
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetResourceCollectionRequest.h:101
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::SetResourceCollectionType
void SetResourceCollectionType(ResourceCollectionType &&value)
Definition: GetResourceCollectionRequest.h:64
DevOpsGuru_EXPORTS.h
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetResourceCollectionRequest.h:89
Aws::DevOpsGuru::Model::GetResourceCollectionRequest::WithNextToken
GetResourceCollectionRequest & WithNextToken(const char *value)
Definition: GetResourceCollectionRequest.h:125