AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UpdateProjectRequest.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/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Bedrock {
16namespace Model {
17
25 public:
26 AWS_BEDROCK_API UpdateProjectRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateProject"; }
33
34 AWS_BEDROCK_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
41 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
42 template <typename ProjectIdentifierT = Aws::String>
43 void SetProjectIdentifier(ProjectIdentifierT&& value) {
44 m_projectIdentifierHasBeenSet = true;
45 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
46 }
47 template <typename ProjectIdentifierT = Aws::String>
48 UpdateProjectRequest& WithProjectIdentifier(ProjectIdentifierT&& value) {
49 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const ProjectDataRetention& GetDataRetention() const { return m_dataRetention; }
79 inline bool DataRetentionHasBeenSet() const { return m_dataRetentionHasBeenSet; }
80 template <typename DataRetentionT = ProjectDataRetention>
81 void SetDataRetention(DataRetentionT&& value) {
82 m_dataRetentionHasBeenSet = true;
83 m_dataRetention = std::forward<DataRetentionT>(value);
84 }
85 template <typename DataRetentionT = ProjectDataRetention>
86 UpdateProjectRequest& WithDataRetention(DataRetentionT&& value) {
87 SetDataRetention(std::forward<DataRetentionT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_projectIdentifier;
93
94 Aws::String m_name;
95
96 ProjectDataRetention m_dataRetention;
97 bool m_projectIdentifierHasBeenSet = false;
98 bool m_nameHasBeenSet = false;
99 bool m_dataRetentionHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Bedrock
104} // namespace Aws
void SetDataRetention(DataRetentionT &&value)
UpdateProjectRequest & WithName(NameT &&value)
void SetProjectIdentifier(ProjectIdentifierT &&value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
AWS_BEDROCK_API UpdateProjectRequest()=default
const ProjectDataRetention & GetDataRetention() const
virtual const char * GetServiceRequestName() const override
UpdateProjectRequest & WithProjectIdentifier(ProjectIdentifierT &&value)
UpdateProjectRequest & WithDataRetention(DataRetentionT &&value)
const Aws::String & GetProjectIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String