AWS SDK for C++  1.9.154
AWS SDK for C++
UpdateCodeRepositoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SageMaker
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateCodeRepository"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetCodeRepositoryName() const{ return m_codeRepositoryName; }
42 
46  inline bool CodeRepositoryNameHasBeenSet() const { return m_codeRepositoryNameHasBeenSet; }
47 
51  inline void SetCodeRepositoryName(const Aws::String& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = value; }
52 
56  inline void SetCodeRepositoryName(Aws::String&& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = std::move(value); }
57 
61  inline void SetCodeRepositoryName(const char* value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName.assign(value); }
62 
66  inline UpdateCodeRepositoryRequest& WithCodeRepositoryName(const Aws::String& value) { SetCodeRepositoryName(value); return *this;}
67 
71  inline UpdateCodeRepositoryRequest& WithCodeRepositoryName(Aws::String&& value) { SetCodeRepositoryName(std::move(value)); return *this;}
72 
76  inline UpdateCodeRepositoryRequest& WithCodeRepositoryName(const char* value) { SetCodeRepositoryName(value); return *this;}
77 
78 
87  inline const GitConfigForUpdate& GetGitConfig() const{ return m_gitConfig; }
88 
97  inline bool GitConfigHasBeenSet() const { return m_gitConfigHasBeenSet; }
98 
107  inline void SetGitConfig(const GitConfigForUpdate& value) { m_gitConfigHasBeenSet = true; m_gitConfig = value; }
108 
117  inline void SetGitConfig(GitConfigForUpdate&& value) { m_gitConfigHasBeenSet = true; m_gitConfig = std::move(value); }
118 
127  inline UpdateCodeRepositoryRequest& WithGitConfig(const GitConfigForUpdate& value) { SetGitConfig(value); return *this;}
128 
137  inline UpdateCodeRepositoryRequest& WithGitConfig(GitConfigForUpdate&& value) { SetGitConfig(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::String m_codeRepositoryName;
142  bool m_codeRepositoryNameHasBeenSet;
143 
144  GitConfigForUpdate m_gitConfig;
145  bool m_gitConfigHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace SageMaker
150 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::GetCodeRepositoryName
const Aws::String & GetCodeRepositoryName() const
Definition: UpdateCodeRepositoryRequest.h:41
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::SetCodeRepositoryName
void SetCodeRepositoryName(Aws::String &&value)
Definition: UpdateCodeRepositoryRequest.h:56
SageMaker_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::SetGitConfig
void SetGitConfig(GitConfigForUpdate &&value)
Definition: UpdateCodeRepositoryRequest.h:117
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::CodeRepositoryNameHasBeenSet
bool CodeRepositoryNameHasBeenSet() const
Definition: UpdateCodeRepositoryRequest.h:46
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCodeRepositoryRequest.h:31
Aws::SageMaker::Model::UpdateCodeRepositoryRequest
Definition: UpdateCodeRepositoryRequest.h:23
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::SetCodeRepositoryName
void SetCodeRepositoryName(const Aws::String &value)
Definition: UpdateCodeRepositoryRequest.h:51
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::WithGitConfig
UpdateCodeRepositoryRequest & WithGitConfig(const GitConfigForUpdate &value)
Definition: UpdateCodeRepositoryRequest.h:127
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::WithCodeRepositoryName
UpdateCodeRepositoryRequest & WithCodeRepositoryName(const Aws::String &value)
Definition: UpdateCodeRepositoryRequest.h:66
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GitConfigForUpdate.h
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::UpdateCodeRepositoryRequest
UpdateCodeRepositoryRequest()
Aws::SageMaker::Model::GitConfigForUpdate
Definition: GitConfigForUpdate.h:33
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::WithGitConfig
UpdateCodeRepositoryRequest & WithGitConfig(GitConfigForUpdate &&value)
Definition: UpdateCodeRepositoryRequest.h:137
AWSString.h
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::SetCodeRepositoryName
void SetCodeRepositoryName(const char *value)
Definition: UpdateCodeRepositoryRequest.h:61
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::WithCodeRepositoryName
UpdateCodeRepositoryRequest & WithCodeRepositoryName(const char *value)
Definition: UpdateCodeRepositoryRequest.h:76
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::WithCodeRepositoryName
UpdateCodeRepositoryRequest & WithCodeRepositoryName(Aws::String &&value)
Definition: UpdateCodeRepositoryRequest.h:71
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::GetGitConfig
const GitConfigForUpdate & GetGitConfig() const
Definition: UpdateCodeRepositoryRequest.h:87
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::GitConfigHasBeenSet
bool GitConfigHasBeenSet() const
Definition: UpdateCodeRepositoryRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::UpdateCodeRepositoryRequest::SetGitConfig
void SetGitConfig(const GitConfigForUpdate &value)
Definition: UpdateCodeRepositoryRequest.h:107