{-# 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.SSM.Types.ReviewInformation -- 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.SSM.Types.ReviewInformation 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 import Amazonka.SSM.Types.ReviewStatus -- | Information about the result of a document review request. -- -- /See:/ 'newReviewInformation' smart constructor. data ReviewInformation = ReviewInformation' { -- | The time that the reviewer took action on the document review request. reviewedTime :: Prelude.Maybe Data.POSIX, -- | The reviewer assigned to take action on the document review request. reviewer :: Prelude.Maybe Prelude.Text, -- | The current status of the document review request. status :: Prelude.Maybe ReviewStatus } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ReviewInformation' 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: -- -- 'reviewedTime', 'reviewInformation_reviewedTime' - The time that the reviewer took action on the document review request. -- -- 'reviewer', 'reviewInformation_reviewer' - The reviewer assigned to take action on the document review request. -- -- 'status', 'reviewInformation_status' - The current status of the document review request. newReviewInformation :: ReviewInformation newReviewInformation = ReviewInformation' { reviewedTime = Prelude.Nothing, reviewer = Prelude.Nothing, status = Prelude.Nothing } -- | The time that the reviewer took action on the document review request. reviewInformation_reviewedTime :: Lens.Lens' ReviewInformation (Prelude.Maybe Prelude.UTCTime) reviewInformation_reviewedTime = Lens.lens (\ReviewInformation' {reviewedTime} -> reviewedTime) (\s@ReviewInformation' {} a -> s {reviewedTime = a} :: ReviewInformation) Prelude.. Lens.mapping Data._Time -- | The reviewer assigned to take action on the document review request. reviewInformation_reviewer :: Lens.Lens' ReviewInformation (Prelude.Maybe Prelude.Text) reviewInformation_reviewer = Lens.lens (\ReviewInformation' {reviewer} -> reviewer) (\s@ReviewInformation' {} a -> s {reviewer = a} :: ReviewInformation) -- | The current status of the document review request. reviewInformation_status :: Lens.Lens' ReviewInformation (Prelude.Maybe ReviewStatus) reviewInformation_status = Lens.lens (\ReviewInformation' {status} -> status) (\s@ReviewInformation' {} a -> s {status = a} :: ReviewInformation) instance Data.FromJSON ReviewInformation where parseJSON = Data.withObject "ReviewInformation" ( \x -> ReviewInformation' Prelude.<$> (x Data..:? "ReviewedTime") Prelude.<*> (x Data..:? "Reviewer") Prelude.<*> (x Data..:? "Status") ) instance Prelude.Hashable ReviewInformation where hashWithSalt _salt ReviewInformation' {..} = _salt `Prelude.hashWithSalt` reviewedTime `Prelude.hashWithSalt` reviewer `Prelude.hashWithSalt` status instance Prelude.NFData ReviewInformation where rnf ReviewInformation' {..} = Prelude.rnf reviewedTime `Prelude.seq` Prelude.rnf reviewer `Prelude.seq` Prelude.rnf status