{-# 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.WorkLink.UpdateCompanyNetworkConfiguration
-- 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)
--
-- Updates the company network configuration for the fleet.
module Amazonka.WorkLink.UpdateCompanyNetworkConfiguration
  ( -- * Creating a Request
    UpdateCompanyNetworkConfiguration (..),
    newUpdateCompanyNetworkConfiguration,

    -- * Request Lenses
    updateCompanyNetworkConfiguration_fleetArn,
    updateCompanyNetworkConfiguration_vpcId,
    updateCompanyNetworkConfiguration_subnetIds,
    updateCompanyNetworkConfiguration_securityGroupIds,

    -- * Destructuring the Response
    UpdateCompanyNetworkConfigurationResponse (..),
    newUpdateCompanyNetworkConfigurationResponse,

    -- * Response Lenses
    updateCompanyNetworkConfigurationResponse_httpStatus,
  )
where

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
import Amazonka.WorkLink.Types

-- | /See:/ 'newUpdateCompanyNetworkConfiguration' smart constructor.
data UpdateCompanyNetworkConfiguration = UpdateCompanyNetworkConfiguration'
  { -- | The ARN of the fleet.
    UpdateCompanyNetworkConfiguration -> Text
fleetArn :: Prelude.Text,
    -- | The VPC with connectivity to associated websites.
    UpdateCompanyNetworkConfiguration -> Text
vpcId :: Prelude.Text,
    -- | The subnets used for X-ENI connections from Amazon WorkLink rendering
    -- containers.
    UpdateCompanyNetworkConfiguration -> [Text]
subnetIds :: [Prelude.Text],
    -- | The security groups associated with access to the provided subnets.
    UpdateCompanyNetworkConfiguration -> [Text]
securityGroupIds :: [Prelude.Text]
  }
  deriving (UpdateCompanyNetworkConfiguration
-> UpdateCompanyNetworkConfiguration -> Bool
(UpdateCompanyNetworkConfiguration
 -> UpdateCompanyNetworkConfiguration -> Bool)
-> (UpdateCompanyNetworkConfiguration
    -> UpdateCompanyNetworkConfiguration -> Bool)
-> Eq UpdateCompanyNetworkConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCompanyNetworkConfiguration
-> UpdateCompanyNetworkConfiguration -> Bool
$c/= :: UpdateCompanyNetworkConfiguration
-> UpdateCompanyNetworkConfiguration -> Bool
== :: UpdateCompanyNetworkConfiguration
-> UpdateCompanyNetworkConfiguration -> Bool
$c== :: UpdateCompanyNetworkConfiguration
-> UpdateCompanyNetworkConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateCompanyNetworkConfiguration]
ReadPrec UpdateCompanyNetworkConfiguration
Int -> ReadS UpdateCompanyNetworkConfiguration
ReadS [UpdateCompanyNetworkConfiguration]
(Int -> ReadS UpdateCompanyNetworkConfiguration)
-> ReadS [UpdateCompanyNetworkConfiguration]
-> ReadPrec UpdateCompanyNetworkConfiguration
-> ReadPrec [UpdateCompanyNetworkConfiguration]
-> Read UpdateCompanyNetworkConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCompanyNetworkConfiguration]
$creadListPrec :: ReadPrec [UpdateCompanyNetworkConfiguration]
readPrec :: ReadPrec UpdateCompanyNetworkConfiguration
$creadPrec :: ReadPrec UpdateCompanyNetworkConfiguration
readList :: ReadS [UpdateCompanyNetworkConfiguration]
$creadList :: ReadS [UpdateCompanyNetworkConfiguration]
readsPrec :: Int -> ReadS UpdateCompanyNetworkConfiguration
$creadsPrec :: Int -> ReadS UpdateCompanyNetworkConfiguration
Prelude.Read, Int -> UpdateCompanyNetworkConfiguration -> ShowS
[UpdateCompanyNetworkConfiguration] -> ShowS
UpdateCompanyNetworkConfiguration -> String
(Int -> UpdateCompanyNetworkConfiguration -> ShowS)
-> (UpdateCompanyNetworkConfiguration -> String)
-> ([UpdateCompanyNetworkConfiguration] -> ShowS)
-> Show UpdateCompanyNetworkConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCompanyNetworkConfiguration] -> ShowS
$cshowList :: [UpdateCompanyNetworkConfiguration] -> ShowS
show :: UpdateCompanyNetworkConfiguration -> String
$cshow :: UpdateCompanyNetworkConfiguration -> String
showsPrec :: Int -> UpdateCompanyNetworkConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateCompanyNetworkConfiguration -> ShowS
Prelude.Show, (forall x.
 UpdateCompanyNetworkConfiguration
 -> Rep UpdateCompanyNetworkConfiguration x)
-> (forall x.
    Rep UpdateCompanyNetworkConfiguration x
    -> UpdateCompanyNetworkConfiguration)
-> Generic UpdateCompanyNetworkConfiguration
forall x.
Rep UpdateCompanyNetworkConfiguration x
-> UpdateCompanyNetworkConfiguration
forall x.
UpdateCompanyNetworkConfiguration
-> Rep UpdateCompanyNetworkConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCompanyNetworkConfiguration x
-> UpdateCompanyNetworkConfiguration
$cfrom :: forall x.
UpdateCompanyNetworkConfiguration
-> Rep UpdateCompanyNetworkConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateCompanyNetworkConfiguration' 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:
--
-- 'fleetArn', 'updateCompanyNetworkConfiguration_fleetArn' - The ARN of the fleet.
--
-- 'vpcId', 'updateCompanyNetworkConfiguration_vpcId' - The VPC with connectivity to associated websites.
--
-- 'subnetIds', 'updateCompanyNetworkConfiguration_subnetIds' - The subnets used for X-ENI connections from Amazon WorkLink rendering
-- containers.
--
-- 'securityGroupIds', 'updateCompanyNetworkConfiguration_securityGroupIds' - The security groups associated with access to the provided subnets.
newUpdateCompanyNetworkConfiguration ::
  -- | 'fleetArn'
  Prelude.Text ->
  -- | 'vpcId'
  Prelude.Text ->
  UpdateCompanyNetworkConfiguration
newUpdateCompanyNetworkConfiguration :: Text -> Text -> UpdateCompanyNetworkConfiguration
newUpdateCompanyNetworkConfiguration
  Text
pFleetArn_
  Text
pVpcId_ =
    UpdateCompanyNetworkConfiguration' :: Text
-> Text -> [Text] -> [Text] -> UpdateCompanyNetworkConfiguration
UpdateCompanyNetworkConfiguration'
      { $sel:fleetArn:UpdateCompanyNetworkConfiguration' :: Text
fleetArn =
          Text
pFleetArn_,
        $sel:vpcId:UpdateCompanyNetworkConfiguration' :: Text
vpcId = Text
pVpcId_,
        $sel:subnetIds:UpdateCompanyNetworkConfiguration' :: [Text]
subnetIds = [Text]
forall a. Monoid a => a
Prelude.mempty,
        $sel:securityGroupIds:UpdateCompanyNetworkConfiguration' :: [Text]
securityGroupIds = [Text]
forall a. Monoid a => a
Prelude.mempty
      }

-- | The ARN of the fleet.
updateCompanyNetworkConfiguration_fleetArn :: Lens.Lens' UpdateCompanyNetworkConfiguration Prelude.Text
updateCompanyNetworkConfiguration_fleetArn :: (Text -> f Text)
-> UpdateCompanyNetworkConfiguration
-> f UpdateCompanyNetworkConfiguration
updateCompanyNetworkConfiguration_fleetArn = (UpdateCompanyNetworkConfiguration -> Text)
-> (UpdateCompanyNetworkConfiguration
    -> Text -> UpdateCompanyNetworkConfiguration)
-> Lens
     UpdateCompanyNetworkConfiguration
     UpdateCompanyNetworkConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCompanyNetworkConfiguration' {Text
fleetArn :: Text
$sel:fleetArn:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> Text
fleetArn} -> Text
fleetArn) (\s :: UpdateCompanyNetworkConfiguration
s@UpdateCompanyNetworkConfiguration' {} Text
a -> UpdateCompanyNetworkConfiguration
s {$sel:fleetArn:UpdateCompanyNetworkConfiguration' :: Text
fleetArn = Text
a} :: UpdateCompanyNetworkConfiguration)

-- | The VPC with connectivity to associated websites.
updateCompanyNetworkConfiguration_vpcId :: Lens.Lens' UpdateCompanyNetworkConfiguration Prelude.Text
updateCompanyNetworkConfiguration_vpcId :: (Text -> f Text)
-> UpdateCompanyNetworkConfiguration
-> f UpdateCompanyNetworkConfiguration
updateCompanyNetworkConfiguration_vpcId = (UpdateCompanyNetworkConfiguration -> Text)
-> (UpdateCompanyNetworkConfiguration
    -> Text -> UpdateCompanyNetworkConfiguration)
-> Lens
     UpdateCompanyNetworkConfiguration
     UpdateCompanyNetworkConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCompanyNetworkConfiguration' {Text
vpcId :: Text
$sel:vpcId:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> Text
vpcId} -> Text
vpcId) (\s :: UpdateCompanyNetworkConfiguration
s@UpdateCompanyNetworkConfiguration' {} Text
a -> UpdateCompanyNetworkConfiguration
s {$sel:vpcId:UpdateCompanyNetworkConfiguration' :: Text
vpcId = Text
a} :: UpdateCompanyNetworkConfiguration)

-- | The subnets used for X-ENI connections from Amazon WorkLink rendering
-- containers.
updateCompanyNetworkConfiguration_subnetIds :: Lens.Lens' UpdateCompanyNetworkConfiguration [Prelude.Text]
updateCompanyNetworkConfiguration_subnetIds :: ([Text] -> f [Text])
-> UpdateCompanyNetworkConfiguration
-> f UpdateCompanyNetworkConfiguration
updateCompanyNetworkConfiguration_subnetIds = (UpdateCompanyNetworkConfiguration -> [Text])
-> (UpdateCompanyNetworkConfiguration
    -> [Text] -> UpdateCompanyNetworkConfiguration)
-> Lens
     UpdateCompanyNetworkConfiguration
     UpdateCompanyNetworkConfiguration
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCompanyNetworkConfiguration' {[Text]
subnetIds :: [Text]
$sel:subnetIds:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> [Text]
subnetIds} -> [Text]
subnetIds) (\s :: UpdateCompanyNetworkConfiguration
s@UpdateCompanyNetworkConfiguration' {} [Text]
a -> UpdateCompanyNetworkConfiguration
s {$sel:subnetIds:UpdateCompanyNetworkConfiguration' :: [Text]
subnetIds = [Text]
a} :: UpdateCompanyNetworkConfiguration) (([Text] -> f [Text])
 -> UpdateCompanyNetworkConfiguration
 -> f UpdateCompanyNetworkConfiguration)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UpdateCompanyNetworkConfiguration
-> f UpdateCompanyNetworkConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The security groups associated with access to the provided subnets.
updateCompanyNetworkConfiguration_securityGroupIds :: Lens.Lens' UpdateCompanyNetworkConfiguration [Prelude.Text]
updateCompanyNetworkConfiguration_securityGroupIds :: ([Text] -> f [Text])
-> UpdateCompanyNetworkConfiguration
-> f UpdateCompanyNetworkConfiguration
updateCompanyNetworkConfiguration_securityGroupIds = (UpdateCompanyNetworkConfiguration -> [Text])
-> (UpdateCompanyNetworkConfiguration
    -> [Text] -> UpdateCompanyNetworkConfiguration)
-> Lens
     UpdateCompanyNetworkConfiguration
     UpdateCompanyNetworkConfiguration
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCompanyNetworkConfiguration' {[Text]
securityGroupIds :: [Text]
$sel:securityGroupIds:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> [Text]
securityGroupIds} -> [Text]
securityGroupIds) (\s :: UpdateCompanyNetworkConfiguration
s@UpdateCompanyNetworkConfiguration' {} [Text]
a -> UpdateCompanyNetworkConfiguration
s {$sel:securityGroupIds:UpdateCompanyNetworkConfiguration' :: [Text]
securityGroupIds = [Text]
a} :: UpdateCompanyNetworkConfiguration) (([Text] -> f [Text])
 -> UpdateCompanyNetworkConfiguration
 -> f UpdateCompanyNetworkConfiguration)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UpdateCompanyNetworkConfiguration
-> f UpdateCompanyNetworkConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    UpdateCompanyNetworkConfiguration
  where
  type
    AWSResponse UpdateCompanyNetworkConfiguration =
      UpdateCompanyNetworkConfigurationResponse
  request :: UpdateCompanyNetworkConfiguration
-> Request UpdateCompanyNetworkConfiguration
request = Service
-> UpdateCompanyNetworkConfiguration
-> Request UpdateCompanyNetworkConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateCompanyNetworkConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse UpdateCompanyNetworkConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse UpdateCompanyNetworkConfiguration))
-> Logger
-> Service
-> Proxy UpdateCompanyNetworkConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse UpdateCompanyNetworkConfiguration)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> UpdateCompanyNetworkConfigurationResponse
UpdateCompanyNetworkConfigurationResponse'
            (Int -> UpdateCompanyNetworkConfigurationResponse)
-> Either String Int
-> Either String UpdateCompanyNetworkConfigurationResponse
forall (f :: * -> *) a b. Functor 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
    UpdateCompanyNetworkConfiguration

instance
  Prelude.NFData
    UpdateCompanyNetworkConfiguration

instance
  Core.ToHeaders
    UpdateCompanyNetworkConfiguration
  where
  toHeaders :: UpdateCompanyNetworkConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> UpdateCompanyNetworkConfiguration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    UpdateCompanyNetworkConfiguration
  where
  toJSON :: UpdateCompanyNetworkConfiguration -> Value
toJSON UpdateCompanyNetworkConfiguration' {[Text]
Text
securityGroupIds :: [Text]
subnetIds :: [Text]
vpcId :: Text
fleetArn :: Text
$sel:securityGroupIds:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> [Text]
$sel:subnetIds:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> [Text]
$sel:vpcId:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> Text
$sel:fleetArn:UpdateCompanyNetworkConfiguration' :: UpdateCompanyNetworkConfiguration -> 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
"FleetArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
fleetArn),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"VpcId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
vpcId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"SubnetIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
subnetIds),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"SecurityGroupIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
securityGroupIds)
          ]
      )

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

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

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

-- |
-- Create a value of 'UpdateCompanyNetworkConfigurationResponse' 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:
--
-- 'httpStatus', 'updateCompanyNetworkConfigurationResponse_httpStatus' - The response's http status code.
newUpdateCompanyNetworkConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateCompanyNetworkConfigurationResponse
newUpdateCompanyNetworkConfigurationResponse :: Int -> UpdateCompanyNetworkConfigurationResponse
newUpdateCompanyNetworkConfigurationResponse
  Int
pHttpStatus_ =
    UpdateCompanyNetworkConfigurationResponse' :: Int -> UpdateCompanyNetworkConfigurationResponse
UpdateCompanyNetworkConfigurationResponse'
      { $sel:httpStatus:UpdateCompanyNetworkConfigurationResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

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

instance
  Prelude.NFData
    UpdateCompanyNetworkConfigurationResponse