Skip to content

Latest commit

 

History

History
260 lines (139 loc) · 6.52 KB

Entity.md

File metadata and controls

260 lines (139 loc) · 6.52 KB

Entity

Properties

Name Type Description Notes
Type string
Name string
Description Pointer to string [optional] [default to ""]
Context Pointer to []map[string]interface{} [optional] [default to []]
Created Pointer to time.Time [optional]
Modified Pointer to time.Time [optional]
Id string [readonly]
Tags map[string]TagRelationshipOutput [readonly]
RootType string [readonly]
RelatedObservablesCount int32 [readonly]

Methods

NewEntity

func NewEntity(type_ string, name string, id string, tags map[string]TagRelationshipOutput, rootType string, relatedObservablesCount int32, ) *Entity

NewEntity instantiates a new Entity 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

NewEntityWithDefaults

func NewEntityWithDefaults() *Entity

NewEntityWithDefaults instantiates a new Entity 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

GetType

func (o *Entity) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *Entity) GetTypeOk() (*string, bool)

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

SetType

func (o *Entity) SetType(v string)

SetType sets Type field to given value.

GetName

func (o *Entity) GetName() string

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

GetNameOk

func (o *Entity) 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 *Entity) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *Entity) GetDescription() string

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

GetDescriptionOk

func (o *Entity) 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 *Entity) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *Entity) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetContext

func (o *Entity) GetContext() []map[string]interface{}

GetContext returns the Context field if non-nil, zero value otherwise.

GetContextOk

func (o *Entity) GetContextOk() (*[]map[string]interface{}, bool)

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

SetContext

func (o *Entity) SetContext(v []map[string]interface{})

SetContext sets Context field to given value.

HasContext

func (o *Entity) HasContext() bool

HasContext returns a boolean if a field has been set.

GetCreated

func (o *Entity) GetCreated() time.Time

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

func (o *Entity) GetCreatedOk() (*time.Time, bool)

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

SetCreated

func (o *Entity) SetCreated(v time.Time)

SetCreated sets Created field to given value.

HasCreated

func (o *Entity) HasCreated() bool

HasCreated returns a boolean if a field has been set.

GetModified

func (o *Entity) GetModified() time.Time

GetModified returns the Modified field if non-nil, zero value otherwise.

GetModifiedOk

func (o *Entity) GetModifiedOk() (*time.Time, bool)

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

SetModified

func (o *Entity) SetModified(v time.Time)

SetModified sets Modified field to given value.

HasModified

func (o *Entity) HasModified() bool

HasModified returns a boolean if a field has been set.

GetId

func (o *Entity) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *Entity) GetIdOk() (*string, bool)

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

SetId

func (o *Entity) SetId(v string)

SetId sets Id field to given value.

GetTags

func (o *Entity) GetTags() map[string]TagRelationshipOutput

GetTags returns the Tags field if non-nil, zero value otherwise.

GetTagsOk

func (o *Entity) GetTagsOk() (*map[string]TagRelationshipOutput, bool)

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

SetTags

func (o *Entity) SetTags(v map[string]TagRelationshipOutput)

SetTags sets Tags field to given value.

GetRootType

func (o *Entity) GetRootType() string

GetRootType returns the RootType field if non-nil, zero value otherwise.

GetRootTypeOk

func (o *Entity) GetRootTypeOk() (*string, bool)

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

SetRootType

func (o *Entity) SetRootType(v string)

SetRootType sets RootType field to given value.

GetRelatedObservablesCount

func (o *Entity) GetRelatedObservablesCount() int32

GetRelatedObservablesCount returns the RelatedObservablesCount field if non-nil, zero value otherwise.

GetRelatedObservablesCountOk

func (o *Entity) GetRelatedObservablesCountOk() (*int32, bool)

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

SetRelatedObservablesCount

func (o *Entity) SetRelatedObservablesCount(v int32)

SetRelatedObservablesCount sets RelatedObservablesCount field to given value.

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