AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LockRuleRequest.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/rbin/RecycleBinRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rbin/model/LockConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RecycleBin
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_RECYCLEBIN_API LockRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "LockRule"; }
32
33 AWS_RECYCLEBIN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
42 template<typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
44 template<typename IdentifierT = Aws::String>
45 LockRuleRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
47
49
52 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
53 inline bool LockConfigurationHasBeenSet() const { return m_lockConfigurationHasBeenSet; }
54 template<typename LockConfigurationT = LockConfiguration>
55 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
56 template<typename LockConfigurationT = LockConfiguration>
57 LockRuleRequest& WithLockConfiguration(LockConfigurationT&& value) { SetLockConfiguration(std::forward<LockConfigurationT>(value)); return *this;}
59 private:
60
61 Aws::String m_identifier;
62 bool m_identifierHasBeenSet = false;
63
64 LockConfiguration m_lockConfiguration;
65 bool m_lockConfigurationHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace RecycleBin
70} // namespace Aws
void SetLockConfiguration(LockConfigurationT &&value)
void SetIdentifier(IdentifierT &&value)
LockRuleRequest & WithIdentifier(IdentifierT &&value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
AWS_RECYCLEBIN_API LockRuleRequest()=default
virtual const char * GetServiceRequestName() const override
const LockConfiguration & GetLockConfiguration() const
LockRuleRequest & WithLockConfiguration(LockConfigurationT &&value)
const Aws::String & GetIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String