bunnyshell.com/sdk@v0.16.0/model_environment_item.go (about) 1 /* 2 API Bunnyshell Environments 3 4 Interact with Bunnyshell Platform 5 6 API version: 1.1.0 7 Contact: osi+support@bunnyshell.com 8 */ 9 10 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 11 12 package sdk 13 14 import ( 15 "encoding/json" 16 ) 17 18 // checks if the EnvironmentItem type satisfies the MappedNullable interface at compile time 19 var _ MappedNullable = &EnvironmentItem{} 20 21 // EnvironmentItem An environment holds a collection of buildable and deployable components. 22 type EnvironmentItem struct { 23 // Environment identifier. 24 Id *string `json:"id,omitempty"` 25 // Environment labels. 26 Labels *map[string]string `json:"labels,omitempty"` 27 // Environment type: primary or ephemeral. 28 Type *string `json:"type,omitempty"` 29 // Environment name. 30 Name *string `json:"name,omitempty"` 31 // Environment k8s namespace. 32 Namespace *string `json:"namespace,omitempty"` 33 // Service component identifier 34 TotalComponents *int32 `json:"totalComponents,omitempty"` 35 // Environment operation status. 36 OperationStatus *string `json:"operationStatus,omitempty"` 37 // Environment cluster status. 38 ClusterStatus *string `json:"clusterStatus,omitempty"` 39 BuildSettings NullableBuildSettingsItem `json:"buildSettings,omitempty"` 40 // Project identifier. 41 Project *string `json:"project,omitempty"` 42 // Kubernetes integration identifier. 43 KubernetesIntegration NullableString `json:"kubernetesIntegration,omitempty"` 44 // Kubernetes integration identifier for the ephemeral auto deploy cluster. 45 EphemeralKubernetesIntegration NullableString `json:"ephemeralKubernetesIntegration,omitempty"` 46 // Environment ephemeral auto deploy status. 47 HasEphemeralAutoDeploy *bool `json:"hasEphemeralAutoDeploy,omitempty"` 48 // Environment ephemeral create-on-PR status. 49 HasEphemeralCreateOnPr *bool `json:"hasEphemeralCreateOnPr,omitempty"` 50 // Environment ephemeral destroy-on-PR close status. 51 HasEphemeralDestroyOnPrClose *bool `json:"hasEphemeralDestroyOnPrClose,omitempty"` 52 } 53 54 // NewEnvironmentItem instantiates a new EnvironmentItem object 55 // This constructor will assign default values to properties that have it defined, 56 // and makes sure properties required by API are set, but the set of arguments 57 // will change when the set of required properties is changed 58 func NewEnvironmentItem() *EnvironmentItem { 59 this := EnvironmentItem{} 60 return &this 61 } 62 63 // NewEnvironmentItemWithDefaults instantiates a new EnvironmentItem object 64 // This constructor will only assign default values to properties that have it defined, 65 // but it doesn't guarantee that properties required by API are set 66 func NewEnvironmentItemWithDefaults() *EnvironmentItem { 67 this := EnvironmentItem{} 68 return &this 69 } 70 71 // GetId returns the Id field value if set, zero value otherwise. 72 func (o *EnvironmentItem) GetId() string { 73 if o == nil || IsNil(o.Id) { 74 var ret string 75 return ret 76 } 77 return *o.Id 78 } 79 80 // GetIdOk returns a tuple with the Id field value if set, nil otherwise 81 // and a boolean to check if the value has been set. 82 func (o *EnvironmentItem) GetIdOk() (*string, bool) { 83 if o == nil || IsNil(o.Id) { 84 return nil, false 85 } 86 return o.Id, true 87 } 88 89 // HasId returns a boolean if a field has been set. 90 func (o *EnvironmentItem) HasId() bool { 91 if o != nil && !IsNil(o.Id) { 92 return true 93 } 94 95 return false 96 } 97 98 // SetId gets a reference to the given string and assigns it to the Id field. 99 func (o *EnvironmentItem) SetId(v string) { 100 o.Id = &v 101 } 102 103 // GetLabels returns the Labels field value if set, zero value otherwise. 104 func (o *EnvironmentItem) GetLabels() map[string]string { 105 if o == nil || IsNil(o.Labels) { 106 var ret map[string]string 107 return ret 108 } 109 return *o.Labels 110 } 111 112 // GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise 113 // and a boolean to check if the value has been set. 114 func (o *EnvironmentItem) GetLabelsOk() (*map[string]string, bool) { 115 if o == nil || IsNil(o.Labels) { 116 return nil, false 117 } 118 return o.Labels, true 119 } 120 121 // HasLabels returns a boolean if a field has been set. 122 func (o *EnvironmentItem) HasLabels() bool { 123 if o != nil && !IsNil(o.Labels) { 124 return true 125 } 126 127 return false 128 } 129 130 // SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. 131 func (o *EnvironmentItem) SetLabels(v map[string]string) { 132 o.Labels = &v 133 } 134 135 // GetType returns the Type field value if set, zero value otherwise. 136 func (o *EnvironmentItem) GetType() string { 137 if o == nil || IsNil(o.Type) { 138 var ret string 139 return ret 140 } 141 return *o.Type 142 } 143 144 // GetTypeOk returns a tuple with the Type field value if set, nil otherwise 145 // and a boolean to check if the value has been set. 146 func (o *EnvironmentItem) GetTypeOk() (*string, bool) { 147 if o == nil || IsNil(o.Type) { 148 return nil, false 149 } 150 return o.Type, true 151 } 152 153 // HasType returns a boolean if a field has been set. 154 func (o *EnvironmentItem) HasType() bool { 155 if o != nil && !IsNil(o.Type) { 156 return true 157 } 158 159 return false 160 } 161 162 // SetType gets a reference to the given string and assigns it to the Type field. 163 func (o *EnvironmentItem) SetType(v string) { 164 o.Type = &v 165 } 166 167 // GetName returns the Name field value if set, zero value otherwise. 168 func (o *EnvironmentItem) GetName() string { 169 if o == nil || IsNil(o.Name) { 170 var ret string 171 return ret 172 } 173 return *o.Name 174 } 175 176 // GetNameOk returns a tuple with the Name field value if set, nil otherwise 177 // and a boolean to check if the value has been set. 178 func (o *EnvironmentItem) GetNameOk() (*string, bool) { 179 if o == nil || IsNil(o.Name) { 180 return nil, false 181 } 182 return o.Name, true 183 } 184 185 // HasName returns a boolean if a field has been set. 186 func (o *EnvironmentItem) HasName() bool { 187 if o != nil && !IsNil(o.Name) { 188 return true 189 } 190 191 return false 192 } 193 194 // SetName gets a reference to the given string and assigns it to the Name field. 195 func (o *EnvironmentItem) SetName(v string) { 196 o.Name = &v 197 } 198 199 // GetNamespace returns the Namespace field value if set, zero value otherwise. 200 func (o *EnvironmentItem) GetNamespace() string { 201 if o == nil || IsNil(o.Namespace) { 202 var ret string 203 return ret 204 } 205 return *o.Namespace 206 } 207 208 // GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise 209 // and a boolean to check if the value has been set. 210 func (o *EnvironmentItem) GetNamespaceOk() (*string, bool) { 211 if o == nil || IsNil(o.Namespace) { 212 return nil, false 213 } 214 return o.Namespace, true 215 } 216 217 // HasNamespace returns a boolean if a field has been set. 218 func (o *EnvironmentItem) HasNamespace() bool { 219 if o != nil && !IsNil(o.Namespace) { 220 return true 221 } 222 223 return false 224 } 225 226 // SetNamespace gets a reference to the given string and assigns it to the Namespace field. 227 func (o *EnvironmentItem) SetNamespace(v string) { 228 o.Namespace = &v 229 } 230 231 // GetTotalComponents returns the TotalComponents field value if set, zero value otherwise. 232 func (o *EnvironmentItem) GetTotalComponents() int32 { 233 if o == nil || IsNil(o.TotalComponents) { 234 var ret int32 235 return ret 236 } 237 return *o.TotalComponents 238 } 239 240 // GetTotalComponentsOk returns a tuple with the TotalComponents field value if set, nil otherwise 241 // and a boolean to check if the value has been set. 242 func (o *EnvironmentItem) GetTotalComponentsOk() (*int32, bool) { 243 if o == nil || IsNil(o.TotalComponents) { 244 return nil, false 245 } 246 return o.TotalComponents, true 247 } 248 249 // HasTotalComponents returns a boolean if a field has been set. 250 func (o *EnvironmentItem) HasTotalComponents() bool { 251 if o != nil && !IsNil(o.TotalComponents) { 252 return true 253 } 254 255 return false 256 } 257 258 // SetTotalComponents gets a reference to the given int32 and assigns it to the TotalComponents field. 259 func (o *EnvironmentItem) SetTotalComponents(v int32) { 260 o.TotalComponents = &v 261 } 262 263 // GetOperationStatus returns the OperationStatus field value if set, zero value otherwise. 264 func (o *EnvironmentItem) GetOperationStatus() string { 265 if o == nil || IsNil(o.OperationStatus) { 266 var ret string 267 return ret 268 } 269 return *o.OperationStatus 270 } 271 272 // GetOperationStatusOk returns a tuple with the OperationStatus field value if set, nil otherwise 273 // and a boolean to check if the value has been set. 274 func (o *EnvironmentItem) GetOperationStatusOk() (*string, bool) { 275 if o == nil || IsNil(o.OperationStatus) { 276 return nil, false 277 } 278 return o.OperationStatus, true 279 } 280 281 // HasOperationStatus returns a boolean if a field has been set. 282 func (o *EnvironmentItem) HasOperationStatus() bool { 283 if o != nil && !IsNil(o.OperationStatus) { 284 return true 285 } 286 287 return false 288 } 289 290 // SetOperationStatus gets a reference to the given string and assigns it to the OperationStatus field. 291 func (o *EnvironmentItem) SetOperationStatus(v string) { 292 o.OperationStatus = &v 293 } 294 295 // GetClusterStatus returns the ClusterStatus field value if set, zero value otherwise. 296 func (o *EnvironmentItem) GetClusterStatus() string { 297 if o == nil || IsNil(o.ClusterStatus) { 298 var ret string 299 return ret 300 } 301 return *o.ClusterStatus 302 } 303 304 // GetClusterStatusOk returns a tuple with the ClusterStatus field value if set, nil otherwise 305 // and a boolean to check if the value has been set. 306 func (o *EnvironmentItem) GetClusterStatusOk() (*string, bool) { 307 if o == nil || IsNil(o.ClusterStatus) { 308 return nil, false 309 } 310 return o.ClusterStatus, true 311 } 312 313 // HasClusterStatus returns a boolean if a field has been set. 314 func (o *EnvironmentItem) HasClusterStatus() bool { 315 if o != nil && !IsNil(o.ClusterStatus) { 316 return true 317 } 318 319 return false 320 } 321 322 // SetClusterStatus gets a reference to the given string and assigns it to the ClusterStatus field. 323 func (o *EnvironmentItem) SetClusterStatus(v string) { 324 o.ClusterStatus = &v 325 } 326 327 // GetBuildSettings returns the BuildSettings field value if set, zero value otherwise (both if not set or set to explicit null). 328 func (o *EnvironmentItem) GetBuildSettings() BuildSettingsItem { 329 if o == nil || IsNil(o.BuildSettings.Get()) { 330 var ret BuildSettingsItem 331 return ret 332 } 333 return *o.BuildSettings.Get() 334 } 335 336 // GetBuildSettingsOk returns a tuple with the BuildSettings field value if set, nil otherwise 337 // and a boolean to check if the value has been set. 338 // NOTE: If the value is an explicit nil, `nil, true` will be returned 339 func (o *EnvironmentItem) GetBuildSettingsOk() (*BuildSettingsItem, bool) { 340 if o == nil { 341 return nil, false 342 } 343 return o.BuildSettings.Get(), o.BuildSettings.IsSet() 344 } 345 346 // HasBuildSettings returns a boolean if a field has been set. 347 func (o *EnvironmentItem) HasBuildSettings() bool { 348 if o != nil && o.BuildSettings.IsSet() { 349 return true 350 } 351 352 return false 353 } 354 355 // SetBuildSettings gets a reference to the given NullableBuildSettingsItem and assigns it to the BuildSettings field. 356 func (o *EnvironmentItem) SetBuildSettings(v BuildSettingsItem) { 357 o.BuildSettings.Set(&v) 358 } 359 360 // SetBuildSettingsNil sets the value for BuildSettings to be an explicit nil 361 func (o *EnvironmentItem) SetBuildSettingsNil() { 362 o.BuildSettings.Set(nil) 363 } 364 365 // UnsetBuildSettings ensures that no value is present for BuildSettings, not even an explicit nil 366 func (o *EnvironmentItem) UnsetBuildSettings() { 367 o.BuildSettings.Unset() 368 } 369 370 // GetProject returns the Project field value if set, zero value otherwise. 371 func (o *EnvironmentItem) GetProject() string { 372 if o == nil || IsNil(o.Project) { 373 var ret string 374 return ret 375 } 376 return *o.Project 377 } 378 379 // GetProjectOk returns a tuple with the Project field value if set, nil otherwise 380 // and a boolean to check if the value has been set. 381 func (o *EnvironmentItem) GetProjectOk() (*string, bool) { 382 if o == nil || IsNil(o.Project) { 383 return nil, false 384 } 385 return o.Project, true 386 } 387 388 // HasProject returns a boolean if a field has been set. 389 func (o *EnvironmentItem) HasProject() bool { 390 if o != nil && !IsNil(o.Project) { 391 return true 392 } 393 394 return false 395 } 396 397 // SetProject gets a reference to the given string and assigns it to the Project field. 398 func (o *EnvironmentItem) SetProject(v string) { 399 o.Project = &v 400 } 401 402 // GetKubernetesIntegration returns the KubernetesIntegration field value if set, zero value otherwise (both if not set or set to explicit null). 403 func (o *EnvironmentItem) GetKubernetesIntegration() string { 404 if o == nil || IsNil(o.KubernetesIntegration.Get()) { 405 var ret string 406 return ret 407 } 408 return *o.KubernetesIntegration.Get() 409 } 410 411 // GetKubernetesIntegrationOk returns a tuple with the KubernetesIntegration field value if set, nil otherwise 412 // and a boolean to check if the value has been set. 413 // NOTE: If the value is an explicit nil, `nil, true` will be returned 414 func (o *EnvironmentItem) GetKubernetesIntegrationOk() (*string, bool) { 415 if o == nil { 416 return nil, false 417 } 418 return o.KubernetesIntegration.Get(), o.KubernetesIntegration.IsSet() 419 } 420 421 // HasKubernetesIntegration returns a boolean if a field has been set. 422 func (o *EnvironmentItem) HasKubernetesIntegration() bool { 423 if o != nil && o.KubernetesIntegration.IsSet() { 424 return true 425 } 426 427 return false 428 } 429 430 // SetKubernetesIntegration gets a reference to the given NullableString and assigns it to the KubernetesIntegration field. 431 func (o *EnvironmentItem) SetKubernetesIntegration(v string) { 432 o.KubernetesIntegration.Set(&v) 433 } 434 435 // SetKubernetesIntegrationNil sets the value for KubernetesIntegration to be an explicit nil 436 func (o *EnvironmentItem) SetKubernetesIntegrationNil() { 437 o.KubernetesIntegration.Set(nil) 438 } 439 440 // UnsetKubernetesIntegration ensures that no value is present for KubernetesIntegration, not even an explicit nil 441 func (o *EnvironmentItem) UnsetKubernetesIntegration() { 442 o.KubernetesIntegration.Unset() 443 } 444 445 // GetEphemeralKubernetesIntegration returns the EphemeralKubernetesIntegration field value if set, zero value otherwise (both if not set or set to explicit null). 446 func (o *EnvironmentItem) GetEphemeralKubernetesIntegration() string { 447 if o == nil || IsNil(o.EphemeralKubernetesIntegration.Get()) { 448 var ret string 449 return ret 450 } 451 return *o.EphemeralKubernetesIntegration.Get() 452 } 453 454 // GetEphemeralKubernetesIntegrationOk returns a tuple with the EphemeralKubernetesIntegration field value if set, nil otherwise 455 // and a boolean to check if the value has been set. 456 // NOTE: If the value is an explicit nil, `nil, true` will be returned 457 func (o *EnvironmentItem) GetEphemeralKubernetesIntegrationOk() (*string, bool) { 458 if o == nil { 459 return nil, false 460 } 461 return o.EphemeralKubernetesIntegration.Get(), o.EphemeralKubernetesIntegration.IsSet() 462 } 463 464 // HasEphemeralKubernetesIntegration returns a boolean if a field has been set. 465 func (o *EnvironmentItem) HasEphemeralKubernetesIntegration() bool { 466 if o != nil && o.EphemeralKubernetesIntegration.IsSet() { 467 return true 468 } 469 470 return false 471 } 472 473 // SetEphemeralKubernetesIntegration gets a reference to the given NullableString and assigns it to the EphemeralKubernetesIntegration field. 474 func (o *EnvironmentItem) SetEphemeralKubernetesIntegration(v string) { 475 o.EphemeralKubernetesIntegration.Set(&v) 476 } 477 478 // SetEphemeralKubernetesIntegrationNil sets the value for EphemeralKubernetesIntegration to be an explicit nil 479 func (o *EnvironmentItem) SetEphemeralKubernetesIntegrationNil() { 480 o.EphemeralKubernetesIntegration.Set(nil) 481 } 482 483 // UnsetEphemeralKubernetesIntegration ensures that no value is present for EphemeralKubernetesIntegration, not even an explicit nil 484 func (o *EnvironmentItem) UnsetEphemeralKubernetesIntegration() { 485 o.EphemeralKubernetesIntegration.Unset() 486 } 487 488 // GetHasEphemeralAutoDeploy returns the HasEphemeralAutoDeploy field value if set, zero value otherwise. 489 func (o *EnvironmentItem) GetHasEphemeralAutoDeploy() bool { 490 if o == nil || IsNil(o.HasEphemeralAutoDeploy) { 491 var ret bool 492 return ret 493 } 494 return *o.HasEphemeralAutoDeploy 495 } 496 497 // GetHasEphemeralAutoDeployOk returns a tuple with the HasEphemeralAutoDeploy field value if set, nil otherwise 498 // and a boolean to check if the value has been set. 499 func (o *EnvironmentItem) GetHasEphemeralAutoDeployOk() (*bool, bool) { 500 if o == nil || IsNil(o.HasEphemeralAutoDeploy) { 501 return nil, false 502 } 503 return o.HasEphemeralAutoDeploy, true 504 } 505 506 // HasHasEphemeralAutoDeploy returns a boolean if a field has been set. 507 func (o *EnvironmentItem) HasHasEphemeralAutoDeploy() bool { 508 if o != nil && !IsNil(o.HasEphemeralAutoDeploy) { 509 return true 510 } 511 512 return false 513 } 514 515 // SetHasEphemeralAutoDeploy gets a reference to the given bool and assigns it to the HasEphemeralAutoDeploy field. 516 func (o *EnvironmentItem) SetHasEphemeralAutoDeploy(v bool) { 517 o.HasEphemeralAutoDeploy = &v 518 } 519 520 // GetHasEphemeralCreateOnPr returns the HasEphemeralCreateOnPr field value if set, zero value otherwise. 521 func (o *EnvironmentItem) GetHasEphemeralCreateOnPr() bool { 522 if o == nil || IsNil(o.HasEphemeralCreateOnPr) { 523 var ret bool 524 return ret 525 } 526 return *o.HasEphemeralCreateOnPr 527 } 528 529 // GetHasEphemeralCreateOnPrOk returns a tuple with the HasEphemeralCreateOnPr field value if set, nil otherwise 530 // and a boolean to check if the value has been set. 531 func (o *EnvironmentItem) GetHasEphemeralCreateOnPrOk() (*bool, bool) { 532 if o == nil || IsNil(o.HasEphemeralCreateOnPr) { 533 return nil, false 534 } 535 return o.HasEphemeralCreateOnPr, true 536 } 537 538 // HasHasEphemeralCreateOnPr returns a boolean if a field has been set. 539 func (o *EnvironmentItem) HasHasEphemeralCreateOnPr() bool { 540 if o != nil && !IsNil(o.HasEphemeralCreateOnPr) { 541 return true 542 } 543 544 return false 545 } 546 547 // SetHasEphemeralCreateOnPr gets a reference to the given bool and assigns it to the HasEphemeralCreateOnPr field. 548 func (o *EnvironmentItem) SetHasEphemeralCreateOnPr(v bool) { 549 o.HasEphemeralCreateOnPr = &v 550 } 551 552 // GetHasEphemeralDestroyOnPrClose returns the HasEphemeralDestroyOnPrClose field value if set, zero value otherwise. 553 func (o *EnvironmentItem) GetHasEphemeralDestroyOnPrClose() bool { 554 if o == nil || IsNil(o.HasEphemeralDestroyOnPrClose) { 555 var ret bool 556 return ret 557 } 558 return *o.HasEphemeralDestroyOnPrClose 559 } 560 561 // GetHasEphemeralDestroyOnPrCloseOk returns a tuple with the HasEphemeralDestroyOnPrClose field value if set, nil otherwise 562 // and a boolean to check if the value has been set. 563 func (o *EnvironmentItem) GetHasEphemeralDestroyOnPrCloseOk() (*bool, bool) { 564 if o == nil || IsNil(o.HasEphemeralDestroyOnPrClose) { 565 return nil, false 566 } 567 return o.HasEphemeralDestroyOnPrClose, true 568 } 569 570 // HasHasEphemeralDestroyOnPrClose returns a boolean if a field has been set. 571 func (o *EnvironmentItem) HasHasEphemeralDestroyOnPrClose() bool { 572 if o != nil && !IsNil(o.HasEphemeralDestroyOnPrClose) { 573 return true 574 } 575 576 return false 577 } 578 579 // SetHasEphemeralDestroyOnPrClose gets a reference to the given bool and assigns it to the HasEphemeralDestroyOnPrClose field. 580 func (o *EnvironmentItem) SetHasEphemeralDestroyOnPrClose(v bool) { 581 o.HasEphemeralDestroyOnPrClose = &v 582 } 583 584 func (o EnvironmentItem) MarshalJSON() ([]byte, error) { 585 toSerialize, err := o.ToMap() 586 if err != nil { 587 return []byte{}, err 588 } 589 return json.Marshal(toSerialize) 590 } 591 592 func (o EnvironmentItem) ToMap() (map[string]interface{}, error) { 593 toSerialize := map[string]interface{}{} 594 if !IsNil(o.Id) { 595 toSerialize["id"] = o.Id 596 } 597 if !IsNil(o.Labels) { 598 toSerialize["labels"] = o.Labels 599 } 600 if !IsNil(o.Type) { 601 toSerialize["type"] = o.Type 602 } 603 if !IsNil(o.Name) { 604 toSerialize["name"] = o.Name 605 } 606 if !IsNil(o.Namespace) { 607 toSerialize["namespace"] = o.Namespace 608 } 609 if !IsNil(o.TotalComponents) { 610 toSerialize["totalComponents"] = o.TotalComponents 611 } 612 if !IsNil(o.OperationStatus) { 613 toSerialize["operationStatus"] = o.OperationStatus 614 } 615 if !IsNil(o.ClusterStatus) { 616 toSerialize["clusterStatus"] = o.ClusterStatus 617 } 618 if o.BuildSettings.IsSet() { 619 toSerialize["buildSettings"] = o.BuildSettings.Get() 620 } 621 if !IsNil(o.Project) { 622 toSerialize["project"] = o.Project 623 } 624 if o.KubernetesIntegration.IsSet() { 625 toSerialize["kubernetesIntegration"] = o.KubernetesIntegration.Get() 626 } 627 if o.EphemeralKubernetesIntegration.IsSet() { 628 toSerialize["ephemeralKubernetesIntegration"] = o.EphemeralKubernetesIntegration.Get() 629 } 630 if !IsNil(o.HasEphemeralAutoDeploy) { 631 toSerialize["hasEphemeralAutoDeploy"] = o.HasEphemeralAutoDeploy 632 } 633 if !IsNil(o.HasEphemeralCreateOnPr) { 634 toSerialize["hasEphemeralCreateOnPr"] = o.HasEphemeralCreateOnPr 635 } 636 if !IsNil(o.HasEphemeralDestroyOnPrClose) { 637 toSerialize["hasEphemeralDestroyOnPrClose"] = o.HasEphemeralDestroyOnPrClose 638 } 639 return toSerialize, nil 640 } 641 642 type NullableEnvironmentItem struct { 643 value *EnvironmentItem 644 isSet bool 645 } 646 647 func (v NullableEnvironmentItem) Get() *EnvironmentItem { 648 return v.value 649 } 650 651 func (v *NullableEnvironmentItem) Set(val *EnvironmentItem) { 652 v.value = val 653 v.isSet = true 654 } 655 656 func (v NullableEnvironmentItem) IsSet() bool { 657 return v.isSet 658 } 659 660 func (v *NullableEnvironmentItem) Unset() { 661 v.value = nil 662 v.isSet = false 663 } 664 665 func NewNullableEnvironmentItem(val *EnvironmentItem) *NullableEnvironmentItem { 666 return &NullableEnvironmentItem{value: val, isSet: true} 667 } 668 669 func (v NullableEnvironmentItem) MarshalJSON() ([]byte, error) { 670 return json.Marshal(v.value) 671 } 672 673 func (v *NullableEnvironmentItem) UnmarshalJSON(src []byte) error { 674 v.isSet = true 675 return json.Unmarshal(src, &v.value) 676 }