update_ipv_6request_model.go raw

   1  // This file is auto-generated, don't edit it. Thanks.
   2  package client
   3  
   4  import (
   5  	"github.com/alibabacloud-go/tea/dara"
   6  )
   7  
   8  type iUpdateIPv6Request interface {
   9  	dara.Model
  10  	String() string
  11  	GoString() string
  12  	SetEnable(v string) *UpdateIPv6Request
  13  	GetEnable() *string
  14  	SetRegion(v string) *UpdateIPv6Request
  15  	GetRegion() *string
  16  	SetSiteId(v int64) *UpdateIPv6Request
  17  	GetSiteId() *int64
  18  }
  19  
  20  type UpdateIPv6Request struct {
  21  	// Specifies whether to enable IPv6. Valid values:
  22  	//
  23  	// 	- **on**
  24  	//
  25  	// 	- **off**
  26  	//
  27  	// This parameter is required.
  28  	//
  29  	// example:
  30  	//
  31  	// on
  32  	Enable *string `json:"Enable,omitempty" xml:"Enable,omitempty"`
  33  	Region *string `json:"Region,omitempty" xml:"Region,omitempty"`
  34  	// The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
  35  	//
  36  	// This parameter is required.
  37  	//
  38  	// example:
  39  	//
  40  	// 5407498413****
  41  	SiteId *int64 `json:"SiteId,omitempty" xml:"SiteId,omitempty"`
  42  }
  43  
  44  func (s UpdateIPv6Request) String() string {
  45  	return dara.Prettify(s)
  46  }
  47  
  48  func (s UpdateIPv6Request) GoString() string {
  49  	return s.String()
  50  }
  51  
  52  func (s *UpdateIPv6Request) GetEnable() *string {
  53  	return s.Enable
  54  }
  55  
  56  func (s *UpdateIPv6Request) GetRegion() *string {
  57  	return s.Region
  58  }
  59  
  60  func (s *UpdateIPv6Request) GetSiteId() *int64 {
  61  	return s.SiteId
  62  }
  63  
  64  func (s *UpdateIPv6Request) SetEnable(v string) *UpdateIPv6Request {
  65  	s.Enable = &v
  66  	return s
  67  }
  68  
  69  func (s *UpdateIPv6Request) SetRegion(v string) *UpdateIPv6Request {
  70  	s.Region = &v
  71  	return s
  72  }
  73  
  74  func (s *UpdateIPv6Request) SetSiteId(v int64) *UpdateIPv6Request {
  75  	s.SiteId = &v
  76  	return s
  77  }
  78  
  79  func (s *UpdateIPv6Request) Validate() error {
  80  	return dara.Validate(s)
  81  }
  82