AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
43 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
44 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
45 inline LockRuleRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
46 inline LockRuleRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
47 inline LockRuleRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
49
51
54 inline const LockConfiguration& GetLockConfiguration() const{ return m_lockConfiguration; }
55 inline bool LockConfigurationHasBeenSet() const { return m_lockConfigurationHasBeenSet; }
56 inline void SetLockConfiguration(const LockConfiguration& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = value; }
57 inline void SetLockConfiguration(LockConfiguration&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::move(value); }
58 inline LockRuleRequest& WithLockConfiguration(const LockConfiguration& value) { SetLockConfiguration(value); return *this;}
59 inline LockRuleRequest& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;}
61 private:
62
63 Aws::String m_identifier;
64 bool m_identifierHasBeenSet = false;
65
66 LockConfiguration m_lockConfiguration;
67 bool m_lockConfigurationHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace RecycleBin
72} // namespace Aws
LockRuleRequest & WithLockConfiguration(const LockConfiguration &value)
void SetIdentifier(const Aws::String &value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
void SetIdentifier(Aws::String &&value)
LockRuleRequest & WithLockConfiguration(LockConfiguration &&value)
void SetLockConfiguration(LockConfiguration &&value)
LockRuleRequest & WithIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
LockRuleRequest & WithIdentifier(Aws::String &&value)
const LockConfiguration & GetLockConfiguration() const
void SetLockConfiguration(const LockConfiguration &value)
LockRuleRequest & WithIdentifier(const char *value)
const Aws::String & GetIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String