{-# 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.Chime.PutAppInstanceStreamingConfigurations
-- 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)
--
-- The data streaming configurations of an @AppInstance@.
module Amazonka.Chime.PutAppInstanceStreamingConfigurations
  ( -- * Creating a Request
    PutAppInstanceStreamingConfigurations (..),
    newPutAppInstanceStreamingConfigurations,

    -- * Request Lenses
    putAppInstanceStreamingConfigurations_appInstanceArn,
    putAppInstanceStreamingConfigurations_appInstanceStreamingConfigurations,

    -- * Destructuring the Response
    PutAppInstanceStreamingConfigurationsResponse (..),
    newPutAppInstanceStreamingConfigurationsResponse,

    -- * Response Lenses
    putAppInstanceStreamingConfigurationsResponse_appInstanceStreamingConfigurations,
    putAppInstanceStreamingConfigurationsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newPutAppInstanceStreamingConfigurations' smart constructor.
data PutAppInstanceStreamingConfigurations = PutAppInstanceStreamingConfigurations'
  { -- | The ARN of the @AppInstance@.
    PutAppInstanceStreamingConfigurations -> Text
appInstanceArn :: Prelude.Text,
    -- | The streaming configurations set for an @AppInstance@.
    PutAppInstanceStreamingConfigurations
-> NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations :: Prelude.NonEmpty AppInstanceStreamingConfiguration
  }
  deriving (PutAppInstanceStreamingConfigurations
-> PutAppInstanceStreamingConfigurations -> Bool
(PutAppInstanceStreamingConfigurations
 -> PutAppInstanceStreamingConfigurations -> Bool)
-> (PutAppInstanceStreamingConfigurations
    -> PutAppInstanceStreamingConfigurations -> Bool)
-> Eq PutAppInstanceStreamingConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutAppInstanceStreamingConfigurations
-> PutAppInstanceStreamingConfigurations -> Bool
$c/= :: PutAppInstanceStreamingConfigurations
-> PutAppInstanceStreamingConfigurations -> Bool
== :: PutAppInstanceStreamingConfigurations
-> PutAppInstanceStreamingConfigurations -> Bool
$c== :: PutAppInstanceStreamingConfigurations
-> PutAppInstanceStreamingConfigurations -> Bool
Prelude.Eq, Int -> PutAppInstanceStreamingConfigurations -> ShowS
[PutAppInstanceStreamingConfigurations] -> ShowS
PutAppInstanceStreamingConfigurations -> String
(Int -> PutAppInstanceStreamingConfigurations -> ShowS)
-> (PutAppInstanceStreamingConfigurations -> String)
-> ([PutAppInstanceStreamingConfigurations] -> ShowS)
-> Show PutAppInstanceStreamingConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutAppInstanceStreamingConfigurations] -> ShowS
$cshowList :: [PutAppInstanceStreamingConfigurations] -> ShowS
show :: PutAppInstanceStreamingConfigurations -> String
$cshow :: PutAppInstanceStreamingConfigurations -> String
showsPrec :: Int -> PutAppInstanceStreamingConfigurations -> ShowS
$cshowsPrec :: Int -> PutAppInstanceStreamingConfigurations -> ShowS
Prelude.Show, (forall x.
 PutAppInstanceStreamingConfigurations
 -> Rep PutAppInstanceStreamingConfigurations x)
-> (forall x.
    Rep PutAppInstanceStreamingConfigurations x
    -> PutAppInstanceStreamingConfigurations)
-> Generic PutAppInstanceStreamingConfigurations
forall x.
Rep PutAppInstanceStreamingConfigurations x
-> PutAppInstanceStreamingConfigurations
forall x.
PutAppInstanceStreamingConfigurations
-> Rep PutAppInstanceStreamingConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutAppInstanceStreamingConfigurations x
-> PutAppInstanceStreamingConfigurations
$cfrom :: forall x.
PutAppInstanceStreamingConfigurations
-> Rep PutAppInstanceStreamingConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'PutAppInstanceStreamingConfigurations' 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:
--
-- 'appInstanceArn', 'putAppInstanceStreamingConfigurations_appInstanceArn' - The ARN of the @AppInstance@.
--
-- 'appInstanceStreamingConfigurations', 'putAppInstanceStreamingConfigurations_appInstanceStreamingConfigurations' - The streaming configurations set for an @AppInstance@.
newPutAppInstanceStreamingConfigurations ::
  -- | 'appInstanceArn'
  Prelude.Text ->
  -- | 'appInstanceStreamingConfigurations'
  Prelude.NonEmpty AppInstanceStreamingConfiguration ->
  PutAppInstanceStreamingConfigurations
newPutAppInstanceStreamingConfigurations :: Text
-> NonEmpty AppInstanceStreamingConfiguration
-> PutAppInstanceStreamingConfigurations
newPutAppInstanceStreamingConfigurations
  Text
pAppInstanceArn_
  NonEmpty AppInstanceStreamingConfiguration
pAppInstanceStreamingConfigurations_ =
    PutAppInstanceStreamingConfigurations' :: Text
-> NonEmpty AppInstanceStreamingConfiguration
-> PutAppInstanceStreamingConfigurations
PutAppInstanceStreamingConfigurations'
      { $sel:appInstanceArn:PutAppInstanceStreamingConfigurations' :: Text
appInstanceArn =
          Text
pAppInstanceArn_,
        $sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurations' :: NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations =
          Tagged
  (NonEmpty AppInstanceStreamingConfiguration)
  (Identity (NonEmpty AppInstanceStreamingConfiguration))
-> Tagged
     (NonEmpty AppInstanceStreamingConfiguration)
     (Identity (NonEmpty AppInstanceStreamingConfiguration))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
            (Tagged
   (NonEmpty AppInstanceStreamingConfiguration)
   (Identity (NonEmpty AppInstanceStreamingConfiguration))
 -> Tagged
      (NonEmpty AppInstanceStreamingConfiguration)
      (Identity (NonEmpty AppInstanceStreamingConfiguration)))
-> NonEmpty AppInstanceStreamingConfiguration
-> NonEmpty AppInstanceStreamingConfiguration
forall t b. AReview t b -> b -> t
Lens.# NonEmpty AppInstanceStreamingConfiguration
pAppInstanceStreamingConfigurations_
      }

-- | The ARN of the @AppInstance@.
putAppInstanceStreamingConfigurations_appInstanceArn :: Lens.Lens' PutAppInstanceStreamingConfigurations Prelude.Text
putAppInstanceStreamingConfigurations_appInstanceArn :: (Text -> f Text)
-> PutAppInstanceStreamingConfigurations
-> f PutAppInstanceStreamingConfigurations
putAppInstanceStreamingConfigurations_appInstanceArn = (PutAppInstanceStreamingConfigurations -> Text)
-> (PutAppInstanceStreamingConfigurations
    -> Text -> PutAppInstanceStreamingConfigurations)
-> Lens
     PutAppInstanceStreamingConfigurations
     PutAppInstanceStreamingConfigurations
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppInstanceStreamingConfigurations' {Text
appInstanceArn :: Text
$sel:appInstanceArn:PutAppInstanceStreamingConfigurations' :: PutAppInstanceStreamingConfigurations -> Text
appInstanceArn} -> Text
appInstanceArn) (\s :: PutAppInstanceStreamingConfigurations
s@PutAppInstanceStreamingConfigurations' {} Text
a -> PutAppInstanceStreamingConfigurations
s {$sel:appInstanceArn:PutAppInstanceStreamingConfigurations' :: Text
appInstanceArn = Text
a} :: PutAppInstanceStreamingConfigurations)

-- | The streaming configurations set for an @AppInstance@.
putAppInstanceStreamingConfigurations_appInstanceStreamingConfigurations :: Lens.Lens' PutAppInstanceStreamingConfigurations (Prelude.NonEmpty AppInstanceStreamingConfiguration)
putAppInstanceStreamingConfigurations_appInstanceStreamingConfigurations :: (NonEmpty AppInstanceStreamingConfiguration
 -> f (NonEmpty AppInstanceStreamingConfiguration))
-> PutAppInstanceStreamingConfigurations
-> f PutAppInstanceStreamingConfigurations
putAppInstanceStreamingConfigurations_appInstanceStreamingConfigurations = (PutAppInstanceStreamingConfigurations
 -> NonEmpty AppInstanceStreamingConfiguration)
-> (PutAppInstanceStreamingConfigurations
    -> NonEmpty AppInstanceStreamingConfiguration
    -> PutAppInstanceStreamingConfigurations)
-> Lens
     PutAppInstanceStreamingConfigurations
     PutAppInstanceStreamingConfigurations
     (NonEmpty AppInstanceStreamingConfiguration)
     (NonEmpty AppInstanceStreamingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppInstanceStreamingConfigurations' {NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations :: NonEmpty AppInstanceStreamingConfiguration
$sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurations' :: PutAppInstanceStreamingConfigurations
-> NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations} -> NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations) (\s :: PutAppInstanceStreamingConfigurations
s@PutAppInstanceStreamingConfigurations' {} NonEmpty AppInstanceStreamingConfiguration
a -> PutAppInstanceStreamingConfigurations
s {$sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurations' :: NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations = NonEmpty AppInstanceStreamingConfiguration
a} :: PutAppInstanceStreamingConfigurations) ((NonEmpty AppInstanceStreamingConfiguration
  -> f (NonEmpty AppInstanceStreamingConfiguration))
 -> PutAppInstanceStreamingConfigurations
 -> f PutAppInstanceStreamingConfigurations)
-> ((NonEmpty AppInstanceStreamingConfiguration
     -> f (NonEmpty AppInstanceStreamingConfiguration))
    -> NonEmpty AppInstanceStreamingConfiguration
    -> f (NonEmpty AppInstanceStreamingConfiguration))
-> (NonEmpty AppInstanceStreamingConfiguration
    -> f (NonEmpty AppInstanceStreamingConfiguration))
-> PutAppInstanceStreamingConfigurations
-> f PutAppInstanceStreamingConfigurations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty AppInstanceStreamingConfiguration
 -> f (NonEmpty AppInstanceStreamingConfiguration))
-> NonEmpty AppInstanceStreamingConfiguration
-> f (NonEmpty AppInstanceStreamingConfiguration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    PutAppInstanceStreamingConfigurations
  where
  type
    AWSResponse
      PutAppInstanceStreamingConfigurations =
      PutAppInstanceStreamingConfigurationsResponse
  request :: PutAppInstanceStreamingConfigurations
-> Request PutAppInstanceStreamingConfigurations
request = Service
-> PutAppInstanceStreamingConfigurations
-> Request PutAppInstanceStreamingConfigurations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy PutAppInstanceStreamingConfigurations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse PutAppInstanceStreamingConfigurations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse PutAppInstanceStreamingConfigurations))
-> Logger
-> Service
-> Proxy PutAppInstanceStreamingConfigurations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse PutAppInstanceStreamingConfigurations)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe (NonEmpty AppInstanceStreamingConfiguration)
-> Int -> PutAppInstanceStreamingConfigurationsResponse
PutAppInstanceStreamingConfigurationsResponse'
            (Maybe (NonEmpty AppInstanceStreamingConfiguration)
 -> Int -> PutAppInstanceStreamingConfigurationsResponse)
-> Either
     String (Maybe (NonEmpty AppInstanceStreamingConfiguration))
-> Either
     String (Int -> PutAppInstanceStreamingConfigurationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either
     String (Maybe (NonEmpty AppInstanceStreamingConfiguration))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AppInstanceStreamingConfigurations")
              Either
  String (Int -> PutAppInstanceStreamingConfigurationsResponse)
-> Either String Int
-> Either String PutAppInstanceStreamingConfigurationsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    PutAppInstanceStreamingConfigurations

instance
  Prelude.NFData
    PutAppInstanceStreamingConfigurations

instance
  Core.ToHeaders
    PutAppInstanceStreamingConfigurations
  where
  toHeaders :: PutAppInstanceStreamingConfigurations -> ResponseHeaders
toHeaders = ResponseHeaders
-> PutAppInstanceStreamingConfigurations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToJSON
    PutAppInstanceStreamingConfigurations
  where
  toJSON :: PutAppInstanceStreamingConfigurations -> Value
toJSON PutAppInstanceStreamingConfigurations' {NonEmpty AppInstanceStreamingConfiguration
Text
appInstanceStreamingConfigurations :: NonEmpty AppInstanceStreamingConfiguration
appInstanceArn :: Text
$sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurations' :: PutAppInstanceStreamingConfigurations
-> NonEmpty AppInstanceStreamingConfiguration
$sel:appInstanceArn:PutAppInstanceStreamingConfigurations' :: PutAppInstanceStreamingConfigurations -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"AppInstanceStreamingConfigurations"
                  Text -> NonEmpty AppInstanceStreamingConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty AppInstanceStreamingConfiguration
appInstanceStreamingConfigurations
              )
          ]
      )

instance
  Core.ToPath
    PutAppInstanceStreamingConfigurations
  where
  toPath :: PutAppInstanceStreamingConfigurations -> ByteString
toPath PutAppInstanceStreamingConfigurations' {NonEmpty AppInstanceStreamingConfiguration
Text
appInstanceStreamingConfigurations :: NonEmpty AppInstanceStreamingConfiguration
appInstanceArn :: Text
$sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurations' :: PutAppInstanceStreamingConfigurations
-> NonEmpty AppInstanceStreamingConfiguration
$sel:appInstanceArn:PutAppInstanceStreamingConfigurations' :: PutAppInstanceStreamingConfigurations -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/app-instances/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
appInstanceArn,
        ByteString
"/streaming-configurations"
      ]

instance
  Core.ToQuery
    PutAppInstanceStreamingConfigurations
  where
  toQuery :: PutAppInstanceStreamingConfigurations -> QueryString
toQuery = QueryString -> PutAppInstanceStreamingConfigurations -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newPutAppInstanceStreamingConfigurationsResponse' smart constructor.
data PutAppInstanceStreamingConfigurationsResponse = PutAppInstanceStreamingConfigurationsResponse'
  { -- | The streaming configurations of an @AppInstance@.
    PutAppInstanceStreamingConfigurationsResponse
-> Maybe (NonEmpty AppInstanceStreamingConfiguration)
appInstanceStreamingConfigurations :: Prelude.Maybe (Prelude.NonEmpty AppInstanceStreamingConfiguration),
    -- | The response's http status code.
    PutAppInstanceStreamingConfigurationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutAppInstanceStreamingConfigurationsResponse
-> PutAppInstanceStreamingConfigurationsResponse -> Bool
(PutAppInstanceStreamingConfigurationsResponse
 -> PutAppInstanceStreamingConfigurationsResponse -> Bool)
-> (PutAppInstanceStreamingConfigurationsResponse
    -> PutAppInstanceStreamingConfigurationsResponse -> Bool)
-> Eq PutAppInstanceStreamingConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutAppInstanceStreamingConfigurationsResponse
-> PutAppInstanceStreamingConfigurationsResponse -> Bool
$c/= :: PutAppInstanceStreamingConfigurationsResponse
-> PutAppInstanceStreamingConfigurationsResponse -> Bool
== :: PutAppInstanceStreamingConfigurationsResponse
-> PutAppInstanceStreamingConfigurationsResponse -> Bool
$c== :: PutAppInstanceStreamingConfigurationsResponse
-> PutAppInstanceStreamingConfigurationsResponse -> Bool
Prelude.Eq, Int -> PutAppInstanceStreamingConfigurationsResponse -> ShowS
[PutAppInstanceStreamingConfigurationsResponse] -> ShowS
PutAppInstanceStreamingConfigurationsResponse -> String
(Int -> PutAppInstanceStreamingConfigurationsResponse -> ShowS)
-> (PutAppInstanceStreamingConfigurationsResponse -> String)
-> ([PutAppInstanceStreamingConfigurationsResponse] -> ShowS)
-> Show PutAppInstanceStreamingConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutAppInstanceStreamingConfigurationsResponse] -> ShowS
$cshowList :: [PutAppInstanceStreamingConfigurationsResponse] -> ShowS
show :: PutAppInstanceStreamingConfigurationsResponse -> String
$cshow :: PutAppInstanceStreamingConfigurationsResponse -> String
showsPrec :: Int -> PutAppInstanceStreamingConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> PutAppInstanceStreamingConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
 PutAppInstanceStreamingConfigurationsResponse
 -> Rep PutAppInstanceStreamingConfigurationsResponse x)
-> (forall x.
    Rep PutAppInstanceStreamingConfigurationsResponse x
    -> PutAppInstanceStreamingConfigurationsResponse)
-> Generic PutAppInstanceStreamingConfigurationsResponse
forall x.
Rep PutAppInstanceStreamingConfigurationsResponse x
-> PutAppInstanceStreamingConfigurationsResponse
forall x.
PutAppInstanceStreamingConfigurationsResponse
-> Rep PutAppInstanceStreamingConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutAppInstanceStreamingConfigurationsResponse x
-> PutAppInstanceStreamingConfigurationsResponse
$cfrom :: forall x.
PutAppInstanceStreamingConfigurationsResponse
-> Rep PutAppInstanceStreamingConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutAppInstanceStreamingConfigurationsResponse' 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:
--
-- 'appInstanceStreamingConfigurations', 'putAppInstanceStreamingConfigurationsResponse_appInstanceStreamingConfigurations' - The streaming configurations of an @AppInstance@.
--
-- 'httpStatus', 'putAppInstanceStreamingConfigurationsResponse_httpStatus' - The response's http status code.
newPutAppInstanceStreamingConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutAppInstanceStreamingConfigurationsResponse
newPutAppInstanceStreamingConfigurationsResponse :: Int -> PutAppInstanceStreamingConfigurationsResponse
newPutAppInstanceStreamingConfigurationsResponse
  Int
pHttpStatus_ =
    PutAppInstanceStreamingConfigurationsResponse' :: Maybe (NonEmpty AppInstanceStreamingConfiguration)
-> Int -> PutAppInstanceStreamingConfigurationsResponse
PutAppInstanceStreamingConfigurationsResponse'
      { $sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurationsResponse' :: Maybe (NonEmpty AppInstanceStreamingConfiguration)
appInstanceStreamingConfigurations =
          Maybe (NonEmpty AppInstanceStreamingConfiguration)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:PutAppInstanceStreamingConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The streaming configurations of an @AppInstance@.
putAppInstanceStreamingConfigurationsResponse_appInstanceStreamingConfigurations :: Lens.Lens' PutAppInstanceStreamingConfigurationsResponse (Prelude.Maybe (Prelude.NonEmpty AppInstanceStreamingConfiguration))
putAppInstanceStreamingConfigurationsResponse_appInstanceStreamingConfigurations :: (Maybe (NonEmpty AppInstanceStreamingConfiguration)
 -> f (Maybe (NonEmpty AppInstanceStreamingConfiguration)))
-> PutAppInstanceStreamingConfigurationsResponse
-> f PutAppInstanceStreamingConfigurationsResponse
putAppInstanceStreamingConfigurationsResponse_appInstanceStreamingConfigurations = (PutAppInstanceStreamingConfigurationsResponse
 -> Maybe (NonEmpty AppInstanceStreamingConfiguration))
-> (PutAppInstanceStreamingConfigurationsResponse
    -> Maybe (NonEmpty AppInstanceStreamingConfiguration)
    -> PutAppInstanceStreamingConfigurationsResponse)
-> Lens
     PutAppInstanceStreamingConfigurationsResponse
     PutAppInstanceStreamingConfigurationsResponse
     (Maybe (NonEmpty AppInstanceStreamingConfiguration))
     (Maybe (NonEmpty AppInstanceStreamingConfiguration))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppInstanceStreamingConfigurationsResponse' {Maybe (NonEmpty AppInstanceStreamingConfiguration)
appInstanceStreamingConfigurations :: Maybe (NonEmpty AppInstanceStreamingConfiguration)
$sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurationsResponse' :: PutAppInstanceStreamingConfigurationsResponse
-> Maybe (NonEmpty AppInstanceStreamingConfiguration)
appInstanceStreamingConfigurations} -> Maybe (NonEmpty AppInstanceStreamingConfiguration)
appInstanceStreamingConfigurations) (\s :: PutAppInstanceStreamingConfigurationsResponse
s@PutAppInstanceStreamingConfigurationsResponse' {} Maybe (NonEmpty AppInstanceStreamingConfiguration)
a -> PutAppInstanceStreamingConfigurationsResponse
s {$sel:appInstanceStreamingConfigurations:PutAppInstanceStreamingConfigurationsResponse' :: Maybe (NonEmpty AppInstanceStreamingConfiguration)
appInstanceStreamingConfigurations = Maybe (NonEmpty AppInstanceStreamingConfiguration)
a} :: PutAppInstanceStreamingConfigurationsResponse) ((Maybe (NonEmpty AppInstanceStreamingConfiguration)
  -> f (Maybe (NonEmpty AppInstanceStreamingConfiguration)))
 -> PutAppInstanceStreamingConfigurationsResponse
 -> f PutAppInstanceStreamingConfigurationsResponse)
-> ((Maybe (NonEmpty AppInstanceStreamingConfiguration)
     -> f (Maybe (NonEmpty AppInstanceStreamingConfiguration)))
    -> Maybe (NonEmpty AppInstanceStreamingConfiguration)
    -> f (Maybe (NonEmpty AppInstanceStreamingConfiguration)))
-> (Maybe (NonEmpty AppInstanceStreamingConfiguration)
    -> f (Maybe (NonEmpty AppInstanceStreamingConfiguration)))
-> PutAppInstanceStreamingConfigurationsResponse
-> f PutAppInstanceStreamingConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty AppInstanceStreamingConfiguration)
  (NonEmpty AppInstanceStreamingConfiguration)
  (NonEmpty AppInstanceStreamingConfiguration)
  (NonEmpty AppInstanceStreamingConfiguration)
-> Iso
     (Maybe (NonEmpty AppInstanceStreamingConfiguration))
     (Maybe (NonEmpty AppInstanceStreamingConfiguration))
     (Maybe (NonEmpty AppInstanceStreamingConfiguration))
     (Maybe (NonEmpty AppInstanceStreamingConfiguration))
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
  (NonEmpty AppInstanceStreamingConfiguration)
  (NonEmpty AppInstanceStreamingConfiguration)
  (NonEmpty AppInstanceStreamingConfiguration)
  (NonEmpty AppInstanceStreamingConfiguration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
putAppInstanceStreamingConfigurationsResponse_httpStatus :: Lens.Lens' PutAppInstanceStreamingConfigurationsResponse Prelude.Int
putAppInstanceStreamingConfigurationsResponse_httpStatus :: (Int -> f Int)
-> PutAppInstanceStreamingConfigurationsResponse
-> f PutAppInstanceStreamingConfigurationsResponse
putAppInstanceStreamingConfigurationsResponse_httpStatus = (PutAppInstanceStreamingConfigurationsResponse -> Int)
-> (PutAppInstanceStreamingConfigurationsResponse
    -> Int -> PutAppInstanceStreamingConfigurationsResponse)
-> Lens
     PutAppInstanceStreamingConfigurationsResponse
     PutAppInstanceStreamingConfigurationsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppInstanceStreamingConfigurationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutAppInstanceStreamingConfigurationsResponse' :: PutAppInstanceStreamingConfigurationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutAppInstanceStreamingConfigurationsResponse
s@PutAppInstanceStreamingConfigurationsResponse' {} Int
a -> PutAppInstanceStreamingConfigurationsResponse
s {$sel:httpStatus:PutAppInstanceStreamingConfigurationsResponse' :: Int
httpStatus = Int
a} :: PutAppInstanceStreamingConfigurationsResponse)

instance
  Prelude.NFData
    PutAppInstanceStreamingConfigurationsResponse