Class: Aws::GameLift::Types::AttributeValue

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-gamelift/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nFloat

For number values, expressed as double.

Returns:

  • (Float)


156
157
158
159
160
161
162
163
# File 'lib/aws-sdk-gamelift/types.rb', line 156

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  SENSITIVE = []
  include Aws::Structure
end

#sString

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

Returns:

  • (String)


156
157
158
159
160
161
162
163
# File 'lib/aws-sdk-gamelift/types.rb', line 156

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  SENSITIVE = []
  include Aws::Structure
end

#sdmHash<String,Float>

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

Returns:

  • (Hash<String,Float>)


156
157
158
159
160
161
162
163
# File 'lib/aws-sdk-gamelift/types.rb', line 156

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  SENSITIVE = []
  include Aws::Structure
end

#slArray<String>

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.

Returns:

  • (Array<String>)


156
157
158
159
160
161
162
163
# File 'lib/aws-sdk-gamelift/types.rb', line 156

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  SENSITIVE = []
  include Aws::Structure
end