Name | Type | Description | Notes |
---|---|---|---|
Id | string | The unique identifier of the rated usage record. | |
ProductCategory | RatedUsageProductCategoryEnum | ||
ProductCode | string | The code identifying the product associated to this usage record. | |
Location | LocationEnum | ||
YearMonth | Pointer to string | Year and month of the usage record. | [optional] |
StartDateTime | time.Time | The point in time (in UTC) when usage has started. | |
EndDateTime | time.Time | The point in time (in UTC) until usage has been rated. | |
Cost | int64 | The rated usage in cents. | |
CostBeforeDiscount | Pointer to int64 | The cost in cents before discount. | [optional] |
CostDescription | Pointer to string | The rated usage cost description. | [optional] |
PriceModel | string | The price model applied to this usage record. | |
UnitPrice | float32 | The unit price. | |
UnitPriceDescription | string | User friendly description of the unit price. | |
Quantity | float32 | The number of units being charged. | |
Active | bool | A flag indicating whether the rated usage record is still active. | |
UsageSessionId | string | The usage session ID is used to correlate rated usage records across periods of time. For example, a server used for over a month will generate multiple rated usage records. The entire usage session cost can be computed by aggregating the records having the same usage session ID. It is usual to have one rated usage record per month or invoice. | |
CorrelationId | string | Holds usage record id | |
ReservationId | Pointer to string | Reservation id associated with this rated usage record. | [optional] |
DiscountDetails | Pointer to DiscountDetails | [optional] | |
CreditDetails | Pointer to []CreditDetails | [optional] | |
Metadata | PublicSubnetDetails |
func NewPublicSubnetRecord(id string, productCategory RatedUsageProductCategoryEnum, productCode string, location LocationEnum, startDateTime time.Time, endDateTime time.Time, cost int64, priceModel string, unitPrice float32, unitPriceDescription string, quantity float32, active bool, usageSessionId string, correlationId string, metadata PublicSubnetDetails, ) *PublicSubnetRecord
NewPublicSubnetRecord instantiates a new PublicSubnetRecord 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 NewPublicSubnetRecordWithDefaults() *PublicSubnetRecord
NewPublicSubnetRecordWithDefaults instantiates a new PublicSubnetRecord 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 (o *PublicSubnetRecord) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetId(v string)
SetId sets Id field to given value.
func (o *PublicSubnetRecord) GetProductCategory() RatedUsageProductCategoryEnum
GetProductCategory returns the ProductCategory field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetProductCategoryOk() (*RatedUsageProductCategoryEnum, bool)
GetProductCategoryOk returns a tuple with the ProductCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetProductCategory(v RatedUsageProductCategoryEnum)
SetProductCategory sets ProductCategory field to given value.
func (o *PublicSubnetRecord) GetProductCode() string
GetProductCode returns the ProductCode field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetProductCodeOk() (*string, bool)
GetProductCodeOk returns a tuple with the ProductCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetProductCode(v string)
SetProductCode sets ProductCode field to given value.
func (o *PublicSubnetRecord) GetLocation() LocationEnum
GetLocation returns the Location field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetLocationOk() (*LocationEnum, bool)
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetLocation(v LocationEnum)
SetLocation sets Location field to given value.
func (o *PublicSubnetRecord) GetYearMonth() string
GetYearMonth returns the YearMonth field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetYearMonthOk() (*string, bool)
GetYearMonthOk returns a tuple with the YearMonth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetYearMonth(v string)
SetYearMonth sets YearMonth field to given value.
func (o *PublicSubnetRecord) HasYearMonth() bool
HasYearMonth returns a boolean if a field has been set.
func (o *PublicSubnetRecord) GetStartDateTime() time.Time
GetStartDateTime returns the StartDateTime field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetStartDateTimeOk() (*time.Time, bool)
GetStartDateTimeOk returns a tuple with the StartDateTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetStartDateTime(v time.Time)
SetStartDateTime sets StartDateTime field to given value.
func (o *PublicSubnetRecord) GetEndDateTime() time.Time
GetEndDateTime returns the EndDateTime field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetEndDateTimeOk() (*time.Time, bool)
GetEndDateTimeOk returns a tuple with the EndDateTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetEndDateTime(v time.Time)
SetEndDateTime sets EndDateTime field to given value.
func (o *PublicSubnetRecord) GetCost() int64
GetCost returns the Cost field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetCostOk() (*int64, bool)
GetCostOk returns a tuple with the Cost field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetCost(v int64)
SetCost sets Cost field to given value.
func (o *PublicSubnetRecord) GetCostBeforeDiscount() int64
GetCostBeforeDiscount returns the CostBeforeDiscount field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetCostBeforeDiscountOk() (*int64, bool)
GetCostBeforeDiscountOk returns a tuple with the CostBeforeDiscount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetCostBeforeDiscount(v int64)
SetCostBeforeDiscount sets CostBeforeDiscount field to given value.
func (o *PublicSubnetRecord) HasCostBeforeDiscount() bool
HasCostBeforeDiscount returns a boolean if a field has been set.
func (o *PublicSubnetRecord) GetCostDescription() string
GetCostDescription returns the CostDescription field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetCostDescriptionOk() (*string, bool)
GetCostDescriptionOk returns a tuple with the CostDescription field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetCostDescription(v string)
SetCostDescription sets CostDescription field to given value.
func (o *PublicSubnetRecord) HasCostDescription() bool
HasCostDescription returns a boolean if a field has been set.
func (o *PublicSubnetRecord) GetPriceModel() string
GetPriceModel returns the PriceModel field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetPriceModelOk() (*string, bool)
GetPriceModelOk returns a tuple with the PriceModel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetPriceModel(v string)
SetPriceModel sets PriceModel field to given value.
func (o *PublicSubnetRecord) GetUnitPrice() float32
GetUnitPrice returns the UnitPrice field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetUnitPriceOk() (*float32, bool)
GetUnitPriceOk returns a tuple with the UnitPrice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetUnitPrice(v float32)
SetUnitPrice sets UnitPrice field to given value.
func (o *PublicSubnetRecord) GetUnitPriceDescription() string
GetUnitPriceDescription returns the UnitPriceDescription field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetUnitPriceDescriptionOk() (*string, bool)
GetUnitPriceDescriptionOk returns a tuple with the UnitPriceDescription field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetUnitPriceDescription(v string)
SetUnitPriceDescription sets UnitPriceDescription field to given value.
func (o *PublicSubnetRecord) GetQuantity() float32
GetQuantity returns the Quantity field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetQuantityOk() (*float32, bool)
GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetQuantity(v float32)
SetQuantity sets Quantity field to given value.
func (o *PublicSubnetRecord) GetActive() bool
GetActive returns the Active field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetActiveOk() (*bool, bool)
GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetActive(v bool)
SetActive sets Active field to given value.
func (o *PublicSubnetRecord) GetUsageSessionId() string
GetUsageSessionId returns the UsageSessionId field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetUsageSessionIdOk() (*string, bool)
GetUsageSessionIdOk returns a tuple with the UsageSessionId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetUsageSessionId(v string)
SetUsageSessionId sets UsageSessionId field to given value.
func (o *PublicSubnetRecord) GetCorrelationId() string
GetCorrelationId returns the CorrelationId field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetCorrelationIdOk() (*string, bool)
GetCorrelationIdOk returns a tuple with the CorrelationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetCorrelationId(v string)
SetCorrelationId sets CorrelationId field to given value.
func (o *PublicSubnetRecord) GetReservationId() string
GetReservationId returns the ReservationId field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetReservationIdOk() (*string, bool)
GetReservationIdOk returns a tuple with the ReservationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetReservationId(v string)
SetReservationId sets ReservationId field to given value.
func (o *PublicSubnetRecord) HasReservationId() bool
HasReservationId returns a boolean if a field has been set.
func (o *PublicSubnetRecord) GetDiscountDetails() DiscountDetails
GetDiscountDetails returns the DiscountDetails field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetDiscountDetailsOk() (*DiscountDetails, bool)
GetDiscountDetailsOk returns a tuple with the DiscountDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetDiscountDetails(v DiscountDetails)
SetDiscountDetails sets DiscountDetails field to given value.
func (o *PublicSubnetRecord) HasDiscountDetails() bool
HasDiscountDetails returns a boolean if a field has been set.
func (o *PublicSubnetRecord) GetCreditDetails() []CreditDetails
GetCreditDetails returns the CreditDetails field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetCreditDetailsOk() (*[]CreditDetails, bool)
GetCreditDetailsOk returns a tuple with the CreditDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetCreditDetails(v []CreditDetails)
SetCreditDetails sets CreditDetails field to given value.
func (o *PublicSubnetRecord) HasCreditDetails() bool
HasCreditDetails returns a boolean if a field has been set.
func (o *PublicSubnetRecord) GetMetadata() PublicSubnetDetails
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *PublicSubnetRecord) GetMetadataOk() (*PublicSubnetDetails, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PublicSubnetRecord) SetMetadata(v PublicSubnetDetails)
SetMetadata sets Metadata field to given value.