AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
29 public:
30 AWS_SAGEMAKER_API IamPolicyConstraints() = default;
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline EnabledOrDisabled GetSourceIp() const { return m_sourceIp; }
44 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
45 inline void SetSourceIp(EnabledOrDisabled value) {
46 m_sourceIpHasBeenSet = true;
47 m_sourceIp = value;
48 }
50 SetSourceIp(value);
51 return *this;
52 }
54
56
67 inline EnabledOrDisabled GetVpcSourceIp() const { return m_vpcSourceIp; }
68 inline bool VpcSourceIpHasBeenSet() const { return m_vpcSourceIpHasBeenSet; }
69 inline void SetVpcSourceIp(EnabledOrDisabled value) {
70 m_vpcSourceIpHasBeenSet = true;
71 m_vpcSourceIp = value;
72 }
74 SetVpcSourceIp(value);
75 return *this;
76 }
78 private:
80
82 bool m_sourceIpHasBeenSet = false;
83 bool m_vpcSourceIpHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace SageMaker
88} // 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