/*
 * IONOS Object Storage API for contract-owned buckets
 *
 * ## Overview The IONOS Object Storage API for contract-owned buckets is a REST-based API that allows developers and applications to interact directly with IONOS' scalable storage solution, leveraging the S3 protocol for object storage operations. Its design ensures seamless compatibility with existing tools and libraries tailored for S3 systems.  ### API References - [S3 API Reference for contract-owned buckets](https://api.ionos.com/docs/s3-contract-owned-buckets/v2/) ### User documentation [IONOS Object Storage User Guide](https://docs.ionos.com/cloud/managed-services/s3-object-storage) * [Documentation on user-owned and contract-owned buckets](https://docs.ionos.com/cloud/managed-services/s3-object-storage/concepts/buckets) * [Documentation on S3 API Compatibility](https://docs.ionos.com/cloud/managed-services/s3-object-storage/concepts/s3-api-compatibility) * [S3 Tools](https://docs.ionos.com/cloud/managed-services/s3-object-storage/s3-tools)  ## Endpoints for contract-owned buckets | Location | Region Name | Bucket Type | Endpoint | | --- | --- | --- | --- | | **Berlin, Germany** | **eu-central-3** | Contract-owned | `https://s3.eu-central-3.ionoscloud.com` |  ## Changelog - 30.05.2024 Initial version
 *
 * API version: 2.0.2
 * Contact: support@cloud.ionos.com
 */

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package ionoscloud

import (
	"encoding/json"
)

import "encoding/xml"

// CreateMultipartUploadOutput struct for CreateMultipartUploadOutput
type CreateMultipartUploadOutput struct {
	XMLName xml.Name `xml:"CreateMultipartUploadOutput"`
	// The bucket name.
	Bucket *string `json:"Bucket,omitempty" xml:"Name"`
	// The object key.
	Key *string `json:"Key,omitempty" xml:"Key"`
	// ID of the multipart upload.
	UploadId *string `json:"UploadId,omitempty" xml:"UploadId"`
}

// NewCreateMultipartUploadOutput instantiates a new CreateMultipartUploadOutput 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 NewCreateMultipartUploadOutput() *CreateMultipartUploadOutput {
	this := CreateMultipartUploadOutput{}

	return &this
}

// NewCreateMultipartUploadOutputWithDefaults instantiates a new CreateMultipartUploadOutput 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 NewCreateMultipartUploadOutputWithDefaults() *CreateMultipartUploadOutput {
	this := CreateMultipartUploadOutput{}
	return &this
}

// GetBucket returns the Bucket field value
// If the value is explicit nil, the zero value for string will be returned
func (o *CreateMultipartUploadOutput) GetBucket() *string {
	if o == nil {
		return nil
	}

	return o.Bucket

}

// GetBucketOk returns a tuple with the Bucket field value
// 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 *CreateMultipartUploadOutput) GetBucketOk() (*string, bool) {
	if o == nil {
		return nil, false
	}

	return o.Bucket, true
}

// SetBucket sets field value
func (o *CreateMultipartUploadOutput) SetBucket(v string) {

	o.Bucket = &v

}

// HasBucket returns a boolean if a field has been set.
func (o *CreateMultipartUploadOutput) HasBucket() bool {
	if o != nil && o.Bucket != nil {
		return true
	}

	return false
}

// GetKey returns the Key field value
// If the value is explicit nil, the zero value for string will be returned
func (o *CreateMultipartUploadOutput) GetKey() *string {
	if o == nil {
		return nil
	}

	return o.Key

}

// GetKeyOk returns a tuple with the Key field value
// 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 *CreateMultipartUploadOutput) GetKeyOk() (*string, bool) {
	if o == nil {
		return nil, false
	}

	return o.Key, true
}

// SetKey sets field value
func (o *CreateMultipartUploadOutput) SetKey(v string) {

	o.Key = &v

}

// HasKey returns a boolean if a field has been set.
func (o *CreateMultipartUploadOutput) HasKey() bool {
	if o != nil && o.Key != nil {
		return true
	}

	return false
}

// GetUploadId returns the UploadId field value
// If the value is explicit nil, the zero value for string will be returned
func (o *CreateMultipartUploadOutput) GetUploadId() *string {
	if o == nil {
		return nil
	}

	return o.UploadId

}

// GetUploadIdOk returns a tuple with the UploadId field value
// 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 *CreateMultipartUploadOutput) GetUploadIdOk() (*string, bool) {
	if o == nil {
		return nil, false
	}

	return o.UploadId, true
}

// SetUploadId sets field value
func (o *CreateMultipartUploadOutput) SetUploadId(v string) {

	o.UploadId = &v

}

// HasUploadId returns a boolean if a field has been set.
func (o *CreateMultipartUploadOutput) HasUploadId() bool {
	if o != nil && o.UploadId != nil {
		return true
	}

	return false
}

func (o CreateMultipartUploadOutput) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.Bucket != nil {
		toSerialize["Bucket"] = o.Bucket
	}

	if o.Key != nil {
		toSerialize["Key"] = o.Key
	}

	if o.UploadId != nil {
		toSerialize["UploadId"] = o.UploadId
	}

	return json.Marshal(toSerialize)
}

type NullableCreateMultipartUploadOutput struct {
	value *CreateMultipartUploadOutput
	isSet bool
}

func (v NullableCreateMultipartUploadOutput) Get() *CreateMultipartUploadOutput {
	return v.value
}

func (v *NullableCreateMultipartUploadOutput) Set(val *CreateMultipartUploadOutput) {
	v.value = val
	v.isSet = true
}

func (v NullableCreateMultipartUploadOutput) IsSet() bool {
	return v.isSet
}

func (v *NullableCreateMultipartUploadOutput) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableCreateMultipartUploadOutput(val *CreateMultipartUploadOutput) *NullableCreateMultipartUploadOutput {
	return &NullableCreateMultipartUploadOutput{value: val, isSet: true}
}

func (v NullableCreateMultipartUploadOutput) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableCreateMultipartUploadOutput) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}
