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

Contains information about a signing job.

See Also:

AWS * API Reference

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

The ID of the signing job.

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

The ID of the signing job.

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

The ID of the signing job.

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

The ID of the signing job.

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

The ID of the signing job.

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

The ID of the signing job.

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

The ID of the signing job.

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

The ID of the signing job.

*/ inline SigningJob& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

A Source that contains information about a signing job's code * image source.

*/ inline const Source& GetSource() const{ return m_source; } /** *

A Source that contains information about a signing job's code * image source.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

A Source that contains information about a signing job's code * image source.

*/ inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

A Source that contains information about a signing job's code * image source.

*/ inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

A Source that contains information about a signing job's code * image source.

*/ inline SigningJob& WithSource(const Source& value) { SetSource(value); return *this;} /** *

A Source that contains information about a signing job's code * image source.

*/ inline SigningJob& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} /** *

A SignedObject structure that contains information about a * signing job's signed code image.

*/ inline const SignedObject& GetSignedObject() const{ return m_signedObject; } /** *

A SignedObject structure that contains information about a * signing job's signed code image.

*/ inline bool SignedObjectHasBeenSet() const { return m_signedObjectHasBeenSet; } /** *

A SignedObject structure that contains information about a * signing job's signed code image.

*/ inline void SetSignedObject(const SignedObject& value) { m_signedObjectHasBeenSet = true; m_signedObject = value; } /** *

A SignedObject structure that contains information about a * signing job's signed code image.

*/ inline void SetSignedObject(SignedObject&& value) { m_signedObjectHasBeenSet = true; m_signedObject = std::move(value); } /** *

A SignedObject structure that contains information about a * signing job's signed code image.

*/ inline SigningJob& WithSignedObject(const SignedObject& value) { SetSignedObject(value); return *this;} /** *

A SignedObject structure that contains information about a * signing job's signed code image.

*/ inline SigningJob& WithSignedObject(SignedObject&& value) { SetSignedObject(std::move(value)); return *this;} /** *

A SigningMaterial object that contains the Amazon Resource Name * (ARN) of the certificate used for the signing job.

*/ inline const SigningMaterial& GetSigningMaterial() const{ return m_signingMaterial; } /** *

A SigningMaterial object that contains the Amazon Resource Name * (ARN) of the certificate used for the signing job.

*/ inline bool SigningMaterialHasBeenSet() const { return m_signingMaterialHasBeenSet; } /** *

A SigningMaterial object that contains the Amazon Resource Name * (ARN) of the certificate used for the signing job.

*/ inline void SetSigningMaterial(const SigningMaterial& value) { m_signingMaterialHasBeenSet = true; m_signingMaterial = value; } /** *

A SigningMaterial object that contains the Amazon Resource Name * (ARN) of the certificate used for the signing job.

*/ inline void SetSigningMaterial(SigningMaterial&& value) { m_signingMaterialHasBeenSet = true; m_signingMaterial = std::move(value); } /** *

A SigningMaterial object that contains the Amazon Resource Name * (ARN) of the certificate used for the signing job.

*/ inline SigningJob& WithSigningMaterial(const SigningMaterial& value) { SetSigningMaterial(value); return *this;} /** *

A SigningMaterial object that contains the Amazon Resource Name * (ARN) of the certificate used for the signing job.

*/ inline SigningJob& WithSigningMaterial(SigningMaterial&& value) { SetSigningMaterial(std::move(value)); return *this;} /** *

The date and time that the signing job was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time that the signing job was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date and time that the signing job was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The date and time that the signing job was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The date and time that the signing job was created.

*/ inline SigningJob& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time that the signing job was created.

*/ inline SigningJob& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The status of the signing job.

*/ inline const SigningStatus& GetStatus() const{ return m_status; } /** *

The status of the signing job.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the signing job.

*/ inline void SetStatus(const SigningStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the signing job.

*/ inline void SetStatus(SigningStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the signing job.

*/ inline SigningJob& WithStatus(const SigningStatus& value) { SetStatus(value); return *this;} /** *

The status of the signing job.

*/ inline SigningJob& WithStatus(SigningStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Indicates whether the signing job is revoked.

*/ inline bool GetIsRevoked() const{ return m_isRevoked; } /** *

Indicates whether the signing job is revoked.

*/ inline bool IsRevokedHasBeenSet() const { return m_isRevokedHasBeenSet; } /** *

Indicates whether the signing job is revoked.

*/ inline void SetIsRevoked(bool value) { m_isRevokedHasBeenSet = true; m_isRevoked = value; } /** *

Indicates whether the signing job is revoked.

*/ inline SigningJob& WithIsRevoked(bool value) { SetIsRevoked(value); return *this;} /** *

The name of the signing profile that created a signing job.

*/ inline const Aws::String& GetProfileName() const{ return m_profileName; } /** *

The name of the signing profile that created a signing job.

*/ inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; } /** *

The name of the signing profile that created a signing job.

*/ inline void SetProfileName(const Aws::String& value) { m_profileNameHasBeenSet = true; m_profileName = value; } /** *

The name of the signing profile that created a signing job.

*/ inline void SetProfileName(Aws::String&& value) { m_profileNameHasBeenSet = true; m_profileName = std::move(value); } /** *

The name of the signing profile that created a signing job.

*/ inline void SetProfileName(const char* value) { m_profileNameHasBeenSet = true; m_profileName.assign(value); } /** *

The name of the signing profile that created a signing job.

*/ inline SigningJob& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;} /** *

The name of the signing profile that created a signing job.

*/ inline SigningJob& WithProfileName(Aws::String&& value) { SetProfileName(std::move(value)); return *this;} /** *

The name of the signing profile that created a signing job.

*/ inline SigningJob& WithProfileName(const char* value) { SetProfileName(value); return *this;} /** *

The version of the signing profile that created a signing job.

*/ inline const Aws::String& GetProfileVersion() const{ return m_profileVersion; } /** *

The version of the signing profile that created a signing job.

*/ inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; } /** *

The version of the signing profile that created a signing job.

*/ inline void SetProfileVersion(const Aws::String& value) { m_profileVersionHasBeenSet = true; m_profileVersion = value; } /** *

The version of the signing profile that created a signing job.

*/ inline void SetProfileVersion(Aws::String&& value) { m_profileVersionHasBeenSet = true; m_profileVersion = std::move(value); } /** *

The version of the signing profile that created a signing job.

*/ inline void SetProfileVersion(const char* value) { m_profileVersionHasBeenSet = true; m_profileVersion.assign(value); } /** *

The version of the signing profile that created a signing job.

*/ inline SigningJob& WithProfileVersion(const Aws::String& value) { SetProfileVersion(value); return *this;} /** *

The version of the signing profile that created a signing job.

*/ inline SigningJob& WithProfileVersion(Aws::String&& value) { SetProfileVersion(std::move(value)); return *this;} /** *

The version of the signing profile that created a signing job.

*/ inline SigningJob& WithProfileVersion(const char* value) { SetProfileVersion(value); return *this;} /** *

The unique identifier for a signing platform.

*/ inline const Aws::String& GetPlatformId() const{ return m_platformId; } /** *

The unique identifier for a signing platform.

*/ inline bool PlatformIdHasBeenSet() const { return m_platformIdHasBeenSet; } /** *

The unique identifier for a signing platform.

*/ inline void SetPlatformId(const Aws::String& value) { m_platformIdHasBeenSet = true; m_platformId = value; } /** *

The unique identifier for a signing platform.

*/ inline void SetPlatformId(Aws::String&& value) { m_platformIdHasBeenSet = true; m_platformId = std::move(value); } /** *

The unique identifier for a signing platform.

*/ inline void SetPlatformId(const char* value) { m_platformIdHasBeenSet = true; m_platformId.assign(value); } /** *

The unique identifier for a signing platform.

*/ inline SigningJob& WithPlatformId(const Aws::String& value) { SetPlatformId(value); return *this;} /** *

The unique identifier for a signing platform.

*/ inline SigningJob& WithPlatformId(Aws::String&& value) { SetPlatformId(std::move(value)); return *this;} /** *

The unique identifier for a signing platform.

*/ inline SigningJob& WithPlatformId(const char* value) { SetPlatformId(value); return *this;} /** *

The name of a signing platform.

*/ inline const Aws::String& GetPlatformDisplayName() const{ return m_platformDisplayName; } /** *

The name of a signing platform.

*/ inline bool PlatformDisplayNameHasBeenSet() const { return m_platformDisplayNameHasBeenSet; } /** *

The name of a signing platform.

*/ inline void SetPlatformDisplayName(const Aws::String& value) { m_platformDisplayNameHasBeenSet = true; m_platformDisplayName = value; } /** *

The name of a signing platform.

*/ inline void SetPlatformDisplayName(Aws::String&& value) { m_platformDisplayNameHasBeenSet = true; m_platformDisplayName = std::move(value); } /** *

The name of a signing platform.

*/ inline void SetPlatformDisplayName(const char* value) { m_platformDisplayNameHasBeenSet = true; m_platformDisplayName.assign(value); } /** *

The name of a signing platform.

*/ inline SigningJob& WithPlatformDisplayName(const Aws::String& value) { SetPlatformDisplayName(value); return *this;} /** *

The name of a signing platform.

*/ inline SigningJob& WithPlatformDisplayName(Aws::String&& value) { SetPlatformDisplayName(std::move(value)); return *this;} /** *

The name of a signing platform.

*/ inline SigningJob& WithPlatformDisplayName(const char* value) { SetPlatformDisplayName(value); return *this;} /** *

The time when the signature of a signing job expires.

*/ inline const Aws::Utils::DateTime& GetSignatureExpiresAt() const{ return m_signatureExpiresAt; } /** *

The time when the signature of a signing job expires.

*/ inline bool SignatureExpiresAtHasBeenSet() const { return m_signatureExpiresAtHasBeenSet; } /** *

The time when the signature of a signing job expires.

*/ inline void SetSignatureExpiresAt(const Aws::Utils::DateTime& value) { m_signatureExpiresAtHasBeenSet = true; m_signatureExpiresAt = value; } /** *

The time when the signature of a signing job expires.

*/ inline void SetSignatureExpiresAt(Aws::Utils::DateTime&& value) { m_signatureExpiresAtHasBeenSet = true; m_signatureExpiresAt = std::move(value); } /** *

The time when the signature of a signing job expires.

*/ inline SigningJob& WithSignatureExpiresAt(const Aws::Utils::DateTime& value) { SetSignatureExpiresAt(value); return *this;} /** *

The time when the signature of a signing job expires.

*/ inline SigningJob& WithSignatureExpiresAt(Aws::Utils::DateTime&& value) { SetSignatureExpiresAt(std::move(value)); return *this;} /** *

The AWS account ID of the job owner.

*/ inline const Aws::String& GetJobOwner() const{ return m_jobOwner; } /** *

The AWS account ID of the job owner.

*/ inline bool JobOwnerHasBeenSet() const { return m_jobOwnerHasBeenSet; } /** *

The AWS account ID of the job owner.

*/ inline void SetJobOwner(const Aws::String& value) { m_jobOwnerHasBeenSet = true; m_jobOwner = value; } /** *

The AWS account ID of the job owner.

*/ inline void SetJobOwner(Aws::String&& value) { m_jobOwnerHasBeenSet = true; m_jobOwner = std::move(value); } /** *

The AWS account ID of the job owner.

*/ inline void SetJobOwner(const char* value) { m_jobOwnerHasBeenSet = true; m_jobOwner.assign(value); } /** *

The AWS account ID of the job owner.

*/ inline SigningJob& WithJobOwner(const Aws::String& value) { SetJobOwner(value); return *this;} /** *

The AWS account ID of the job owner.

*/ inline SigningJob& WithJobOwner(Aws::String&& value) { SetJobOwner(std::move(value)); return *this;} /** *

The AWS account ID of the job owner.

*/ inline SigningJob& WithJobOwner(const char* value) { SetJobOwner(value); return *this;} /** *

The AWS account ID of the job invoker.

*/ inline const Aws::String& GetJobInvoker() const{ return m_jobInvoker; } /** *

The AWS account ID of the job invoker.

*/ inline bool JobInvokerHasBeenSet() const { return m_jobInvokerHasBeenSet; } /** *

The AWS account ID of the job invoker.

*/ inline void SetJobInvoker(const Aws::String& value) { m_jobInvokerHasBeenSet = true; m_jobInvoker = value; } /** *

The AWS account ID of the job invoker.

*/ inline void SetJobInvoker(Aws::String&& value) { m_jobInvokerHasBeenSet = true; m_jobInvoker = std::move(value); } /** *

The AWS account ID of the job invoker.

*/ inline void SetJobInvoker(const char* value) { m_jobInvokerHasBeenSet = true; m_jobInvoker.assign(value); } /** *

The AWS account ID of the job invoker.

*/ inline SigningJob& WithJobInvoker(const Aws::String& value) { SetJobInvoker(value); return *this;} /** *

The AWS account ID of the job invoker.

*/ inline SigningJob& WithJobInvoker(Aws::String&& value) { SetJobInvoker(std::move(value)); return *this;} /** *

The AWS account ID of the job invoker.

*/ inline SigningJob& WithJobInvoker(const char* value) { SetJobInvoker(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Source m_source; bool m_sourceHasBeenSet = false; SignedObject m_signedObject; bool m_signedObjectHasBeenSet = false; SigningMaterial m_signingMaterial; bool m_signingMaterialHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; SigningStatus m_status; bool m_statusHasBeenSet = false; bool m_isRevoked; bool m_isRevokedHasBeenSet = false; Aws::String m_profileName; bool m_profileNameHasBeenSet = false; Aws::String m_profileVersion; bool m_profileVersionHasBeenSet = false; Aws::String m_platformId; bool m_platformIdHasBeenSet = false; Aws::String m_platformDisplayName; bool m_platformDisplayNameHasBeenSet = false; Aws::Utils::DateTime m_signatureExpiresAt; bool m_signatureExpiresAtHasBeenSet = false; Aws::String m_jobOwner; bool m_jobOwnerHasBeenSet = false; Aws::String m_jobInvoker; bool m_jobInvokerHasBeenSet = false; }; } // namespace Model } // namespace signer } // namespace Aws