{-# 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.GreengrassV2.Types.ComponentVersionListItem -- 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.GreengrassV2.Types.ComponentVersionListItem 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 -- | Contains information about a component version in a list. -- -- /See:/ 'newComponentVersionListItem' smart constructor. data ComponentVersionListItem = ComponentVersionListItem' { -- | The -- -- of the component version. arn :: Prelude.Maybe Prelude.Text, -- | The name of the component. componentName :: Prelude.Maybe Prelude.Text, -- | The version of the component. componentVersion :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ComponentVersionListItem' 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: -- -- 'arn', 'componentVersionListItem_arn' - The -- -- of the component version. -- -- 'componentName', 'componentVersionListItem_componentName' - The name of the component. -- -- 'componentVersion', 'componentVersionListItem_componentVersion' - The version of the component. newComponentVersionListItem :: ComponentVersionListItem newComponentVersionListItem = ComponentVersionListItem' { arn = Prelude.Nothing, componentName = Prelude.Nothing, componentVersion = Prelude.Nothing } -- | The -- -- of the component version. componentVersionListItem_arn :: Lens.Lens' ComponentVersionListItem (Prelude.Maybe Prelude.Text) componentVersionListItem_arn = Lens.lens (\ComponentVersionListItem' {arn} -> arn) (\s@ComponentVersionListItem' {} a -> s {arn = a} :: ComponentVersionListItem) -- | The name of the component. componentVersionListItem_componentName :: Lens.Lens' ComponentVersionListItem (Prelude.Maybe Prelude.Text) componentVersionListItem_componentName = Lens.lens (\ComponentVersionListItem' {componentName} -> componentName) (\s@ComponentVersionListItem' {} a -> s {componentName = a} :: ComponentVersionListItem) -- | The version of the component. componentVersionListItem_componentVersion :: Lens.Lens' ComponentVersionListItem (Prelude.Maybe Prelude.Text) componentVersionListItem_componentVersion = Lens.lens (\ComponentVersionListItem' {componentVersion} -> componentVersion) (\s@ComponentVersionListItem' {} a -> s {componentVersion = a} :: ComponentVersionListItem) instance Data.FromJSON ComponentVersionListItem where parseJSON = Data.withObject "ComponentVersionListItem" ( \x -> ComponentVersionListItem' Prelude.<$> (x Data..:? "arn") Prelude.<*> (x Data..:? "componentName") Prelude.<*> (x Data..:? "componentVersion") ) instance Prelude.Hashable ComponentVersionListItem where hashWithSalt _salt ComponentVersionListItem' {..} = _salt `Prelude.hashWithSalt` arn `Prelude.hashWithSalt` componentName `Prelude.hashWithSalt` componentVersion instance Prelude.NFData ComponentVersionListItem where rnf ComponentVersionListItem' {..} = Prelude.rnf arn `Prelude.seq` Prelude.rnf componentName `Prelude.seq` Prelude.rnf componentVersion