AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListImportsRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudtrail/model/ImportStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudTrail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDTRAIL_API ListImportsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListImports"; }
32
33 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline int GetMaxResults() const { return m_maxResults; }
43 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
44 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
45 inline ListImportsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
47
49
52 inline const Aws::String& GetDestination() const { return m_destination; }
53 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
54 template<typename DestinationT = Aws::String>
55 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
56 template<typename DestinationT = Aws::String>
57 ListImportsRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
59
61
64 inline ImportStatus GetImportStatus() const { return m_importStatus; }
65 inline bool ImportStatusHasBeenSet() const { return m_importStatusHasBeenSet; }
66 inline void SetImportStatus(ImportStatus value) { m_importStatusHasBeenSet = true; m_importStatus = value; }
67 inline ListImportsRequest& WithImportStatus(ImportStatus value) { SetImportStatus(value); return *this;}
69
71
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template<typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
78 template<typename NextTokenT = Aws::String>
79 ListImportsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
81 private:
82
83 int m_maxResults{0};
84 bool m_maxResultsHasBeenSet = false;
85
86 Aws::String m_destination;
87 bool m_destinationHasBeenSet = false;
88
89 ImportStatus m_importStatus{ImportStatus::NOT_SET};
90 bool m_importStatusHasBeenSet = false;
91
92 Aws::String m_nextToken;
93 bool m_nextTokenHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CloudTrail
98} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListImportsRequest & WithMaxResults(int value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
ListImportsRequest & WithDestination(DestinationT &&value)
AWS_CLOUDTRAIL_API ListImportsRequest()=default
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListImportsRequest & WithImportStatus(ImportStatus value)
ListImportsRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String