AWS SDK for C++  1.9.108
AWS SDK for C++
JobResource.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Snowball
25 {
26 namespace Model
27 {
28 
38  {
39  public:
44 
45 
49  inline const Aws::Vector<S3Resource>& GetS3Resources() const{ return m_s3Resources; }
50 
54  inline bool S3ResourcesHasBeenSet() const { return m_s3ResourcesHasBeenSet; }
55 
59  inline void SetS3Resources(const Aws::Vector<S3Resource>& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = value; }
60 
64  inline void SetS3Resources(Aws::Vector<S3Resource>&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = std::move(value); }
65 
69  inline JobResource& WithS3Resources(const Aws::Vector<S3Resource>& value) { SetS3Resources(value); return *this;}
70 
74  inline JobResource& WithS3Resources(Aws::Vector<S3Resource>&& value) { SetS3Resources(std::move(value)); return *this;}
75 
79  inline JobResource& AddS3Resources(const S3Resource& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(value); return *this; }
80 
84  inline JobResource& AddS3Resources(S3Resource&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(std::move(value)); return *this; }
85 
86 
90  inline const Aws::Vector<LambdaResource>& GetLambdaResources() const{ return m_lambdaResources; }
91 
95  inline bool LambdaResourcesHasBeenSet() const { return m_lambdaResourcesHasBeenSet; }
96 
100  inline void SetLambdaResources(const Aws::Vector<LambdaResource>& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = value; }
101 
105  inline void SetLambdaResources(Aws::Vector<LambdaResource>&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = std::move(value); }
106 
110  inline JobResource& WithLambdaResources(const Aws::Vector<LambdaResource>& value) { SetLambdaResources(value); return *this;}
111 
115  inline JobResource& WithLambdaResources(Aws::Vector<LambdaResource>&& value) { SetLambdaResources(std::move(value)); return *this;}
116 
120  inline JobResource& AddLambdaResources(const LambdaResource& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.push_back(value); return *this; }
121 
125  inline JobResource& AddLambdaResources(LambdaResource&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.push_back(std::move(value)); return *this; }
126 
127 
131  inline const Aws::Vector<Ec2AmiResource>& GetEc2AmiResources() const{ return m_ec2AmiResources; }
132 
136  inline bool Ec2AmiResourcesHasBeenSet() const { return m_ec2AmiResourcesHasBeenSet; }
137 
141  inline void SetEc2AmiResources(const Aws::Vector<Ec2AmiResource>& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = value; }
142 
146  inline void SetEc2AmiResources(Aws::Vector<Ec2AmiResource>&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = std::move(value); }
147 
151  inline JobResource& WithEc2AmiResources(const Aws::Vector<Ec2AmiResource>& value) { SetEc2AmiResources(value); return *this;}
152 
156  inline JobResource& WithEc2AmiResources(Aws::Vector<Ec2AmiResource>&& value) { SetEc2AmiResources(std::move(value)); return *this;}
157 
161  inline JobResource& AddEc2AmiResources(const Ec2AmiResource& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.push_back(value); return *this; }
162 
166  inline JobResource& AddEc2AmiResources(Ec2AmiResource&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.push_back(std::move(value)); return *this; }
167 
168  private:
169 
170  Aws::Vector<S3Resource> m_s3Resources;
171  bool m_s3ResourcesHasBeenSet;
172 
173  Aws::Vector<LambdaResource> m_lambdaResources;
174  bool m_lambdaResourcesHasBeenSet;
175 
176  Aws::Vector<Ec2AmiResource> m_ec2AmiResources;
177  bool m_ec2AmiResourcesHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace Snowball
182 } // namespace Aws
Aws::Snowball::Model::S3Resource
Definition: S3Resource.h:40
Aws::Snowball::Model::JobResource::Ec2AmiResourcesHasBeenSet
bool Ec2AmiResourcesHasBeenSet() const
Definition: JobResource.h:136
Aws::Snowball::Model::JobResource::SetEc2AmiResources
void SetEc2AmiResources(Aws::Vector< Ec2AmiResource > &&value)
Definition: JobResource.h:146
Aws::Snowball::Model::JobResource::WithLambdaResources
JobResource & WithLambdaResources(Aws::Vector< LambdaResource > &&value)
Definition: JobResource.h:115
Aws::Snowball::Model::JobResource::operator=
JobResource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::JobResource::WithLambdaResources
JobResource & WithLambdaResources(const Aws::Vector< LambdaResource > &value)
Definition: JobResource.h:110
Aws::Snowball::Model::JobResource::S3ResourcesHasBeenSet
bool S3ResourcesHasBeenSet() const
Definition: JobResource.h:54
Aws::Snowball::Model::JobResource::SetS3Resources
void SetS3Resources(Aws::Vector< S3Resource > &&value)
Definition: JobResource.h:64
Aws::Snowball::Model::JobResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
LambdaResource.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Snowball::Model::JobResource::WithS3Resources
JobResource & WithS3Resources(const Aws::Vector< S3Resource > &value)
Definition: JobResource.h:69
Aws::Snowball::Model::JobResource::JobResource
JobResource()
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::JobResource::SetLambdaResources
void SetLambdaResources(Aws::Vector< LambdaResource > &&value)
Definition: JobResource.h:105
Aws::Snowball::Model::JobResource::WithS3Resources
JobResource & WithS3Resources(Aws::Vector< S3Resource > &&value)
Definition: JobResource.h:74
Aws::Snowball::Model::JobResource::JobResource
JobResource(Aws::Utils::Json::JsonView jsonValue)
Aws::Snowball::Model::JobResource::AddEc2AmiResources
JobResource & AddEc2AmiResources(const Ec2AmiResource &value)
Definition: JobResource.h:161
Aws::Snowball::Model::JobResource::AddLambdaResources
JobResource & AddLambdaResources(const LambdaResource &value)
Definition: JobResource.h:120
Aws::Snowball::Model::JobResource::SetS3Resources
void SetS3Resources(const Aws::Vector< S3Resource > &value)
Definition: JobResource.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Snowball::Model::JobResource::GetS3Resources
const Aws::Vector< S3Resource > & GetS3Resources() const
Definition: JobResource.h:49
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::JobResource::GetEc2AmiResources
const Aws::Vector< Ec2AmiResource > & GetEc2AmiResources() const
Definition: JobResource.h:131
Aws::Snowball::Model::JobResource::AddLambdaResources
JobResource & AddLambdaResources(LambdaResource &&value)
Definition: JobResource.h:125
Aws::Snowball::Model::JobResource::WithEc2AmiResources
JobResource & WithEc2AmiResources(const Aws::Vector< Ec2AmiResource > &value)
Definition: JobResource.h:151
Aws::Snowball::Model::JobResource::AddEc2AmiResources
JobResource & AddEc2AmiResources(Ec2AmiResource &&value)
Definition: JobResource.h:166
S3Resource.h
Aws::Snowball::Model::JobResource
Definition: JobResource.h:38
Aws::Snowball::Model::JobResource::LambdaResourcesHasBeenSet
bool LambdaResourcesHasBeenSet() const
Definition: JobResource.h:95
Aws::Snowball::Model::Ec2AmiResource
Definition: Ec2AmiResource.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::JobResource::SetLambdaResources
void SetLambdaResources(const Aws::Vector< LambdaResource > &value)
Definition: JobResource.h:100
Aws::Snowball::Model::JobResource::AddS3Resources
JobResource & AddS3Resources(const S3Resource &value)
Definition: JobResource.h:79
Aws::Snowball::Model::JobResource::AddS3Resources
JobResource & AddS3Resources(S3Resource &&value)
Definition: JobResource.h:84
Ec2AmiResource.h
Aws::Snowball::Model::LambdaResource
Definition: LambdaResource.h:34
Aws::Snowball::Model::JobResource::SetEc2AmiResources
void SetEc2AmiResources(const Aws::Vector< Ec2AmiResource > &value)
Definition: JobResource.h:141
Aws::Snowball::Model::JobResource::WithEc2AmiResources
JobResource & WithEc2AmiResources(Aws::Vector< Ec2AmiResource > &&value)
Definition: JobResource.h:156
Snowball_EXPORTS.h
Aws::Snowball::Model::JobResource::GetLambdaResources
const Aws::Vector< LambdaResource > & GetLambdaResources() const
Definition: JobResource.h:90