github.com/khulnasoft/codebase@v0.0.0-20231214144635-a707781cbb24/go-bitbucket/model_report_all_of.go (about)

     1  /*
     2   * Bitbucket API
     3   *
     4   * Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
     5   *
     6   * API version: 2.0
     7   * Contact: support@bitbucket.org
     8   */
     9  
    10  // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
    11  
    12  package bitbucket
    13  
    14  import (
    15  	"encoding/json"
    16  	"time"
    17  )
    18  
    19  // ReportAllOf A report for a commit.
    20  type ReportAllOf struct {
    21  	// The UUID that can be used to identify the report.
    22  	Uuid *string `json:"uuid,omitempty"`
    23  	// The title of the report.
    24  	Title *string `json:"title,omitempty"`
    25  	// A string to describe the purpose of the report.
    26  	Details *string `json:"details,omitempty"`
    27  	// ID of the report provided by the report creator. It can be used to identify the report as an alternative to it's generated uuid. It is not used by Bitbucket, but only by the report creator for updating or deleting this specific report. Needs to be unique.
    28  	ExternalId *string `json:"external_id,omitempty"`
    29  	// A string to describe the tool or company who created the report.
    30  	Reporter *string `json:"reporter,omitempty"`
    31  	// A URL linking to the results of the report in an external tool.
    32  	Link *string `json:"link,omitempty"`
    33  	// If enabled, a remote link is created in Jira for the issue associated with the commit the report belongs to.
    34  	RemoteLinkEnabled *bool `json:"remote_link_enabled,omitempty"`
    35  	// A URL to the report logo. If none is provided, the default insights logo will be used.
    36  	LogoUrl *string `json:"logo_url,omitempty"`
    37  	// The type of the report.
    38  	ReportType *string `json:"report_type,omitempty"`
    39  	// The state of the report. May be set to PENDING and later updated.
    40  	Result *string `json:"result,omitempty"`
    41  	// An array of data fields to display information on the report. Maximum 10.
    42  	Data *[]ReportData `json:"data,omitempty"`
    43  	// The timestamp when the report was created.
    44  	CreatedOn *time.Time `json:"created_on,omitempty"`
    45  	// The timestamp when the report was updated.
    46  	UpdatedOn *time.Time `json:"updated_on,omitempty"`
    47  }
    48  
    49  // NewReportAllOf instantiates a new ReportAllOf object
    50  // This constructor will assign default values to properties that have it defined,
    51  // and makes sure properties required by API are set, but the set of arguments
    52  // will change when the set of required properties is changed
    53  func NewReportAllOf() *ReportAllOf {
    54  	this := ReportAllOf{}
    55  	return &this
    56  }
    57  
    58  // NewReportAllOfWithDefaults instantiates a new ReportAllOf object
    59  // This constructor will only assign default values to properties that have it defined,
    60  // but it doesn't guarantee that properties required by API are set
    61  func NewReportAllOfWithDefaults() *ReportAllOf {
    62  	this := ReportAllOf{}
    63  	return &this
    64  }
    65  
    66  // GetUuid returns the Uuid field value if set, zero value otherwise.
    67  func (o *ReportAllOf) GetUuid() string {
    68  	if o == nil || o.Uuid == nil {
    69  		var ret string
    70  		return ret
    71  	}
    72  	return *o.Uuid
    73  }
    74  
    75  // GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise
    76  // and a boolean to check if the value has been set.
    77  func (o *ReportAllOf) GetUuidOk() (*string, bool) {
    78  	if o == nil || o.Uuid == nil {
    79  		return nil, false
    80  	}
    81  	return o.Uuid, true
    82  }
    83  
    84  // HasUuid returns a boolean if a field has been set.
    85  func (o *ReportAllOf) HasUuid() bool {
    86  	if o != nil && o.Uuid != nil {
    87  		return true
    88  	}
    89  
    90  	return false
    91  }
    92  
    93  // SetUuid gets a reference to the given string and assigns it to the Uuid field.
    94  func (o *ReportAllOf) SetUuid(v string) {
    95  	o.Uuid = &v
    96  }
    97  
    98  // GetTitle returns the Title field value if set, zero value otherwise.
    99  func (o *ReportAllOf) GetTitle() string {
   100  	if o == nil || o.Title == nil {
   101  		var ret string
   102  		return ret
   103  	}
   104  	return *o.Title
   105  }
   106  
   107  // GetTitleOk returns a tuple with the Title field value if set, nil otherwise
   108  // and a boolean to check if the value has been set.
   109  func (o *ReportAllOf) GetTitleOk() (*string, bool) {
   110  	if o == nil || o.Title == nil {
   111  		return nil, false
   112  	}
   113  	return o.Title, true
   114  }
   115  
   116  // HasTitle returns a boolean if a field has been set.
   117  func (o *ReportAllOf) HasTitle() bool {
   118  	if o != nil && o.Title != nil {
   119  		return true
   120  	}
   121  
   122  	return false
   123  }
   124  
   125  // SetTitle gets a reference to the given string and assigns it to the Title field.
   126  func (o *ReportAllOf) SetTitle(v string) {
   127  	o.Title = &v
   128  }
   129  
   130  // GetDetails returns the Details field value if set, zero value otherwise.
   131  func (o *ReportAllOf) GetDetails() string {
   132  	if o == nil || o.Details == nil {
   133  		var ret string
   134  		return ret
   135  	}
   136  	return *o.Details
   137  }
   138  
   139  // GetDetailsOk returns a tuple with the Details field value if set, nil otherwise
   140  // and a boolean to check if the value has been set.
   141  func (o *ReportAllOf) GetDetailsOk() (*string, bool) {
   142  	if o == nil || o.Details == nil {
   143  		return nil, false
   144  	}
   145  	return o.Details, true
   146  }
   147  
   148  // HasDetails returns a boolean if a field has been set.
   149  func (o *ReportAllOf) HasDetails() bool {
   150  	if o != nil && o.Details != nil {
   151  		return true
   152  	}
   153  
   154  	return false
   155  }
   156  
   157  // SetDetails gets a reference to the given string and assigns it to the Details field.
   158  func (o *ReportAllOf) SetDetails(v string) {
   159  	o.Details = &v
   160  }
   161  
   162  // GetExternalId returns the ExternalId field value if set, zero value otherwise.
   163  func (o *ReportAllOf) GetExternalId() string {
   164  	if o == nil || o.ExternalId == nil {
   165  		var ret string
   166  		return ret
   167  	}
   168  	return *o.ExternalId
   169  }
   170  
   171  // GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise
   172  // and a boolean to check if the value has been set.
   173  func (o *ReportAllOf) GetExternalIdOk() (*string, bool) {
   174  	if o == nil || o.ExternalId == nil {
   175  		return nil, false
   176  	}
   177  	return o.ExternalId, true
   178  }
   179  
   180  // HasExternalId returns a boolean if a field has been set.
   181  func (o *ReportAllOf) HasExternalId() bool {
   182  	if o != nil && o.ExternalId != nil {
   183  		return true
   184  	}
   185  
   186  	return false
   187  }
   188  
   189  // SetExternalId gets a reference to the given string and assigns it to the ExternalId field.
   190  func (o *ReportAllOf) SetExternalId(v string) {
   191  	o.ExternalId = &v
   192  }
   193  
   194  // GetReporter returns the Reporter field value if set, zero value otherwise.
   195  func (o *ReportAllOf) GetReporter() string {
   196  	if o == nil || o.Reporter == nil {
   197  		var ret string
   198  		return ret
   199  	}
   200  	return *o.Reporter
   201  }
   202  
   203  // GetReporterOk returns a tuple with the Reporter field value if set, nil otherwise
   204  // and a boolean to check if the value has been set.
   205  func (o *ReportAllOf) GetReporterOk() (*string, bool) {
   206  	if o == nil || o.Reporter == nil {
   207  		return nil, false
   208  	}
   209  	return o.Reporter, true
   210  }
   211  
   212  // HasReporter returns a boolean if a field has been set.
   213  func (o *ReportAllOf) HasReporter() bool {
   214  	if o != nil && o.Reporter != nil {
   215  		return true
   216  	}
   217  
   218  	return false
   219  }
   220  
   221  // SetReporter gets a reference to the given string and assigns it to the Reporter field.
   222  func (o *ReportAllOf) SetReporter(v string) {
   223  	o.Reporter = &v
   224  }
   225  
   226  // GetLink returns the Link field value if set, zero value otherwise.
   227  func (o *ReportAllOf) GetLink() string {
   228  	if o == nil || o.Link == nil {
   229  		var ret string
   230  		return ret
   231  	}
   232  	return *o.Link
   233  }
   234  
   235  // GetLinkOk returns a tuple with the Link field value if set, nil otherwise
   236  // and a boolean to check if the value has been set.
   237  func (o *ReportAllOf) GetLinkOk() (*string, bool) {
   238  	if o == nil || o.Link == nil {
   239  		return nil, false
   240  	}
   241  	return o.Link, true
   242  }
   243  
   244  // HasLink returns a boolean if a field has been set.
   245  func (o *ReportAllOf) HasLink() bool {
   246  	if o != nil && o.Link != nil {
   247  		return true
   248  	}
   249  
   250  	return false
   251  }
   252  
   253  // SetLink gets a reference to the given string and assigns it to the Link field.
   254  func (o *ReportAllOf) SetLink(v string) {
   255  	o.Link = &v
   256  }
   257  
   258  // GetRemoteLinkEnabled returns the RemoteLinkEnabled field value if set, zero value otherwise.
   259  func (o *ReportAllOf) GetRemoteLinkEnabled() bool {
   260  	if o == nil || o.RemoteLinkEnabled == nil {
   261  		var ret bool
   262  		return ret
   263  	}
   264  	return *o.RemoteLinkEnabled
   265  }
   266  
   267  // GetRemoteLinkEnabledOk returns a tuple with the RemoteLinkEnabled field value if set, nil otherwise
   268  // and a boolean to check if the value has been set.
   269  func (o *ReportAllOf) GetRemoteLinkEnabledOk() (*bool, bool) {
   270  	if o == nil || o.RemoteLinkEnabled == nil {
   271  		return nil, false
   272  	}
   273  	return o.RemoteLinkEnabled, true
   274  }
   275  
   276  // HasRemoteLinkEnabled returns a boolean if a field has been set.
   277  func (o *ReportAllOf) HasRemoteLinkEnabled() bool {
   278  	if o != nil && o.RemoteLinkEnabled != nil {
   279  		return true
   280  	}
   281  
   282  	return false
   283  }
   284  
   285  // SetRemoteLinkEnabled gets a reference to the given bool and assigns it to the RemoteLinkEnabled field.
   286  func (o *ReportAllOf) SetRemoteLinkEnabled(v bool) {
   287  	o.RemoteLinkEnabled = &v
   288  }
   289  
   290  // GetLogoUrl returns the LogoUrl field value if set, zero value otherwise.
   291  func (o *ReportAllOf) GetLogoUrl() string {
   292  	if o == nil || o.LogoUrl == nil {
   293  		var ret string
   294  		return ret
   295  	}
   296  	return *o.LogoUrl
   297  }
   298  
   299  // GetLogoUrlOk returns a tuple with the LogoUrl field value if set, nil otherwise
   300  // and a boolean to check if the value has been set.
   301  func (o *ReportAllOf) GetLogoUrlOk() (*string, bool) {
   302  	if o == nil || o.LogoUrl == nil {
   303  		return nil, false
   304  	}
   305  	return o.LogoUrl, true
   306  }
   307  
   308  // HasLogoUrl returns a boolean if a field has been set.
   309  func (o *ReportAllOf) HasLogoUrl() bool {
   310  	if o != nil && o.LogoUrl != nil {
   311  		return true
   312  	}
   313  
   314  	return false
   315  }
   316  
   317  // SetLogoUrl gets a reference to the given string and assigns it to the LogoUrl field.
   318  func (o *ReportAllOf) SetLogoUrl(v string) {
   319  	o.LogoUrl = &v
   320  }
   321  
   322  // GetReportType returns the ReportType field value if set, zero value otherwise.
   323  func (o *ReportAllOf) GetReportType() string {
   324  	if o == nil || o.ReportType == nil {
   325  		var ret string
   326  		return ret
   327  	}
   328  	return *o.ReportType
   329  }
   330  
   331  // GetReportTypeOk returns a tuple with the ReportType field value if set, nil otherwise
   332  // and a boolean to check if the value has been set.
   333  func (o *ReportAllOf) GetReportTypeOk() (*string, bool) {
   334  	if o == nil || o.ReportType == nil {
   335  		return nil, false
   336  	}
   337  	return o.ReportType, true
   338  }
   339  
   340  // HasReportType returns a boolean if a field has been set.
   341  func (o *ReportAllOf) HasReportType() bool {
   342  	if o != nil && o.ReportType != nil {
   343  		return true
   344  	}
   345  
   346  	return false
   347  }
   348  
   349  // SetReportType gets a reference to the given string and assigns it to the ReportType field.
   350  func (o *ReportAllOf) SetReportType(v string) {
   351  	o.ReportType = &v
   352  }
   353  
   354  // GetResult returns the Result field value if set, zero value otherwise.
   355  func (o *ReportAllOf) GetResult() string {
   356  	if o == nil || o.Result == nil {
   357  		var ret string
   358  		return ret
   359  	}
   360  	return *o.Result
   361  }
   362  
   363  // GetResultOk returns a tuple with the Result field value if set, nil otherwise
   364  // and a boolean to check if the value has been set.
   365  func (o *ReportAllOf) GetResultOk() (*string, bool) {
   366  	if o == nil || o.Result == nil {
   367  		return nil, false
   368  	}
   369  	return o.Result, true
   370  }
   371  
   372  // HasResult returns a boolean if a field has been set.
   373  func (o *ReportAllOf) HasResult() bool {
   374  	if o != nil && o.Result != nil {
   375  		return true
   376  	}
   377  
   378  	return false
   379  }
   380  
   381  // SetResult gets a reference to the given string and assigns it to the Result field.
   382  func (o *ReportAllOf) SetResult(v string) {
   383  	o.Result = &v
   384  }
   385  
   386  // GetData returns the Data field value if set, zero value otherwise.
   387  func (o *ReportAllOf) GetData() []ReportData {
   388  	if o == nil || o.Data == nil {
   389  		var ret []ReportData
   390  		return ret
   391  	}
   392  	return *o.Data
   393  }
   394  
   395  // GetDataOk returns a tuple with the Data field value if set, nil otherwise
   396  // and a boolean to check if the value has been set.
   397  func (o *ReportAllOf) GetDataOk() (*[]ReportData, bool) {
   398  	if o == nil || o.Data == nil {
   399  		return nil, false
   400  	}
   401  	return o.Data, true
   402  }
   403  
   404  // HasData returns a boolean if a field has been set.
   405  func (o *ReportAllOf) HasData() bool {
   406  	if o != nil && o.Data != nil {
   407  		return true
   408  	}
   409  
   410  	return false
   411  }
   412  
   413  // SetData gets a reference to the given []ReportData and assigns it to the Data field.
   414  func (o *ReportAllOf) SetData(v []ReportData) {
   415  	o.Data = &v
   416  }
   417  
   418  // GetCreatedOn returns the CreatedOn field value if set, zero value otherwise.
   419  func (o *ReportAllOf) GetCreatedOn() time.Time {
   420  	if o == nil || o.CreatedOn == nil {
   421  		var ret time.Time
   422  		return ret
   423  	}
   424  	return *o.CreatedOn
   425  }
   426  
   427  // GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise
   428  // and a boolean to check if the value has been set.
   429  func (o *ReportAllOf) GetCreatedOnOk() (*time.Time, bool) {
   430  	if o == nil || o.CreatedOn == nil {
   431  		return nil, false
   432  	}
   433  	return o.CreatedOn, true
   434  }
   435  
   436  // HasCreatedOn returns a boolean if a field has been set.
   437  func (o *ReportAllOf) HasCreatedOn() bool {
   438  	if o != nil && o.CreatedOn != nil {
   439  		return true
   440  	}
   441  
   442  	return false
   443  }
   444  
   445  // SetCreatedOn gets a reference to the given time.Time and assigns it to the CreatedOn field.
   446  func (o *ReportAllOf) SetCreatedOn(v time.Time) {
   447  	o.CreatedOn = &v
   448  }
   449  
   450  // GetUpdatedOn returns the UpdatedOn field value if set, zero value otherwise.
   451  func (o *ReportAllOf) GetUpdatedOn() time.Time {
   452  	if o == nil || o.UpdatedOn == nil {
   453  		var ret time.Time
   454  		return ret
   455  	}
   456  	return *o.UpdatedOn
   457  }
   458  
   459  // GetUpdatedOnOk returns a tuple with the UpdatedOn field value if set, nil otherwise
   460  // and a boolean to check if the value has been set.
   461  func (o *ReportAllOf) GetUpdatedOnOk() (*time.Time, bool) {
   462  	if o == nil || o.UpdatedOn == nil {
   463  		return nil, false
   464  	}
   465  	return o.UpdatedOn, true
   466  }
   467  
   468  // HasUpdatedOn returns a boolean if a field has been set.
   469  func (o *ReportAllOf) HasUpdatedOn() bool {
   470  	if o != nil && o.UpdatedOn != nil {
   471  		return true
   472  	}
   473  
   474  	return false
   475  }
   476  
   477  // SetUpdatedOn gets a reference to the given time.Time and assigns it to the UpdatedOn field.
   478  func (o *ReportAllOf) SetUpdatedOn(v time.Time) {
   479  	o.UpdatedOn = &v
   480  }
   481  
   482  func (o ReportAllOf) MarshalJSON() ([]byte, error) {
   483  	toSerialize := map[string]interface{}{}
   484  	if o.Uuid != nil {
   485  		toSerialize["uuid"] = o.Uuid
   486  	}
   487  	if o.Title != nil {
   488  		toSerialize["title"] = o.Title
   489  	}
   490  	if o.Details != nil {
   491  		toSerialize["details"] = o.Details
   492  	}
   493  	if o.ExternalId != nil {
   494  		toSerialize["external_id"] = o.ExternalId
   495  	}
   496  	if o.Reporter != nil {
   497  		toSerialize["reporter"] = o.Reporter
   498  	}
   499  	if o.Link != nil {
   500  		toSerialize["link"] = o.Link
   501  	}
   502  	if o.RemoteLinkEnabled != nil {
   503  		toSerialize["remote_link_enabled"] = o.RemoteLinkEnabled
   504  	}
   505  	if o.LogoUrl != nil {
   506  		toSerialize["logo_url"] = o.LogoUrl
   507  	}
   508  	if o.ReportType != nil {
   509  		toSerialize["report_type"] = o.ReportType
   510  	}
   511  	if o.Result != nil {
   512  		toSerialize["result"] = o.Result
   513  	}
   514  	if o.Data != nil {
   515  		toSerialize["data"] = o.Data
   516  	}
   517  	if o.CreatedOn != nil {
   518  		toSerialize["created_on"] = o.CreatedOn
   519  	}
   520  	if o.UpdatedOn != nil {
   521  		toSerialize["updated_on"] = o.UpdatedOn
   522  	}
   523  	return json.Marshal(toSerialize)
   524  }
   525  
   526  type NullableReportAllOf struct {
   527  	value *ReportAllOf
   528  	isSet bool
   529  }
   530  
   531  func (v NullableReportAllOf) Get() *ReportAllOf {
   532  	return v.value
   533  }
   534  
   535  func (v *NullableReportAllOf) Set(val *ReportAllOf) {
   536  	v.value = val
   537  	v.isSet = true
   538  }
   539  
   540  func (v NullableReportAllOf) IsSet() bool {
   541  	return v.isSet
   542  }
   543  
   544  func (v *NullableReportAllOf) Unset() {
   545  	v.value = nil
   546  	v.isSet = false
   547  }
   548  
   549  func NewNullableReportAllOf(val *ReportAllOf) *NullableReportAllOf {
   550  	return &NullableReportAllOf{value: val, isSet: true}
   551  }
   552  
   553  func (v NullableReportAllOf) MarshalJSON() ([]byte, error) {
   554  	return json.Marshal(v.value)
   555  }
   556  
   557  func (v *NullableReportAllOf) UnmarshalJSON(src []byte) error {
   558  	v.isSet = true
   559  	return json.Unmarshal(src, &v.value)
   560  }