AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutModelPackageGroupPolicyRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SageMaker
15{
16namespace 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_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetModelPackageGroupName() const{ return m_modelPackageGroupName; }
42 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
43 inline void SetModelPackageGroupName(const Aws::String& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = value; }
44 inline void SetModelPackageGroupName(Aws::String&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::move(value); }
45 inline void SetModelPackageGroupName(const char* value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName.assign(value); }
50
52
55 inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
56 inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
57 inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
58 inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = std::move(value); }
59 inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
61 inline PutModelPackageGroupPolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
62 inline PutModelPackageGroupPolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
64 private:
65
66 Aws::String m_modelPackageGroupName;
67 bool m_modelPackageGroupNameHasBeenSet = false;
68
69 Aws::String m_resourcePolicy;
70 bool m_resourcePolicyHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SageMaker
75} // namespace Aws
PutModelPackageGroupPolicyRequest & WithResourcePolicy(const char *value)
PutModelPackageGroupPolicyRequest & WithModelPackageGroupName(const Aws::String &value)
PutModelPackageGroupPolicyRequest & WithModelPackageGroupName(Aws::String &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
PutModelPackageGroupPolicyRequest & WithResourcePolicy(const Aws::String &value)
PutModelPackageGroupPolicyRequest & WithModelPackageGroupName(const char *value)
PutModelPackageGroupPolicyRequest & WithResourcePolicy(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String