AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCodeRepositoryRequest.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 <aws/sagemaker/model/GitConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API CreateCodeRepositoryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCodeRepository"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetCodeRepositoryName() const { return m_codeRepositoryName; }
46 inline bool CodeRepositoryNameHasBeenSet() const { return m_codeRepositoryNameHasBeenSet; }
47 template<typename CodeRepositoryNameT = Aws::String>
48 void SetCodeRepositoryName(CodeRepositoryNameT&& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = std::forward<CodeRepositoryNameT>(value); }
49 template<typename CodeRepositoryNameT = Aws::String>
50 CreateCodeRepositoryRequest& WithCodeRepositoryName(CodeRepositoryNameT&& value) { SetCodeRepositoryName(std::forward<CodeRepositoryNameT>(value)); return *this;}
52
54
59 inline const GitConfig& GetGitConfig() const { return m_gitConfig; }
60 inline bool GitConfigHasBeenSet() const { return m_gitConfigHasBeenSet; }
61 template<typename GitConfigT = GitConfig>
62 void SetGitConfig(GitConfigT&& value) { m_gitConfigHasBeenSet = true; m_gitConfig = std::forward<GitConfigT>(value); }
63 template<typename GitConfigT = GitConfig>
64 CreateCodeRepositoryRequest& WithGitConfig(GitConfigT&& value) { SetGitConfig(std::forward<GitConfigT>(value)); return *this;}
66
68
75 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template<typename TagsT = Aws::Vector<Tag>>
78 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
79 template<typename TagsT = Aws::Vector<Tag>>
80 CreateCodeRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
81 template<typename TagsT = Tag>
82 CreateCodeRepositoryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
84 private:
85
86 Aws::String m_codeRepositoryName;
87 bool m_codeRepositoryNameHasBeenSet = false;
88
89 GitConfig m_gitConfig;
90 bool m_gitConfigHasBeenSet = false;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SageMaker
98} // 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