AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobResource.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/snowball/model/S3Resource.h>
10#include <aws/snowball/model/LambdaResource.h>
11#include <aws/snowball/model/Ec2AmiResource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Snowball
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_SNOWBALL_API JobResource();
41 AWS_SNOWBALL_API JobResource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SNOWBALL_API JobResource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<S3Resource>& GetS3Resources() const{ return m_s3Resources; }
51 inline bool S3ResourcesHasBeenSet() const { return m_s3ResourcesHasBeenSet; }
52 inline void SetS3Resources(const Aws::Vector<S3Resource>& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = value; }
53 inline void SetS3Resources(Aws::Vector<S3Resource>&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = std::move(value); }
54 inline JobResource& WithS3Resources(const Aws::Vector<S3Resource>& value) { SetS3Resources(value); return *this;}
55 inline JobResource& WithS3Resources(Aws::Vector<S3Resource>&& value) { SetS3Resources(std::move(value)); return *this;}
56 inline JobResource& AddS3Resources(const S3Resource& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(value); return *this; }
57 inline JobResource& AddS3Resources(S3Resource&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::Vector<LambdaResource>& GetLambdaResources() const{ return m_lambdaResources; }
65 inline bool LambdaResourcesHasBeenSet() const { return m_lambdaResourcesHasBeenSet; }
66 inline void SetLambdaResources(const Aws::Vector<LambdaResource>& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = value; }
67 inline void SetLambdaResources(Aws::Vector<LambdaResource>&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = std::move(value); }
69 inline JobResource& WithLambdaResources(Aws::Vector<LambdaResource>&& value) { SetLambdaResources(std::move(value)); return *this;}
70 inline JobResource& AddLambdaResources(const LambdaResource& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.push_back(value); return *this; }
71 inline JobResource& AddLambdaResources(LambdaResource&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.push_back(std::move(value)); return *this; }
73
75
78 inline const Aws::Vector<Ec2AmiResource>& GetEc2AmiResources() const{ return m_ec2AmiResources; }
79 inline bool Ec2AmiResourcesHasBeenSet() const { return m_ec2AmiResourcesHasBeenSet; }
80 inline void SetEc2AmiResources(const Aws::Vector<Ec2AmiResource>& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = value; }
81 inline void SetEc2AmiResources(Aws::Vector<Ec2AmiResource>&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = std::move(value); }
83 inline JobResource& WithEc2AmiResources(Aws::Vector<Ec2AmiResource>&& value) { SetEc2AmiResources(std::move(value)); return *this;}
84 inline JobResource& AddEc2AmiResources(const Ec2AmiResource& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.push_back(value); return *this; }
85 inline JobResource& AddEc2AmiResources(Ec2AmiResource&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::Vector<S3Resource> m_s3Resources;
90 bool m_s3ResourcesHasBeenSet = false;
91
92 Aws::Vector<LambdaResource> m_lambdaResources;
93 bool m_lambdaResourcesHasBeenSet = false;
94
95 Aws::Vector<Ec2AmiResource> m_ec2AmiResources;
96 bool m_ec2AmiResourcesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Snowball
101} // namespace Aws
const Aws::Vector< LambdaResource > & GetLambdaResources() const
Definition JobResource.h:64
JobResource & WithLambdaResources(const Aws::Vector< LambdaResource > &value)
Definition JobResource.h:68
void SetLambdaResources(const Aws::Vector< LambdaResource > &value)
Definition JobResource.h:66
JobResource & WithS3Resources(Aws::Vector< S3Resource > &&value)
Definition JobResource.h:55
void SetS3Resources(Aws::Vector< S3Resource > &&value)
Definition JobResource.h:53
JobResource & WithS3Resources(const Aws::Vector< S3Resource > &value)
Definition JobResource.h:54
JobResource & WithEc2AmiResources(Aws::Vector< Ec2AmiResource > &&value)
Definition JobResource.h:83
AWS_SNOWBALL_API JobResource(Aws::Utils::Json::JsonView jsonValue)
JobResource & AddLambdaResources(LambdaResource &&value)
Definition JobResource.h:71
JobResource & AddEc2AmiResources(const Ec2AmiResource &value)
Definition JobResource.h:84
AWS_SNOWBALL_API JobResource & operator=(Aws::Utils::Json::JsonView jsonValue)
JobResource & AddEc2AmiResources(Ec2AmiResource &&value)
Definition JobResource.h:85
JobResource & AddS3Resources(S3Resource &&value)
Definition JobResource.h:57
void SetEc2AmiResources(Aws::Vector< Ec2AmiResource > &&value)
Definition JobResource.h:81
const Aws::Vector< S3Resource > & GetS3Resources() const
Definition JobResource.h:50
JobResource & WithLambdaResources(Aws::Vector< LambdaResource > &&value)
Definition JobResource.h:69
const Aws::Vector< Ec2AmiResource > & GetEc2AmiResources() const
Definition JobResource.h:78
void SetS3Resources(const Aws::Vector< S3Resource > &value)
Definition JobResource.h:52
void SetLambdaResources(Aws::Vector< LambdaResource > &&value)
Definition JobResource.h:67
JobResource & AddLambdaResources(const LambdaResource &value)
Definition JobResource.h:70
JobResource & WithEc2AmiResources(const Aws::Vector< Ec2AmiResource > &value)
Definition JobResource.h:82
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEc2AmiResources(const Aws::Vector< Ec2AmiResource > &value)
Definition JobResource.h:80
JobResource & AddS3Resources(const S3Resource &value)
Definition JobResource.h:56
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue