AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IamPolicyConstraints.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/EnabledOrDisabled.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SAGEMAKER_API IamPolicyConstraints();
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline const EnabledOrDisabled& GetSourceIp() const{ return m_sourceIp; }
50 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
51 inline void SetSourceIp(const EnabledOrDisabled& value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
52 inline void SetSourceIp(EnabledOrDisabled&& value) { m_sourceIpHasBeenSet = true; m_sourceIp = std::move(value); }
53 inline IamPolicyConstraints& WithSourceIp(const EnabledOrDisabled& value) { SetSourceIp(value); return *this;}
54 inline IamPolicyConstraints& WithSourceIp(EnabledOrDisabled&& value) { SetSourceIp(std::move(value)); return *this;}
56
58
69 inline const EnabledOrDisabled& GetVpcSourceIp() const{ return m_vpcSourceIp; }
70 inline bool VpcSourceIpHasBeenSet() const { return m_vpcSourceIpHasBeenSet; }
71 inline void SetVpcSourceIp(const EnabledOrDisabled& value) { m_vpcSourceIpHasBeenSet = true; m_vpcSourceIp = value; }
72 inline void SetVpcSourceIp(EnabledOrDisabled&& value) { m_vpcSourceIpHasBeenSet = true; m_vpcSourceIp = std::move(value); }
73 inline IamPolicyConstraints& WithVpcSourceIp(const EnabledOrDisabled& value) { SetVpcSourceIp(value); return *this;}
74 inline IamPolicyConstraints& WithVpcSourceIp(EnabledOrDisabled&& value) { SetVpcSourceIp(std::move(value)); return *this;}
76 private:
77
78 EnabledOrDisabled m_sourceIp;
79 bool m_sourceIpHasBeenSet = false;
80
81 EnabledOrDisabled m_vpcSourceIp;
82 bool m_vpcSourceIpHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace SageMaker
87} // namespace Aws
AWS_SAGEMAKER_API IamPolicyConstraints(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceIp(EnabledOrDisabled &&value)
void SetSourceIp(const EnabledOrDisabled &value)
const EnabledOrDisabled & GetSourceIp() const
IamPolicyConstraints & WithSourceIp(EnabledOrDisabled &&value)
IamPolicyConstraints & WithSourceIp(const EnabledOrDisabled &value)
void SetVpcSourceIp(EnabledOrDisabled &&value)
const EnabledOrDisabled & GetVpcSourceIp() const
AWS_SAGEMAKER_API IamPolicyConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVpcSourceIp(const EnabledOrDisabled &value)
IamPolicyConstraints & WithVpcSourceIp(const EnabledOrDisabled &value)
IamPolicyConstraints & WithVpcSourceIp(EnabledOrDisabled &&value)
Aws::Utils::Json::JsonValue JsonValue