{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ElasticBeanstalk.SwapEnvironmentCNAMEs
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Swaps the CNAMEs of two environments.
module Amazonka.ElasticBeanstalk.SwapEnvironmentCNAMEs
  ( -- * Creating a Request
    SwapEnvironmentCNAMEs (..),
    newSwapEnvironmentCNAMEs,

    -- * Request Lenses
    swapEnvironmentCNAMEs_destinationEnvironmentName,
    swapEnvironmentCNAMEs_destinationEnvironmentId,
    swapEnvironmentCNAMEs_sourceEnvironmentName,
    swapEnvironmentCNAMEs_sourceEnvironmentId,

    -- * Destructuring the Response
    SwapEnvironmentCNAMEsResponse (..),
    newSwapEnvironmentCNAMEsResponse,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.ElasticBeanstalk.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Swaps the CNAMEs of two environments.
--
-- /See:/ 'newSwapEnvironmentCNAMEs' smart constructor.
data SwapEnvironmentCNAMEs = SwapEnvironmentCNAMEs'
  { -- | The name of the destination environment.
    --
    -- Condition: You must specify at least the @DestinationEnvironmentID@ or
    -- the @DestinationEnvironmentName@. You may also specify both. You must
    -- specify the @SourceEnvironmentName@ with the
    -- @DestinationEnvironmentName@.
    SwapEnvironmentCNAMEs -> Maybe Text
destinationEnvironmentName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the destination environment.
    --
    -- Condition: You must specify at least the @DestinationEnvironmentID@ or
    -- the @DestinationEnvironmentName@. You may also specify both. You must
    -- specify the @SourceEnvironmentId@ with the @DestinationEnvironmentId@.
    SwapEnvironmentCNAMEs -> Maybe Text
destinationEnvironmentId :: Prelude.Maybe Prelude.Text,
    -- | The name of the source environment.
    --
    -- Condition: You must specify at least the @SourceEnvironmentID@ or the
    -- @SourceEnvironmentName@. You may also specify both. If you specify the
    -- @SourceEnvironmentName@, you must specify the
    -- @DestinationEnvironmentName@.
    SwapEnvironmentCNAMEs -> Maybe Text
sourceEnvironmentName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the source environment.
    --
    -- Condition: You must specify at least the @SourceEnvironmentID@ or the
    -- @SourceEnvironmentName@. You may also specify both. If you specify the
    -- @SourceEnvironmentId@, you must specify the @DestinationEnvironmentId@.
    SwapEnvironmentCNAMEs -> Maybe Text
sourceEnvironmentId :: Prelude.Maybe Prelude.Text
  }
  deriving (SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool
(SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool)
-> (SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool)
-> Eq SwapEnvironmentCNAMEs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool
$c/= :: SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool
== :: SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool
$c== :: SwapEnvironmentCNAMEs -> SwapEnvironmentCNAMEs -> Bool
Prelude.Eq, ReadPrec [SwapEnvironmentCNAMEs]
ReadPrec SwapEnvironmentCNAMEs
Int -> ReadS SwapEnvironmentCNAMEs
ReadS [SwapEnvironmentCNAMEs]
(Int -> ReadS SwapEnvironmentCNAMEs)
-> ReadS [SwapEnvironmentCNAMEs]
-> ReadPrec SwapEnvironmentCNAMEs
-> ReadPrec [SwapEnvironmentCNAMEs]
-> Read SwapEnvironmentCNAMEs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SwapEnvironmentCNAMEs]
$creadListPrec :: ReadPrec [SwapEnvironmentCNAMEs]
readPrec :: ReadPrec SwapEnvironmentCNAMEs
$creadPrec :: ReadPrec SwapEnvironmentCNAMEs
readList :: ReadS [SwapEnvironmentCNAMEs]
$creadList :: ReadS [SwapEnvironmentCNAMEs]
readsPrec :: Int -> ReadS SwapEnvironmentCNAMEs
$creadsPrec :: Int -> ReadS SwapEnvironmentCNAMEs
Prelude.Read, Int -> SwapEnvironmentCNAMEs -> ShowS
[SwapEnvironmentCNAMEs] -> ShowS
SwapEnvironmentCNAMEs -> String
(Int -> SwapEnvironmentCNAMEs -> ShowS)
-> (SwapEnvironmentCNAMEs -> String)
-> ([SwapEnvironmentCNAMEs] -> ShowS)
-> Show SwapEnvironmentCNAMEs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SwapEnvironmentCNAMEs] -> ShowS
$cshowList :: [SwapEnvironmentCNAMEs] -> ShowS
show :: SwapEnvironmentCNAMEs -> String
$cshow :: SwapEnvironmentCNAMEs -> String
showsPrec :: Int -> SwapEnvironmentCNAMEs -> ShowS
$cshowsPrec :: Int -> SwapEnvironmentCNAMEs -> ShowS
Prelude.Show, (forall x. SwapEnvironmentCNAMEs -> Rep SwapEnvironmentCNAMEs x)
-> (forall x. Rep SwapEnvironmentCNAMEs x -> SwapEnvironmentCNAMEs)
-> Generic SwapEnvironmentCNAMEs
forall x. Rep SwapEnvironmentCNAMEs x -> SwapEnvironmentCNAMEs
forall x. SwapEnvironmentCNAMEs -> Rep SwapEnvironmentCNAMEs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SwapEnvironmentCNAMEs x -> SwapEnvironmentCNAMEs
$cfrom :: forall x. SwapEnvironmentCNAMEs -> Rep SwapEnvironmentCNAMEs x
Prelude.Generic)

-- |
-- Create a value of 'SwapEnvironmentCNAMEs' 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:
--
-- 'destinationEnvironmentName', 'swapEnvironmentCNAMEs_destinationEnvironmentName' - The name of the destination environment.
--
-- Condition: You must specify at least the @DestinationEnvironmentID@ or
-- the @DestinationEnvironmentName@. You may also specify both. You must
-- specify the @SourceEnvironmentName@ with the
-- @DestinationEnvironmentName@.
--
-- 'destinationEnvironmentId', 'swapEnvironmentCNAMEs_destinationEnvironmentId' - The ID of the destination environment.
--
-- Condition: You must specify at least the @DestinationEnvironmentID@ or
-- the @DestinationEnvironmentName@. You may also specify both. You must
-- specify the @SourceEnvironmentId@ with the @DestinationEnvironmentId@.
--
-- 'sourceEnvironmentName', 'swapEnvironmentCNAMEs_sourceEnvironmentName' - The name of the source environment.
--
-- Condition: You must specify at least the @SourceEnvironmentID@ or the
-- @SourceEnvironmentName@. You may also specify both. If you specify the
-- @SourceEnvironmentName@, you must specify the
-- @DestinationEnvironmentName@.
--
-- 'sourceEnvironmentId', 'swapEnvironmentCNAMEs_sourceEnvironmentId' - The ID of the source environment.
--
-- Condition: You must specify at least the @SourceEnvironmentID@ or the
-- @SourceEnvironmentName@. You may also specify both. If you specify the
-- @SourceEnvironmentId@, you must specify the @DestinationEnvironmentId@.
newSwapEnvironmentCNAMEs ::
  SwapEnvironmentCNAMEs
newSwapEnvironmentCNAMEs :: SwapEnvironmentCNAMEs
newSwapEnvironmentCNAMEs =
  SwapEnvironmentCNAMEs' :: Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> SwapEnvironmentCNAMEs
SwapEnvironmentCNAMEs'
    { $sel:destinationEnvironmentName:SwapEnvironmentCNAMEs' :: Maybe Text
destinationEnvironmentName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:destinationEnvironmentId:SwapEnvironmentCNAMEs' :: Maybe Text
destinationEnvironmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceEnvironmentName:SwapEnvironmentCNAMEs' :: Maybe Text
sourceEnvironmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceEnvironmentId:SwapEnvironmentCNAMEs' :: Maybe Text
sourceEnvironmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The name of the destination environment.
--
-- Condition: You must specify at least the @DestinationEnvironmentID@ or
-- the @DestinationEnvironmentName@. You may also specify both. You must
-- specify the @SourceEnvironmentName@ with the
-- @DestinationEnvironmentName@.
swapEnvironmentCNAMEs_destinationEnvironmentName :: Lens.Lens' SwapEnvironmentCNAMEs (Prelude.Maybe Prelude.Text)
swapEnvironmentCNAMEs_destinationEnvironmentName :: (Maybe Text -> f (Maybe Text))
-> SwapEnvironmentCNAMEs -> f SwapEnvironmentCNAMEs
swapEnvironmentCNAMEs_destinationEnvironmentName = (SwapEnvironmentCNAMEs -> Maybe Text)
-> (SwapEnvironmentCNAMEs -> Maybe Text -> SwapEnvironmentCNAMEs)
-> Lens
     SwapEnvironmentCNAMEs
     SwapEnvironmentCNAMEs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SwapEnvironmentCNAMEs' {Maybe Text
destinationEnvironmentName :: Maybe Text
$sel:destinationEnvironmentName:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
destinationEnvironmentName} -> Maybe Text
destinationEnvironmentName) (\s :: SwapEnvironmentCNAMEs
s@SwapEnvironmentCNAMEs' {} Maybe Text
a -> SwapEnvironmentCNAMEs
s {$sel:destinationEnvironmentName:SwapEnvironmentCNAMEs' :: Maybe Text
destinationEnvironmentName = Maybe Text
a} :: SwapEnvironmentCNAMEs)

-- | The ID of the destination environment.
--
-- Condition: You must specify at least the @DestinationEnvironmentID@ or
-- the @DestinationEnvironmentName@. You may also specify both. You must
-- specify the @SourceEnvironmentId@ with the @DestinationEnvironmentId@.
swapEnvironmentCNAMEs_destinationEnvironmentId :: Lens.Lens' SwapEnvironmentCNAMEs (Prelude.Maybe Prelude.Text)
swapEnvironmentCNAMEs_destinationEnvironmentId :: (Maybe Text -> f (Maybe Text))
-> SwapEnvironmentCNAMEs -> f SwapEnvironmentCNAMEs
swapEnvironmentCNAMEs_destinationEnvironmentId = (SwapEnvironmentCNAMEs -> Maybe Text)
-> (SwapEnvironmentCNAMEs -> Maybe Text -> SwapEnvironmentCNAMEs)
-> Lens
     SwapEnvironmentCNAMEs
     SwapEnvironmentCNAMEs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SwapEnvironmentCNAMEs' {Maybe Text
destinationEnvironmentId :: Maybe Text
$sel:destinationEnvironmentId:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
destinationEnvironmentId} -> Maybe Text
destinationEnvironmentId) (\s :: SwapEnvironmentCNAMEs
s@SwapEnvironmentCNAMEs' {} Maybe Text
a -> SwapEnvironmentCNAMEs
s {$sel:destinationEnvironmentId:SwapEnvironmentCNAMEs' :: Maybe Text
destinationEnvironmentId = Maybe Text
a} :: SwapEnvironmentCNAMEs)

-- | The name of the source environment.
--
-- Condition: You must specify at least the @SourceEnvironmentID@ or the
-- @SourceEnvironmentName@. You may also specify both. If you specify the
-- @SourceEnvironmentName@, you must specify the
-- @DestinationEnvironmentName@.
swapEnvironmentCNAMEs_sourceEnvironmentName :: Lens.Lens' SwapEnvironmentCNAMEs (Prelude.Maybe Prelude.Text)
swapEnvironmentCNAMEs_sourceEnvironmentName :: (Maybe Text -> f (Maybe Text))
-> SwapEnvironmentCNAMEs -> f SwapEnvironmentCNAMEs
swapEnvironmentCNAMEs_sourceEnvironmentName = (SwapEnvironmentCNAMEs -> Maybe Text)
-> (SwapEnvironmentCNAMEs -> Maybe Text -> SwapEnvironmentCNAMEs)
-> Lens
     SwapEnvironmentCNAMEs
     SwapEnvironmentCNAMEs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SwapEnvironmentCNAMEs' {Maybe Text
sourceEnvironmentName :: Maybe Text
$sel:sourceEnvironmentName:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
sourceEnvironmentName} -> Maybe Text
sourceEnvironmentName) (\s :: SwapEnvironmentCNAMEs
s@SwapEnvironmentCNAMEs' {} Maybe Text
a -> SwapEnvironmentCNAMEs
s {$sel:sourceEnvironmentName:SwapEnvironmentCNAMEs' :: Maybe Text
sourceEnvironmentName = Maybe Text
a} :: SwapEnvironmentCNAMEs)

-- | The ID of the source environment.
--
-- Condition: You must specify at least the @SourceEnvironmentID@ or the
-- @SourceEnvironmentName@. You may also specify both. If you specify the
-- @SourceEnvironmentId@, you must specify the @DestinationEnvironmentId@.
swapEnvironmentCNAMEs_sourceEnvironmentId :: Lens.Lens' SwapEnvironmentCNAMEs (Prelude.Maybe Prelude.Text)
swapEnvironmentCNAMEs_sourceEnvironmentId :: (Maybe Text -> f (Maybe Text))
-> SwapEnvironmentCNAMEs -> f SwapEnvironmentCNAMEs
swapEnvironmentCNAMEs_sourceEnvironmentId = (SwapEnvironmentCNAMEs -> Maybe Text)
-> (SwapEnvironmentCNAMEs -> Maybe Text -> SwapEnvironmentCNAMEs)
-> Lens
     SwapEnvironmentCNAMEs
     SwapEnvironmentCNAMEs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SwapEnvironmentCNAMEs' {Maybe Text
sourceEnvironmentId :: Maybe Text
$sel:sourceEnvironmentId:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
sourceEnvironmentId} -> Maybe Text
sourceEnvironmentId) (\s :: SwapEnvironmentCNAMEs
s@SwapEnvironmentCNAMEs' {} Maybe Text
a -> SwapEnvironmentCNAMEs
s {$sel:sourceEnvironmentId:SwapEnvironmentCNAMEs' :: Maybe Text
sourceEnvironmentId = Maybe Text
a} :: SwapEnvironmentCNAMEs)

instance Core.AWSRequest SwapEnvironmentCNAMEs where
  type
    AWSResponse SwapEnvironmentCNAMEs =
      SwapEnvironmentCNAMEsResponse
  request :: SwapEnvironmentCNAMEs -> Request SwapEnvironmentCNAMEs
request = Service -> SwapEnvironmentCNAMEs -> Request SwapEnvironmentCNAMEs
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy SwapEnvironmentCNAMEs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse SwapEnvironmentCNAMEs)))
response =
    AWSResponse SwapEnvironmentCNAMEs
-> Logger
-> Service
-> Proxy SwapEnvironmentCNAMEs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse SwapEnvironmentCNAMEs)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse SwapEnvironmentCNAMEs
SwapEnvironmentCNAMEsResponse
SwapEnvironmentCNAMEsResponse'

instance Prelude.Hashable SwapEnvironmentCNAMEs

instance Prelude.NFData SwapEnvironmentCNAMEs

instance Core.ToHeaders SwapEnvironmentCNAMEs where
  toHeaders :: SwapEnvironmentCNAMEs -> [Header]
toHeaders = [Header] -> SwapEnvironmentCNAMEs -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath SwapEnvironmentCNAMEs where
  toPath :: SwapEnvironmentCNAMEs -> ByteString
toPath = ByteString -> SwapEnvironmentCNAMEs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery SwapEnvironmentCNAMEs where
  toQuery :: SwapEnvironmentCNAMEs -> QueryString
toQuery SwapEnvironmentCNAMEs' {Maybe Text
sourceEnvironmentId :: Maybe Text
sourceEnvironmentName :: Maybe Text
destinationEnvironmentId :: Maybe Text
destinationEnvironmentName :: Maybe Text
$sel:sourceEnvironmentId:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
$sel:sourceEnvironmentName:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
$sel:destinationEnvironmentId:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
$sel:destinationEnvironmentName:SwapEnvironmentCNAMEs' :: SwapEnvironmentCNAMEs -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"SwapEnvironmentCNAMEs" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
        ByteString
"DestinationEnvironmentName"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
destinationEnvironmentName,
        ByteString
"DestinationEnvironmentId"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
destinationEnvironmentId,
        ByteString
"SourceEnvironmentName"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
sourceEnvironmentName,
        ByteString
"SourceEnvironmentId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
sourceEnvironmentId
      ]

-- | /See:/ 'newSwapEnvironmentCNAMEsResponse' smart constructor.
data SwapEnvironmentCNAMEsResponse = SwapEnvironmentCNAMEsResponse'
  {
  }
  deriving (SwapEnvironmentCNAMEsResponse
-> SwapEnvironmentCNAMEsResponse -> Bool
(SwapEnvironmentCNAMEsResponse
 -> SwapEnvironmentCNAMEsResponse -> Bool)
-> (SwapEnvironmentCNAMEsResponse
    -> SwapEnvironmentCNAMEsResponse -> Bool)
-> Eq SwapEnvironmentCNAMEsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SwapEnvironmentCNAMEsResponse
-> SwapEnvironmentCNAMEsResponse -> Bool
$c/= :: SwapEnvironmentCNAMEsResponse
-> SwapEnvironmentCNAMEsResponse -> Bool
== :: SwapEnvironmentCNAMEsResponse
-> SwapEnvironmentCNAMEsResponse -> Bool
$c== :: SwapEnvironmentCNAMEsResponse
-> SwapEnvironmentCNAMEsResponse -> Bool
Prelude.Eq, ReadPrec [SwapEnvironmentCNAMEsResponse]
ReadPrec SwapEnvironmentCNAMEsResponse
Int -> ReadS SwapEnvironmentCNAMEsResponse
ReadS [SwapEnvironmentCNAMEsResponse]
(Int -> ReadS SwapEnvironmentCNAMEsResponse)
-> ReadS [SwapEnvironmentCNAMEsResponse]
-> ReadPrec SwapEnvironmentCNAMEsResponse
-> ReadPrec [SwapEnvironmentCNAMEsResponse]
-> Read SwapEnvironmentCNAMEsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SwapEnvironmentCNAMEsResponse]
$creadListPrec :: ReadPrec [SwapEnvironmentCNAMEsResponse]
readPrec :: ReadPrec SwapEnvironmentCNAMEsResponse
$creadPrec :: ReadPrec SwapEnvironmentCNAMEsResponse
readList :: ReadS [SwapEnvironmentCNAMEsResponse]
$creadList :: ReadS [SwapEnvironmentCNAMEsResponse]
readsPrec :: Int -> ReadS SwapEnvironmentCNAMEsResponse
$creadsPrec :: Int -> ReadS SwapEnvironmentCNAMEsResponse
Prelude.Read, Int -> SwapEnvironmentCNAMEsResponse -> ShowS
[SwapEnvironmentCNAMEsResponse] -> ShowS
SwapEnvironmentCNAMEsResponse -> String
(Int -> SwapEnvironmentCNAMEsResponse -> ShowS)
-> (SwapEnvironmentCNAMEsResponse -> String)
-> ([SwapEnvironmentCNAMEsResponse] -> ShowS)
-> Show SwapEnvironmentCNAMEsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SwapEnvironmentCNAMEsResponse] -> ShowS
$cshowList :: [SwapEnvironmentCNAMEsResponse] -> ShowS
show :: SwapEnvironmentCNAMEsResponse -> String
$cshow :: SwapEnvironmentCNAMEsResponse -> String
showsPrec :: Int -> SwapEnvironmentCNAMEsResponse -> ShowS
$cshowsPrec :: Int -> SwapEnvironmentCNAMEsResponse -> ShowS
Prelude.Show, (forall x.
 SwapEnvironmentCNAMEsResponse
 -> Rep SwapEnvironmentCNAMEsResponse x)
-> (forall x.
    Rep SwapEnvironmentCNAMEsResponse x
    -> SwapEnvironmentCNAMEsResponse)
-> Generic SwapEnvironmentCNAMEsResponse
forall x.
Rep SwapEnvironmentCNAMEsResponse x
-> SwapEnvironmentCNAMEsResponse
forall x.
SwapEnvironmentCNAMEsResponse
-> Rep SwapEnvironmentCNAMEsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SwapEnvironmentCNAMEsResponse x
-> SwapEnvironmentCNAMEsResponse
$cfrom :: forall x.
SwapEnvironmentCNAMEsResponse
-> Rep SwapEnvironmentCNAMEsResponse x
Prelude.Generic)

-- |
-- Create a value of 'SwapEnvironmentCNAMEsResponse' 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.
newSwapEnvironmentCNAMEsResponse ::
  SwapEnvironmentCNAMEsResponse
newSwapEnvironmentCNAMEsResponse :: SwapEnvironmentCNAMEsResponse
newSwapEnvironmentCNAMEsResponse =
  SwapEnvironmentCNAMEsResponse
SwapEnvironmentCNAMEsResponse'

instance Prelude.NFData SwapEnvironmentCNAMEsResponse