AWS SDK for C++  1.9.103
AWS SDK for C++
VaultAccessPolicy.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 VaultAccessPolicy& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
69 
73  inline VaultAccessPolicy& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
74 
78  inline VaultAccessPolicy& 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::VaultAccessPolicy::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: VaultAccessPolicy.h:48
Aws::Glacier::Model::VaultAccessPolicy::WithPolicy
VaultAccessPolicy & WithPolicy(const char *value)
Definition: VaultAccessPolicy.h:78
Aws::Glacier::Model::VaultAccessPolicy::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: VaultAccessPolicy.h:53
Aws::Glacier::Model::VaultAccessPolicy::SetPolicy
void SetPolicy(const char *value)
Definition: VaultAccessPolicy.h:63
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::VaultAccessPolicy::WithPolicy
VaultAccessPolicy & WithPolicy(const Aws::String &value)
Definition: VaultAccessPolicy.h:68
Aws::Glacier::Model::VaultAccessPolicy::VaultAccessPolicy
VaultAccessPolicy()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::VaultAccessPolicy::operator=
VaultAccessPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::VaultAccessPolicy::VaultAccessPolicy
VaultAccessPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::VaultAccessPolicy
Definition: VaultAccessPolicy.h:32
Aws::Glacier::Model::VaultAccessPolicy::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: VaultAccessPolicy.h:58
Aws::Glacier::Model::VaultAccessPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::VaultAccessPolicy::GetPolicy
const Aws::String & GetPolicy() const
Definition: VaultAccessPolicy.h:43
Aws::Glacier::Model::VaultAccessPolicy::WithPolicy
VaultAccessPolicy & WithPolicy(Aws::String &&value)
Definition: VaultAccessPolicy.h:73
Glacier_EXPORTS.h