C# Class ServiceClientGenerator.Shape

Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.
Inheritance: BaseModel
ファイルを表示 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Checks if an object is a Shape and has the same name as this shape

GetHashCode ( ) : int

The hashcode of the shape is the hashcode of the name

GetPrimitiveType ( ) : string
Shape ( ServiceModel model, string name, JsonData data ) : Json.LitJson

Creates a shape with a reference to the model it's a part of, its name, and the json data of the shape pulled from the model. Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.

ToString ( ) : string

String representation of the shape found by the name

Private Methods

Method Description
LookupListShapeName ( bool allowSubstitution ) : string

Returns the name of a shape declared to be used by a list type, optionally allowing for substitution.

Method Details

Equals() public method

Checks if an object is a Shape and has the same name as this shape
public Equals ( object obj ) : bool
obj object The object to compare to
return bool

GetHashCode() public method

The hashcode of the shape is the hashcode of the name
public GetHashCode ( ) : int
return int

GetPrimitiveType() public method

public GetPrimitiveType ( ) : string
return string

Shape() public method

Creates a shape with a reference to the model it's a part of, its name, and the json data of the shape pulled from the model. Shapes are used to model structures and member types. If they are a structure the shape defines what members it has and what shape those members are. It also defines which of those members are required. If it is not a structure then it is used to specify the type of the member and its properties.
public Shape ( ServiceModel model, string name, JsonData data ) : Json.LitJson
model ServiceModel The model that contains the shape
name string The name of the shape
data JsonData The json object of the shape, pulled form the model json
return Json.LitJson

ToString() public method

String representation of the shape found by the name
public ToString ( ) : string
return string