AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteSecretRequest.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 DeleteSecretRequest();
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 "DeleteSecret"; }
31
32 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
33
34 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
44 inline const Aws::String& GetSecretId() const{ return m_secretId; }
45 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
46 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
47 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
48 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
49 inline DeleteSecretRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
50 inline DeleteSecretRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
51 inline DeleteSecretRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
53
55
61 inline long long GetRecoveryWindowInDays() const{ return m_recoveryWindowInDays; }
62 inline bool RecoveryWindowInDaysHasBeenSet() const { return m_recoveryWindowInDaysHasBeenSet; }
63 inline void SetRecoveryWindowInDays(long long value) { m_recoveryWindowInDaysHasBeenSet = true; m_recoveryWindowInDays = value; }
64 inline DeleteSecretRequest& WithRecoveryWindowInDays(long long value) { SetRecoveryWindowInDays(value); return *this;}
66
68
85 inline bool GetForceDeleteWithoutRecovery() const{ return m_forceDeleteWithoutRecovery; }
86 inline bool ForceDeleteWithoutRecoveryHasBeenSet() const { return m_forceDeleteWithoutRecoveryHasBeenSet; }
87 inline void SetForceDeleteWithoutRecovery(bool value) { m_forceDeleteWithoutRecoveryHasBeenSet = true; m_forceDeleteWithoutRecovery = value; }
90 private:
91
92 Aws::String m_secretId;
93 bool m_secretIdHasBeenSet = false;
94
95 long long m_recoveryWindowInDays;
96 bool m_recoveryWindowInDaysHasBeenSet = false;
97
98 bool m_forceDeleteWithoutRecovery;
99 bool m_forceDeleteWithoutRecoveryHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SecretsManager
104} // namespace Aws
DeleteSecretRequest & WithRecoveryWindowInDays(long long value)
DeleteSecretRequest & WithSecretId(const char *value)
DeleteSecretRequest & WithSecretId(const Aws::String &value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteSecretRequest & WithSecretId(Aws::String &&value)
DeleteSecretRequest & WithForceDeleteWithoutRecovery(bool value)
virtual const char * GetServiceRequestName() const override
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String