AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceIpConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_SAGEMAKER_API SourceIpConfig();
41 AWS_SAGEMAKER_API SourceIpConfig(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
54 inline const Aws::Vector<Aws::String>& GetCidrs() const{ return m_cidrs; }
55 inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
56 inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
57 inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
58 inline SourceIpConfig& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
59 inline SourceIpConfig& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
60 inline SourceIpConfig& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
61 inline SourceIpConfig& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
62 inline SourceIpConfig& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
64 private:
65
67 bool m_cidrsHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace SageMaker
72} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SourceIpConfig & WithCidrs(const Aws::Vector< Aws::String > &value)
SourceIpConfig & AddCidrs(Aws::String &&value)
void SetCidrs(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API SourceIpConfig(Aws::Utils::Json::JsonView jsonValue)
void SetCidrs(Aws::Vector< Aws::String > &&value)
SourceIpConfig & AddCidrs(const Aws::String &value)
SourceIpConfig & WithCidrs(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetCidrs() const
AWS_SAGEMAKER_API SourceIpConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceIpConfig & AddCidrs(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue