AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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