AWS SDK for C++  1.9.1
AWS SDK for C++
InitiateJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Glacier
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "InitiateJob"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
56  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
57 
65  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
66 
74  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
75 
83  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
84 
92  inline InitiateJobRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
93 
101  inline InitiateJobRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
102 
110  inline InitiateJobRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
111 
112 
116  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
117 
121  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
122 
126  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
127 
131  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
132 
136  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
137 
141  inline InitiateJobRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
142 
146  inline InitiateJobRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
147 
151  inline InitiateJobRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
152 
153 
157  inline const JobParameters& GetJobParameters() const{ return m_jobParameters; }
158 
162  inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
163 
167  inline void SetJobParameters(const JobParameters& value) { m_jobParametersHasBeenSet = true; m_jobParameters = value; }
168 
172  inline void SetJobParameters(JobParameters&& value) { m_jobParametersHasBeenSet = true; m_jobParameters = std::move(value); }
173 
177  inline InitiateJobRequest& WithJobParameters(const JobParameters& value) { SetJobParameters(value); return *this;}
178 
182  inline InitiateJobRequest& WithJobParameters(JobParameters&& value) { SetJobParameters(std::move(value)); return *this;}
183 
184  private:
185 
186  Aws::String m_accountId;
187  bool m_accountIdHasBeenSet;
188 
189  Aws::String m_vaultName;
190  bool m_vaultNameHasBeenSet;
191 
192  JobParameters m_jobParameters;
193  bool m_jobParametersHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace Glacier
198 } // namespace Aws
Aws::Glacier::Model::InitiateJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InitiateJobRequest.h:35
Aws::Glacier::Model::InitiateJobRequest::InitiateJobRequest
InitiateJobRequest()
Aws::Glacier::Model::InitiateJobRequest::WithAccountId
InitiateJobRequest & WithAccountId(const Aws::String &value)
Definition: InitiateJobRequest.h:92
Aws::Glacier::Model::InitiateJobRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: InitiateJobRequest.h:121
Aws::Glacier::Model::InitiateJobRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: InitiateJobRequest.h:65
Aws::Glacier::Model::InitiateJobRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: InitiateJobRequest.h:56
Aws::Glacier::Model::InitiateJobRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: InitiateJobRequest.h:47
Aws::Glacier::Model::InitiateJobRequest::WithVaultName
InitiateJobRequest & WithVaultName(const char *value)
Definition: InitiateJobRequest.h:151
Aws::Glacier::Model::InitiateJobRequest::WithAccountId
InitiateJobRequest & WithAccountId(Aws::String &&value)
Definition: InitiateJobRequest.h:101
Aws::Glacier::Model::InitiateJobRequest::SetAccountId
void SetAccountId(const char *value)
Definition: InitiateJobRequest.h:83
Aws::Glacier::Model::InitiateJobRequest::WithJobParameters
InitiateJobRequest & WithJobParameters(const JobParameters &value)
Definition: InitiateJobRequest.h:177
Aws::Glacier::Model::InitiateJobRequest::WithVaultName
InitiateJobRequest & WithVaultName(Aws::String &&value)
Definition: InitiateJobRequest.h:146
Aws::Glacier::Model::InitiateJobRequest::SetJobParameters
void SetJobParameters(const JobParameters &value)
Definition: InitiateJobRequest.h:167
Aws::Glacier::Model::InitiateJobRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: InitiateJobRequest.h:131
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
Aws::Glacier::Model::InitiateJobRequest::WithJobParameters
InitiateJobRequest & WithJobParameters(JobParameters &&value)
Definition: InitiateJobRequest.h:182
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::InitiateJobRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: InitiateJobRequest.h:116
Aws::Glacier::Model::InitiateJobRequest::WithAccountId
InitiateJobRequest & WithAccountId(const char *value)
Definition: InitiateJobRequest.h:110
Aws::Glacier::Model::InitiateJobRequest::GetJobParameters
const JobParameters & GetJobParameters() const
Definition: InitiateJobRequest.h:157
Aws::Glacier::Model::InitiateJobRequest::JobParametersHasBeenSet
bool JobParametersHasBeenSet() const
Definition: InitiateJobRequest.h:162
Aws::Glacier::Model::InitiateJobRequest::SetVaultName
void SetVaultName(const char *value)
Definition: InitiateJobRequest.h:136
AWSString.h
Aws::Glacier::Model::InitiateJobRequest::SerializePayload
Aws::String SerializePayload() const override
GlacierRequest.h
Aws::Glacier::Model::InitiateJobRequest
Definition: InitiateJobRequest.h:27
JobParameters.h
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::InitiateJobRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: InitiateJobRequest.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::InitiateJobRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: InitiateJobRequest.h:74
Aws::Glacier::Model::InitiateJobRequest::WithVaultName
InitiateJobRequest & WithVaultName(const Aws::String &value)
Definition: InitiateJobRequest.h:141
Aws::Glacier::Model::InitiateJobRequest::SetJobParameters
void SetJobParameters(JobParameters &&value)
Definition: InitiateJobRequest.h:172
Aws::Glacier::Model::JobParameters
Definition: JobParameters.h:35
Glacier_EXPORTS.h