Files
sdk/model_esign_esign_upload_in.go

345 lines
9.8 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the EsignEsignUploadIn type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EsignEsignUploadIn{}
// EsignEsignUploadIn struct for EsignEsignUploadIn
type EsignEsignUploadIn struct {
ExternalId interface{} `json:"externalId,omitempty"`
Message interface{} `json:"message,omitempty"`
PdfBase64 interface{} `json:"pdfBase64,omitempty"`
SigningOrder interface{} `json:"signingOrder,omitempty"`
Subject interface{} `json:"subject,omitempty"`
Title interface{} `json:"title,omitempty"`
AdditionalProperties map[string]interface{}
}
type _EsignEsignUploadIn EsignEsignUploadIn
// NewEsignEsignUploadIn instantiates a new EsignEsignUploadIn 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 NewEsignEsignUploadIn() *EsignEsignUploadIn {
this := EsignEsignUploadIn{}
return &this
}
// NewEsignEsignUploadInWithDefaults instantiates a new EsignEsignUploadIn 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 NewEsignEsignUploadInWithDefaults() *EsignEsignUploadIn {
this := EsignEsignUploadIn{}
return &this
}
// GetExternalId returns the ExternalId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EsignEsignUploadIn) GetExternalId() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.ExternalId
}
// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *EsignEsignUploadIn) GetExternalIdOk() (*interface{}, bool) {
if o == nil || IsNil(o.ExternalId) {
return nil, false
}
return &o.ExternalId, true
}
// HasExternalId returns a boolean if a field has been set.
func (o *EsignEsignUploadIn) HasExternalId() bool {
if o != nil && !IsNil(o.ExternalId) {
return true
}
return false
}
// SetExternalId gets a reference to the given interface{} and assigns it to the ExternalId field.
func (o *EsignEsignUploadIn) SetExternalId(v interface{}) {
o.ExternalId = v
}
// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EsignEsignUploadIn) GetMessage() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Message
}
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *EsignEsignUploadIn) GetMessageOk() (*interface{}, bool) {
if o == nil || IsNil(o.Message) {
return nil, false
}
return &o.Message, true
}
// HasMessage returns a boolean if a field has been set.
func (o *EsignEsignUploadIn) HasMessage() bool {
if o != nil && !IsNil(o.Message) {
return true
}
return false
}
// SetMessage gets a reference to the given interface{} and assigns it to the Message field.
func (o *EsignEsignUploadIn) SetMessage(v interface{}) {
o.Message = v
}
// GetPdfBase64 returns the PdfBase64 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EsignEsignUploadIn) GetPdfBase64() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.PdfBase64
}
// GetPdfBase64Ok returns a tuple with the PdfBase64 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *EsignEsignUploadIn) GetPdfBase64Ok() (*interface{}, bool) {
if o == nil || IsNil(o.PdfBase64) {
return nil, false
}
return &o.PdfBase64, true
}
// HasPdfBase64 returns a boolean if a field has been set.
func (o *EsignEsignUploadIn) HasPdfBase64() bool {
if o != nil && !IsNil(o.PdfBase64) {
return true
}
return false
}
// SetPdfBase64 gets a reference to the given interface{} and assigns it to the PdfBase64 field.
func (o *EsignEsignUploadIn) SetPdfBase64(v interface{}) {
o.PdfBase64 = v
}
// GetSigningOrder returns the SigningOrder field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EsignEsignUploadIn) GetSigningOrder() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.SigningOrder
}
// GetSigningOrderOk returns a tuple with the SigningOrder field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *EsignEsignUploadIn) GetSigningOrderOk() (*interface{}, bool) {
if o == nil || IsNil(o.SigningOrder) {
return nil, false
}
return &o.SigningOrder, true
}
// HasSigningOrder returns a boolean if a field has been set.
func (o *EsignEsignUploadIn) HasSigningOrder() bool {
if o != nil && !IsNil(o.SigningOrder) {
return true
}
return false
}
// SetSigningOrder gets a reference to the given interface{} and assigns it to the SigningOrder field.
func (o *EsignEsignUploadIn) SetSigningOrder(v interface{}) {
o.SigningOrder = v
}
// GetSubject returns the Subject field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EsignEsignUploadIn) GetSubject() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Subject
}
// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *EsignEsignUploadIn) GetSubjectOk() (*interface{}, bool) {
if o == nil || IsNil(o.Subject) {
return nil, false
}
return &o.Subject, true
}
// HasSubject returns a boolean if a field has been set.
func (o *EsignEsignUploadIn) HasSubject() bool {
if o != nil && !IsNil(o.Subject) {
return true
}
return false
}
// SetSubject gets a reference to the given interface{} and assigns it to the Subject field.
func (o *EsignEsignUploadIn) SetSubject(v interface{}) {
o.Subject = v
}
// GetTitle returns the Title field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *EsignEsignUploadIn) GetTitle() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *EsignEsignUploadIn) GetTitleOk() (*interface{}, bool) {
if o == nil || IsNil(o.Title) {
return nil, false
}
return &o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *EsignEsignUploadIn) HasTitle() bool {
if o != nil && !IsNil(o.Title) {
return true
}
return false
}
// SetTitle gets a reference to the given interface{} and assigns it to the Title field.
func (o *EsignEsignUploadIn) SetTitle(v interface{}) {
o.Title = v
}
func (o EsignEsignUploadIn) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EsignEsignUploadIn) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.ExternalId != nil {
toSerialize["externalId"] = o.ExternalId
}
if o.Message != nil {
toSerialize["message"] = o.Message
}
if o.PdfBase64 != nil {
toSerialize["pdfBase64"] = o.PdfBase64
}
if o.SigningOrder != nil {
toSerialize["signingOrder"] = o.SigningOrder
}
if o.Subject != nil {
toSerialize["subject"] = o.Subject
}
if o.Title != nil {
toSerialize["title"] = o.Title
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *EsignEsignUploadIn) UnmarshalJSON(data []byte) (err error) {
varEsignEsignUploadIn := _EsignEsignUploadIn{}
err = json.Unmarshal(data, &varEsignEsignUploadIn)
if err != nil {
return err
}
*o = EsignEsignUploadIn(varEsignEsignUploadIn)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "externalId")
delete(additionalProperties, "message")
delete(additionalProperties, "pdfBase64")
delete(additionalProperties, "signingOrder")
delete(additionalProperties, "subject")
delete(additionalProperties, "title")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableEsignEsignUploadIn struct {
value *EsignEsignUploadIn
isSet bool
}
func (v NullableEsignEsignUploadIn) Get() *EsignEsignUploadIn {
return v.value
}
func (v *NullableEsignEsignUploadIn) Set(val *EsignEsignUploadIn) {
v.value = val
v.isSet = true
}
func (v NullableEsignEsignUploadIn) IsSet() bool {
return v.isSet
}
func (v *NullableEsignEsignUploadIn) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEsignEsignUploadIn(val *EsignEsignUploadIn) *NullableEsignEsignUploadIn {
return &NullableEsignEsignUploadIn{value: val, isSet: true}
}
func (v NullableEsignEsignUploadIn) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEsignEsignUploadIn) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}