AWS SDK for C++  1.9.104
AWS SDK for C++
GetDataRetrievalPolicyRequest.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 "GetDataRetrievalPolicy"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
46  inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 
56  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 
66  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
67 
76  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
77 
86  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
87 
96  inline GetDataRetrievalPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
97 
106  inline GetDataRetrievalPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
107 
116  inline GetDataRetrievalPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
117 
118  private:
119 
120  Aws::String m_accountId;
121  bool m_accountIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace Glacier
126 } // namespace Aws
Aws::Glacier::Model::GetDataRetrievalPolicyRequest
Definition: GetDataRetrievalPolicyRequest.h:25
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: GetDataRetrievalPolicyRequest.h:76
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::SetAccountId
void SetAccountId(const char *value)
Definition: GetDataRetrievalPolicyRequest.h:86
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: GetDataRetrievalPolicyRequest.h:66
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::GetDataRetrievalPolicyRequest
GetDataRetrievalPolicyRequest()
AWSString.h
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: GetDataRetrievalPolicyRequest.h:46
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: GetDataRetrievalPolicyRequest.h:56
GlacierRequest.h
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::WithAccountId
GetDataRetrievalPolicyRequest & WithAccountId(const Aws::String &value)
Definition: GetDataRetrievalPolicyRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::WithAccountId
GetDataRetrievalPolicyRequest & WithAccountId(Aws::String &&value)
Definition: GetDataRetrievalPolicyRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDataRetrievalPolicyRequest.h:33
Aws::Glacier::Model::GetDataRetrievalPolicyRequest::WithAccountId
GetDataRetrievalPolicyRequest & WithAccountId(const char *value)
Definition: GetDataRetrievalPolicyRequest.h:116
Glacier_EXPORTS.h