{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.ECRPublic.Types.RegistryCatalogData -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.ECRPublic.Types.RegistryCatalogData where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | The metadata for a public registry. -- -- /See:/ 'newRegistryCatalogData' smart constructor. data RegistryCatalogData = RegistryCatalogData' { -- | The display name for a public registry. This appears on the Amazon ECR -- Public Gallery. -- -- Only accounts that have the verified account badge can have a registry -- display name. displayName :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'RegistryCatalogData' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'displayName', 'registryCatalogData_displayName' - The display name for a public registry. This appears on the Amazon ECR -- Public Gallery. -- -- Only accounts that have the verified account badge can have a registry -- display name. newRegistryCatalogData :: RegistryCatalogData newRegistryCatalogData = RegistryCatalogData' {displayName = Prelude.Nothing} -- | The display name for a public registry. This appears on the Amazon ECR -- Public Gallery. -- -- Only accounts that have the verified account badge can have a registry -- display name. registryCatalogData_displayName :: Lens.Lens' RegistryCatalogData (Prelude.Maybe Prelude.Text) registryCatalogData_displayName = Lens.lens (\RegistryCatalogData' {displayName} -> displayName) (\s@RegistryCatalogData' {} a -> s {displayName = a} :: RegistryCatalogData) instance Data.FromJSON RegistryCatalogData where parseJSON = Data.withObject "RegistryCatalogData" ( \x -> RegistryCatalogData' Prelude.<$> (x Data..:? "displayName") ) instance Prelude.Hashable RegistryCatalogData where hashWithSalt _salt RegistryCatalogData' {..} = _salt `Prelude.hashWithSalt` displayName instance Prelude.NFData RegistryCatalogData where rnf RegistryCatalogData' {..} = Prelude.rnf displayName