AWS SDK for C++

AWS SDK for C++ Version 1.11.699

Loading...
Searching...
No Matches
JobResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/snowball/Snowball_EXPORTS.h>
9#include <aws/snowball/model/Ec2AmiResource.h>
10#include <aws/snowball/model/LambdaResource.h>
11#include <aws/snowball/model/S3Resource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Snowball {
23namespace Model {
24
34 public:
35 AWS_SNOWBALL_API JobResource() = default;
36 AWS_SNOWBALL_API JobResource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWBALL_API JobResource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<S3Resource>& GetS3Resources() const { return m_s3Resources; }
45 inline bool S3ResourcesHasBeenSet() const { return m_s3ResourcesHasBeenSet; }
46 template <typename S3ResourcesT = Aws::Vector<S3Resource>>
47 void SetS3Resources(S3ResourcesT&& value) {
48 m_s3ResourcesHasBeenSet = true;
49 m_s3Resources = std::forward<S3ResourcesT>(value);
50 }
51 template <typename S3ResourcesT = Aws::Vector<S3Resource>>
52 JobResource& WithS3Resources(S3ResourcesT&& value) {
53 SetS3Resources(std::forward<S3ResourcesT>(value));
54 return *this;
55 }
56 template <typename S3ResourcesT = S3Resource>
57 JobResource& AddS3Resources(S3ResourcesT&& value) {
58 m_s3ResourcesHasBeenSet = true;
59 m_s3Resources.emplace_back(std::forward<S3ResourcesT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<LambdaResource>& GetLambdaResources() const { return m_lambdaResources; }
69 inline bool LambdaResourcesHasBeenSet() const { return m_lambdaResourcesHasBeenSet; }
70 template <typename LambdaResourcesT = Aws::Vector<LambdaResource>>
71 void SetLambdaResources(LambdaResourcesT&& value) {
72 m_lambdaResourcesHasBeenSet = true;
73 m_lambdaResources = std::forward<LambdaResourcesT>(value);
74 }
75 template <typename LambdaResourcesT = Aws::Vector<LambdaResource>>
76 JobResource& WithLambdaResources(LambdaResourcesT&& value) {
77 SetLambdaResources(std::forward<LambdaResourcesT>(value));
78 return *this;
79 }
80 template <typename LambdaResourcesT = LambdaResource>
81 JobResource& AddLambdaResources(LambdaResourcesT&& value) {
82 m_lambdaResourcesHasBeenSet = true;
83 m_lambdaResources.emplace_back(std::forward<LambdaResourcesT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Ec2AmiResource>& GetEc2AmiResources() const { return m_ec2AmiResources; }
93 inline bool Ec2AmiResourcesHasBeenSet() const { return m_ec2AmiResourcesHasBeenSet; }
94 template <typename Ec2AmiResourcesT = Aws::Vector<Ec2AmiResource>>
95 void SetEc2AmiResources(Ec2AmiResourcesT&& value) {
96 m_ec2AmiResourcesHasBeenSet = true;
97 m_ec2AmiResources = std::forward<Ec2AmiResourcesT>(value);
98 }
99 template <typename Ec2AmiResourcesT = Aws::Vector<Ec2AmiResource>>
100 JobResource& WithEc2AmiResources(Ec2AmiResourcesT&& value) {
101 SetEc2AmiResources(std::forward<Ec2AmiResourcesT>(value));
102 return *this;
103 }
104 template <typename Ec2AmiResourcesT = Ec2AmiResource>
105 JobResource& AddEc2AmiResources(Ec2AmiResourcesT&& value) {
106 m_ec2AmiResourcesHasBeenSet = true;
107 m_ec2AmiResources.emplace_back(std::forward<Ec2AmiResourcesT>(value));
108 return *this;
109 }
111 private:
112 Aws::Vector<S3Resource> m_s3Resources;
113 bool m_s3ResourcesHasBeenSet = false;
114
115 Aws::Vector<LambdaResource> m_lambdaResources;
116 bool m_lambdaResourcesHasBeenSet = false;
117
118 Aws::Vector<Ec2AmiResource> m_ec2AmiResources;
119 bool m_ec2AmiResourcesHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Snowball
124} // namespace Aws
JobResource & WithEc2AmiResources(Ec2AmiResourcesT &&value)
const Aws::Vector< LambdaResource > & GetLambdaResources() const
Definition JobResource.h:68
JobResource & WithS3Resources(S3ResourcesT &&value)
Definition JobResource.h:52
void SetS3Resources(S3ResourcesT &&value)
Definition JobResource.h:47
JobResource & AddLambdaResources(LambdaResourcesT &&value)
Definition JobResource.h:81
JobResource & AddS3Resources(S3ResourcesT &&value)
Definition JobResource.h:57
AWS_SNOWBALL_API JobResource(Aws::Utils::Json::JsonView jsonValue)
JobResource & WithLambdaResources(LambdaResourcesT &&value)
Definition JobResource.h:76
void SetLambdaResources(LambdaResourcesT &&value)
Definition JobResource.h:71
AWS_SNOWBALL_API JobResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< S3Resource > & GetS3Resources() const
Definition JobResource.h:44
const Aws::Vector< Ec2AmiResource > & GetEc2AmiResources() const
Definition JobResource.h:92
void SetEc2AmiResources(Ec2AmiResourcesT &&value)
Definition JobResource.h:95
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
JobResource & AddEc2AmiResources(Ec2AmiResourcesT &&value)
AWS_SNOWBALL_API JobResource()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue