target.apidocs.com.google.api.services.content.model.HolidaysHoliday.html Maven / Gradle / Ivy
HolidaysHoliday (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class HolidaysHoliday
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.HolidaysHoliday
-
public final class HolidaysHoliday
extends com.google.api.client.json.GenericJson
Model definition for HolidaysHoliday.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
HolidaysHoliday()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
HolidaysHoliday
clone()
String
getCountryCode()
The CLDR territory code of the country in which the holiday is available.
String
getDate()
Date of the holiday, in ISO 8601 format.
String
getDeliveryGuaranteeDate()
Date on which the order has to arrive at the customer's, in ISO 8601 format.
BigInteger
getDeliveryGuaranteeHour()
Hour of the day in the delivery location's timezone on the guaranteed delivery date by which
the order has to arrive at the customer's.
String
getId()
Unique identifier for the holiday to be used when configuring holiday cutoffs.
String
getType()
The holiday type.
HolidaysHoliday
set(String fieldName,
Object value)
HolidaysHoliday
setCountryCode(String countryCode)
The CLDR territory code of the country in which the holiday is available.
HolidaysHoliday
setDate(String date)
Date of the holiday, in ISO 8601 format.
HolidaysHoliday
setDeliveryGuaranteeDate(String deliveryGuaranteeDate)
Date on which the order has to arrive at the customer's, in ISO 8601 format.
HolidaysHoliday
setDeliveryGuaranteeHour(BigInteger deliveryGuaranteeHour)
Hour of the day in the delivery location's timezone on the guaranteed delivery date by which
the order has to arrive at the customer's.
HolidaysHoliday
setId(String id)
Unique identifier for the holiday to be used when configuring holiday cutoffs.
HolidaysHoliday
setType(String type)
The holiday type.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCountryCode
public String getCountryCode()
The CLDR territory code of the country in which the holiday is available. For example, "US",
"DE", "GB". A holiday cutoff can only be configured in a shipping settings service with
matching delivery country. Always present.
- Returns:
- value or
null
for none
-
setCountryCode
public HolidaysHoliday setCountryCode(String countryCode)
The CLDR territory code of the country in which the holiday is available. For example, "US",
"DE", "GB". A holiday cutoff can only be configured in a shipping settings service with
matching delivery country. Always present.
- Parameters:
countryCode
- countryCode or null
for none
-
getDate
public String getDate()
Date of the holiday, in ISO 8601 format. For example, "2016-12-25" for Christmas 2016. Always
present.
- Returns:
- value or
null
for none
-
setDate
public HolidaysHoliday setDate(String date)
Date of the holiday, in ISO 8601 format. For example, "2016-12-25" for Christmas 2016. Always
present.
- Parameters:
date
- date or null
for none
-
getDeliveryGuaranteeDate
public String getDeliveryGuaranteeDate()
Date on which the order has to arrive at the customer's, in ISO 8601 format. For example,
"2016-12-24" for 24th December 2016. Always present.
- Returns:
- value or
null
for none
-
setDeliveryGuaranteeDate
public HolidaysHoliday setDeliveryGuaranteeDate(String deliveryGuaranteeDate)
Date on which the order has to arrive at the customer's, in ISO 8601 format. For example,
"2016-12-24" for 24th December 2016. Always present.
- Parameters:
deliveryGuaranteeDate
- deliveryGuaranteeDate or null
for none
-
getDeliveryGuaranteeHour
public BigInteger getDeliveryGuaranteeHour()
Hour of the day in the delivery location's timezone on the guaranteed delivery date by which
the order has to arrive at the customer's. Possible values are: 0 (midnight), 1, ..., 12
(noon), 13, ..., 23. Always present.
- Returns:
- value or
null
for none
-
setDeliveryGuaranteeHour
public HolidaysHoliday setDeliveryGuaranteeHour(BigInteger deliveryGuaranteeHour)
Hour of the day in the delivery location's timezone on the guaranteed delivery date by which
the order has to arrive at the customer's. Possible values are: 0 (midnight), 1, ..., 12
(noon), 13, ..., 23. Always present.
- Parameters:
deliveryGuaranteeHour
- deliveryGuaranteeHour or null
for none
-
getId
public String getId()
Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
- Returns:
- value or
null
for none
-
setId
public HolidaysHoliday setId(String id)
Unique identifier for the holiday to be used when configuring holiday cutoffs. Always present.
- Parameters:
id
- id or null
for none
-
getType
public String getType()
The holiday type. Always present. Acceptable values are: - "`Christmas`" - "`Easter`" -
"`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "`Mother's Day`" -
"`Thanksgiving`" - "`Valentine's Day`"
- Returns:
- value or
null
for none
-
setType
public HolidaysHoliday setType(String type)
The holiday type. Always present. Acceptable values are: - "`Christmas`" - "`Easter`" -
"`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "`Mother's Day`" -
"`Thanksgiving`" - "`Valentine's Day`"
- Parameters:
type
- type or null
for none
-
set
public HolidaysHoliday set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public HolidaysHoliday clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy