// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// S3BlobStoreAPIAdvancedBucketConnection s3 blob store Api advanced bucket connection
//
// swagger:model S3BlobStoreApiAdvancedBucketConnection
type S3BlobStoreAPIAdvancedBucketConnection struct {

	// A custom endpoint URL for third party object stores using the S3 API.
	Endpoint string `json:"endpoint,omitempty"`

	// Setting this flag will result in path-style access being used for all requests.
	ForcePathStyle bool `json:"forcePathStyle,omitempty"`

	// Setting this value will override the default connection pool size of Nexus of the s3 client for this blobstore.
	MaxConnectionPoolSize int32 `json:"maxConnectionPoolSize,omitempty"`

	// An API signature version which may be required for third party object stores using the S3 API.
	SignerType string `json:"signerType,omitempty"`
}

// Validate validates this s3 blob store Api advanced bucket connection
func (m *S3BlobStoreAPIAdvancedBucketConnection) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this s3 blob store Api advanced bucket connection based on context it is used
func (m *S3BlobStoreAPIAdvancedBucketConnection) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *S3BlobStoreAPIAdvancedBucketConnection) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *S3BlobStoreAPIAdvancedBucketConnection) UnmarshalBinary(b []byte) error {
	var res S3BlobStoreAPIAdvancedBucketConnection
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
