AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline EnabledOrDisabled GetSourceIp() const { return m_sourceIp; }
50 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
51 inline void SetSourceIp(EnabledOrDisabled value) { m_sourceIpHasBeenSet = true; m_sourceIp = value; }
52 inline IamPolicyConstraints& WithSourceIp(EnabledOrDisabled value) { SetSourceIp(value); return *this;}
54
56
67 inline EnabledOrDisabled GetVpcSourceIp() const { return m_vpcSourceIp; }
68 inline bool VpcSourceIpHasBeenSet() const { return m_vpcSourceIpHasBeenSet; }
69 inline void SetVpcSourceIp(EnabledOrDisabled value) { m_vpcSourceIpHasBeenSet = true; m_vpcSourceIp = value; }
72 private:
73
75 bool m_sourceIpHasBeenSet = false;
76
78 bool m_vpcSourceIpHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace SageMaker
83} // namespace Aws
AWS_SAGEMAKER_API IamPolicyConstraints(Aws::Utils::Json::JsonView jsonValue)
IamPolicyConstraints & WithSourceIp(EnabledOrDisabled value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API IamPolicyConstraints()=default
IamPolicyConstraints & WithVpcSourceIp(EnabledOrDisabled value)
AWS_SAGEMAKER_API IamPolicyConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue