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-datasync/include/aws/datasync/model/Ec2Config.h

160 lines
5.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>The subnet and the security group that DataSync uses to access target EFS
* file system. The subnet must have at least one mount target for that file
* system. The security group that you provide needs to be able to communicate with
* the security group on the mount target in the subnet specified. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/Ec2Config">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API Ec2Config
{
public:
Ec2Config();
Ec2Config(Aws::Utils::Json::JsonView jsonValue);
Ec2Config& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline Ec2Config& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline Ec2Config& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline Ec2Config& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
private:
Aws::String m_subnetArn;
bool m_subnetArnHasBeenSet;
Aws::Vector<Aws::String> m_securityGroupArns;
bool m_securityGroupArnsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws