{-# 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.CloudFront.Types.ConflictingAliasesList -- 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.CloudFront.Types.ConflictingAliasesList where import Amazonka.CloudFront.Types.ConflictingAlias 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 -- | A list of aliases (also called CNAMEs) and the CloudFront distributions -- and Amazon Web Services accounts that they are associated with. In the -- list, the distribution and account IDs are partially hidden, which -- allows you to identify the distributions and accounts that you own, but -- helps to protect the information of ones that you don\'t own. -- -- /See:/ 'newConflictingAliasesList' smart constructor. data ConflictingAliasesList = ConflictingAliasesList' { -- | Contains the conflicting aliases in the list. items :: Prelude.Maybe [ConflictingAlias], -- | The maximum number of conflicting aliases requested. maxItems :: Prelude.Maybe Prelude.Int, -- | If there are more items in the list than are in this response, this -- element is present. It contains the value that you should use in the -- @Marker@ field of a subsequent request to continue listing conflicting -- aliases where you left off. nextMarker :: Prelude.Maybe Prelude.Text, -- | The number of conflicting aliases returned in the response. quantity :: Prelude.Maybe Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ConflictingAliasesList' 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: -- -- 'items', 'conflictingAliasesList_items' - Contains the conflicting aliases in the list. -- -- 'maxItems', 'conflictingAliasesList_maxItems' - The maximum number of conflicting aliases requested. -- -- 'nextMarker', 'conflictingAliasesList_nextMarker' - If there are more items in the list than are in this response, this -- element is present. It contains the value that you should use in the -- @Marker@ field of a subsequent request to continue listing conflicting -- aliases where you left off. -- -- 'quantity', 'conflictingAliasesList_quantity' - The number of conflicting aliases returned in the response. newConflictingAliasesList :: ConflictingAliasesList newConflictingAliasesList = ConflictingAliasesList' { items = Prelude.Nothing, maxItems = Prelude.Nothing, nextMarker = Prelude.Nothing, quantity = Prelude.Nothing } -- | Contains the conflicting aliases in the list. conflictingAliasesList_items :: Lens.Lens' ConflictingAliasesList (Prelude.Maybe [ConflictingAlias]) conflictingAliasesList_items = Lens.lens (\ConflictingAliasesList' {items} -> items) (\s@ConflictingAliasesList' {} a -> s {items = a} :: ConflictingAliasesList) Prelude.. Lens.mapping Lens.coerced -- | The maximum number of conflicting aliases requested. conflictingAliasesList_maxItems :: Lens.Lens' ConflictingAliasesList (Prelude.Maybe Prelude.Int) conflictingAliasesList_maxItems = Lens.lens (\ConflictingAliasesList' {maxItems} -> maxItems) (\s@ConflictingAliasesList' {} a -> s {maxItems = a} :: ConflictingAliasesList) -- | If there are more items in the list than are in this response, this -- element is present. It contains the value that you should use in the -- @Marker@ field of a subsequent request to continue listing conflicting -- aliases where you left off. conflictingAliasesList_nextMarker :: Lens.Lens' ConflictingAliasesList (Prelude.Maybe Prelude.Text) conflictingAliasesList_nextMarker = Lens.lens (\ConflictingAliasesList' {nextMarker} -> nextMarker) (\s@ConflictingAliasesList' {} a -> s {nextMarker = a} :: ConflictingAliasesList) -- | The number of conflicting aliases returned in the response. conflictingAliasesList_quantity :: Lens.Lens' ConflictingAliasesList (Prelude.Maybe Prelude.Int) conflictingAliasesList_quantity = Lens.lens (\ConflictingAliasesList' {quantity} -> quantity) (\s@ConflictingAliasesList' {} a -> s {quantity = a} :: ConflictingAliasesList) instance Data.FromXML ConflictingAliasesList where parseXML x = ConflictingAliasesList' Prelude.<$> ( x Data..@? "Items" Core..!@ Prelude.mempty Prelude.>>= Core.may (Data.parseXMLList "ConflictingAlias") ) Prelude.<*> (x Data..@? "MaxItems") Prelude.<*> (x Data..@? "NextMarker") Prelude.<*> (x Data..@? "Quantity") instance Prelude.Hashable ConflictingAliasesList where hashWithSalt _salt ConflictingAliasesList' {..} = _salt `Prelude.hashWithSalt` items `Prelude.hashWithSalt` maxItems `Prelude.hashWithSalt` nextMarker `Prelude.hashWithSalt` quantity instance Prelude.NFData ConflictingAliasesList where rnf ConflictingAliasesList' {..} = Prelude.rnf items `Prelude.seq` Prelude.rnf maxItems `Prelude.seq` Prelude.rnf nextMarker `Prelude.seq` Prelude.rnf quantity