libZSservicesZSamazonka-neptuneZSamazonka-neptune
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Neptune.Types.Range

Description

 
Synopsis

Documentation

data Range Source #

A range of integer values.

See: newRange smart constructor.

Constructors

Range' 

Fields

  • to :: Maybe Int

    The maximum value in the range.

  • from :: Maybe Int

    The minimum value in the range.

  • step :: Maybe Int

    The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...

Instances

Instances details
Eq Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Methods

(==) :: Range -> Range -> Bool #

(/=) :: Range -> Range -> Bool #

Read Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Show Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Methods

showsPrec :: Int -> Range -> ShowS #

show :: Range -> String #

showList :: [Range] -> ShowS #

Generic Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Associated Types

type Rep Range :: Type -> Type #

Methods

from :: Range -> Rep Range x #

to :: Rep Range x -> Range #

NFData Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Methods

rnf :: Range -> () #

Hashable Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Methods

hashWithSalt :: Int -> Range -> Int #

hash :: Range -> Int #

FromXML Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

Methods

parseXML :: [Node] -> Either String Range #

type Rep Range Source # 
Instance details

Defined in Amazonka.Neptune.Types.Range

type Rep Range = D1 ('MetaData "Range" "Amazonka.Neptune.Types.Range" "libZSservicesZSamazonka-neptuneZSamazonka-neptune" 'False) (C1 ('MetaCons "Range'" 'PrefixI 'True) (S1 ('MetaSel ('Just "to") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "step") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newRange :: Range Source #

Create a value of Range with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:to:Range', range_to - The maximum value in the range.

$sel:from:Range', range_from - The minimum value in the range.

$sel:step:Range', range_step - The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...

range_to :: Lens' Range (Maybe Int) Source #

The maximum value in the range.

range_from :: Lens' Range (Maybe Int) Source #

The minimum value in the range.

range_step :: Lens' Range (Maybe Int) Source #

The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...