AWS SDK for C++  1.9.159
AWS SDK for C++
SourceIpConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
53  inline const Aws::Vector<Aws::String>& GetCidrs() const{ return m_cidrs; }
54 
62  inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
63 
71  inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
72 
80  inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
81 
89  inline SourceIpConfig& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
90 
98  inline SourceIpConfig& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
99 
107  inline SourceIpConfig& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
108 
116  inline SourceIpConfig& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
117 
125  inline SourceIpConfig& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::Vector<Aws::String> m_cidrs;
130  bool m_cidrsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace SageMaker
135 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::SourceIpConfig::WithCidrs
SourceIpConfig & WithCidrs(const Aws::Vector< Aws::String > &value)
Definition: SourceIpConfig.h:89
SageMaker_EXPORTS.h
Aws::SageMaker::Model::SourceIpConfig::SetCidrs
void SetCidrs(const Aws::Vector< Aws::String > &value)
Definition: SourceIpConfig.h:71
Aws::SageMaker::Model::SourceIpConfig
Definition: SourceIpConfig.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SageMaker::Model::SourceIpConfig::AddCidrs
SourceIpConfig & AddCidrs(Aws::String &&value)
Definition: SourceIpConfig.h:116
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::SourceIpConfig::SourceIpConfig
SourceIpConfig()
Aws::SageMaker::Model::SourceIpConfig::WithCidrs
SourceIpConfig & WithCidrs(Aws::Vector< Aws::String > &&value)
Definition: SourceIpConfig.h:98
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SageMaker::Model::SourceIpConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::SourceIpConfig::AddCidrs
SourceIpConfig & AddCidrs(const char *value)
Definition: SourceIpConfig.h:125
Aws::SageMaker::Model::SourceIpConfig::CidrsHasBeenSet
bool CidrsHasBeenSet() const
Definition: SourceIpConfig.h:62
Aws::SageMaker::Model::SourceIpConfig::SetCidrs
void SetCidrs(Aws::Vector< Aws::String > &&value)
Definition: SourceIpConfig.h:80
Aws::SageMaker::Model::SourceIpConfig::GetCidrs
const Aws::Vector< Aws::String > & GetCidrs() const
Definition: SourceIpConfig.h:53
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::SourceIpConfig::operator=
SourceIpConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::SourceIpConfig::SourceIpConfig
SourceIpConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::SourceIpConfig::AddCidrs
SourceIpConfig & AddCidrs(const Aws::String &value)
Definition: SourceIpConfig.h:107