spacetraders/docs/Faction.md

3.4 KiB

Faction

Properties

Name Type Description Notes
Symbol string
Name string
Description string
Headquarters string
Traits **[]FactionTrait**

Methods

NewFaction

func NewFaction(symbol string, name string, description string, headquarters string, traits []FactionTrait, ) *Faction

NewFaction instantiates a new Faction object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewFactionWithDefaults

func NewFactionWithDefaults() *Faction

NewFactionWithDefaults instantiates a new Faction object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetSymbol

func (o *Faction) GetSymbol() string

GetSymbol returns the Symbol field if non-nil, zero value otherwise.

GetSymbolOk

func (o *Faction) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSymbol

func (o *Faction) SetSymbol(v string)

SetSymbol sets Symbol field to given value.

GetName

func (o *Faction) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *Faction) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *Faction) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *Faction) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *Faction) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDescription

func (o *Faction) SetDescription(v string)

SetDescription sets Description field to given value.

GetHeadquarters

func (o *Faction) GetHeadquarters() string

GetHeadquarters returns the Headquarters field if non-nil, zero value otherwise.

GetHeadquartersOk

func (o *Faction) GetHeadquartersOk() (*string, bool)

GetHeadquartersOk returns a tuple with the Headquarters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHeadquarters

func (o *Faction) SetHeadquarters(v string)

SetHeadquarters sets Headquarters field to given value.

GetTraits

func (o *Faction) GetTraits() []FactionTrait

GetTraits returns the Traits field if non-nil, zero value otherwise.

GetTraitsOk

func (o *Faction) GetTraitsOk() (*[]FactionTrait, bool)

GetTraitsOk returns a tuple with the Traits field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTraits

func (o *Faction) SetTraits(v []FactionTrait)

SetTraits sets Traits field to given value.

[Back to Model list] [Back to API list] [Back to README]