代码拉取完成,页面将自动刷新
/*
M1_ContentHostingProvisioning
5GMS AF M1 Content Hosting Provisioning API © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_M1_ContentHostingProvisioning
import (
"encoding/json"
)
// checks if the DistributionConfiguration type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DistributionConfiguration{}
// DistributionConfiguration A content distribution configuration.
type DistributionConfiguration struct {
EntryPoint *M1MediaEntryPoint `json:"entryPoint,omitempty"`
// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
ContentPreparationTemplateId *string `json:"contentPreparationTemplateId,omitempty"`
// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
EdgeResourcesConfigurationId *string `json:"edgeResourcesConfigurationId,omitempty"`
CanonicalDomainName *string `json:"canonicalDomainName,omitempty"`
DomainNameAlias *string `json:"domainNameAlias,omitempty"`
// Absolute Uniform Resource Locator, conforming with the \"absolute-URI\" production specified in IETF RFC 3986, section 4.3 in which the scheme part is \"http\" or \"https\". Note that the \"query\" suffix is permitted by this production but the \"fragment\" suffix is not.
BaseURL *string `json:"baseURL,omitempty"`
PathRewriteRules []PathRewriteRule `json:"pathRewriteRules,omitempty"`
CachingConfigurations []CachingConfiguration `json:"cachingConfigurations,omitempty"`
GeoFencing *DistributionConfigurationGeoFencing `json:"geoFencing,omitempty"`
UrlSignature *DistributionConfigurationUrlSignature `json:"urlSignature,omitempty"`
// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
CertificateId *string `json:"certificateId,omitempty"`
SupplementaryDistributionNetworks []DistributionConfigurationSupplementaryDistributionNetworksInner `json:"supplementaryDistributionNetworks,omitempty"`
}
// NewDistributionConfiguration instantiates a new DistributionConfiguration object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewDistributionConfiguration() *DistributionConfiguration {
this := DistributionConfiguration{}
return &this
}
// NewDistributionConfigurationWithDefaults instantiates a new DistributionConfiguration object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewDistributionConfigurationWithDefaults() *DistributionConfiguration {
this := DistributionConfiguration{}
return &this
}
// GetEntryPoint returns the EntryPoint field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetEntryPoint() M1MediaEntryPoint {
if o == nil || IsNil(o.EntryPoint) {
var ret M1MediaEntryPoint
return ret
}
return *o.EntryPoint
}
// GetEntryPointOk returns a tuple with the EntryPoint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetEntryPointOk() (*M1MediaEntryPoint, bool) {
if o == nil || IsNil(o.EntryPoint) {
return nil, false
}
return o.EntryPoint, true
}
// HasEntryPoint returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasEntryPoint() bool {
if o != nil && !IsNil(o.EntryPoint) {
return true
}
return false
}
// SetEntryPoint gets a reference to the given M1MediaEntryPoint and assigns it to the EntryPoint field.
func (o *DistributionConfiguration) SetEntryPoint(v M1MediaEntryPoint) {
o.EntryPoint = &v
}
// GetContentPreparationTemplateId returns the ContentPreparationTemplateId field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetContentPreparationTemplateId() string {
if o == nil || IsNil(o.ContentPreparationTemplateId) {
var ret string
return ret
}
return *o.ContentPreparationTemplateId
}
// GetContentPreparationTemplateIdOk returns a tuple with the ContentPreparationTemplateId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetContentPreparationTemplateIdOk() (*string, bool) {
if o == nil || IsNil(o.ContentPreparationTemplateId) {
return nil, false
}
return o.ContentPreparationTemplateId, true
}
// HasContentPreparationTemplateId returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasContentPreparationTemplateId() bool {
if o != nil && !IsNil(o.ContentPreparationTemplateId) {
return true
}
return false
}
// SetContentPreparationTemplateId gets a reference to the given string and assigns it to the ContentPreparationTemplateId field.
func (o *DistributionConfiguration) SetContentPreparationTemplateId(v string) {
o.ContentPreparationTemplateId = &v
}
// GetEdgeResourcesConfigurationId returns the EdgeResourcesConfigurationId field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetEdgeResourcesConfigurationId() string {
if o == nil || IsNil(o.EdgeResourcesConfigurationId) {
var ret string
return ret
}
return *o.EdgeResourcesConfigurationId
}
// GetEdgeResourcesConfigurationIdOk returns a tuple with the EdgeResourcesConfigurationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetEdgeResourcesConfigurationIdOk() (*string, bool) {
if o == nil || IsNil(o.EdgeResourcesConfigurationId) {
return nil, false
}
return o.EdgeResourcesConfigurationId, true
}
// HasEdgeResourcesConfigurationId returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasEdgeResourcesConfigurationId() bool {
if o != nil && !IsNil(o.EdgeResourcesConfigurationId) {
return true
}
return false
}
// SetEdgeResourcesConfigurationId gets a reference to the given string and assigns it to the EdgeResourcesConfigurationId field.
func (o *DistributionConfiguration) SetEdgeResourcesConfigurationId(v string) {
o.EdgeResourcesConfigurationId = &v
}
// GetCanonicalDomainName returns the CanonicalDomainName field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetCanonicalDomainName() string {
if o == nil || IsNil(o.CanonicalDomainName) {
var ret string
return ret
}
return *o.CanonicalDomainName
}
// GetCanonicalDomainNameOk returns a tuple with the CanonicalDomainName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetCanonicalDomainNameOk() (*string, bool) {
if o == nil || IsNil(o.CanonicalDomainName) {
return nil, false
}
return o.CanonicalDomainName, true
}
// HasCanonicalDomainName returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasCanonicalDomainName() bool {
if o != nil && !IsNil(o.CanonicalDomainName) {
return true
}
return false
}
// SetCanonicalDomainName gets a reference to the given string and assigns it to the CanonicalDomainName field.
func (o *DistributionConfiguration) SetCanonicalDomainName(v string) {
o.CanonicalDomainName = &v
}
// GetDomainNameAlias returns the DomainNameAlias field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetDomainNameAlias() string {
if o == nil || IsNil(o.DomainNameAlias) {
var ret string
return ret
}
return *o.DomainNameAlias
}
// GetDomainNameAliasOk returns a tuple with the DomainNameAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetDomainNameAliasOk() (*string, bool) {
if o == nil || IsNil(o.DomainNameAlias) {
return nil, false
}
return o.DomainNameAlias, true
}
// HasDomainNameAlias returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasDomainNameAlias() bool {
if o != nil && !IsNil(o.DomainNameAlias) {
return true
}
return false
}
// SetDomainNameAlias gets a reference to the given string and assigns it to the DomainNameAlias field.
func (o *DistributionConfiguration) SetDomainNameAlias(v string) {
o.DomainNameAlias = &v
}
// GetBaseURL returns the BaseURL field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetBaseURL() string {
if o == nil || IsNil(o.BaseURL) {
var ret string
return ret
}
return *o.BaseURL
}
// GetBaseURLOk returns a tuple with the BaseURL field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetBaseURLOk() (*string, bool) {
if o == nil || IsNil(o.BaseURL) {
return nil, false
}
return o.BaseURL, true
}
// HasBaseURL returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasBaseURL() bool {
if o != nil && !IsNil(o.BaseURL) {
return true
}
return false
}
// SetBaseURL gets a reference to the given string and assigns it to the BaseURL field.
func (o *DistributionConfiguration) SetBaseURL(v string) {
o.BaseURL = &v
}
// GetPathRewriteRules returns the PathRewriteRules field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetPathRewriteRules() []PathRewriteRule {
if o == nil || IsNil(o.PathRewriteRules) {
var ret []PathRewriteRule
return ret
}
return o.PathRewriteRules
}
// GetPathRewriteRulesOk returns a tuple with the PathRewriteRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetPathRewriteRulesOk() ([]PathRewriteRule, bool) {
if o == nil || IsNil(o.PathRewriteRules) {
return nil, false
}
return o.PathRewriteRules, true
}
// HasPathRewriteRules returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasPathRewriteRules() bool {
if o != nil && !IsNil(o.PathRewriteRules) {
return true
}
return false
}
// SetPathRewriteRules gets a reference to the given []PathRewriteRule and assigns it to the PathRewriteRules field.
func (o *DistributionConfiguration) SetPathRewriteRules(v []PathRewriteRule) {
o.PathRewriteRules = v
}
// GetCachingConfigurations returns the CachingConfigurations field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetCachingConfigurations() []CachingConfiguration {
if o == nil || IsNil(o.CachingConfigurations) {
var ret []CachingConfiguration
return ret
}
return o.CachingConfigurations
}
// GetCachingConfigurationsOk returns a tuple with the CachingConfigurations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetCachingConfigurationsOk() ([]CachingConfiguration, bool) {
if o == nil || IsNil(o.CachingConfigurations) {
return nil, false
}
return o.CachingConfigurations, true
}
// HasCachingConfigurations returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasCachingConfigurations() bool {
if o != nil && !IsNil(o.CachingConfigurations) {
return true
}
return false
}
// SetCachingConfigurations gets a reference to the given []CachingConfiguration and assigns it to the CachingConfigurations field.
func (o *DistributionConfiguration) SetCachingConfigurations(v []CachingConfiguration) {
o.CachingConfigurations = v
}
// GetGeoFencing returns the GeoFencing field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetGeoFencing() DistributionConfigurationGeoFencing {
if o == nil || IsNil(o.GeoFencing) {
var ret DistributionConfigurationGeoFencing
return ret
}
return *o.GeoFencing
}
// GetGeoFencingOk returns a tuple with the GeoFencing field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetGeoFencingOk() (*DistributionConfigurationGeoFencing, bool) {
if o == nil || IsNil(o.GeoFencing) {
return nil, false
}
return o.GeoFencing, true
}
// HasGeoFencing returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasGeoFencing() bool {
if o != nil && !IsNil(o.GeoFencing) {
return true
}
return false
}
// SetGeoFencing gets a reference to the given DistributionConfigurationGeoFencing and assigns it to the GeoFencing field.
func (o *DistributionConfiguration) SetGeoFencing(v DistributionConfigurationGeoFencing) {
o.GeoFencing = &v
}
// GetUrlSignature returns the UrlSignature field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetUrlSignature() DistributionConfigurationUrlSignature {
if o == nil || IsNil(o.UrlSignature) {
var ret DistributionConfigurationUrlSignature
return ret
}
return *o.UrlSignature
}
// GetUrlSignatureOk returns a tuple with the UrlSignature field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetUrlSignatureOk() (*DistributionConfigurationUrlSignature, bool) {
if o == nil || IsNil(o.UrlSignature) {
return nil, false
}
return o.UrlSignature, true
}
// HasUrlSignature returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasUrlSignature() bool {
if o != nil && !IsNil(o.UrlSignature) {
return true
}
return false
}
// SetUrlSignature gets a reference to the given DistributionConfigurationUrlSignature and assigns it to the UrlSignature field.
func (o *DistributionConfiguration) SetUrlSignature(v DistributionConfigurationUrlSignature) {
o.UrlSignature = &v
}
// GetCertificateId returns the CertificateId field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetCertificateId() string {
if o == nil || IsNil(o.CertificateId) {
var ret string
return ret
}
return *o.CertificateId
}
// GetCertificateIdOk returns a tuple with the CertificateId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetCertificateIdOk() (*string, bool) {
if o == nil || IsNil(o.CertificateId) {
return nil, false
}
return o.CertificateId, true
}
// HasCertificateId returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasCertificateId() bool {
if o != nil && !IsNil(o.CertificateId) {
return true
}
return false
}
// SetCertificateId gets a reference to the given string and assigns it to the CertificateId field.
func (o *DistributionConfiguration) SetCertificateId(v string) {
o.CertificateId = &v
}
// GetSupplementaryDistributionNetworks returns the SupplementaryDistributionNetworks field value if set, zero value otherwise.
func (o *DistributionConfiguration) GetSupplementaryDistributionNetworks() []DistributionConfigurationSupplementaryDistributionNetworksInner {
if o == nil || IsNil(o.SupplementaryDistributionNetworks) {
var ret []DistributionConfigurationSupplementaryDistributionNetworksInner
return ret
}
return o.SupplementaryDistributionNetworks
}
// GetSupplementaryDistributionNetworksOk returns a tuple with the SupplementaryDistributionNetworks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DistributionConfiguration) GetSupplementaryDistributionNetworksOk() ([]DistributionConfigurationSupplementaryDistributionNetworksInner, bool) {
if o == nil || IsNil(o.SupplementaryDistributionNetworks) {
return nil, false
}
return o.SupplementaryDistributionNetworks, true
}
// HasSupplementaryDistributionNetworks returns a boolean if a field has been set.
func (o *DistributionConfiguration) HasSupplementaryDistributionNetworks() bool {
if o != nil && !IsNil(o.SupplementaryDistributionNetworks) {
return true
}
return false
}
// SetSupplementaryDistributionNetworks gets a reference to the given []DistributionConfigurationSupplementaryDistributionNetworksInner and assigns it to the SupplementaryDistributionNetworks field.
func (o *DistributionConfiguration) SetSupplementaryDistributionNetworks(v []DistributionConfigurationSupplementaryDistributionNetworksInner) {
o.SupplementaryDistributionNetworks = v
}
func (o DistributionConfiguration) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DistributionConfiguration) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.EntryPoint) {
toSerialize["entryPoint"] = o.EntryPoint
}
if !IsNil(o.ContentPreparationTemplateId) {
toSerialize["contentPreparationTemplateId"] = o.ContentPreparationTemplateId
}
if !IsNil(o.EdgeResourcesConfigurationId) {
toSerialize["edgeResourcesConfigurationId"] = o.EdgeResourcesConfigurationId
}
if !IsNil(o.CanonicalDomainName) {
toSerialize["canonicalDomainName"] = o.CanonicalDomainName
}
if !IsNil(o.DomainNameAlias) {
toSerialize["domainNameAlias"] = o.DomainNameAlias
}
if !IsNil(o.BaseURL) {
toSerialize["baseURL"] = o.BaseURL
}
if !IsNil(o.PathRewriteRules) {
toSerialize["pathRewriteRules"] = o.PathRewriteRules
}
if !IsNil(o.CachingConfigurations) {
toSerialize["cachingConfigurations"] = o.CachingConfigurations
}
if !IsNil(o.GeoFencing) {
toSerialize["geoFencing"] = o.GeoFencing
}
if !IsNil(o.UrlSignature) {
toSerialize["urlSignature"] = o.UrlSignature
}
if !IsNil(o.CertificateId) {
toSerialize["certificateId"] = o.CertificateId
}
if !IsNil(o.SupplementaryDistributionNetworks) {
toSerialize["supplementaryDistributionNetworks"] = o.SupplementaryDistributionNetworks
}
return toSerialize, nil
}
type NullableDistributionConfiguration struct {
value *DistributionConfiguration
isSet bool
}
func (v NullableDistributionConfiguration) Get() *DistributionConfiguration {
return v.value
}
func (v *NullableDistributionConfiguration) Set(val *DistributionConfiguration) {
v.value = val
v.isSet = true
}
func (v NullableDistributionConfiguration) IsSet() bool {
return v.isSet
}
func (v *NullableDistributionConfiguration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDistributionConfiguration(val *DistributionConfiguration) *NullableDistributionConfiguration {
return &NullableDistributionConfiguration{value: val, isSet: true}
}
func (v NullableDistributionConfiguration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDistributionConfiguration) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。