amazonka-gamelift-2.0: Amazon GameLift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GameLift.Types.AttributeValue

Description

 
Synopsis

Documentation

data AttributeValue Source #

Values for use in player attribute key-value pairs. This object lets you specify an attribute value using any of the valid data types: string, number, string array, or data map. Each AttributeValue object can use only one of the available properties.

See: newAttributeValue smart constructor.

Constructors

AttributeValue' 

Fields

  • n :: Maybe Double

    For number values, expressed as double.

  • s :: Maybe Text

    For single string values. Maximum string length is 100 characters.

  • sdm :: Maybe (HashMap Text Double)

    For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.

  • sl :: Maybe [Text]

    For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.

Instances

Instances details
FromJSON AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

ToJSON AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Generic AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Associated Types

type Rep AttributeValue :: Type -> Type #

Read AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Show AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

NFData AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Methods

rnf :: AttributeValue -> () #

Eq AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Hashable AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

type Rep AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

type Rep AttributeValue = D1 ('MetaData "AttributeValue" "Amazonka.GameLift.Types.AttributeValue" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "AttributeValue'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "s") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sdm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Double))) :*: S1 ('MetaSel ('Just "sl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))

newAttributeValue :: AttributeValue Source #

Create a value of AttributeValue 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:n:AttributeValue', attributeValue_n - For number values, expressed as double.

$sel:s:AttributeValue', attributeValue_s - For single string values. Maximum string length is 100 characters.

$sel:sdm:AttributeValue', attributeValue_sdm - For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.

$sel:sl:AttributeValue', attributeValue_sl - For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.

attributeValue_n :: Lens' AttributeValue (Maybe Double) Source #

For number values, expressed as double.

attributeValue_s :: Lens' AttributeValue (Maybe Text) Source #

For single string values. Maximum string length is 100 characters.

attributeValue_sdm :: Lens' AttributeValue (Maybe (HashMap Text Double)) Source #

For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.

attributeValue_sl :: Lens' AttributeValue (Maybe [Text]) Source #

For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.