package model

import (
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"

	"strings"
)

// ShowBackgroundInfoResponse Response Object
type ShowBackgroundInfoResponse struct {

	// 对外时：success|error; 对内时：ok|failed
	Status *string `json:"status,omitempty"`

	Result *ResultValueBackgroundInfoVo `json:"result,omitempty"`

	Error *ApiError `json:"error,omitempty"`

	// 由接口调用方传入，建议使用UUID保证请求的唯一性。
	RequestId *string `json:"request_id,omitempty"`

	// 对内接口才有此属性
	ServerAddress  *string `json:"server_address,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (o ShowBackgroundInfoResponse) String() string {
	data, err := utils.Marshal(o)
	if err != nil {
		return "ShowBackgroundInfoResponse struct{}"
	}

	return strings.Join([]string{"ShowBackgroundInfoResponse", string(data)}, " ")
}
