AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateCodeRepositoryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/GitConfigForUpdate.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API UpdateCodeRepositoryRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateCodeRepository"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetCodeRepositoryName() const { return m_codeRepositoryName; }
39 inline bool CodeRepositoryNameHasBeenSet() const { return m_codeRepositoryNameHasBeenSet; }
40 template <typename CodeRepositoryNameT = Aws::String>
41 void SetCodeRepositoryName(CodeRepositoryNameT&& value) {
42 m_codeRepositoryNameHasBeenSet = true;
43 m_codeRepositoryName = std::forward<CodeRepositoryNameT>(value);
44 }
45 template <typename CodeRepositoryNameT = Aws::String>
47 SetCodeRepositoryName(std::forward<CodeRepositoryNameT>(value));
48 return *this;
49 }
51
53
61 inline const GitConfigForUpdate& GetGitConfig() const { return m_gitConfig; }
62 inline bool GitConfigHasBeenSet() const { return m_gitConfigHasBeenSet; }
63 template <typename GitConfigT = GitConfigForUpdate>
64 void SetGitConfig(GitConfigT&& value) {
65 m_gitConfigHasBeenSet = true;
66 m_gitConfig = std::forward<GitConfigT>(value);
67 }
68 template <typename GitConfigT = GitConfigForUpdate>
70 SetGitConfig(std::forward<GitConfigT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_codeRepositoryName;
76
77 GitConfigForUpdate m_gitConfig;
78 bool m_codeRepositoryNameHasBeenSet = false;
79 bool m_gitConfigHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace SageMaker
84} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateCodeRepositoryRequest & WithCodeRepositoryName(CodeRepositoryNameT &&value)
UpdateCodeRepositoryRequest & WithGitConfig(GitConfigT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API UpdateCodeRepositoryRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String