// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package components

type AutonomousSystem struct {
	// The ASN (autonomous system number) of the host's autonomous system.
	Asn *int `json:"asn,omitempty"`
	// The autonomous system's CIDR.
	BgpPrefix *string `json:"bgp_prefix,omitempty"`
	// The autonomous system's two-letter ISO 3166-1 alpha-2 country code (US, CN, GB, RU, ...).
	CountryCode *string `json:"country_code,omitempty"`
	// Brief description of the autonomous system.
	Description *string `json:"description,omitempty"`
	// The friendly name of the autonomous system.
	Name *string `json:"name,omitempty"`
	// The name of the organization managning the autonomous system.
	Organization *string `json:"organization,omitempty"`
}

func (o *AutonomousSystem) GetAsn() *int {
	if o == nil {
		return nil
	}
	return o.Asn
}

func (o *AutonomousSystem) GetBgpPrefix() *string {
	if o == nil {
		return nil
	}
	return o.BgpPrefix
}

func (o *AutonomousSystem) GetCountryCode() *string {
	if o == nil {
		return nil
	}
	return o.CountryCode
}

func (o *AutonomousSystem) GetDescription() *string {
	if o == nil {
		return nil
	}
	return o.Description
}

func (o *AutonomousSystem) GetName() *string {
	if o == nil {
		return nil
	}
	return o.Name
}

func (o *AutonomousSystem) GetOrganization() *string {
	if o == nil {
		return nil
	}
	return o.Organization
}
