AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateProjectRequest.h
1
6#pragma once
7#include <aws/bedrock/BedrockRequest.h>
8#include <aws/bedrock/Bedrock_EXPORTS.h>
9#include <aws/bedrock/model/ProjectDataRetention.h>
10#include <aws/bedrock/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Bedrock {
18namespace Model {
19
27 public:
28 AWS_BEDROCK_API CreateProjectRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
35
36 AWS_BEDROCK_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template <typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Vector<Tag>>
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsT = Tag>
73 CreateProjectRequest& AddTags(TagsT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags.emplace_back(std::forward<TagsT>(value));
76 return *this;
77 }
79
81
86 inline const ProjectDataRetention& GetDataRetention() const { return m_dataRetention; }
87 inline bool DataRetentionHasBeenSet() const { return m_dataRetentionHasBeenSet; }
88 template <typename DataRetentionT = ProjectDataRetention>
89 void SetDataRetention(DataRetentionT&& value) {
90 m_dataRetentionHasBeenSet = true;
91 m_dataRetention = std::forward<DataRetentionT>(value);
92 }
93 template <typename DataRetentionT = ProjectDataRetention>
94 CreateProjectRequest& WithDataRetention(DataRetentionT&& value) {
95 SetDataRetention(std::forward<DataRetentionT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_name;
101
102 Aws::Vector<Tag> m_tags;
103
104 ProjectDataRetention m_dataRetention;
105 bool m_nameHasBeenSet = false;
106 bool m_tagsHasBeenSet = false;
107 bool m_dataRetentionHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Bedrock
112} // namespace Aws
CreateProjectRequest & AddTags(TagsT &&value)
void SetDataRetention(DataRetentionT &&value)
AWS_BEDROCK_API CreateProjectRequest()=default
AWS_BEDROCK_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateProjectRequest & WithDataRetention(DataRetentionT &&value)
CreateProjectRequest & WithTags(TagsT &&value)
CreateProjectRequest & WithName(NameT &&value)
const ProjectDataRetention & GetDataRetention() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector