AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetRandomPasswordRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SecretsManager {
15namespace Model {
16
20 public:
21 AWS_SECRETSMANAGER_API GetRandomPasswordRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetRandomPassword"; }
28
29 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
30
31 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline long long GetPasswordLength() const { return m_passwordLength; }
39 inline bool PasswordLengthHasBeenSet() const { return m_passwordLengthHasBeenSet; }
40 inline void SetPasswordLength(long long value) {
41 m_passwordLengthHasBeenSet = true;
42 m_passwordLength = value;
43 }
45 SetPasswordLength(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetExcludeCharacters() const { return m_excludeCharacters; }
55 inline bool ExcludeCharactersHasBeenSet() const { return m_excludeCharactersHasBeenSet; }
56 template <typename ExcludeCharactersT = Aws::String>
57 void SetExcludeCharacters(ExcludeCharactersT&& value) {
58 m_excludeCharactersHasBeenSet = true;
59 m_excludeCharacters = std::forward<ExcludeCharactersT>(value);
60 }
61 template <typename ExcludeCharactersT = Aws::String>
62 GetRandomPasswordRequest& WithExcludeCharacters(ExcludeCharactersT&& value) {
63 SetExcludeCharacters(std::forward<ExcludeCharactersT>(value));
64 return *this;
65 }
67
69
73 inline bool GetExcludeNumbers() const { return m_excludeNumbers; }
74 inline bool ExcludeNumbersHasBeenSet() const { return m_excludeNumbersHasBeenSet; }
75 inline void SetExcludeNumbers(bool value) {
76 m_excludeNumbersHasBeenSet = true;
77 m_excludeNumbers = value;
78 }
80 SetExcludeNumbers(value);
81 return *this;
82 }
84
86
92 inline bool GetExcludePunctuation() const { return m_excludePunctuation; }
93 inline bool ExcludePunctuationHasBeenSet() const { return m_excludePunctuationHasBeenSet; }
94 inline void SetExcludePunctuation(bool value) {
95 m_excludePunctuationHasBeenSet = true;
96 m_excludePunctuation = value;
97 }
100 return *this;
101 }
103
105
109 inline bool GetExcludeUppercase() const { return m_excludeUppercase; }
110 inline bool ExcludeUppercaseHasBeenSet() const { return m_excludeUppercaseHasBeenSet; }
111 inline void SetExcludeUppercase(bool value) {
112 m_excludeUppercaseHasBeenSet = true;
113 m_excludeUppercase = value;
114 }
116 SetExcludeUppercase(value);
117 return *this;
118 }
120
122
126 inline bool GetExcludeLowercase() const { return m_excludeLowercase; }
127 inline bool ExcludeLowercaseHasBeenSet() const { return m_excludeLowercaseHasBeenSet; }
128 inline void SetExcludeLowercase(bool value) {
129 m_excludeLowercaseHasBeenSet = true;
130 m_excludeLowercase = value;
131 }
133 SetExcludeLowercase(value);
134 return *this;
135 }
137
139
143 inline bool GetIncludeSpace() const { return m_includeSpace; }
144 inline bool IncludeSpaceHasBeenSet() const { return m_includeSpaceHasBeenSet; }
145 inline void SetIncludeSpace(bool value) {
146 m_includeSpaceHasBeenSet = true;
147 m_includeSpace = value;
148 }
150 SetIncludeSpace(value);
151 return *this;
152 }
154
156
161 inline bool GetRequireEachIncludedType() const { return m_requireEachIncludedType; }
162 inline bool RequireEachIncludedTypeHasBeenSet() const { return m_requireEachIncludedTypeHasBeenSet; }
163 inline void SetRequireEachIncludedType(bool value) {
164 m_requireEachIncludedTypeHasBeenSet = true;
165 m_requireEachIncludedType = value;
166 }
169 return *this;
170 }
172 private:
173 long long m_passwordLength{0};
174
175 Aws::String m_excludeCharacters;
176
177 bool m_excludeNumbers{false};
178
179 bool m_excludePunctuation{false};
180
181 bool m_excludeUppercase{false};
182
183 bool m_excludeLowercase{false};
184
185 bool m_includeSpace{false};
186
187 bool m_requireEachIncludedType{false};
188 bool m_passwordLengthHasBeenSet = false;
189 bool m_excludeCharactersHasBeenSet = false;
190 bool m_excludeNumbersHasBeenSet = false;
191 bool m_excludePunctuationHasBeenSet = false;
192 bool m_excludeUppercaseHasBeenSet = false;
193 bool m_excludeLowercaseHasBeenSet = false;
194 bool m_includeSpaceHasBeenSet = false;
195 bool m_requireEachIncludedTypeHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace SecretsManager
200} // namespace Aws
GetRandomPasswordRequest & WithExcludeCharacters(ExcludeCharactersT &&value)
AWS_SECRETSMANAGER_API GetRandomPasswordRequest()=default
GetRandomPasswordRequest & WithExcludeNumbers(bool value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetRandomPasswordRequest & WithExcludePunctuation(bool value)
GetRandomPasswordRequest & WithPasswordLength(long long value)
GetRandomPasswordRequest & WithExcludeLowercase(bool value)
virtual const char * GetServiceRequestName() const override
GetRandomPasswordRequest & WithRequireEachIncludedType(bool value)
GetRandomPasswordRequest & WithExcludeUppercase(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String