AWS SDK for C++  1.9.104
AWS SDK for C++
VaultLockPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Glacier
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetPolicy() const{ return m_policy; }
44 
48  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
49 
53  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
54 
58  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
59 
63  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
64 
68  inline VaultLockPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
69 
73  inline VaultLockPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
74 
78  inline VaultLockPolicy& WithPolicy(const char* value) { SetPolicy(value); return *this;}
79 
80  private:
81 
82  Aws::String m_policy;
83  bool m_policyHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace Glacier
88 } // namespace Aws
Aws::Glacier::Model::VaultLockPolicy::operator=
VaultLockPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::VaultLockPolicy::SetPolicy
void SetPolicy(const char *value)
Definition: VaultLockPolicy.h:63
Aws::Glacier::Model::VaultLockPolicy::WithPolicy
VaultLockPolicy & WithPolicy(const Aws::String &value)
Definition: VaultLockPolicy.h:68
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::VaultLockPolicy
Definition: VaultLockPolicy.h:32
Aws::Glacier::Model::VaultLockPolicy::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: VaultLockPolicy.h:48
Aws::Glacier::Model::VaultLockPolicy::WithPolicy
VaultLockPolicy & WithPolicy(const char *value)
Definition: VaultLockPolicy.h:78
Aws::Glacier::Model::VaultLockPolicy::VaultLockPolicy
VaultLockPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::VaultLockPolicy::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: VaultLockPolicy.h:58
Aws::Glacier::Model::VaultLockPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::VaultLockPolicy::WithPolicy
VaultLockPolicy & WithPolicy(Aws::String &&value)
Definition: VaultLockPolicy.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::VaultLockPolicy::GetPolicy
const Aws::String & GetPolicy() const
Definition: VaultLockPolicy.h:43
Aws::Glacier::Model::VaultLockPolicy::VaultLockPolicy
VaultLockPolicy()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::VaultLockPolicy::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: VaultLockPolicy.h:53
Glacier_EXPORTS.h