AWS SDK for C++  1.8.95
AWS SDK for C++
ListTrailsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudTrail
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 "ListTrails"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
53  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 
62  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 
71  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
72 
80  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81 
89  inline ListTrailsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 
98  inline ListTrailsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 
107  inline ListTrailsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
108 
109  private:
110 
111  Aws::String m_nextToken;
112  bool m_nextTokenHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace CloudTrail
117 } // namespace Aws
const Aws::String & GetNextToken() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetNextToken(const Aws::String &value)
ListTrailsRequest & WithNextToken(Aws::String &&value)
ListTrailsRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDTRAIL_API
ListTrailsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override