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

package model

// 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"
)

// DataflowS3Endpoint dataflow s3 endpoint
//
// swagger:model dataflowS3Endpoint
type DataflowS3Endpoint struct {

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// s3 Uri
	S3URI string `json:"s3Uri,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`
}

// Validate validates this dataflow s3 endpoint
func (m *DataflowS3Endpoint) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this dataflow s3 endpoint based on context it is used
func (m *DataflowS3Endpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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