AWS SDK for C++  0.14.3
AWS SDK for C++
JobParameters.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Glacier
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  JobParameters();
42  JobParameters& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
51  inline const Aws::String& GetFormat() const{ return m_format; }
52 
59  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
60 
67  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = value; }
68 
75  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
76 
83  inline JobParameters& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
84 
91  inline JobParameters& WithFormat(Aws::String&& value) { SetFormat(value); return *this;}
92 
99  inline JobParameters& WithFormat(const char* value) { SetFormat(value); return *this;}
100 
106  inline const Aws::String& GetType() const{ return m_type; }
107 
113  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
114 
120  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
121 
127  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
128 
134  inline JobParameters& WithType(const Aws::String& value) { SetType(value); return *this;}
135 
141  inline JobParameters& WithType(Aws::String&& value) { SetType(value); return *this;}
142 
148  inline JobParameters& WithType(const char* value) { SetType(value); return *this;}
149 
155  inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
156 
162  inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
163 
169  inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
170 
176  inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
177 
183  inline JobParameters& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
184 
190  inline JobParameters& WithArchiveId(Aws::String&& value) { SetArchiveId(value); return *this;}
191 
197  inline JobParameters& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
198 
204  inline const Aws::String& GetDescription() const{ return m_description; }
205 
211  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
212 
218  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
219 
225  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
226 
232  inline JobParameters& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
233 
239  inline JobParameters& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
240 
246  inline JobParameters& WithDescription(const char* value) { SetDescription(value); return *this;}
247 
254  inline const Aws::String& GetSNSTopic() const{ return m_sNSTopic; }
255 
262  inline void SetSNSTopic(const Aws::String& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = value; }
263 
270  inline void SetSNSTopic(Aws::String&& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = value; }
271 
278  inline void SetSNSTopic(const char* value) { m_sNSTopicHasBeenSet = true; m_sNSTopic.assign(value); }
279 
286  inline JobParameters& WithSNSTopic(const Aws::String& value) { SetSNSTopic(value); return *this;}
287 
294  inline JobParameters& WithSNSTopic(Aws::String&& value) { SetSNSTopic(value); return *this;}
295 
302  inline JobParameters& WithSNSTopic(const char* value) { SetSNSTopic(value); return *this;}
303 
314  inline const Aws::String& GetRetrievalByteRange() const{ return m_retrievalByteRange; }
315 
326  inline void SetRetrievalByteRange(const Aws::String& value) { m_retrievalByteRangeHasBeenSet = true; m_retrievalByteRange = value; }
327 
338  inline void SetRetrievalByteRange(Aws::String&& value) { m_retrievalByteRangeHasBeenSet = true; m_retrievalByteRange = value; }
339 
350  inline void SetRetrievalByteRange(const char* value) { m_retrievalByteRangeHasBeenSet = true; m_retrievalByteRange.assign(value); }
351 
362  inline JobParameters& WithRetrievalByteRange(const Aws::String& value) { SetRetrievalByteRange(value); return *this;}
363 
374  inline JobParameters& WithRetrievalByteRange(Aws::String&& value) { SetRetrievalByteRange(value); return *this;}
375 
386  inline JobParameters& WithRetrievalByteRange(const char* value) { SetRetrievalByteRange(value); return *this;}
387 
391  inline const InventoryRetrievalJobInput& GetInventoryRetrievalParameters() const{ return m_inventoryRetrievalParameters; }
392 
396  inline void SetInventoryRetrievalParameters(const InventoryRetrievalJobInput& value) { m_inventoryRetrievalParametersHasBeenSet = true; m_inventoryRetrievalParameters = value; }
397 
401  inline void SetInventoryRetrievalParameters(InventoryRetrievalJobInput&& value) { m_inventoryRetrievalParametersHasBeenSet = true; m_inventoryRetrievalParameters = value; }
402 
406  inline JobParameters& WithInventoryRetrievalParameters(const InventoryRetrievalJobInput& value) { SetInventoryRetrievalParameters(value); return *this;}
407 
411  inline JobParameters& WithInventoryRetrievalParameters(InventoryRetrievalJobInput&& value) { SetInventoryRetrievalParameters(value); return *this;}
412 
413  private:
414  Aws::String m_format;
415  bool m_formatHasBeenSet;
416  Aws::String m_type;
417  bool m_typeHasBeenSet;
418  Aws::String m_archiveId;
419  bool m_archiveIdHasBeenSet;
420  Aws::String m_description;
421  bool m_descriptionHasBeenSet;
422  Aws::String m_sNSTopic;
423  bool m_sNSTopicHasBeenSet;
424  Aws::String m_retrievalByteRange;
425  bool m_retrievalByteRangeHasBeenSet;
426  InventoryRetrievalJobInput m_inventoryRetrievalParameters;
427  bool m_inventoryRetrievalParametersHasBeenSet;
428  };
429 
430 } // namespace Model
431 } // namespace Glacier
432 } // namespace Aws
JobParameters & WithDescription(const Aws::String &value)
JobParameters & WithRetrievalByteRange(Aws::String &&value)
const Aws::String & GetRetrievalByteRange() const
void SetDescription(const Aws::String &value)
void SetSNSTopic(const Aws::String &value)
void SetType(const char *value)
void SetDescription(const char *value)
JobParameters & WithDescription(const char *value)
JobParameters & WithSNSTopic(const Aws::String &value)
const InventoryRetrievalJobInput & GetInventoryRetrievalParameters() const
JobParameters & WithInventoryRetrievalParameters(const InventoryRetrievalJobInput &value)
JobParameters & WithType(Aws::String &&value)
JobParameters & WithArchiveId(const Aws::String &value)
void SetSNSTopic(Aws::String &&value)
void SetType(const Aws::String &value)
const Aws::String & GetType() const
JobParameters & WithFormat(const char *value)
Definition: JobParameters.h:99
void SetType(Aws::String &&value)
JobParameters & WithFormat(const Aws::String &value)
Definition: JobParameters.h:83
void SetRetrievalByteRange(Aws::String &&value)
void SetInventoryRetrievalParameters(InventoryRetrievalJobInput &&value)
void SetArchiveId(const char *value)
JobParameters & WithArchiveId(const char *value)
void SetSNSTopic(const char *value)
JobParameters & WithRetrievalByteRange(const char *value)
void SetInventoryRetrievalParameters(const InventoryRetrievalJobInput &value)
void SetArchiveId(const Aws::String &value)
void SetFormat(const Aws::String &value)
Definition: JobParameters.h:59
const Aws::String & GetArchiveId() const
void SetRetrievalByteRange(const char *value)
const Aws::String & GetFormat() const
Definition: JobParameters.h:51
JobParameters & WithDescription(Aws::String &&value)
const Aws::String & GetSNSTopic() const
void SetDescription(Aws::String &&value)
JobParameters & WithType(const char *value)
void SetArchiveId(Aws::String &&value)
#define AWS_GLACIER_API
JobParameters & WithFormat(Aws::String &&value)
Definition: JobParameters.h:91
JobParameters & WithArchiveId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JobParameters & WithInventoryRetrievalParameters(InventoryRetrievalJobInput &&value)
JobParameters & WithType(const Aws::String &value)
JobParameters & WithRetrievalByteRange(const Aws::String &value)
void SetFormat(Aws::String &&value)
Definition: JobParameters.h:67
JobParameters & WithSNSTopic(Aws::String &&value)
void SetFormat(const char *value)
Definition: JobParameters.h:75
JSON (JavaScript Object Notation).
JobParameters & WithSNSTopic(const char *value)
void SetRetrievalByteRange(const Aws::String &value)
const Aws::String & GetDescription() const