// This file is auto-generated, don't edit it. Thanks.
package client

import (
	"github.com/alibabacloud-go/tea/dara"
)

type iDescribeDnsProductInstanceResponse interface {
	dara.Model
	String() string
	GoString() string
	SetHeaders(v map[string]*string) *DescribeDnsProductInstanceResponse
	GetHeaders() map[string]*string
	SetStatusCode(v int32) *DescribeDnsProductInstanceResponse
	GetStatusCode() *int32
	SetBody(v *DescribeDnsProductInstanceResponseBody) *DescribeDnsProductInstanceResponse
	GetBody() *DescribeDnsProductInstanceResponseBody
}

type DescribeDnsProductInstanceResponse struct {
	Headers    map[string]*string                      `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                  `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeDnsProductInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (s DescribeDnsProductInstanceResponse) String() string {
	return dara.Prettify(s)
}

func (s DescribeDnsProductInstanceResponse) GoString() string {
	return s.String()
}

func (s *DescribeDnsProductInstanceResponse) GetHeaders() map[string]*string {
	return s.Headers
}

func (s *DescribeDnsProductInstanceResponse) GetStatusCode() *int32 {
	return s.StatusCode
}

func (s *DescribeDnsProductInstanceResponse) GetBody() *DescribeDnsProductInstanceResponseBody {
	return s.Body
}

func (s *DescribeDnsProductInstanceResponse) SetHeaders(v map[string]*string) *DescribeDnsProductInstanceResponse {
	s.Headers = v
	return s
}

func (s *DescribeDnsProductInstanceResponse) SetStatusCode(v int32) *DescribeDnsProductInstanceResponse {
	s.StatusCode = &v
	return s
}

func (s *DescribeDnsProductInstanceResponse) SetBody(v *DescribeDnsProductInstanceResponseBody) *DescribeDnsProductInstanceResponse {
	s.Body = v
	return s
}

func (s *DescribeDnsProductInstanceResponse) Validate() error {
	if s.Body != nil {
		if err := s.Body.Validate(); err != nil {
			return err
		}
	}
	return nil
}
