AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ExcludeCharactersT = Aws::String>
55 void SetExcludeCharacters(ExcludeCharactersT&& value) { m_excludeCharactersHasBeenSet = true; m_excludeCharacters = std::forward<ExcludeCharactersT>(value); }
56 template<typename ExcludeCharactersT = Aws::String>
57 GetRandomPasswordRequest& WithExcludeCharacters(ExcludeCharactersT&& value) { SetExcludeCharacters(std::forward<ExcludeCharactersT>(value)); return *this;}
59
61
65 inline bool GetExcludeNumbers() const { return m_excludeNumbers; }
66 inline bool ExcludeNumbersHasBeenSet() const { return m_excludeNumbersHasBeenSet; }
67 inline void SetExcludeNumbers(bool value) { m_excludeNumbersHasBeenSet = true; m_excludeNumbers = value; }
68 inline GetRandomPasswordRequest& WithExcludeNumbers(bool value) { SetExcludeNumbers(value); return *this;}
70
72
78 inline bool GetExcludePunctuation() const { return m_excludePunctuation; }
79 inline bool ExcludePunctuationHasBeenSet() const { return m_excludePunctuationHasBeenSet; }
80 inline void SetExcludePunctuation(bool value) { m_excludePunctuationHasBeenSet = true; m_excludePunctuation = value; }
81 inline GetRandomPasswordRequest& WithExcludePunctuation(bool value) { SetExcludePunctuation(value); return *this;}
83
85
89 inline bool GetExcludeUppercase() const { return m_excludeUppercase; }
90 inline bool ExcludeUppercaseHasBeenSet() const { return m_excludeUppercaseHasBeenSet; }
91 inline void SetExcludeUppercase(bool value) { m_excludeUppercaseHasBeenSet = true; m_excludeUppercase = value; }
92 inline GetRandomPasswordRequest& WithExcludeUppercase(bool value) { SetExcludeUppercase(value); return *this;}
94
96
100 inline bool GetExcludeLowercase() const { return m_excludeLowercase; }
101 inline bool ExcludeLowercaseHasBeenSet() const { return m_excludeLowercaseHasBeenSet; }
102 inline void SetExcludeLowercase(bool value) { m_excludeLowercaseHasBeenSet = true; m_excludeLowercase = value; }
103 inline GetRandomPasswordRequest& WithExcludeLowercase(bool value) { SetExcludeLowercase(value); return *this;}
105
107
111 inline bool GetIncludeSpace() const { return m_includeSpace; }
112 inline bool IncludeSpaceHasBeenSet() const { return m_includeSpaceHasBeenSet; }
113 inline void SetIncludeSpace(bool value) { m_includeSpaceHasBeenSet = true; m_includeSpace = value; }
114 inline GetRandomPasswordRequest& WithIncludeSpace(bool value) { SetIncludeSpace(value); return *this;}
116
118
123 inline bool GetRequireEachIncludedType() const { return m_requireEachIncludedType; }
124 inline bool RequireEachIncludedTypeHasBeenSet() const { return m_requireEachIncludedTypeHasBeenSet; }
125 inline void SetRequireEachIncludedType(bool value) { m_requireEachIncludedTypeHasBeenSet = true; m_requireEachIncludedType = value; }
128 private:
129
130 long long m_passwordLength{0};
131 bool m_passwordLengthHasBeenSet = false;
132
133 Aws::String m_excludeCharacters;
134 bool m_excludeCharactersHasBeenSet = false;
135
136 bool m_excludeNumbers{false};
137 bool m_excludeNumbersHasBeenSet = false;
138
139 bool m_excludePunctuation{false};
140 bool m_excludePunctuationHasBeenSet = false;
141
142 bool m_excludeUppercase{false};
143 bool m_excludeUppercaseHasBeenSet = false;
144
145 bool m_excludeLowercase{false};
146 bool m_excludeLowercaseHasBeenSet = false;
147
148 bool m_includeSpace{false};
149 bool m_includeSpaceHasBeenSet = false;
150
151 bool m_requireEachIncludedType{false};
152 bool m_requireEachIncludedTypeHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace SecretsManager
157} // 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