Class RunbookDraftInner
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.RunbookDraftInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RunbookDraftInner>
public final class RunbookDraftInner
extends Object
implements com.azure.json.JsonSerializable<RunbookDraftInner>
The RunbookDraft model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Gets or sets the creation time of the runbook draft.Get the draftContentLink property: Gets or sets the draft runbook content link.static RunbookDraftInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RunbookDraftInner from the JsonReader.inEdit()
Get the inEdit property: Gets or sets whether runbook is in edit mode.Get the lastModifiedTime property: Gets or sets the last modified time of the runbook draft.Get the outputTypes property: Gets or sets the runbook output types.Get the parameters property: Gets or sets the runbook draft parameters.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time of the runbook draft.withDraftContentLink
(ContentLink draftContentLink) Set the draftContentLink property: Gets or sets the draft runbook content link.withInEdit
(Boolean inEdit) Set the inEdit property: Gets or sets whether runbook is in edit mode.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time of the runbook draft.withOutputTypes
(List<String> outputTypes) Set the outputTypes property: Gets or sets the runbook output types.withParameters
(Map<String, RunbookParameter> parameters) Set the parameters property: Gets or sets the runbook draft parameters.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
-
RunbookDraftInner
public RunbookDraftInner()Creates an instance of RunbookDraftInner class.
-
-
Method Details
-
inEdit
Get the inEdit property: Gets or sets whether runbook is in edit mode.- Returns:
- the inEdit value.
-
withInEdit
Set the inEdit property: Gets or sets whether runbook is in edit mode.- Parameters:
inEdit
- the inEdit value to set.- Returns:
- the RunbookDraftInner object itself.
-
draftContentLink
Get the draftContentLink property: Gets or sets the draft runbook content link.- Returns:
- the draftContentLink value.
-
withDraftContentLink
Set the draftContentLink property: Gets or sets the draft runbook content link.- Parameters:
draftContentLink
- the draftContentLink value to set.- Returns:
- the RunbookDraftInner object itself.
-
creationTime
Get the creationTime property: Gets or sets the creation time of the runbook draft.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets the creation time of the runbook draft.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the RunbookDraftInner object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time of the runbook draft.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Gets or sets the last modified time of the runbook draft.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the RunbookDraftInner object itself.
-
parameters
Get the parameters property: Gets or sets the runbook draft parameters.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the runbook draft parameters.- Parameters:
parameters
- the parameters value to set.- Returns:
- the RunbookDraftInner object itself.
-
outputTypes
Get the outputTypes property: Gets or sets the runbook output types.- Returns:
- the outputTypes value.
-
withOutputTypes
Set the outputTypes property: Gets or sets the runbook output types.- Parameters:
outputTypes
- the outputTypes value to set.- Returns:
- the RunbookDraftInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RunbookDraftInner>
- Throws:
IOException
-
fromJson
Reads an instance of RunbookDraftInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RunbookDraftInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RunbookDraftInner.
-