AWS SDK for C++  0.14.3
AWS SDK for C++
JobResource.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 Snowball
30 {
31 namespace Model
32 {
33 
40  {
41  public:
42  JobResource();
43  JobResource(const Aws::Utils::Json::JsonValue& jsonValue);
44  JobResource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::Vector<S3Resource>& GetS3Resources() const{ return m_s3Resources; }
51 
55  inline void SetS3Resources(const Aws::Vector<S3Resource>& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = value; }
56 
60  inline void SetS3Resources(Aws::Vector<S3Resource>&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = value; }
61 
65  inline JobResource& WithS3Resources(const Aws::Vector<S3Resource>& value) { SetS3Resources(value); return *this;}
66 
70  inline JobResource& WithS3Resources(Aws::Vector<S3Resource>&& value) { SetS3Resources(value); return *this;}
71 
75  inline JobResource& AddS3Resources(const S3Resource& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(value); return *this; }
76 
80  inline JobResource& AddS3Resources(S3Resource&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(value); return *this; }
81 
82  private:
83  Aws::Vector<S3Resource> m_s3Resources;
84  bool m_s3ResourcesHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace Snowball
89 } // namespace Aws
void SetS3Resources(Aws::Vector< S3Resource > &&value)
Definition: JobResource.h:60
JobResource & AddS3Resources(const S3Resource &value)
Definition: JobResource.h:75
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetS3Resources(const Aws::Vector< S3Resource > &value)
Definition: JobResource.h:55
const Aws::Vector< S3Resource > & GetS3Resources() const
Definition: JobResource.h:50
JobResource & AddS3Resources(S3Resource &&value)
Definition: JobResource.h:80
#define AWS_SNOWBALL_API
JobResource & WithS3Resources(Aws::Vector< S3Resource > &&value)
Definition: JobResource.h:70
JobResource & WithS3Resources(const Aws::Vector< S3Resource > &value)
Definition: JobResource.h:65
JSON (JavaScript Object Notation).