AWS SDK for C++  1.9.4
AWS SDK for C++
PutBackupVaultAccessPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Backup
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "PutBackupVaultAccessPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
41  inline const Aws::String& GetBackupVaultName() const{ return m_backupVaultName; }
42 
49  inline bool BackupVaultNameHasBeenSet() const { return m_backupVaultNameHasBeenSet; }
50 
57  inline void SetBackupVaultName(const Aws::String& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = value; }
58 
65  inline void SetBackupVaultName(Aws::String&& value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName = std::move(value); }
66 
73  inline void SetBackupVaultName(const char* value) { m_backupVaultNameHasBeenSet = true; m_backupVaultName.assign(value); }
74 
81  inline PutBackupVaultAccessPolicyRequest& WithBackupVaultName(const Aws::String& value) { SetBackupVaultName(value); return *this;}
82 
89  inline PutBackupVaultAccessPolicyRequest& WithBackupVaultName(Aws::String&& value) { SetBackupVaultName(std::move(value)); return *this;}
90 
97  inline PutBackupVaultAccessPolicyRequest& WithBackupVaultName(const char* value) { SetBackupVaultName(value); return *this;}
98 
99 
103  inline const Aws::String& GetPolicy() const{ return m_policy; }
104 
108  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
109 
113  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
114 
118  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
119 
123  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
124 
128  inline PutBackupVaultAccessPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
129 
133  inline PutBackupVaultAccessPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
134 
138  inline PutBackupVaultAccessPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
139 
140  private:
141 
142  Aws::String m_backupVaultName;
143  bool m_backupVaultNameHasBeenSet;
144 
145  Aws::String m_policy;
146  bool m_policyHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace Backup
151 } // namespace Aws
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: PutBackupVaultAccessPolicyRequest.h:108
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: PutBackupVaultAccessPolicyRequest.h:113
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: PutBackupVaultAccessPolicyRequest.h:123
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::WithPolicy
PutBackupVaultAccessPolicyRequest & WithPolicy(const char *value)
Definition: PutBackupVaultAccessPolicyRequest.h:138
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBackupVaultAccessPolicyRequest.h:30
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SetBackupVaultName
void SetBackupVaultName(const Aws::String &value)
Definition: PutBackupVaultAccessPolicyRequest.h:57
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::GetBackupVaultName
const Aws::String & GetBackupVaultName() const
Definition: PutBackupVaultAccessPolicyRequest.h:41
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::WithBackupVaultName
PutBackupVaultAccessPolicyRequest & WithBackupVaultName(const Aws::String &value)
Definition: PutBackupVaultAccessPolicyRequest.h:81
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SetBackupVaultName
void SetBackupVaultName(const char *value)
Definition: PutBackupVaultAccessPolicyRequest.h:73
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SetBackupVaultName
void SetBackupVaultName(Aws::String &&value)
Definition: PutBackupVaultAccessPolicyRequest.h:65
BackupRequest.h
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: PutBackupVaultAccessPolicyRequest.h:118
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::WithBackupVaultName
PutBackupVaultAccessPolicyRequest & WithBackupVaultName(const char *value)
Definition: PutBackupVaultAccessPolicyRequest.h:97
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
AWSString.h
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::WithPolicy
PutBackupVaultAccessPolicyRequest & WithPolicy(Aws::String &&value)
Definition: PutBackupVaultAccessPolicyRequest.h:133
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::WithPolicy
PutBackupVaultAccessPolicyRequest & WithPolicy(const Aws::String &value)
Definition: PutBackupVaultAccessPolicyRequest.h:128
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest
Definition: PutBackupVaultAccessPolicyRequest.h:22
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::BackupVaultNameHasBeenSet
bool BackupVaultNameHasBeenSet() const
Definition: PutBackupVaultAccessPolicyRequest.h:49
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: PutBackupVaultAccessPolicyRequest.h:103
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::WithBackupVaultName
PutBackupVaultAccessPolicyRequest & WithBackupVaultName(Aws::String &&value)
Definition: PutBackupVaultAccessPolicyRequest.h:89
Aws::Backup::Model::PutBackupVaultAccessPolicyRequest::PutBackupVaultAccessPolicyRequest
PutBackupVaultAccessPolicyRequest()