AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
InitiateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10#include <aws/glacier/model/JobParameters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glacier {
16namespace Model {
17
25 public:
26 AWS_GLACIER_API InitiateJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "InitiateJob"; }
33
34 AWS_GLACIER_API Aws::String SerializePayload() const override;
35
37
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template <typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) {
48 m_accountIdHasBeenSet = true;
49 m_accountId = std::forward<AccountIdT>(value);
50 }
51 template <typename AccountIdT = Aws::String>
52 InitiateJobRequest& WithAccountId(AccountIdT&& value) {
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetVaultName() const { return m_vaultName; }
63 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
64 template <typename VaultNameT = Aws::String>
65 void SetVaultName(VaultNameT&& value) {
66 m_vaultNameHasBeenSet = true;
67 m_vaultName = std::forward<VaultNameT>(value);
68 }
69 template <typename VaultNameT = Aws::String>
70 InitiateJobRequest& WithVaultName(VaultNameT&& value) {
71 SetVaultName(std::forward<VaultNameT>(value));
72 return *this;
73 }
75
77
80 inline const JobParameters& GetJobParameters() const { return m_jobParameters; }
81 inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
82 template <typename JobParametersT = JobParameters>
83 void SetJobParameters(JobParametersT&& value) {
84 m_jobParametersHasBeenSet = true;
85 m_jobParameters = std::forward<JobParametersT>(value);
86 }
87 template <typename JobParametersT = JobParameters>
88 InitiateJobRequest& WithJobParameters(JobParametersT&& value) {
89 SetJobParameters(std::forward<JobParametersT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_accountId;
95 bool m_accountIdHasBeenSet = false;
96
97 Aws::String m_vaultName;
98 bool m_vaultNameHasBeenSet = false;
99
100 JobParameters m_jobParameters;
101 bool m_jobParametersHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Glacier
106} // namespace Aws
const Aws::String & GetAccountId() const
AWS_GLACIER_API InitiateJobRequest()=default
const JobParameters & GetJobParameters() const
InitiateJobRequest & WithVaultName(VaultNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GLACIER_API Aws::String SerializePayload() const override
InitiateJobRequest & WithJobParameters(JobParametersT &&value)
InitiateJobRequest & WithAccountId(AccountIdT &&value)
void SetJobParameters(JobParametersT &&value)
const Aws::String & GetVaultName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String