{-# 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.DirectConnect.Types.DirectConnectGatewayAssociationProposal
-- 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.DirectConnect.Types.DirectConnectGatewayAssociationProposal where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DirectConnect.Types.AssociatedGateway
import Amazonka.DirectConnect.Types.DirectConnectGatewayAssociationProposalState
import Amazonka.DirectConnect.Types.RouteFilterPrefix
import qualified Amazonka.Prelude as Prelude

-- | Information about the proposal request to attach a virtual private
-- gateway to a Direct Connect gateway.
--
-- /See:/ 'newDirectConnectGatewayAssociationProposal' smart constructor.
data DirectConnectGatewayAssociationProposal = DirectConnectGatewayAssociationProposal'
  { -- | Information about the associated gateway.
    DirectConnectGatewayAssociationProposal -> Maybe AssociatedGateway
associatedGateway :: Prelude.Maybe AssociatedGateway,
    -- | The ID of the Direct Connect gateway.
    DirectConnectGatewayAssociationProposal -> Maybe Text
directConnectGatewayId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon Web Services account that owns the Direct Connect
    -- gateway.
    DirectConnectGatewayAssociationProposal -> Maybe Text
directConnectGatewayOwnerAccount :: Prelude.Maybe Prelude.Text,
    -- | The existing Amazon VPC prefixes advertised to the Direct Connect
    -- gateway.
    DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway :: Prelude.Maybe [RouteFilterPrefix],
    -- | The ID of the association proposal.
    DirectConnectGatewayAssociationProposal -> Maybe Text
proposalId :: Prelude.Maybe Prelude.Text,
    -- | The state of the proposal. The following are possible values:
    --
    -- -   @accepted@: The proposal has been accepted. The Direct Connect
    --     gateway association is available to use in this state.
    --
    -- -   @deleted@: The proposal has been deleted by the owner that made the
    --     proposal. The Direct Connect gateway association cannot be used in
    --     this state.
    --
    -- -   @requested@: The proposal has been requested. The Direct Connect
    --     gateway association cannot be used in this state.
    DirectConnectGatewayAssociationProposal
-> Maybe DirectConnectGatewayAssociationProposalState
proposalState :: Prelude.Maybe DirectConnectGatewayAssociationProposalState,
    -- | The Amazon VPC prefixes to advertise to the Direct Connect gateway.
    DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway :: Prelude.Maybe [RouteFilterPrefix]
  }
  deriving (DirectConnectGatewayAssociationProposal
-> DirectConnectGatewayAssociationProposal -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DirectConnectGatewayAssociationProposal
-> DirectConnectGatewayAssociationProposal -> Bool
$c/= :: DirectConnectGatewayAssociationProposal
-> DirectConnectGatewayAssociationProposal -> Bool
== :: DirectConnectGatewayAssociationProposal
-> DirectConnectGatewayAssociationProposal -> Bool
$c== :: DirectConnectGatewayAssociationProposal
-> DirectConnectGatewayAssociationProposal -> Bool
Prelude.Eq, ReadPrec [DirectConnectGatewayAssociationProposal]
ReadPrec DirectConnectGatewayAssociationProposal
Int -> ReadS DirectConnectGatewayAssociationProposal
ReadS [DirectConnectGatewayAssociationProposal]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DirectConnectGatewayAssociationProposal]
$creadListPrec :: ReadPrec [DirectConnectGatewayAssociationProposal]
readPrec :: ReadPrec DirectConnectGatewayAssociationProposal
$creadPrec :: ReadPrec DirectConnectGatewayAssociationProposal
readList :: ReadS [DirectConnectGatewayAssociationProposal]
$creadList :: ReadS [DirectConnectGatewayAssociationProposal]
readsPrec :: Int -> ReadS DirectConnectGatewayAssociationProposal
$creadsPrec :: Int -> ReadS DirectConnectGatewayAssociationProposal
Prelude.Read, Int -> DirectConnectGatewayAssociationProposal -> ShowS
[DirectConnectGatewayAssociationProposal] -> ShowS
DirectConnectGatewayAssociationProposal -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DirectConnectGatewayAssociationProposal] -> ShowS
$cshowList :: [DirectConnectGatewayAssociationProposal] -> ShowS
show :: DirectConnectGatewayAssociationProposal -> String
$cshow :: DirectConnectGatewayAssociationProposal -> String
showsPrec :: Int -> DirectConnectGatewayAssociationProposal -> ShowS
$cshowsPrec :: Int -> DirectConnectGatewayAssociationProposal -> ShowS
Prelude.Show, forall x.
Rep DirectConnectGatewayAssociationProposal x
-> DirectConnectGatewayAssociationProposal
forall x.
DirectConnectGatewayAssociationProposal
-> Rep DirectConnectGatewayAssociationProposal x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DirectConnectGatewayAssociationProposal x
-> DirectConnectGatewayAssociationProposal
$cfrom :: forall x.
DirectConnectGatewayAssociationProposal
-> Rep DirectConnectGatewayAssociationProposal x
Prelude.Generic)

-- |
-- Create a value of 'DirectConnectGatewayAssociationProposal' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'associatedGateway', 'directConnectGatewayAssociationProposal_associatedGateway' - Information about the associated gateway.
--
-- 'directConnectGatewayId', 'directConnectGatewayAssociationProposal_directConnectGatewayId' - The ID of the Direct Connect gateway.
--
-- 'directConnectGatewayOwnerAccount', 'directConnectGatewayAssociationProposal_directConnectGatewayOwnerAccount' - The ID of the Amazon Web Services account that owns the Direct Connect
-- gateway.
--
-- 'existingAllowedPrefixesToDirectConnectGateway', 'directConnectGatewayAssociationProposal_existingAllowedPrefixesToDirectConnectGateway' - The existing Amazon VPC prefixes advertised to the Direct Connect
-- gateway.
--
-- 'proposalId', 'directConnectGatewayAssociationProposal_proposalId' - The ID of the association proposal.
--
-- 'proposalState', 'directConnectGatewayAssociationProposal_proposalState' - The state of the proposal. The following are possible values:
--
-- -   @accepted@: The proposal has been accepted. The Direct Connect
--     gateway association is available to use in this state.
--
-- -   @deleted@: The proposal has been deleted by the owner that made the
--     proposal. The Direct Connect gateway association cannot be used in
--     this state.
--
-- -   @requested@: The proposal has been requested. The Direct Connect
--     gateway association cannot be used in this state.
--
-- 'requestedAllowedPrefixesToDirectConnectGateway', 'directConnectGatewayAssociationProposal_requestedAllowedPrefixesToDirectConnectGateway' - The Amazon VPC prefixes to advertise to the Direct Connect gateway.
newDirectConnectGatewayAssociationProposal ::
  DirectConnectGatewayAssociationProposal
newDirectConnectGatewayAssociationProposal :: DirectConnectGatewayAssociationProposal
newDirectConnectGatewayAssociationProposal =
  DirectConnectGatewayAssociationProposal'
    { $sel:associatedGateway:DirectConnectGatewayAssociationProposal' :: Maybe AssociatedGateway
associatedGateway =
        forall a. Maybe a
Prelude.Nothing,
      $sel:directConnectGatewayId:DirectConnectGatewayAssociationProposal' :: Maybe Text
directConnectGatewayId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:directConnectGatewayOwnerAccount:DirectConnectGatewayAssociationProposal' :: Maybe Text
directConnectGatewayOwnerAccount =
        forall a. Maybe a
Prelude.Nothing,
      $sel:existingAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway =
        forall a. Maybe a
Prelude.Nothing,
      $sel:proposalId:DirectConnectGatewayAssociationProposal' :: Maybe Text
proposalId = forall a. Maybe a
Prelude.Nothing,
      $sel:proposalState:DirectConnectGatewayAssociationProposal' :: Maybe DirectConnectGatewayAssociationProposalState
proposalState = forall a. Maybe a
Prelude.Nothing,
      $sel:requestedAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway =
        forall a. Maybe a
Prelude.Nothing
    }

-- | Information about the associated gateway.
directConnectGatewayAssociationProposal_associatedGateway :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe AssociatedGateway)
directConnectGatewayAssociationProposal_associatedGateway :: Lens'
  DirectConnectGatewayAssociationProposal (Maybe AssociatedGateway)
directConnectGatewayAssociationProposal_associatedGateway = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe AssociatedGateway
associatedGateway :: Maybe AssociatedGateway
$sel:associatedGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe AssociatedGateway
associatedGateway} -> Maybe AssociatedGateway
associatedGateway) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe AssociatedGateway
a -> DirectConnectGatewayAssociationProposal
s {$sel:associatedGateway:DirectConnectGatewayAssociationProposal' :: Maybe AssociatedGateway
associatedGateway = Maybe AssociatedGateway
a} :: DirectConnectGatewayAssociationProposal)

-- | The ID of the Direct Connect gateway.
directConnectGatewayAssociationProposal_directConnectGatewayId :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe Prelude.Text)
directConnectGatewayAssociationProposal_directConnectGatewayId :: Lens' DirectConnectGatewayAssociationProposal (Maybe Text)
directConnectGatewayAssociationProposal_directConnectGatewayId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe Text
directConnectGatewayId :: Maybe Text
$sel:directConnectGatewayId:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
directConnectGatewayId} -> Maybe Text
directConnectGatewayId) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe Text
a -> DirectConnectGatewayAssociationProposal
s {$sel:directConnectGatewayId:DirectConnectGatewayAssociationProposal' :: Maybe Text
directConnectGatewayId = Maybe Text
a} :: DirectConnectGatewayAssociationProposal)

-- | The ID of the Amazon Web Services account that owns the Direct Connect
-- gateway.
directConnectGatewayAssociationProposal_directConnectGatewayOwnerAccount :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe Prelude.Text)
directConnectGatewayAssociationProposal_directConnectGatewayOwnerAccount :: Lens' DirectConnectGatewayAssociationProposal (Maybe Text)
directConnectGatewayAssociationProposal_directConnectGatewayOwnerAccount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe Text
directConnectGatewayOwnerAccount :: Maybe Text
$sel:directConnectGatewayOwnerAccount:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
directConnectGatewayOwnerAccount} -> Maybe Text
directConnectGatewayOwnerAccount) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe Text
a -> DirectConnectGatewayAssociationProposal
s {$sel:directConnectGatewayOwnerAccount:DirectConnectGatewayAssociationProposal' :: Maybe Text
directConnectGatewayOwnerAccount = Maybe Text
a} :: DirectConnectGatewayAssociationProposal)

-- | The existing Amazon VPC prefixes advertised to the Direct Connect
-- gateway.
directConnectGatewayAssociationProposal_existingAllowedPrefixesToDirectConnectGateway :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe [RouteFilterPrefix])
directConnectGatewayAssociationProposal_existingAllowedPrefixesToDirectConnectGateway :: Lens'
  DirectConnectGatewayAssociationProposal (Maybe [RouteFilterPrefix])
directConnectGatewayAssociationProposal_existingAllowedPrefixesToDirectConnectGateway = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
$sel:existingAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway} -> Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe [RouteFilterPrefix]
a -> DirectConnectGatewayAssociationProposal
s {$sel:existingAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway = Maybe [RouteFilterPrefix]
a} :: DirectConnectGatewayAssociationProposal) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ID of the association proposal.
directConnectGatewayAssociationProposal_proposalId :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe Prelude.Text)
directConnectGatewayAssociationProposal_proposalId :: Lens' DirectConnectGatewayAssociationProposal (Maybe Text)
directConnectGatewayAssociationProposal_proposalId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe Text
proposalId :: Maybe Text
$sel:proposalId:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
proposalId} -> Maybe Text
proposalId) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe Text
a -> DirectConnectGatewayAssociationProposal
s {$sel:proposalId:DirectConnectGatewayAssociationProposal' :: Maybe Text
proposalId = Maybe Text
a} :: DirectConnectGatewayAssociationProposal)

-- | The state of the proposal. The following are possible values:
--
-- -   @accepted@: The proposal has been accepted. The Direct Connect
--     gateway association is available to use in this state.
--
-- -   @deleted@: The proposal has been deleted by the owner that made the
--     proposal. The Direct Connect gateway association cannot be used in
--     this state.
--
-- -   @requested@: The proposal has been requested. The Direct Connect
--     gateway association cannot be used in this state.
directConnectGatewayAssociationProposal_proposalState :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe DirectConnectGatewayAssociationProposalState)
directConnectGatewayAssociationProposal_proposalState :: Lens'
  DirectConnectGatewayAssociationProposal
  (Maybe DirectConnectGatewayAssociationProposalState)
directConnectGatewayAssociationProposal_proposalState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe DirectConnectGatewayAssociationProposalState
proposalState :: Maybe DirectConnectGatewayAssociationProposalState
$sel:proposalState:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe DirectConnectGatewayAssociationProposalState
proposalState} -> Maybe DirectConnectGatewayAssociationProposalState
proposalState) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe DirectConnectGatewayAssociationProposalState
a -> DirectConnectGatewayAssociationProposal
s {$sel:proposalState:DirectConnectGatewayAssociationProposal' :: Maybe DirectConnectGatewayAssociationProposalState
proposalState = Maybe DirectConnectGatewayAssociationProposalState
a} :: DirectConnectGatewayAssociationProposal)

-- | The Amazon VPC prefixes to advertise to the Direct Connect gateway.
directConnectGatewayAssociationProposal_requestedAllowedPrefixesToDirectConnectGateway :: Lens.Lens' DirectConnectGatewayAssociationProposal (Prelude.Maybe [RouteFilterPrefix])
directConnectGatewayAssociationProposal_requestedAllowedPrefixesToDirectConnectGateway :: Lens'
  DirectConnectGatewayAssociationProposal (Maybe [RouteFilterPrefix])
directConnectGatewayAssociationProposal_requestedAllowedPrefixesToDirectConnectGateway = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DirectConnectGatewayAssociationProposal' {Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
$sel:requestedAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway} -> Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway) (\s :: DirectConnectGatewayAssociationProposal
s@DirectConnectGatewayAssociationProposal' {} Maybe [RouteFilterPrefix]
a -> DirectConnectGatewayAssociationProposal
s {$sel:requestedAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway = Maybe [RouteFilterPrefix]
a} :: DirectConnectGatewayAssociationProposal) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Data.FromJSON
    DirectConnectGatewayAssociationProposal
  where
  parseJSON :: Value -> Parser DirectConnectGatewayAssociationProposal
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DirectConnectGatewayAssociationProposal"
      ( \Object
x ->
          Maybe AssociatedGateway
-> Maybe Text
-> Maybe Text
-> Maybe [RouteFilterPrefix]
-> Maybe Text
-> Maybe DirectConnectGatewayAssociationProposalState
-> Maybe [RouteFilterPrefix]
-> DirectConnectGatewayAssociationProposal
DirectConnectGatewayAssociationProposal'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"associatedGateway")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"directConnectGatewayId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"directConnectGatewayOwnerAccount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"existingAllowedPrefixesToDirectConnectGateway"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"proposalId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"proposalState")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"requestedAllowedPrefixesToDirectConnectGateway"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance
  Prelude.Hashable
    DirectConnectGatewayAssociationProposal
  where
  hashWithSalt :: Int -> DirectConnectGatewayAssociationProposal -> Int
hashWithSalt
    Int
_salt
    DirectConnectGatewayAssociationProposal' {Maybe [RouteFilterPrefix]
Maybe Text
Maybe DirectConnectGatewayAssociationProposalState
Maybe AssociatedGateway
requestedAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
proposalState :: Maybe DirectConnectGatewayAssociationProposalState
proposalId :: Maybe Text
existingAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
directConnectGatewayOwnerAccount :: Maybe Text
directConnectGatewayId :: Maybe Text
associatedGateway :: Maybe AssociatedGateway
$sel:requestedAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
$sel:proposalState:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe DirectConnectGatewayAssociationProposalState
$sel:proposalId:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
$sel:existingAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
$sel:directConnectGatewayOwnerAccount:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
$sel:directConnectGatewayId:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
$sel:associatedGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe AssociatedGateway
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AssociatedGateway
associatedGateway
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
directConnectGatewayId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
directConnectGatewayOwnerAccount
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
proposalId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DirectConnectGatewayAssociationProposalState
proposalState
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway

instance
  Prelude.NFData
    DirectConnectGatewayAssociationProposal
  where
  rnf :: DirectConnectGatewayAssociationProposal -> ()
rnf DirectConnectGatewayAssociationProposal' {Maybe [RouteFilterPrefix]
Maybe Text
Maybe DirectConnectGatewayAssociationProposalState
Maybe AssociatedGateway
requestedAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
proposalState :: Maybe DirectConnectGatewayAssociationProposalState
proposalId :: Maybe Text
existingAllowedPrefixesToDirectConnectGateway :: Maybe [RouteFilterPrefix]
directConnectGatewayOwnerAccount :: Maybe Text
directConnectGatewayId :: Maybe Text
associatedGateway :: Maybe AssociatedGateway
$sel:requestedAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
$sel:proposalState:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe DirectConnectGatewayAssociationProposalState
$sel:proposalId:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
$sel:existingAllowedPrefixesToDirectConnectGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal
-> Maybe [RouteFilterPrefix]
$sel:directConnectGatewayOwnerAccount:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
$sel:directConnectGatewayId:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe Text
$sel:associatedGateway:DirectConnectGatewayAssociationProposal' :: DirectConnectGatewayAssociationProposal -> Maybe AssociatedGateway
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AssociatedGateway
associatedGateway
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
directConnectGatewayId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
directConnectGatewayOwnerAccount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [RouteFilterPrefix]
existingAllowedPrefixesToDirectConnectGateway
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
proposalId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DirectConnectGatewayAssociationProposalState
proposalState
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [RouteFilterPrefix]
requestedAllowedPrefixesToDirectConnectGateway