AWS SDK for C++  1.8.95
AWS SDK for C++
ListPublicKeysRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudTrail
16 {
17 namespace Model
18 {
19 
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 "ListPublicKeys"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
47  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
48 
54  inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
55 
61  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
62 
68  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
69 
75  inline ListPublicKeysRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
76 
82  inline ListPublicKeysRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
83 
84 
90  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
91 
97  inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
98 
104  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
105 
111  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
112 
118  inline ListPublicKeysRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
119 
125  inline ListPublicKeysRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
126 
127 
131  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
132 
136  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
137 
141  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
142 
146  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
147 
151  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
152 
156  inline ListPublicKeysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
157 
161  inline ListPublicKeysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
162 
166  inline ListPublicKeysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
167 
168  private:
169 
170  Aws::Utils::DateTime m_startTime;
171  bool m_startTimeHasBeenSet;
172 
173  Aws::Utils::DateTime m_endTime;
174  bool m_endTimeHasBeenSet;
175 
176  Aws::String m_nextToken;
177  bool m_nextTokenHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace CloudTrail
182 } // namespace Aws
virtual const char * GetServiceRequestName() const override
ListPublicKeysRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
ListPublicKeysRequest & WithNextToken(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
ListPublicKeysRequest & WithStartTime(const Aws::Utils::DateTime &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListPublicKeysRequest & WithNextToken(Aws::String &&value)
void SetStartTime(Aws::Utils::DateTime &&value)
ListPublicKeysRequest & WithEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetEndTime(Aws::Utils::DateTime &&value)
ListPublicKeysRequest & WithEndTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDTRAIL_API
ListPublicKeysRequest & WithNextToken(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const