AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeKeyPairsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeKeyPairs"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::Vector<Aws::String>& GetKeyNames() const{ return m_keyNames; }
46 inline bool KeyNamesHasBeenSet() const { return m_keyNamesHasBeenSet; }
47 inline void SetKeyNames(const Aws::Vector<Aws::String>& value) { m_keyNamesHasBeenSet = true; m_keyNames = value; }
48 inline void SetKeyNames(Aws::Vector<Aws::String>&& value) { m_keyNamesHasBeenSet = true; m_keyNames = std::move(value); }
49 inline DescribeKeyPairsRequest& WithKeyNames(const Aws::Vector<Aws::String>& value) { SetKeyNames(value); return *this;}
50 inline DescribeKeyPairsRequest& WithKeyNames(Aws::Vector<Aws::String>&& value) { SetKeyNames(std::move(value)); return *this;}
51 inline DescribeKeyPairsRequest& AddKeyNames(const Aws::String& value) { m_keyNamesHasBeenSet = true; m_keyNames.push_back(value); return *this; }
52 inline DescribeKeyPairsRequest& AddKeyNames(Aws::String&& value) { m_keyNamesHasBeenSet = true; m_keyNames.push_back(std::move(value)); return *this; }
53 inline DescribeKeyPairsRequest& AddKeyNames(const char* value) { m_keyNamesHasBeenSet = true; m_keyNames.push_back(value); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetKeyPairIds() const{ return m_keyPairIds; }
61 inline bool KeyPairIdsHasBeenSet() const { return m_keyPairIdsHasBeenSet; }
62 inline void SetKeyPairIds(const Aws::Vector<Aws::String>& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds = value; }
63 inline void SetKeyPairIds(Aws::Vector<Aws::String>&& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds = std::move(value); }
65 inline DescribeKeyPairsRequest& WithKeyPairIds(Aws::Vector<Aws::String>&& value) { SetKeyPairIds(std::move(value)); return *this;}
66 inline DescribeKeyPairsRequest& AddKeyPairIds(const Aws::String& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds.push_back(value); return *this; }
67 inline DescribeKeyPairsRequest& AddKeyPairIds(Aws::String&& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds.push_back(std::move(value)); return *this; }
68 inline DescribeKeyPairsRequest& AddKeyPairIds(const char* value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds.push_back(value); return *this; }
70
72
76 inline bool GetIncludePublicKey() const{ return m_includePublicKey; }
77 inline bool IncludePublicKeyHasBeenSet() const { return m_includePublicKeyHasBeenSet; }
78 inline void SetIncludePublicKey(bool value) { m_includePublicKeyHasBeenSet = true; m_includePublicKey = value; }
79 inline DescribeKeyPairsRequest& WithIncludePublicKey(bool value) { SetIncludePublicKey(value); return *this;}
81
83
89 inline bool GetDryRun() const{ return m_dryRun; }
90 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
91 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
92 inline DescribeKeyPairsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
94
96
109 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
110 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
111 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
112 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
113 inline DescribeKeyPairsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
114 inline DescribeKeyPairsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
115 inline DescribeKeyPairsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
116 inline DescribeKeyPairsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
118 private:
119
120 Aws::Vector<Aws::String> m_keyNames;
121 bool m_keyNamesHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_keyPairIds;
124 bool m_keyPairIdsHasBeenSet = false;
125
126 bool m_includePublicKey;
127 bool m_includePublicKeyHasBeenSet = false;
128
129 bool m_dryRun;
130 bool m_dryRunHasBeenSet = false;
131
132 Aws::Vector<Filter> m_filters;
133 bool m_filtersHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace EC2
138} // namespace Aws
const Aws::Vector< Aws::String > & GetKeyPairIds() const
void SetKeyNames(const Aws::Vector< Aws::String > &value)
DescribeKeyPairsRequest & WithKeyPairIds(Aws::Vector< Aws::String > &&value)
void SetKeyPairIds(Aws::Vector< Aws::String > &&value)
DescribeKeyPairsRequest & AddFilters(const Filter &value)
DescribeKeyPairsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeKeyPairsRequest & AddKeyPairIds(const Aws::String &value)
void SetKeyPairIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetKeyNames() const
DescribeKeyPairsRequest & WithIncludePublicKey(bool value)
void SetFilters(const Aws::Vector< Filter > &value)
DescribeKeyPairsRequest & AddKeyNames(const char *value)
DescribeKeyPairsRequest & WithDryRun(bool value)
DescribeKeyPairsRequest & AddKeyPairIds(const char *value)
void SetFilters(Aws::Vector< Filter > &&value)
const Aws::Vector< Filter > & GetFilters() const
AWS_EC2_API Aws::String SerializePayload() const override
DescribeKeyPairsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeKeyPairsRequest & WithKeyNames(const Aws::Vector< Aws::String > &value)
DescribeKeyPairsRequest & AddKeyNames(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeKeyPairsRequest & AddKeyNames(const Aws::String &value)
DescribeKeyPairsRequest & WithKeyNames(Aws::Vector< Aws::String > &&value)
DescribeKeyPairsRequest & AddKeyPairIds(Aws::String &&value)
DescribeKeyPairsRequest & WithKeyPairIds(const Aws::Vector< Aws::String > &value)
void SetKeyNames(Aws::Vector< Aws::String > &&value)
DescribeKeyPairsRequest & AddFilters(Filter &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector