136 lines
5.3 KiB
C++
136 lines
5.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/sagemaker/SageMaker_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SageMaker
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>A list of IP address ranges (<a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">CIDRs</a>).
|
|
* Used to create an allow list of IP addresses for a private workforce. Workers
|
|
* will only be able to login to their worker portal from an IP address within this
|
|
* range. By default, a workforce isn't restricted to specific IP
|
|
* addresses.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/SourceIpConfig">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SAGEMAKER_API SourceIpConfig
|
|
{
|
|
public:
|
|
SourceIpConfig();
|
|
SourceIpConfig(Aws::Utils::Json::JsonView jsonValue);
|
|
SourceIpConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetCidrs() const{ return m_cidrs; }
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline SourceIpConfig& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline SourceIpConfig& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline SourceIpConfig& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline SourceIpConfig& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of one to ten <a
|
|
* href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">Classless
|
|
* Inter-Domain Routing</a> (CIDR) values.</p> <p>Maximum: Ten CIDR values</p>
|
|
* <p>The following Length Constraints apply to individual CIDR values in
|
|
* the CIDR value list.</p>
|
|
*/
|
|
inline SourceIpConfig& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<Aws::String> m_cidrs;
|
|
bool m_cidrsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SageMaker
|
|
} // namespace Aws
|