Table of Contents

Class PrimitiveList

Namespace
Amazon.DynamoDBv2.DocumentModel
Assembly
AWSSDK.DynamoDBv2.dll

A DynamoDBEntry that represents a primitive list DynamoDB type

public class PrimitiveList : DynamoDBEntry, ICloneable, IEquatable<PrimitiveList>
Inheritance
PrimitiveList
Implements
Inherited Members

Constructors

PrimitiveList()

Constructs an empty PrimitiveList. Values are configured to be saved as strings.

public PrimitiveList()

PrimitiveList(DynamoDBEntryType)

Constructs an empty PrimitiveList and specifies the type of its elements.

public PrimitiveList(DynamoDBEntryType type)

Parameters

type DynamoDBEntryType

Properties

Entries

Collection of Primitive entries

public List<Primitive> Entries { get; set; }

Property Value

List<Primitive>

this[int]

Gets or sets Primitive at a specific location in the list.

public Primitive this[int i] { get; set; }

Parameters

i int

Index of the Primitive in question.

Property Value

Primitive

Primitive in question.

Type

Type of Primitive items in the list

public DynamoDBEntryType Type { get; set; }

Property Value

DynamoDBEntryType

Methods

Add(Primitive)

Adds a Primitive to the end of the list.

public void Add(Primitive value)

Parameters

value Primitive

Primitive to add.

AsArrayOfPrimitive()

Explicitly convert DynamoDBEntry to Primitive[]

public override Primitive[] AsArrayOfPrimitive()

Returns

Primitive[]

Primitive[] value of this object

AsArrayOfString()

Explicitly convert DynamoDBEntry to String[]

public override string[] AsArrayOfString()

Returns

string[]

String[] value of this object

AsHashSetOfByteArray()

Explicitly convert PrimitiveList to HashSet<byte[]>

public override HashSet<byte[]> AsHashSetOfByteArray()

Returns

HashSet<byte[]>

HashSet<byte[]> value of this object

AsHashSetOfPrimitive()

Explicitly convert PrimitiveList to HashSet<Primitive>

public override HashSet<Primitive> AsHashSetOfPrimitive()

Returns

HashSet<Primitive>

HashSet<Primitive> value of this object

AsHashSetOfString()

Explicitly convert DynamoDBEntry to HashSet<String>

public override HashSet<string> AsHashSetOfString()

Returns

HashSet<string>

List<String> value of this object

AsListOfByteArray()

Explicitly convert PrimitiveList to byte[]

public override List<byte[]> AsListOfByteArray()

Returns

List<byte[]>

List<byte[]> value of this object

AsListOfMemoryStream()

Explicitly convert PrimitiveList to List<MemoryStream>

public override List<MemoryStream> AsListOfMemoryStream()

Returns

List<MemoryStream>

List<MemoryStream> value of this object

AsListOfPrimitive()

Explicitly convert PrimitiveList to List<Primitive>

public override List<Primitive> AsListOfPrimitive()

Returns

List<Primitive>

List<Primitive> value of this object

AsListOfString()

Explicitly convert PrimitiveList to List<String>

public override List<string> AsListOfString()

Returns

List<string>

List<String> value of this object

Clone()

Implement the Clone method.

public override object Clone()

Returns

object

Equals(PrimitiveList)

Implement the Equals method from IEquatable

public bool Equals(PrimitiveList other)

Parameters

other PrimitiveList

Returns

bool

Equals(object)

Implement the Equals method.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Implement the GetHashCode method.

public override int GetHashCode()

Returns

int

Operators

explicit operator Primitive[](PrimitiveList)

Explicitly convert DynamoDBEntry to Primitive[]

public static explicit operator Primitive[](PrimitiveList p)

Parameters

p PrimitiveList

DynamoDBEntry to convert

Returns

Primitive[]

Primitive[] value of DynamoDBEntry

explicit operator HashSet<Primitive>(PrimitiveList)

Explicitly convert PrimitiveList to HashSet<Primitive>

public static explicit operator HashSet<Primitive>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

HashSet<Primitive>

HashSet<Primitive> value of PrimitiveList

explicit operator HashSet<byte[]>(PrimitiveList)

Explicitly convert PrimitiveList to HashSet<byte[]>

public static explicit operator HashSet<byte[]>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

HashSet<byte[]>

HashSet<byte[]> value of PrimitiveList

explicit operator HashSet<string>(PrimitiveList)

Explicitly convert PrimitiveList to HashSet<String>

public static explicit operator HashSet<string>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

HashSet<string>

HashSet<String> value of PrimitiveList

explicit operator List<Primitive>(PrimitiveList)

Explicitly convert PrimitiveList to List<Primitive>

public static explicit operator List<Primitive>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

List<Primitive>

List<Primitive> value of PrimitiveList

explicit operator List<byte[]>(PrimitiveList)

Explicitly convert PrimitiveList to List<byte[]>

public static explicit operator List<byte[]>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

List<byte[]>

List<byte[]> value of PrimitiveList

explicit operator List<MemoryStream>(PrimitiveList)

Explicitly convert PrimitiveList to List<MemoryStream>

public static explicit operator List<MemoryStream>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

List<MemoryStream>

List<MemoryStream> value of PrimitiveList

explicit operator List<string>(PrimitiveList)

Explicitly convert PrimitiveList to List<String>

public static explicit operator List<string>(PrimitiveList p)

Parameters

p PrimitiveList

PrimitiveList to convert

Returns

List<string>

List<String> value of PrimitiveList

explicit operator string[](PrimitiveList)

Explicitly convert DynamoDBEntry to String[]

public static explicit operator string[](PrimitiveList p)

Parameters

p PrimitiveList

DynamoDBEntry to convert

Returns

string[]

String[] value of DynamoDBEntry

implicit operator PrimitiveList(Primitive[])

Implicitly convert Primitive[] to DynamoDBEntry

public static implicit operator PrimitiveList(Primitive[] data)

Parameters

data Primitive[]

Primitive[] data to convert

Returns

PrimitiveList

DynamoDBEntry representing the data

implicit operator PrimitiveList(HashSet<Primitive>)

Implicitly convert HashSet<Primitive> to PrimitiveList

public static implicit operator PrimitiveList(HashSet<Primitive> data)

Parameters

data HashSet<Primitive>

HashSet<Primitive> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(HashSet<byte[]>)

Implicitly convert HashSet<byte[]> to PrimitiveList

public static implicit operator PrimitiveList(HashSet<byte[]> data)

Parameters

data HashSet<byte[]>

HashSet<byte[]> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(HashSet<string>)

Implicitly convert HashSet<String> to PrimitiveList

public static implicit operator PrimitiveList(HashSet<string> data)

Parameters

data HashSet<string>

HashSet<String> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(List<Primitive>)

Implicitly convert List<Primitive> to PrimitiveList

public static implicit operator PrimitiveList(List<Primitive> data)

Parameters

data List<Primitive>

List<Primitive> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(List<byte[]>)

Implicitly convert List<byte[]> to PrimitiveList

public static implicit operator PrimitiveList(List<byte[]> data)

Parameters

data List<byte[]>

List<byte[]> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(List<MemoryStream>)

Implicitly convert List<MemoryStream> to PrimitiveList

public static implicit operator PrimitiveList(List<MemoryStream> data)

Parameters

data List<MemoryStream>

List<MemoryStream> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(List<string>)

Implicitly convert List<String> to PrimitiveList

public static implicit operator PrimitiveList(List<string> data)

Parameters

data List<string>

List<String> data to convert

Returns

PrimitiveList

PrimitiveList representing the data

implicit operator PrimitiveList(string[])

Implicitly convert String[] to DynamoDBEntry

public static implicit operator PrimitiveList(string[] data)

Parameters

data string[]

String[] data to convert

Returns

PrimitiveList

DynamoDBEntry representing the data