/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

A response to a PollForThirdPartyJobs request returned by * CodePipeline when there is a job to be worked on by a partner * action.

See Also:

AWS * API Reference

*/ class ThirdPartyJob { public: AWS_CODEPIPELINE_API ThirdPartyJob(); AWS_CODEPIPELINE_API ThirdPartyJob(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API ThirdPartyJob& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline ThirdPartyJob& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline ThirdPartyJob& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The clientToken portion of the clientId and * clientToken pair used to verify that the calling entity is allowed * access to the job and its details.

*/ inline ThirdPartyJob& WithClientId(const char* value) { SetClientId(value); return *this;} /** *

The identifier used to identify the job in CodePipeline.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The identifier used to identify the job in CodePipeline.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The identifier used to identify the job in CodePipeline.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The identifier used to identify the job in CodePipeline.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The identifier used to identify the job in CodePipeline.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The identifier used to identify the job in CodePipeline.

*/ inline ThirdPartyJob& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The identifier used to identify the job in CodePipeline.

*/ inline ThirdPartyJob& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The identifier used to identify the job in CodePipeline.

*/ inline ThirdPartyJob& WithJobId(const char* value) { SetJobId(value); return *this;} private: Aws::String m_clientId; bool m_clientIdHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws