package model

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

	"strings"
)

// AutoRenewalResourcesRequest Request Object
type AutoRenewalResourcesRequest struct {

	// 资源实例ID。您可以调用[查询客户包年包月资源列表](https://support.huaweicloud.com/api-bpconsole/api_order_00021.html)接口获取资源ID。在设置弹性云服务器自动续费时，能够自动将其挂载的硬盘一并设置为自动续费。
	ResourceId string `json:"resource_id"`

	Body *AutoRenewalResourcesReq `json:"body,omitempty"`
}

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

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