AWS SDK for C++  1.9.40
AWS SDK for C++
CreateCodeRepositoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetCodeRepositoryName() const{ return m_codeRepositoryName; }
45 
50  inline bool CodeRepositoryNameHasBeenSet() const { return m_codeRepositoryNameHasBeenSet; }
51 
56  inline void SetCodeRepositoryName(const Aws::String& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = value; }
57 
62  inline void SetCodeRepositoryName(Aws::String&& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = std::move(value); }
63 
68  inline void SetCodeRepositoryName(const char* value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName.assign(value); }
69 
74  inline CreateCodeRepositoryRequest& WithCodeRepositoryName(const Aws::String& value) { SetCodeRepositoryName(value); return *this;}
75 
80  inline CreateCodeRepositoryRequest& WithCodeRepositoryName(Aws::String&& value) { SetCodeRepositoryName(std::move(value)); return *this;}
81 
86  inline CreateCodeRepositoryRequest& WithCodeRepositoryName(const char* value) { SetCodeRepositoryName(value); return *this;}
87 
88 
94  inline const GitConfig& GetGitConfig() const{ return m_gitConfig; }
95 
101  inline bool GitConfigHasBeenSet() const { return m_gitConfigHasBeenSet; }
102 
108  inline void SetGitConfig(const GitConfig& value) { m_gitConfigHasBeenSet = true; m_gitConfig = value; }
109 
115  inline void SetGitConfig(GitConfig&& value) { m_gitConfigHasBeenSet = true; m_gitConfig = std::move(value); }
116 
122  inline CreateCodeRepositoryRequest& WithGitConfig(const GitConfig& value) { SetGitConfig(value); return *this;}
123 
129  inline CreateCodeRepositoryRequest& WithGitConfig(GitConfig&& value) { SetGitConfig(std::move(value)); return *this;}
130 
131 
139  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
140 
148  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 
157  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 
166  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
167 
175  inline CreateCodeRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
176 
184  inline CreateCodeRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
185 
193  inline CreateCodeRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
194 
202  inline CreateCodeRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
203 
204  private:
205 
206  Aws::String m_codeRepositoryName;
207  bool m_codeRepositoryNameHasBeenSet;
208 
209  GitConfig m_gitConfig;
210  bool m_gitConfigHasBeenSet;
211 
212  Aws::Vector<Tag> m_tags;
213  bool m_tagsHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace SageMaker
218 } // namespace Aws
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateCodeRepositoryRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateCodeRepositoryRequest.h:139
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateCodeRepositoryRequest::CreateCodeRepositoryRequest
CreateCodeRepositoryRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithGitConfig
CreateCodeRepositoryRequest & WithGitConfig(const GitConfig &value)
Definition: CreateCodeRepositoryRequest.h:122
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithCodeRepositoryName
CreateCodeRepositoryRequest & WithCodeRepositoryName(Aws::String &&value)
Definition: CreateCodeRepositoryRequest.h:80
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithTags
CreateCodeRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateCodeRepositoryRequest.h:184
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateCodeRepositoryRequest.h:166
Aws::SageMaker::Model::CreateCodeRepositoryRequest::CodeRepositoryNameHasBeenSet
bool CodeRepositoryNameHasBeenSet() const
Definition: CreateCodeRepositoryRequest.h:50
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetCodeRepositoryName
void SetCodeRepositoryName(const Aws::String &value)
Definition: CreateCodeRepositoryRequest.h:56
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateCodeRepositoryRequest.h:157
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithCodeRepositoryName
CreateCodeRepositoryRequest & WithCodeRepositoryName(const char *value)
Definition: CreateCodeRepositoryRequest.h:86
Aws::SageMaker::Model::CreateCodeRepositoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateCodeRepositoryRequest.h:148
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetGitConfig
void SetGitConfig(GitConfig &&value)
Definition: CreateCodeRepositoryRequest.h:115
Aws::SageMaker::Model::CreateCodeRepositoryRequest
Definition: CreateCodeRepositoryRequest.h:25
AWSVector.h
Aws::SageMaker::Model::CreateCodeRepositoryRequest::AddTags
CreateCodeRepositoryRequest & AddTags(const Tag &value)
Definition: CreateCodeRepositoryRequest.h:193
Aws::SageMaker::Model::CreateCodeRepositoryRequest::GitConfigHasBeenSet
bool GitConfigHasBeenSet() const
Definition: CreateCodeRepositoryRequest.h:101
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetCodeRepositoryName
void SetCodeRepositoryName(const char *value)
Definition: CreateCodeRepositoryRequest.h:68
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
GitConfig.h
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateCodeRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCodeRepositoryRequest.h:33
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetCodeRepositoryName
void SetCodeRepositoryName(Aws::String &&value)
Definition: CreateCodeRepositoryRequest.h:62
AWSString.h
Aws::SageMaker::Model::CreateCodeRepositoryRequest::GetGitConfig
const GitConfig & GetGitConfig() const
Definition: CreateCodeRepositoryRequest.h:94
Tag.h
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithCodeRepositoryName
CreateCodeRepositoryRequest & WithCodeRepositoryName(const Aws::String &value)
Definition: CreateCodeRepositoryRequest.h:74
Aws::SageMaker::Model::CreateCodeRepositoryRequest::GetCodeRepositoryName
const Aws::String & GetCodeRepositoryName() const
Definition: CreateCodeRepositoryRequest.h:44
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SetGitConfig
void SetGitConfig(const GitConfig &value)
Definition: CreateCodeRepositoryRequest.h:108
Aws::SageMaker::Model::CreateCodeRepositoryRequest::AddTags
CreateCodeRepositoryRequest & AddTags(Tag &&value)
Definition: CreateCodeRepositoryRequest.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithGitConfig
CreateCodeRepositoryRequest & WithGitConfig(GitConfig &&value)
Definition: CreateCodeRepositoryRequest.h:129
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateCodeRepositoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::GitConfig
Definition: GitConfig.h:33
Aws::SageMaker::Model::CreateCodeRepositoryRequest::WithTags
CreateCodeRepositoryRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateCodeRepositoryRequest.h:175
Aws::SageMaker::Model::CreateCodeRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override