Package com.azure.compute.batch.models
Class BatchJobScheduleCreateContent
java.lang.Object
com.azure.compute.batch.models.BatchJobScheduleCreateContent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchJobScheduleCreateContent>
public final class BatchJobScheduleCreateContent
extends Object
implements com.azure.json.JsonSerializable<BatchJobScheduleCreateContent>
Parameters for creating an Azure Batch Job Schedule.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchJobScheduleCreateContent
(String id, BatchJobScheduleConfiguration schedule, BatchJobSpecification jobSpecification) Creates an instance of BatchJobScheduleCreateContent class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchJobScheduleCreateContent from the JsonReader.Get the displayName property: The display name for the schedule.getId()
Get the id property: A string that uniquely identifies the schedule within the Account.Get the jobSpecification property: The details of the Jobs to be created on this schedule.Get the metadata property: A list of name-value pairs associated with the schedule as metadata.Get the schedule property: The schedule according to which Jobs will be created.setDisplayName
(String displayName) Set the displayName property: The display name for the schedule.setMetadata
(List<MetadataItem> metadata) Set the metadata property: A list of name-value pairs associated with the schedule as metadata.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchJobScheduleCreateContent
public BatchJobScheduleCreateContent(String id, BatchJobScheduleConfiguration schedule, BatchJobSpecification jobSpecification) Creates an instance of BatchJobScheduleCreateContent class.- Parameters:
id
- the id value to set.schedule
- the schedule value to set.jobSpecification
- the jobSpecification value to set.
-
-
Method Details
-
getId
Get the id property: A string that uniquely identifies the schedule within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).- Returns:
- the id value.
-
getDisplayName
Get the displayName property: The display name for the schedule. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.- Returns:
- the displayName value.
-
setDisplayName
Set the displayName property: The display name for the schedule. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.- Parameters:
displayName
- the displayName value to set.- Returns:
- the BatchJobScheduleCreateContent object itself.
-
getSchedule
Get the schedule property: The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time.- Returns:
- the schedule value.
-
getJobSpecification
Get the jobSpecification property: The details of the Jobs to be created on this schedule.- Returns:
- the jobSpecification value.
-
getMetadata
Get the metadata property: A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.- Parameters:
metadata
- the metadata value to set.- Returns:
- the BatchJobScheduleCreateContent object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchJobScheduleCreateContent>
- Throws:
IOException
-
fromJson
public static BatchJobScheduleCreateContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BatchJobScheduleCreateContent from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BatchJobScheduleCreateContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the BatchJobScheduleCreateContent.
-