Package io.lakefs.clients.sdk.model
Class UsageReport
- java.lang.Object
-
- io.lakefs.clients.sdk.model.UsageReport
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UsageReport extends Object
UsageReport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsageReport.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTstatic StringSERIALIZED_NAME_MONTHstatic StringSERIALIZED_NAME_YEAR
-
Constructor Summary
Constructors Constructor Description UsageReport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UsageReportcount(Long count)booleanequals(Object o)static UsageReportfromJson(String jsonString)Create an instance of UsageReport given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.LonggetCount()Get countIntegergetMonth()Get monthIntegergetYear()Get yearinthashCode()UsageReportmonth(Integer month)UsageReportputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCount(Long count)voidsetMonth(Integer month)voidsetYear(Integer year)StringtoJson()Convert an instance of UsageReport to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundUsageReportyear(Integer year)
-
-
-
Field Detail
-
SERIALIZED_NAME_YEAR
public static final String SERIALIZED_NAME_YEAR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MONTH
public static final String SERIALIZED_NAME_MONTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNT
public static final String SERIALIZED_NAME_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
year
public UsageReport year(Integer year)
-
setYear
public void setYear(Integer year)
-
month
public UsageReport month(Integer month)
-
setMonth
public void setMonth(Integer month)
-
count
public UsageReport count(Long count)
-
setCount
public void setCount(Long count)
-
putAdditionalProperty
public UsageReport putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the UsageReport instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UsageReport
-
fromJson
public static UsageReport fromJson(String jsonString) throws IOException
Create an instance of UsageReport given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UsageReport
- Throws:
IOException- if the JSON string is invalid with respect to UsageReport
-
toJson
public String toJson()
Convert an instance of UsageReport to an JSON string- Returns:
- JSON string
-
-