AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CidrsT = Aws::Vector<Aws::String>>
57 void SetCidrs(CidrsT&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::forward<CidrsT>(value); }
58 template<typename CidrsT = Aws::Vector<Aws::String>>
59 SourceIpConfig& WithCidrs(CidrsT&& value) { SetCidrs(std::forward<CidrsT>(value)); return *this;}
60 template<typename CidrsT = Aws::String>
61 SourceIpConfig& AddCidrs(CidrsT&& value) { m_cidrsHasBeenSet = true; m_cidrs.emplace_back(std::forward<CidrsT>(value)); return *this; }
63 private:
64
66 bool m_cidrsHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace SageMaker
71} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SourceIpConfig & WithCidrs(CidrsT &&value)
SourceIpConfig & AddCidrs(CidrsT &&value)
AWS_SAGEMAKER_API SourceIpConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API SourceIpConfig()=default
const Aws::Vector< Aws::String > & GetCidrs() const
AWS_SAGEMAKER_API SourceIpConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue