content: module Stratosphere.EC2.NetworkInsightsAnalysis.AlternatePathHintProperty (
          AlternatePathHintProperty(..), mkAlternatePathHintProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data AlternatePathHintProperty
    = AlternatePathHintProperty {componentArn :: (Prelude.Maybe (Value Prelude.Text)),
                                 componentId :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkAlternatePathHintProperty :: AlternatePathHintProperty
  mkAlternatePathHintProperty
    = AlternatePathHintProperty
        {componentArn = Prelude.Nothing, componentId = Prelude.Nothing}
  instance ToResourceProperties AlternatePathHintProperty where
    toResourceProperties AlternatePathHintProperty {..}
      = ResourceProperties
          {awsType = "AWS::EC2::NetworkInsightsAnalysis.AlternatePathHint",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "ComponentArn" Prelude.<$> componentArn,
                              (JSON..=) "ComponentId" Prelude.<$> componentId])}
  instance JSON.ToJSON AlternatePathHintProperty where
    toJSON AlternatePathHintProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "ComponentArn" Prelude.<$> componentArn,
                 (JSON..=) "ComponentId" Prelude.<$> componentId]))
  instance Property "ComponentArn" AlternatePathHintProperty where
    type PropertyType "ComponentArn" AlternatePathHintProperty = Value Prelude.Text
    set newValue AlternatePathHintProperty {..}
      = AlternatePathHintProperty
          {componentArn = Prelude.pure newValue, ..}
  instance Property "ComponentId" AlternatePathHintProperty where
    type PropertyType "ComponentId" AlternatePathHintProperty = Value Prelude.Text
    set newValue AlternatePathHintProperty {..}
      = AlternatePathHintProperty
          {componentId = Prelude.pure newValue, ..}