AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetRandomPasswordRequest.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SecretsManager
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_SECRETSMANAGER_API GetRandomPasswordRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetRandomPassword"; }
31
32 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
33
34 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline long long GetPasswordLength() const{ return m_passwordLength; }
43 inline bool PasswordLengthHasBeenSet() const { return m_passwordLengthHasBeenSet; }
44 inline void SetPasswordLength(long long value) { m_passwordLengthHasBeenSet = true; m_passwordLength = value; }
45 inline GetRandomPasswordRequest& WithPasswordLength(long long value) { SetPasswordLength(value); return *this;}
47
49
52 inline const Aws::String& GetExcludeCharacters() const{ return m_excludeCharacters; }
53 inline bool ExcludeCharactersHasBeenSet() const { return m_excludeCharactersHasBeenSet; }
54 inline void SetExcludeCharacters(const Aws::String& value) { m_excludeCharactersHasBeenSet = true; m_excludeCharacters = value; }
55 inline void SetExcludeCharacters(Aws::String&& value) { m_excludeCharactersHasBeenSet = true; m_excludeCharacters = std::move(value); }
56 inline void SetExcludeCharacters(const char* value) { m_excludeCharactersHasBeenSet = true; m_excludeCharacters.assign(value); }
58 inline GetRandomPasswordRequest& WithExcludeCharacters(Aws::String&& value) { SetExcludeCharacters(std::move(value)); return *this;}
59 inline GetRandomPasswordRequest& WithExcludeCharacters(const char* value) { SetExcludeCharacters(value); return *this;}
61
63
67 inline bool GetExcludeNumbers() const{ return m_excludeNumbers; }
68 inline bool ExcludeNumbersHasBeenSet() const { return m_excludeNumbersHasBeenSet; }
69 inline void SetExcludeNumbers(bool value) { m_excludeNumbersHasBeenSet = true; m_excludeNumbers = value; }
70 inline GetRandomPasswordRequest& WithExcludeNumbers(bool value) { SetExcludeNumbers(value); return *this;}
72
74
80 inline bool GetExcludePunctuation() const{ return m_excludePunctuation; }
81 inline bool ExcludePunctuationHasBeenSet() const { return m_excludePunctuationHasBeenSet; }
82 inline void SetExcludePunctuation(bool value) { m_excludePunctuationHasBeenSet = true; m_excludePunctuation = value; }
83 inline GetRandomPasswordRequest& WithExcludePunctuation(bool value) { SetExcludePunctuation(value); return *this;}
85
87
91 inline bool GetExcludeUppercase() const{ return m_excludeUppercase; }
92 inline bool ExcludeUppercaseHasBeenSet() const { return m_excludeUppercaseHasBeenSet; }
93 inline void SetExcludeUppercase(bool value) { m_excludeUppercaseHasBeenSet = true; m_excludeUppercase = value; }
94 inline GetRandomPasswordRequest& WithExcludeUppercase(bool value) { SetExcludeUppercase(value); return *this;}
96
98
102 inline bool GetExcludeLowercase() const{ return m_excludeLowercase; }
103 inline bool ExcludeLowercaseHasBeenSet() const { return m_excludeLowercaseHasBeenSet; }
104 inline void SetExcludeLowercase(bool value) { m_excludeLowercaseHasBeenSet = true; m_excludeLowercase = value; }
105 inline GetRandomPasswordRequest& WithExcludeLowercase(bool value) { SetExcludeLowercase(value); return *this;}
107
109
113 inline bool GetIncludeSpace() const{ return m_includeSpace; }
114 inline bool IncludeSpaceHasBeenSet() const { return m_includeSpaceHasBeenSet; }
115 inline void SetIncludeSpace(bool value) { m_includeSpaceHasBeenSet = true; m_includeSpace = value; }
116 inline GetRandomPasswordRequest& WithIncludeSpace(bool value) { SetIncludeSpace(value); return *this;}
118
120
125 inline bool GetRequireEachIncludedType() const{ return m_requireEachIncludedType; }
126 inline bool RequireEachIncludedTypeHasBeenSet() const { return m_requireEachIncludedTypeHasBeenSet; }
127 inline void SetRequireEachIncludedType(bool value) { m_requireEachIncludedTypeHasBeenSet = true; m_requireEachIncludedType = value; }
130 private:
131
132 long long m_passwordLength;
133 bool m_passwordLengthHasBeenSet = false;
134
135 Aws::String m_excludeCharacters;
136 bool m_excludeCharactersHasBeenSet = false;
137
138 bool m_excludeNumbers;
139 bool m_excludeNumbersHasBeenSet = false;
140
141 bool m_excludePunctuation;
142 bool m_excludePunctuationHasBeenSet = false;
143
144 bool m_excludeUppercase;
145 bool m_excludeUppercaseHasBeenSet = false;
146
147 bool m_excludeLowercase;
148 bool m_excludeLowercaseHasBeenSet = false;
149
150 bool m_includeSpace;
151 bool m_includeSpaceHasBeenSet = false;
152
153 bool m_requireEachIncludedType;
154 bool m_requireEachIncludedTypeHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace SecretsManager
159} // namespace Aws
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 & WithExcludeCharacters(const char *value)
GetRandomPasswordRequest & WithExcludeLowercase(bool value)
GetRandomPasswordRequest & WithExcludeCharacters(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetRandomPasswordRequest & WithRequireEachIncludedType(bool value)
GetRandomPasswordRequest & WithExcludeCharacters(Aws::String &&value)
GetRandomPasswordRequest & WithExcludeUppercase(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String