AWS SDK for C++  0.14.3
AWS SDK for C++
InitiateJobRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Glacier
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
44  inline const Aws::String& GetAccountId() const{ return m_accountId; }
45 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
62  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
63 
71  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
72 
80  inline InitiateJobRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
81 
89  inline InitiateJobRequest& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
90 
98  inline InitiateJobRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
99 
103  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
104 
108  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
109 
113  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
114 
118  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
119 
123  inline InitiateJobRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
124 
128  inline InitiateJobRequest& WithVaultName(Aws::String&& value) { SetVaultName(value); return *this;}
129 
133  inline InitiateJobRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
134 
138  inline const JobParameters& GetJobParameters() const{ return m_jobParameters; }
139 
143  inline void SetJobParameters(const JobParameters& value) { m_jobParametersHasBeenSet = true; m_jobParameters = value; }
144 
148  inline void SetJobParameters(JobParameters&& value) { m_jobParametersHasBeenSet = true; m_jobParameters = value; }
149 
153  inline InitiateJobRequest& WithJobParameters(const JobParameters& value) { SetJobParameters(value); return *this;}
154 
158  inline InitiateJobRequest& WithJobParameters(JobParameters&& value) { SetJobParameters(value); return *this;}
159 
160  private:
161  Aws::String m_accountId;
162  bool m_accountIdHasBeenSet;
163  Aws::String m_vaultName;
164  bool m_vaultNameHasBeenSet;
165  JobParameters m_jobParameters;
166  bool m_jobParametersHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace Glacier
171 } // namespace Aws
const Aws::String & GetVaultName() const
InitiateJobRequest & WithJobParameters(JobParameters &&value)
InitiateJobRequest & WithVaultName(const char *value)
const Aws::String & GetAccountId() const
const JobParameters & GetJobParameters() const
void SetJobParameters(const JobParameters &value)
InitiateJobRequest & WithJobParameters(const JobParameters &value)
void SetJobParameters(JobParameters &&value)
InitiateJobRequest & WithAccountId(const Aws::String &value)
InitiateJobRequest & WithAccountId(Aws::String &&value)
void SetAccountId(const Aws::String &value)
#define AWS_GLACIER_API
void SetVaultName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InitiateJobRequest & WithVaultName(const Aws::String &value)
InitiateJobRequest & WithVaultName(Aws::String &&value)
InitiateJobRequest & WithAccountId(const char *value)
JSON (JavaScript Object Notation).