Name | Type | Description | Notes |
---|---|---|---|
Type | string | ||
Content | ContentKitCodeBlockContent | ||
Syntax | Pointer to string | Syntax to use for highlighting (ex: javascript, python) | [optional] |
LineNumbers | Pointer to ContentKitCodeBlockLineNumbers | [optional] | |
Buttons | Pointer to []ContentKitButton | Controls button shown as an overlay in a corner of the code block. | [optional] |
State | Pointer to string | State binding when editable. The value of the input will be stored as a property in the state named after this ID. | [optional] |
OnContentChange | Pointer to ContentKitAction | [optional] | |
Header | Pointer to []ContentKitDescendantElement | Header displayed before the code lines | [optional] |
Footer | Pointer to []ContentKitDescendantElement | Footer displayed after the code lines | [optional] |
func NewContentKitCodeBlock(type_ string, content ContentKitCodeBlockContent, ) *ContentKitCodeBlock
NewContentKitCodeBlock instantiates a new ContentKitCodeBlock 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
func NewContentKitCodeBlockWithDefaults() *ContentKitCodeBlock
NewContentKitCodeBlockWithDefaults instantiates a new ContentKitCodeBlock 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
func (o *ContentKitCodeBlock) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) 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.
func (o *ContentKitCodeBlock) SetType(v string)
SetType sets Type field to given value.
func (o *ContentKitCodeBlock) GetContent() ContentKitCodeBlockContent
GetContent returns the Content field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetContentOk() (*ContentKitCodeBlockContent, bool)
GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetContent(v ContentKitCodeBlockContent)
SetContent sets Content field to given value.
func (o *ContentKitCodeBlock) GetSyntax() string
GetSyntax returns the Syntax field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetSyntaxOk() (*string, bool)
GetSyntaxOk returns a tuple with the Syntax field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetSyntax(v string)
SetSyntax sets Syntax field to given value.
func (o *ContentKitCodeBlock) HasSyntax() bool
HasSyntax returns a boolean if a field has been set.
func (o *ContentKitCodeBlock) GetLineNumbers() ContentKitCodeBlockLineNumbers
GetLineNumbers returns the LineNumbers field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetLineNumbersOk() (*ContentKitCodeBlockLineNumbers, bool)
GetLineNumbersOk returns a tuple with the LineNumbers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetLineNumbers(v ContentKitCodeBlockLineNumbers)
SetLineNumbers sets LineNumbers field to given value.
func (o *ContentKitCodeBlock) HasLineNumbers() bool
HasLineNumbers returns a boolean if a field has been set.
func (o *ContentKitCodeBlock) GetButtons() []ContentKitButton
GetButtons returns the Buttons field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetButtonsOk() (*[]ContentKitButton, bool)
GetButtonsOk returns a tuple with the Buttons field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetButtons(v []ContentKitButton)
SetButtons sets Buttons field to given value.
func (o *ContentKitCodeBlock) HasButtons() bool
HasButtons returns a boolean if a field has been set.
func (o *ContentKitCodeBlock) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetState(v string)
SetState sets State field to given value.
func (o *ContentKitCodeBlock) HasState() bool
HasState returns a boolean if a field has been set.
func (o *ContentKitCodeBlock) GetOnContentChange() ContentKitAction
GetOnContentChange returns the OnContentChange field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetOnContentChangeOk() (*ContentKitAction, bool)
GetOnContentChangeOk returns a tuple with the OnContentChange field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetOnContentChange(v ContentKitAction)
SetOnContentChange sets OnContentChange field to given value.
func (o *ContentKitCodeBlock) HasOnContentChange() bool
HasOnContentChange returns a boolean if a field has been set.
func (o *ContentKitCodeBlock) GetHeader() []ContentKitDescendantElement
GetHeader returns the Header field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetHeaderOk() (*[]ContentKitDescendantElement, bool)
GetHeaderOk returns a tuple with the Header field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetHeader(v []ContentKitDescendantElement)
SetHeader sets Header field to given value.
func (o *ContentKitCodeBlock) HasHeader() bool
HasHeader returns a boolean if a field has been set.
func (o *ContentKitCodeBlock) GetFooter() []ContentKitDescendantElement
GetFooter returns the Footer field if non-nil, zero value otherwise.
func (o *ContentKitCodeBlock) GetFooterOk() (*[]ContentKitDescendantElement, bool)
GetFooterOk returns a tuple with the Footer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ContentKitCodeBlock) SetFooter(v []ContentKitDescendantElement)
SetFooter sets Footer field to given value.
func (o *ContentKitCodeBlock) HasFooter() bool
HasFooter returns a boolean if a field has been set.