AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename S3ResourcesT = Aws::Vector<S3Resource>>
53 void SetS3Resources(S3ResourcesT&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = std::forward<S3ResourcesT>(value); }
54 template<typename S3ResourcesT = Aws::Vector<S3Resource>>
55 JobResource& WithS3Resources(S3ResourcesT&& value) { SetS3Resources(std::forward<S3ResourcesT>(value)); return *this;}
56 template<typename S3ResourcesT = S3Resource>
57 JobResource& AddS3Resources(S3ResourcesT&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.emplace_back(std::forward<S3ResourcesT>(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 template<typename LambdaResourcesT = Aws::Vector<LambdaResource>>
67 void SetLambdaResources(LambdaResourcesT&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = std::forward<LambdaResourcesT>(value); }
68 template<typename LambdaResourcesT = Aws::Vector<LambdaResource>>
69 JobResource& WithLambdaResources(LambdaResourcesT&& value) { SetLambdaResources(std::forward<LambdaResourcesT>(value)); return *this;}
70 template<typename LambdaResourcesT = LambdaResource>
71 JobResource& AddLambdaResources(LambdaResourcesT&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.emplace_back(std::forward<LambdaResourcesT>(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 template<typename Ec2AmiResourcesT = Aws::Vector<Ec2AmiResource>>
81 void SetEc2AmiResources(Ec2AmiResourcesT&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = std::forward<Ec2AmiResourcesT>(value); }
82 template<typename Ec2AmiResourcesT = Aws::Vector<Ec2AmiResource>>
83 JobResource& WithEc2AmiResources(Ec2AmiResourcesT&& value) { SetEc2AmiResources(std::forward<Ec2AmiResourcesT>(value)); return *this;}
84 template<typename Ec2AmiResourcesT = Ec2AmiResource>
85 JobResource& AddEc2AmiResources(Ec2AmiResourcesT&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.emplace_back(std::forward<Ec2AmiResourcesT>(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
JobResource & WithEc2AmiResources(Ec2AmiResourcesT &&value)
Definition JobResource.h:83
const Aws::Vector< LambdaResource > & GetLambdaResources() const
Definition JobResource.h:64
JobResource & WithS3Resources(S3ResourcesT &&value)
Definition JobResource.h:55
void SetS3Resources(S3ResourcesT &&value)
Definition JobResource.h:53
JobResource & AddLambdaResources(LambdaResourcesT &&value)
Definition JobResource.h:71
JobResource & AddS3Resources(S3ResourcesT &&value)
Definition JobResource.h:57
AWS_SNOWBALL_API JobResource(Aws::Utils::Json::JsonView jsonValue)
JobResource & WithLambdaResources(LambdaResourcesT &&value)
Definition JobResource.h:69
void SetLambdaResources(LambdaResourcesT &&value)
Definition JobResource.h:67
AWS_SNOWBALL_API JobResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< S3Resource > & GetS3Resources() const
Definition JobResource.h:50
const Aws::Vector< Ec2AmiResource > & GetEc2AmiResources() const
Definition JobResource.h:78
void SetEc2AmiResources(Ec2AmiResourcesT &&value)
Definition JobResource.h:81
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
JobResource & AddEc2AmiResources(Ec2AmiResourcesT &&value)
Definition JobResource.h:85
AWS_SNOWBALL_API JobResource()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue