AWS SDK for C++  1.9.40
AWS SDK for C++
PutModelPackageGroupPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SageMaker
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "PutModelPackageGroupPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetModelPackageGroupName() const{ return m_modelPackageGroupName; }
41 
45  inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
46 
50  inline void SetModelPackageGroupName(const Aws::String& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = value; }
51 
55  inline void SetModelPackageGroupName(Aws::String&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::move(value); }
56 
60  inline void SetModelPackageGroupName(const char* value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName.assign(value); }
61 
65  inline PutModelPackageGroupPolicyRequest& WithModelPackageGroupName(const Aws::String& value) { SetModelPackageGroupName(value); return *this;}
66 
70  inline PutModelPackageGroupPolicyRequest& WithModelPackageGroupName(Aws::String&& value) { SetModelPackageGroupName(std::move(value)); return *this;}
71 
75  inline PutModelPackageGroupPolicyRequest& WithModelPackageGroupName(const char* value) { SetModelPackageGroupName(value); return *this;}
76 
77 
81  inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
82 
86  inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
87 
91  inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
92 
96  inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = std::move(value); }
97 
101  inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
102 
106  inline PutModelPackageGroupPolicyRequest& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;}
107 
111  inline PutModelPackageGroupPolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
112 
116  inline PutModelPackageGroupPolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
117 
118  private:
119 
120  Aws::String m_modelPackageGroupName;
121  bool m_modelPackageGroupNameHasBeenSet;
122 
123  Aws::String m_resourcePolicy;
124  bool m_resourcePolicyHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace SageMaker
129 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SetModelPackageGroupName
void SetModelPackageGroupName(const Aws::String &value)
Definition: PutModelPackageGroupPolicyRequest.h:50
SageMaker_EXPORTS.h
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::GetModelPackageGroupName
const Aws::String & GetModelPackageGroupName() const
Definition: PutModelPackageGroupPolicyRequest.h:40
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::WithModelPackageGroupName
PutModelPackageGroupPolicyRequest & WithModelPackageGroupName(const Aws::String &value)
Definition: PutModelPackageGroupPolicyRequest.h:65
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SetModelPackageGroupName
void SetModelPackageGroupName(const char *value)
Definition: PutModelPackageGroupPolicyRequest.h:60
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::WithModelPackageGroupName
PutModelPackageGroupPolicyRequest & WithModelPackageGroupName(Aws::String &&value)
Definition: PutModelPackageGroupPolicyRequest.h:70
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::WithModelPackageGroupName
PutModelPackageGroupPolicyRequest & WithModelPackageGroupName(const char *value)
Definition: PutModelPackageGroupPolicyRequest.h:75
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::WithResourcePolicy
PutModelPackageGroupPolicyRequest & WithResourcePolicy(const char *value)
Definition: PutModelPackageGroupPolicyRequest.h:116
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SetResourcePolicy
void SetResourcePolicy(const Aws::String &value)
Definition: PutModelPackageGroupPolicyRequest.h:91
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest
Definition: PutModelPackageGroupPolicyRequest.h:22
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SetModelPackageGroupName
void SetModelPackageGroupName(Aws::String &&value)
Definition: PutModelPackageGroupPolicyRequest.h:55
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SetResourcePolicy
void SetResourcePolicy(const char *value)
Definition: PutModelPackageGroupPolicyRequest.h:101
AWSString.h
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutModelPackageGroupPolicyRequest.h:30
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::ModelPackageGroupNameHasBeenSet
bool ModelPackageGroupNameHasBeenSet() const
Definition: PutModelPackageGroupPolicyRequest.h:45
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::PutModelPackageGroupPolicyRequest
PutModelPackageGroupPolicyRequest()
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::GetResourcePolicy
const Aws::String & GetResourcePolicy() const
Definition: PutModelPackageGroupPolicyRequest.h:81
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::SetResourcePolicy
void SetResourcePolicy(Aws::String &&value)
Definition: PutModelPackageGroupPolicyRequest.h:96
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::WithResourcePolicy
PutModelPackageGroupPolicyRequest & WithResourcePolicy(Aws::String &&value)
Definition: PutModelPackageGroupPolicyRequest.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::WithResourcePolicy
PutModelPackageGroupPolicyRequest & WithResourcePolicy(const Aws::String &value)
Definition: PutModelPackageGroupPolicyRequest.h:106
SageMakerRequest.h
Aws::SageMaker::Model::PutModelPackageGroupPolicyRequest::ResourcePolicyHasBeenSet
bool ResourcePolicyHasBeenSet() const
Definition: PutModelPackageGroupPolicyRequest.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97