/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class UpdateJobFromSourceControlRequest : public GlueRequest { public: AWS_GLUE_API UpdateJobFromSourceControlRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateJobFromSourceControl"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline UpdateJobFromSourceControlRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline UpdateJobFromSourceControlRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The name of the Glue job to be synchronized to or from the remote * repository.

*/ inline UpdateJobFromSourceControlRequest& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The provider for the remote repository.

*/ inline const SourceControlProvider& GetProvider() const{ return m_provider; } /** *

The provider for the remote repository.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The provider for the remote repository.

*/ inline void SetProvider(const SourceControlProvider& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The provider for the remote repository.

*/ inline void SetProvider(SourceControlProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The provider for the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithProvider(const SourceControlProvider& value) { SetProvider(value); return *this;} /** *

The provider for the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithProvider(SourceControlProvider&& value) { SetProvider(std::move(value)); return *this;} /** *

The name of the remote repository that contains the job artifacts.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the remote repository that contains the job artifacts.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the remote repository that contains the job artifacts.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the remote repository that contains the job artifacts.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the remote repository that contains the job artifacts.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the remote repository that contains the job artifacts.

*/ inline UpdateJobFromSourceControlRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the remote repository that contains the job artifacts.

*/ inline UpdateJobFromSourceControlRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the remote repository that contains the job artifacts.

*/ inline UpdateJobFromSourceControlRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The owner of the remote repository that contains the job artifacts.

*/ inline const Aws::String& GetRepositoryOwner() const{ return m_repositoryOwner; } /** *

The owner of the remote repository that contains the job artifacts.

*/ inline bool RepositoryOwnerHasBeenSet() const { return m_repositoryOwnerHasBeenSet; } /** *

The owner of the remote repository that contains the job artifacts.

*/ inline void SetRepositoryOwner(const Aws::String& value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner = value; } /** *

The owner of the remote repository that contains the job artifacts.

*/ inline void SetRepositoryOwner(Aws::String&& value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner = std::move(value); } /** *

The owner of the remote repository that contains the job artifacts.

*/ inline void SetRepositoryOwner(const char* value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner.assign(value); } /** *

The owner of the remote repository that contains the job artifacts.

*/ inline UpdateJobFromSourceControlRequest& WithRepositoryOwner(const Aws::String& value) { SetRepositoryOwner(value); return *this;} /** *

The owner of the remote repository that contains the job artifacts.

*/ inline UpdateJobFromSourceControlRequest& WithRepositoryOwner(Aws::String&& value) { SetRepositoryOwner(std::move(value)); return *this;} /** *

The owner of the remote repository that contains the job artifacts.

*/ inline UpdateJobFromSourceControlRequest& WithRepositoryOwner(const char* value) { SetRepositoryOwner(value); return *this;} /** *

An optional branch in the remote repository.

*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *

An optional branch in the remote repository.

*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *

An optional branch in the remote repository.

*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *

An optional branch in the remote repository.

*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *

An optional branch in the remote repository.

*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *

An optional branch in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *

An optional branch in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *

An optional branch in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;} /** *

An optional folder in the remote repository.

*/ inline const Aws::String& GetFolder() const{ return m_folder; } /** *

An optional folder in the remote repository.

*/ inline bool FolderHasBeenSet() const { return m_folderHasBeenSet; } /** *

An optional folder in the remote repository.

*/ inline void SetFolder(const Aws::String& value) { m_folderHasBeenSet = true; m_folder = value; } /** *

An optional folder in the remote repository.

*/ inline void SetFolder(Aws::String&& value) { m_folderHasBeenSet = true; m_folder = std::move(value); } /** *

An optional folder in the remote repository.

*/ inline void SetFolder(const char* value) { m_folderHasBeenSet = true; m_folder.assign(value); } /** *

An optional folder in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithFolder(const Aws::String& value) { SetFolder(value); return *this;} /** *

An optional folder in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithFolder(Aws::String&& value) { SetFolder(std::move(value)); return *this;} /** *

An optional folder in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithFolder(const char* value) { SetFolder(value); return *this;} /** *

A commit ID for a commit in the remote repository.

*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *

A commit ID for a commit in the remote repository.

*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *

A commit ID for a commit in the remote repository.

*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *

A commit ID for a commit in the remote repository.

*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *

A commit ID for a commit in the remote repository.

*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *

A commit ID for a commit in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *

A commit ID for a commit in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *

A commit ID for a commit in the remote repository.

*/ inline UpdateJobFromSourceControlRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;} /** *

The type of authentication, which can be an authentication token stored in * Amazon Web Services Secrets Manager, or a personal access token.

*/ inline const SourceControlAuthStrategy& GetAuthStrategy() const{ return m_authStrategy; } /** *

The type of authentication, which can be an authentication token stored in * Amazon Web Services Secrets Manager, or a personal access token.

*/ inline bool AuthStrategyHasBeenSet() const { return m_authStrategyHasBeenSet; } /** *

The type of authentication, which can be an authentication token stored in * Amazon Web Services Secrets Manager, or a personal access token.

*/ inline void SetAuthStrategy(const SourceControlAuthStrategy& value) { m_authStrategyHasBeenSet = true; m_authStrategy = value; } /** *

The type of authentication, which can be an authentication token stored in * Amazon Web Services Secrets Manager, or a personal access token.

*/ inline void SetAuthStrategy(SourceControlAuthStrategy&& value) { m_authStrategyHasBeenSet = true; m_authStrategy = std::move(value); } /** *

The type of authentication, which can be an authentication token stored in * Amazon Web Services Secrets Manager, or a personal access token.

*/ inline UpdateJobFromSourceControlRequest& WithAuthStrategy(const SourceControlAuthStrategy& value) { SetAuthStrategy(value); return *this;} /** *

The type of authentication, which can be an authentication token stored in * Amazon Web Services Secrets Manager, or a personal access token.

*/ inline UpdateJobFromSourceControlRequest& WithAuthStrategy(SourceControlAuthStrategy&& value) { SetAuthStrategy(std::move(value)); return *this;} /** *

The value of the authorization token.

*/ inline const Aws::String& GetAuthToken() const{ return m_authToken; } /** *

The value of the authorization token.

*/ inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; } /** *

The value of the authorization token.

*/ inline void SetAuthToken(const Aws::String& value) { m_authTokenHasBeenSet = true; m_authToken = value; } /** *

The value of the authorization token.

*/ inline void SetAuthToken(Aws::String&& value) { m_authTokenHasBeenSet = true; m_authToken = std::move(value); } /** *

The value of the authorization token.

*/ inline void SetAuthToken(const char* value) { m_authTokenHasBeenSet = true; m_authToken.assign(value); } /** *

The value of the authorization token.

*/ inline UpdateJobFromSourceControlRequest& WithAuthToken(const Aws::String& value) { SetAuthToken(value); return *this;} /** *

The value of the authorization token.

*/ inline UpdateJobFromSourceControlRequest& WithAuthToken(Aws::String&& value) { SetAuthToken(std::move(value)); return *this;} /** *

The value of the authorization token.

*/ inline UpdateJobFromSourceControlRequest& WithAuthToken(const char* value) { SetAuthToken(value); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet = false; SourceControlProvider m_provider; bool m_providerHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_repositoryOwner; bool m_repositoryOwnerHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; Aws::String m_folder; bool m_folderHasBeenSet = false; Aws::String m_commitId; bool m_commitIdHasBeenSet = false; SourceControlAuthStrategy m_authStrategy; bool m_authStrategyHasBeenSet = false; Aws::String m_authToken; bool m_authTokenHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws