AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListBackupVaultsRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/backup/model/VaultType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace Backup
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BACKUP_API ListBackupVaultsRequest() = default;
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 "ListBackupVaults"; }
36
37 AWS_BACKUP_API Aws::String SerializePayload() const override;
38
39 AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline VaultType GetByVaultType() const { return m_byVaultType; }
47 inline bool ByVaultTypeHasBeenSet() const { return m_byVaultTypeHasBeenSet; }
48 inline void SetByVaultType(VaultType value) { m_byVaultTypeHasBeenSet = true; m_byVaultType = value; }
49 inline ListBackupVaultsRequest& WithByVaultType(VaultType value) { SetByVaultType(value); return *this;}
51
53
56 inline bool GetByShared() const { return m_byShared; }
57 inline bool BySharedHasBeenSet() const { return m_bySharedHasBeenSet; }
58 inline void SetByShared(bool value) { m_bySharedHasBeenSet = true; m_byShared = value; }
59 inline ListBackupVaultsRequest& WithByShared(bool value) { SetByShared(value); return *this;}
61
63
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 template<typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
73 template<typename NextTokenT = Aws::String>
74 ListBackupVaultsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
76
78
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline ListBackupVaultsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86 private:
87
88 VaultType m_byVaultType{VaultType::NOT_SET};
89 bool m_byVaultTypeHasBeenSet = false;
90
91 bool m_byShared{false};
92 bool m_bySharedHasBeenSet = false;
93
94 Aws::String m_nextToken;
95 bool m_nextTokenHasBeenSet = false;
96
97 int m_maxResults{0};
98 bool m_maxResultsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Backup
103} // namespace Aws
ListBackupVaultsRequest & WithMaxResults(int value)
ListBackupVaultsRequest & WithByVaultType(VaultType value)
AWS_BACKUP_API Aws::String SerializePayload() const override
AWS_BACKUP_API ListBackupVaultsRequest()=default
ListBackupVaultsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListBackupVaultsRequest & WithByShared(bool value)
AWS_BACKUP_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String