AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateCodeRepositoryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/GitConfig.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateCodeRepositoryRequest() = default;
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 "CreateCodeRepository"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetCodeRepositoryName() const { return m_codeRepositoryName; }
42 inline bool CodeRepositoryNameHasBeenSet() const { return m_codeRepositoryNameHasBeenSet; }
43 template <typename CodeRepositoryNameT = Aws::String>
44 void SetCodeRepositoryName(CodeRepositoryNameT&& value) {
45 m_codeRepositoryNameHasBeenSet = true;
46 m_codeRepositoryName = std::forward<CodeRepositoryNameT>(value);
47 }
48 template <typename CodeRepositoryNameT = Aws::String>
50 SetCodeRepositoryName(std::forward<CodeRepositoryNameT>(value));
51 return *this;
52 }
54
56
61 inline const GitConfig& GetGitConfig() const { return m_gitConfig; }
62 inline bool GitConfigHasBeenSet() const { return m_gitConfigHasBeenSet; }
63 template <typename GitConfigT = GitConfig>
64 void SetGitConfig(GitConfigT&& value) {
65 m_gitConfigHasBeenSet = true;
66 m_gitConfig = std::forward<GitConfigT>(value);
67 }
68 template <typename GitConfigT = GitConfig>
70 SetGitConfig(std::forward<GitConfigT>(value));
71 return *this;
72 }
74
76
83 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template <typename TagsT = Aws::Vector<Tag>>
86 void SetTags(TagsT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags = std::forward<TagsT>(value);
89 }
90 template <typename TagsT = Aws::Vector<Tag>>
92 SetTags(std::forward<TagsT>(value));
93 return *this;
94 }
95 template <typename TagsT = Tag>
97 m_tagsHasBeenSet = true;
98 m_tags.emplace_back(std::forward<TagsT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_codeRepositoryName;
104
105 GitConfig m_gitConfig;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_codeRepositoryNameHasBeenSet = false;
109 bool m_gitConfigHasBeenSet = false;
110 bool m_tagsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace SageMaker
115} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateCodeRepositoryRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateCodeRepositoryRequest & AddTags(TagsT &&value)
CreateCodeRepositoryRequest & WithGitConfig(GitConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCodeRepositoryRequest & WithCodeRepositoryName(CodeRepositoryNameT &&value)
AWS_SAGEMAKER_API CreateCodeRepositoryRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector