{-# 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 #-}
module Amazonka.FMS.Types.DnsRuleGroupPriorityConflictViolation where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DnsRuleGroupPriorityConflictViolation = DnsRuleGroupPriorityConflictViolation'
{
DnsRuleGroupPriorityConflictViolation -> Maybe Natural
conflictingPriority :: Prelude.Maybe Prelude.Natural,
DnsRuleGroupPriorityConflictViolation -> Maybe Text
conflictingPolicyId :: Prelude.Maybe Prelude.Text,
DnsRuleGroupPriorityConflictViolation -> Maybe Text
violationTargetDescription :: Prelude.Maybe Prelude.Text,
DnsRuleGroupPriorityConflictViolation -> Maybe Text
violationTarget :: Prelude.Maybe Prelude.Text,
DnsRuleGroupPriorityConflictViolation -> Maybe [Natural]
unavailablePriorities :: Prelude.Maybe [Prelude.Natural]
}
deriving (DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool
(DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool)
-> (DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool)
-> Eq DnsRuleGroupPriorityConflictViolation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool
$c/= :: DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool
== :: DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool
$c== :: DnsRuleGroupPriorityConflictViolation
-> DnsRuleGroupPriorityConflictViolation -> Bool
Prelude.Eq, ReadPrec [DnsRuleGroupPriorityConflictViolation]
ReadPrec DnsRuleGroupPriorityConflictViolation
Int -> ReadS DnsRuleGroupPriorityConflictViolation
ReadS [DnsRuleGroupPriorityConflictViolation]
(Int -> ReadS DnsRuleGroupPriorityConflictViolation)
-> ReadS [DnsRuleGroupPriorityConflictViolation]
-> ReadPrec DnsRuleGroupPriorityConflictViolation
-> ReadPrec [DnsRuleGroupPriorityConflictViolation]
-> Read DnsRuleGroupPriorityConflictViolation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DnsRuleGroupPriorityConflictViolation]
$creadListPrec :: ReadPrec [DnsRuleGroupPriorityConflictViolation]
readPrec :: ReadPrec DnsRuleGroupPriorityConflictViolation
$creadPrec :: ReadPrec DnsRuleGroupPriorityConflictViolation
readList :: ReadS [DnsRuleGroupPriorityConflictViolation]
$creadList :: ReadS [DnsRuleGroupPriorityConflictViolation]
readsPrec :: Int -> ReadS DnsRuleGroupPriorityConflictViolation
$creadsPrec :: Int -> ReadS DnsRuleGroupPriorityConflictViolation
Prelude.Read, Int -> DnsRuleGroupPriorityConflictViolation -> ShowS
[DnsRuleGroupPriorityConflictViolation] -> ShowS
DnsRuleGroupPriorityConflictViolation -> String
(Int -> DnsRuleGroupPriorityConflictViolation -> ShowS)
-> (DnsRuleGroupPriorityConflictViolation -> String)
-> ([DnsRuleGroupPriorityConflictViolation] -> ShowS)
-> Show DnsRuleGroupPriorityConflictViolation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DnsRuleGroupPriorityConflictViolation] -> ShowS
$cshowList :: [DnsRuleGroupPriorityConflictViolation] -> ShowS
show :: DnsRuleGroupPriorityConflictViolation -> String
$cshow :: DnsRuleGroupPriorityConflictViolation -> String
showsPrec :: Int -> DnsRuleGroupPriorityConflictViolation -> ShowS
$cshowsPrec :: Int -> DnsRuleGroupPriorityConflictViolation -> ShowS
Prelude.Show, (forall x.
DnsRuleGroupPriorityConflictViolation
-> Rep DnsRuleGroupPriorityConflictViolation x)
-> (forall x.
Rep DnsRuleGroupPriorityConflictViolation x
-> DnsRuleGroupPriorityConflictViolation)
-> Generic DnsRuleGroupPriorityConflictViolation
forall x.
Rep DnsRuleGroupPriorityConflictViolation x
-> DnsRuleGroupPriorityConflictViolation
forall x.
DnsRuleGroupPriorityConflictViolation
-> Rep DnsRuleGroupPriorityConflictViolation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DnsRuleGroupPriorityConflictViolation x
-> DnsRuleGroupPriorityConflictViolation
$cfrom :: forall x.
DnsRuleGroupPriorityConflictViolation
-> Rep DnsRuleGroupPriorityConflictViolation x
Prelude.Generic)
newDnsRuleGroupPriorityConflictViolation ::
DnsRuleGroupPriorityConflictViolation
newDnsRuleGroupPriorityConflictViolation :: DnsRuleGroupPriorityConflictViolation
newDnsRuleGroupPriorityConflictViolation =
DnsRuleGroupPriorityConflictViolation' :: Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation'
{ $sel:conflictingPriority:DnsRuleGroupPriorityConflictViolation' :: Maybe Natural
conflictingPriority =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:conflictingPolicyId:DnsRuleGroupPriorityConflictViolation' :: Maybe Text
conflictingPolicyId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:violationTargetDescription:DnsRuleGroupPriorityConflictViolation' :: Maybe Text
violationTargetDescription =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:violationTarget:DnsRuleGroupPriorityConflictViolation' :: Maybe Text
violationTarget = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:unavailablePriorities:DnsRuleGroupPriorityConflictViolation' :: Maybe [Natural]
unavailablePriorities =
Maybe [Natural]
forall a. Maybe a
Prelude.Nothing
}
dnsRuleGroupPriorityConflictViolation_conflictingPriority :: Lens.Lens' DnsRuleGroupPriorityConflictViolation (Prelude.Maybe Prelude.Natural)
dnsRuleGroupPriorityConflictViolation_conflictingPriority :: (Maybe Natural -> f (Maybe Natural))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation
dnsRuleGroupPriorityConflictViolation_conflictingPriority = (DnsRuleGroupPriorityConflictViolation -> Maybe Natural)
-> (DnsRuleGroupPriorityConflictViolation
-> Maybe Natural -> DnsRuleGroupPriorityConflictViolation)
-> Lens
DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DnsRuleGroupPriorityConflictViolation' {Maybe Natural
conflictingPriority :: Maybe Natural
$sel:conflictingPriority:DnsRuleGroupPriorityConflictViolation' :: DnsRuleGroupPriorityConflictViolation -> Maybe Natural
conflictingPriority} -> Maybe Natural
conflictingPriority) (\s :: DnsRuleGroupPriorityConflictViolation
s@DnsRuleGroupPriorityConflictViolation' {} Maybe Natural
a -> DnsRuleGroupPriorityConflictViolation
s {$sel:conflictingPriority:DnsRuleGroupPriorityConflictViolation' :: Maybe Natural
conflictingPriority = Maybe Natural
a} :: DnsRuleGroupPriorityConflictViolation)
dnsRuleGroupPriorityConflictViolation_conflictingPolicyId :: Lens.Lens' DnsRuleGroupPriorityConflictViolation (Prelude.Maybe Prelude.Text)
dnsRuleGroupPriorityConflictViolation_conflictingPolicyId :: (Maybe Text -> f (Maybe Text))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation
dnsRuleGroupPriorityConflictViolation_conflictingPolicyId = (DnsRuleGroupPriorityConflictViolation -> Maybe Text)
-> (DnsRuleGroupPriorityConflictViolation
-> Maybe Text -> DnsRuleGroupPriorityConflictViolation)
-> Lens
DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DnsRuleGroupPriorityConflictViolation' {Maybe Text
conflictingPolicyId :: Maybe Text
$sel:conflictingPolicyId:DnsRuleGroupPriorityConflictViolation' :: DnsRuleGroupPriorityConflictViolation -> Maybe Text
conflictingPolicyId} -> Maybe Text
conflictingPolicyId) (\s :: DnsRuleGroupPriorityConflictViolation
s@DnsRuleGroupPriorityConflictViolation' {} Maybe Text
a -> DnsRuleGroupPriorityConflictViolation
s {$sel:conflictingPolicyId:DnsRuleGroupPriorityConflictViolation' :: Maybe Text
conflictingPolicyId = Maybe Text
a} :: DnsRuleGroupPriorityConflictViolation)
dnsRuleGroupPriorityConflictViolation_violationTargetDescription :: Lens.Lens' DnsRuleGroupPriorityConflictViolation (Prelude.Maybe Prelude.Text)
dnsRuleGroupPriorityConflictViolation_violationTargetDescription :: (Maybe Text -> f (Maybe Text))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation
dnsRuleGroupPriorityConflictViolation_violationTargetDescription = (DnsRuleGroupPriorityConflictViolation -> Maybe Text)
-> (DnsRuleGroupPriorityConflictViolation
-> Maybe Text -> DnsRuleGroupPriorityConflictViolation)
-> Lens
DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DnsRuleGroupPriorityConflictViolation' {Maybe Text
violationTargetDescription :: Maybe Text
$sel:violationTargetDescription:DnsRuleGroupPriorityConflictViolation' :: DnsRuleGroupPriorityConflictViolation -> Maybe Text
violationTargetDescription} -> Maybe Text
violationTargetDescription) (\s :: DnsRuleGroupPriorityConflictViolation
s@DnsRuleGroupPriorityConflictViolation' {} Maybe Text
a -> DnsRuleGroupPriorityConflictViolation
s {$sel:violationTargetDescription:DnsRuleGroupPriorityConflictViolation' :: Maybe Text
violationTargetDescription = Maybe Text
a} :: DnsRuleGroupPriorityConflictViolation)
dnsRuleGroupPriorityConflictViolation_violationTarget :: Lens.Lens' DnsRuleGroupPriorityConflictViolation (Prelude.Maybe Prelude.Text)
dnsRuleGroupPriorityConflictViolation_violationTarget :: (Maybe Text -> f (Maybe Text))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation
dnsRuleGroupPriorityConflictViolation_violationTarget = (DnsRuleGroupPriorityConflictViolation -> Maybe Text)
-> (DnsRuleGroupPriorityConflictViolation
-> Maybe Text -> DnsRuleGroupPriorityConflictViolation)
-> Lens
DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DnsRuleGroupPriorityConflictViolation' {Maybe Text
violationTarget :: Maybe Text
$sel:violationTarget:DnsRuleGroupPriorityConflictViolation' :: DnsRuleGroupPriorityConflictViolation -> Maybe Text
violationTarget} -> Maybe Text
violationTarget) (\s :: DnsRuleGroupPriorityConflictViolation
s@DnsRuleGroupPriorityConflictViolation' {} Maybe Text
a -> DnsRuleGroupPriorityConflictViolation
s {$sel:violationTarget:DnsRuleGroupPriorityConflictViolation' :: Maybe Text
violationTarget = Maybe Text
a} :: DnsRuleGroupPriorityConflictViolation)
dnsRuleGroupPriorityConflictViolation_unavailablePriorities :: Lens.Lens' DnsRuleGroupPriorityConflictViolation (Prelude.Maybe [Prelude.Natural])
dnsRuleGroupPriorityConflictViolation_unavailablePriorities :: (Maybe [Natural] -> f (Maybe [Natural]))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation
dnsRuleGroupPriorityConflictViolation_unavailablePriorities = (DnsRuleGroupPriorityConflictViolation -> Maybe [Natural])
-> (DnsRuleGroupPriorityConflictViolation
-> Maybe [Natural] -> DnsRuleGroupPriorityConflictViolation)
-> Lens
DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation
(Maybe [Natural])
(Maybe [Natural])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DnsRuleGroupPriorityConflictViolation' {Maybe [Natural]
unavailablePriorities :: Maybe [Natural]
$sel:unavailablePriorities:DnsRuleGroupPriorityConflictViolation' :: DnsRuleGroupPriorityConflictViolation -> Maybe [Natural]
unavailablePriorities} -> Maybe [Natural]
unavailablePriorities) (\s :: DnsRuleGroupPriorityConflictViolation
s@DnsRuleGroupPriorityConflictViolation' {} Maybe [Natural]
a -> DnsRuleGroupPriorityConflictViolation
s {$sel:unavailablePriorities:DnsRuleGroupPriorityConflictViolation' :: Maybe [Natural]
unavailablePriorities = Maybe [Natural]
a} :: DnsRuleGroupPriorityConflictViolation) ((Maybe [Natural] -> f (Maybe [Natural]))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation)
-> ((Maybe [Natural] -> f (Maybe [Natural]))
-> Maybe [Natural] -> f (Maybe [Natural]))
-> (Maybe [Natural] -> f (Maybe [Natural]))
-> DnsRuleGroupPriorityConflictViolation
-> f DnsRuleGroupPriorityConflictViolation
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Natural] [Natural] [Natural] [Natural]
-> Iso
(Maybe [Natural])
(Maybe [Natural])
(Maybe [Natural])
(Maybe [Natural])
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 AnIso [Natural] [Natural] [Natural] [Natural]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.FromJSON
DnsRuleGroupPriorityConflictViolation
where
parseJSON :: Value -> Parser DnsRuleGroupPriorityConflictViolation
parseJSON =
String
-> (Object -> Parser DnsRuleGroupPriorityConflictViolation)
-> Value
-> Parser DnsRuleGroupPriorityConflictViolation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DnsRuleGroupPriorityConflictViolation"
( \Object
x ->
Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation
DnsRuleGroupPriorityConflictViolation'
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConflictingPriority")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConflictingPolicyId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe [Natural]
-> DnsRuleGroupPriorityConflictViolation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe [Natural] -> DnsRuleGroupPriorityConflictViolation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ViolationTargetDescription")
Parser
(Maybe Text
-> Maybe [Natural] -> DnsRuleGroupPriorityConflictViolation)
-> Parser (Maybe Text)
-> Parser
(Maybe [Natural] -> DnsRuleGroupPriorityConflictViolation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ViolationTarget")
Parser (Maybe [Natural] -> DnsRuleGroupPriorityConflictViolation)
-> Parser (Maybe [Natural])
-> Parser DnsRuleGroupPriorityConflictViolation
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Natural]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UnavailablePriorities"
Parser (Maybe (Maybe [Natural]))
-> Maybe [Natural] -> Parser (Maybe [Natural])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Natural]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
DnsRuleGroupPriorityConflictViolation
instance
Prelude.NFData
DnsRuleGroupPriorityConflictViolation