libZSservicesZSamazonka-gameliftZSamazonka-gamelift
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.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

  • sl :: Maybe [Text]

    For a list of up to 10 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.

  • 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.

  • n :: Maybe Double

    For number values, expressed as double.

  • s :: Maybe Text

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

Instances

Instances details
Eq AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Read AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Show 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 #

NFData AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

Methods

rnf :: AttributeValue -> () #

Hashable AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

ToJSON AttributeValue Source # 
Instance details

Defined in Amazonka.GameLift.Types.AttributeValue

FromJSON 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" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "AttributeValue'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "sdm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Double)))) :*: (S1 ('MetaSel ('Just "n") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "s") '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:sl:AttributeValue', attributeValue_sl - For a list of up to 10 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.

$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: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.

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

For a list of up to 10 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_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_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.