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

Information about an Amazon ECR image.

See Also:

AWS * API Reference

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

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline const Aws::String& GetRegistryId() const{ return m_registryId; } /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; } /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; } /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); } /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); } /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline AwsEcrContainerImageDetails& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;} /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline AwsEcrContainerImageDetails& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;} /** *

The Amazon Web Services account identifier that is associated with the * registry that the image belongs to.

*/ inline AwsEcrContainerImageDetails& WithRegistryId(const char* value) { SetRegistryId(value); return *this;} /** *

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The name of the repository that the image belongs to.

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

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline const Aws::String& GetArchitecture() const{ return m_architecture; } /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); } /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline AwsEcrContainerImageDetails& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;} /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline AwsEcrContainerImageDetails& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;} /** *

The architecture of the image. Valid values are as follows:

  • * arm64

  • i386

  • * x86_64

*/ inline AwsEcrContainerImageDetails& WithArchitecture(const char* value) { SetArchitecture(value); return *this;} /** *

The sha256 digest of the image manifest.

*/ inline const Aws::String& GetImageDigest() const{ return m_imageDigest; } /** *

The sha256 digest of the image manifest.

*/ inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; } /** *

The sha256 digest of the image manifest.

*/ inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; } /** *

The sha256 digest of the image manifest.

*/ inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); } /** *

The sha256 digest of the image manifest.

*/ inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); } /** *

The sha256 digest of the image manifest.

*/ inline AwsEcrContainerImageDetails& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *

The sha256 digest of the image manifest.

*/ inline AwsEcrContainerImageDetails& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;} /** *

The sha256 digest of the image manifest.

*/ inline AwsEcrContainerImageDetails& WithImageDigest(const char* value) { SetImageDigest(value); return *this;} /** *

The list of tags that are associated with the image.

*/ inline const Aws::Vector& GetImageTags() const{ return m_imageTags; } /** *

The list of tags that are associated with the image.

*/ inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; } /** *

The list of tags that are associated with the image.

*/ inline void SetImageTags(const Aws::Vector& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; } /** *

The list of tags that are associated with the image.

*/ inline void SetImageTags(Aws::Vector&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); } /** *

The list of tags that are associated with the image.

*/ inline AwsEcrContainerImageDetails& WithImageTags(const Aws::Vector& value) { SetImageTags(value); return *this;} /** *

The list of tags that are associated with the image.

*/ inline AwsEcrContainerImageDetails& WithImageTags(Aws::Vector&& value) { SetImageTags(std::move(value)); return *this;} /** *

The list of tags that are associated with the image.

*/ inline AwsEcrContainerImageDetails& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The list of tags that are associated with the image.

*/ inline AwsEcrContainerImageDetails& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; } /** *

The list of tags that are associated with the image.

*/ inline AwsEcrContainerImageDetails& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetImagePublishedAt() const{ return m_imagePublishedAt; } /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool ImagePublishedAtHasBeenSet() const { return m_imagePublishedAtHasBeenSet; } /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetImagePublishedAt(const Aws::String& value) { m_imagePublishedAtHasBeenSet = true; m_imagePublishedAt = value; } /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetImagePublishedAt(Aws::String&& value) { m_imagePublishedAtHasBeenSet = true; m_imagePublishedAt = std::move(value); } /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetImagePublishedAt(const char* value) { m_imagePublishedAtHasBeenSet = true; m_imagePublishedAt.assign(value); } /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsEcrContainerImageDetails& WithImagePublishedAt(const Aws::String& value) { SetImagePublishedAt(value); return *this;} /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsEcrContainerImageDetails& WithImagePublishedAt(Aws::String&& value) { SetImagePublishedAt(std::move(value)); return *this;} /** *

The date and time when the image was pushed to the repository.

Uses * the date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsEcrContainerImageDetails& WithImagePublishedAt(const char* value) { SetImagePublishedAt(value); return *this;} private: Aws::String m_registryId; bool m_registryIdHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_architecture; bool m_architectureHasBeenSet = false; Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = false; Aws::Vector m_imageTags; bool m_imageTagsHasBeenSet = false; Aws::String m_imagePublishedAt; bool m_imagePublishedAtHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws