AWS SDK for C++  1.9.104
AWS SDK for C++
GetVaultAccessPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Glacier
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetVaultAccessPolicy"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
45  inline const Aws::String& GetAccountId() const{ return m_accountId; }
46 
54  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
55 
63  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
64 
72  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
73 
81  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
82 
90  inline GetVaultAccessPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
91 
99  inline GetVaultAccessPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
100 
108  inline GetVaultAccessPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
109 
110 
114  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
115 
119  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
120 
124  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
125 
129  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
130 
134  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
135 
139  inline GetVaultAccessPolicyRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
140 
144  inline GetVaultAccessPolicyRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
145 
149  inline GetVaultAccessPolicyRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
150 
151  private:
152 
153  Aws::String m_accountId;
154  bool m_accountIdHasBeenSet;
155 
156  Aws::String m_vaultName;
157  bool m_vaultNameHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace Glacier
162 } // namespace Aws
Aws::Glacier::Model::GetVaultAccessPolicyRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: GetVaultAccessPolicyRequest.h:119
Aws::Glacier::Model::GetVaultAccessPolicyRequest::WithVaultName
GetVaultAccessPolicyRequest & WithVaultName(Aws::String &&value)
Definition: GetVaultAccessPolicyRequest.h:144
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: GetVaultAccessPolicyRequest.h:129
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: GetVaultAccessPolicyRequest.h:63
Aws::Glacier::Model::GetVaultAccessPolicyRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: GetVaultAccessPolicyRequest.h:45
Aws::Glacier::Model::GetVaultAccessPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetVaultAccessPolicyRequest.h:33
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
Aws::Glacier::Model::GetVaultAccessPolicyRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: GetVaultAccessPolicyRequest.h:54
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::GetVaultAccessPolicyRequest::WithAccountId
GetVaultAccessPolicyRequest & WithAccountId(const char *value)
Definition: GetVaultAccessPolicyRequest.h:108
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: GetVaultAccessPolicyRequest.h:72
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::GetVaultAccessPolicyRequest::WithVaultName
GetVaultAccessPolicyRequest & WithVaultName(const char *value)
Definition: GetVaultAccessPolicyRequest.h:149
Aws::Glacier::Model::GetVaultAccessPolicyRequest::WithAccountId
GetVaultAccessPolicyRequest & WithAccountId(const Aws::String &value)
Definition: GetVaultAccessPolicyRequest.h:90
AWSString.h
Aws::Glacier::Model::GetVaultAccessPolicyRequest::WithAccountId
GetVaultAccessPolicyRequest & WithAccountId(Aws::String &&value)
Definition: GetVaultAccessPolicyRequest.h:99
Aws::Glacier::Model::GetVaultAccessPolicyRequest
Definition: GetVaultAccessPolicyRequest.h:25
GlacierRequest.h
Aws::Glacier::Model::GetVaultAccessPolicyRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: GetVaultAccessPolicyRequest.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::GetVaultAccessPolicyRequest::WithVaultName
GetVaultAccessPolicyRequest & WithVaultName(const Aws::String &value)
Definition: GetVaultAccessPolicyRequest.h:139
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SetVaultName
void SetVaultName(const char *value)
Definition: GetVaultAccessPolicyRequest.h:134
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SetAccountId
void SetAccountId(const char *value)
Definition: GetVaultAccessPolicyRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::GetVaultAccessPolicyRequest::GetVaultAccessPolicyRequest
GetVaultAccessPolicyRequest()
Glacier_EXPORTS.h
Aws::Glacier::Model::GetVaultAccessPolicyRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: GetVaultAccessPolicyRequest.h:124