This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-snowball/include/aws/snowball/model/JobResource.h

183 lines
6.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/snowball/Snowball_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/snowball/model/S3Resource.h>
#include <aws/snowball/model/LambdaResource.h>
#include <aws/snowball/model/Ec2AmiResource.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Snowball
{
namespace Model
{
/**
* <p>Contains an array of AWS resource objects. Each object represents an Amazon
* S3 bucket, an AWS Lambda function, or an Amazon Machine Image (AMI) based on
* Amazon EC2 that is associated with a particular job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30/JobResource">AWS
* API Reference</a></p>
*/
class AWS_SNOWBALL_API JobResource
{
public:
JobResource();
JobResource(Aws::Utils::Json::JsonView jsonValue);
JobResource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline const Aws::Vector<S3Resource>& GetS3Resources() const{ return m_s3Resources; }
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline bool S3ResourcesHasBeenSet() const { return m_s3ResourcesHasBeenSet; }
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline void SetS3Resources(const Aws::Vector<S3Resource>& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = value; }
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline void SetS3Resources(Aws::Vector<S3Resource>&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources = std::move(value); }
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline JobResource& WithS3Resources(const Aws::Vector<S3Resource>& value) { SetS3Resources(value); return *this;}
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline JobResource& WithS3Resources(Aws::Vector<S3Resource>&& value) { SetS3Resources(std::move(value)); return *this;}
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline JobResource& AddS3Resources(const S3Resource& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(value); return *this; }
/**
* <p>An array of <code>S3Resource</code> objects.</p>
*/
inline JobResource& AddS3Resources(S3Resource&& value) { m_s3ResourcesHasBeenSet = true; m_s3Resources.push_back(std::move(value)); return *this; }
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline const Aws::Vector<LambdaResource>& GetLambdaResources() const{ return m_lambdaResources; }
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline bool LambdaResourcesHasBeenSet() const { return m_lambdaResourcesHasBeenSet; }
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline void SetLambdaResources(const Aws::Vector<LambdaResource>& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = value; }
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline void SetLambdaResources(Aws::Vector<LambdaResource>&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources = std::move(value); }
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline JobResource& WithLambdaResources(const Aws::Vector<LambdaResource>& value) { SetLambdaResources(value); return *this;}
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline JobResource& WithLambdaResources(Aws::Vector<LambdaResource>&& value) { SetLambdaResources(std::move(value)); return *this;}
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline JobResource& AddLambdaResources(const LambdaResource& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.push_back(value); return *this; }
/**
* <p>The Python-language Lambda functions for this job.</p>
*/
inline JobResource& AddLambdaResources(LambdaResource&& value) { m_lambdaResourcesHasBeenSet = true; m_lambdaResources.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline const Aws::Vector<Ec2AmiResource>& GetEc2AmiResources() const{ return m_ec2AmiResources; }
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline bool Ec2AmiResourcesHasBeenSet() const { return m_ec2AmiResourcesHasBeenSet; }
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline void SetEc2AmiResources(const Aws::Vector<Ec2AmiResource>& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = value; }
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline void SetEc2AmiResources(Aws::Vector<Ec2AmiResource>&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources = std::move(value); }
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline JobResource& WithEc2AmiResources(const Aws::Vector<Ec2AmiResource>& value) { SetEc2AmiResources(value); return *this;}
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline JobResource& WithEc2AmiResources(Aws::Vector<Ec2AmiResource>&& value) { SetEc2AmiResources(std::move(value)); return *this;}
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline JobResource& AddEc2AmiResources(const Ec2AmiResource& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.push_back(value); return *this; }
/**
* <p>The Amazon Machine Images (AMIs) associated with this job.</p>
*/
inline JobResource& AddEc2AmiResources(Ec2AmiResource&& value) { m_ec2AmiResourcesHasBeenSet = true; m_ec2AmiResources.push_back(std::move(value)); return *this; }
private:
Aws::Vector<S3Resource> m_s3Resources;
bool m_s3ResourcesHasBeenSet;
Aws::Vector<LambdaResource> m_lambdaResources;
bool m_lambdaResourcesHasBeenSet;
Aws::Vector<Ec2AmiResource> m_ec2AmiResources;
bool m_ec2AmiResourcesHasBeenSet;
};
} // namespace Model
} // namespace Snowball
} // namespace Aws