|
1 | | -// Template Source: BaseEntity.java.tt |
2 | | -// ------------------------------------------------------------------------------ |
3 | | -// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
4 | | -// ------------------------------------------------------------------------------ |
5 | | - |
6 | | -package com.microsoft.graph.identitygovernance.models; |
7 | | -import com.microsoft.graph.serializer.ISerializer; |
8 | | -import com.microsoft.graph.serializer.IJsonBackedObject; |
9 | | -import com.microsoft.graph.serializer.AdditionalDataManager; |
10 | | -import java.util.EnumSet; |
11 | | -import com.microsoft.graph.http.BaseCollectionPage; |
12 | | -import com.microsoft.graph.models.KeyValuePair; |
13 | | -import com.microsoft.graph.identitygovernance.models.LifecycleTaskCategory; |
14 | | -import com.microsoft.graph.models.Entity; |
15 | | -import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage; |
16 | | - |
17 | | - |
18 | | -import com.google.gson.JsonObject; |
19 | | -import com.google.gson.annotations.SerializedName; |
20 | | -import com.google.gson.annotations.Expose; |
21 | | -import javax.annotation.Nullable; |
22 | | -import javax.annotation.Nonnull; |
23 | | - |
24 | | -// **NOTE** This file was generated by a tool and any changes will be overwritten. |
25 | | - |
26 | | -/** |
27 | | - * The class for the Task. |
28 | | - */ |
29 | | -public class Task extends Entity implements IJsonBackedObject { |
30 | | - |
31 | | - |
32 | | - /** |
33 | | - * The Arguments. |
34 | | - * Arguments included within the task. For guidance to configure this property, see Configure the arguments for built-in Lifecycle Workflow tasks. Required. |
35 | | - */ |
36 | | - @SerializedName(value = "arguments", alternate = {"Arguments"}) |
| 1 | +// Template Source: BaseEntity.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
| 6 | +package com.microsoft.graph.identitygovernance.models; |
| 7 | +import com.microsoft.graph.serializer.ISerializer; |
| 8 | +import com.microsoft.graph.serializer.IJsonBackedObject; |
| 9 | +import com.microsoft.graph.serializer.AdditionalDataManager; |
| 10 | +import java.util.EnumSet; |
| 11 | +import com.microsoft.graph.http.BaseCollectionPage; |
| 12 | +import com.microsoft.graph.models.KeyValuePair; |
| 13 | +import com.microsoft.graph.identitygovernance.models.LifecycleTaskCategory; |
| 14 | +import com.microsoft.graph.models.Entity; |
| 15 | +import com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage; |
| 16 | + |
| 17 | + |
| 18 | +import com.google.gson.JsonObject; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.annotations.Expose; |
| 21 | +import javax.annotation.Nullable; |
| 22 | +import javax.annotation.Nonnull; |
| 23 | + |
| 24 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 25 | + |
| 26 | +/** |
| 27 | + * The class for the Task. |
| 28 | + */ |
| 29 | +public class Task extends Entity implements IJsonBackedObject { |
| 30 | + |
| 31 | + |
| 32 | + /** |
| 33 | + * The Arguments. |
| 34 | + * Arguments included within the task. For guidance to configure this property, see Configure the arguments for built-in Lifecycle Workflow tasks. Required. |
| 35 | + */ |
| 36 | + @SerializedName(value = "arguments", alternate = {"Arguments"}) |
37 | 37 | @Expose |
38 | | - @Nullable |
39 | | - public java.util.List<KeyValuePair> arguments; |
40 | | - |
41 | | - /** |
42 | | - * The Category. |
43 | | - * The category of the task. The possible values are: joiner, leaver, unknownFutureValue. This property is multi-valued and the same task can apply to both joiner and leaver categories.Supports $filter(eq, ne). |
44 | | - */ |
45 | | - @SerializedName(value = "category", alternate = {"Category"}) |
| 38 | + @Nullable |
| 39 | + public java.util.List<KeyValuePair> arguments; |
| 40 | + |
| 41 | + /** |
| 42 | + * The Category. |
| 43 | + * The category of the task. The possible values are: joiner, leaver, unknownFutureValue. This property is multi-valued and the same task can apply to both joiner and leaver categories.Supports $filter(eq, ne). |
| 44 | + */ |
| 45 | + @SerializedName(value = "category", alternate = {"Category"}) |
46 | 46 | @Expose |
47 | | - @Nullable |
48 | | - public EnumSet<LifecycleTaskCategory> category; |
49 | | - |
50 | | - /** |
51 | | - * The Continue On Error. |
52 | | - * A boolean value that determines if the failure of this task stops the subsequent workflows from running. Optional. |
53 | | - */ |
54 | | - @SerializedName(value = "continueOnError", alternate = {"ContinueOnError"}) |
| 47 | + @Nullable |
| 48 | + public EnumSet<LifecycleTaskCategory> category; |
| 49 | + |
| 50 | + /** |
| 51 | + * The Continue On Error. |
| 52 | + * A boolean value that determines if the failure of this task stops the subsequent workflows from running. Optional. |
| 53 | + */ |
| 54 | + @SerializedName(value = "continueOnError", alternate = {"ContinueOnError"}) |
55 | 55 | @Expose |
56 | | - @Nullable |
57 | | - public Boolean continueOnError; |
58 | | - |
59 | | - /** |
60 | | - * The Description. |
61 | | - * A string that describes the purpose of the task for administrative use. Optional. |
62 | | - */ |
63 | | - @SerializedName(value = "description", alternate = {"Description"}) |
| 56 | + @Nullable |
| 57 | + public Boolean continueOnError; |
| 58 | + |
| 59 | + /** |
| 60 | + * The Description. |
| 61 | + * A string that describes the purpose of the task for administrative use. Optional. |
| 62 | + */ |
| 63 | + @SerializedName(value = "description", alternate = {"Description"}) |
64 | 64 | @Expose |
65 | | - @Nullable |
66 | | - public String description; |
67 | | - |
68 | | - /** |
69 | | - * The Display Name. |
70 | | - * A unique string that identifies the task. Required.Supports $filter(eq, ne) and orderBy. |
71 | | - */ |
72 | | - @SerializedName(value = "displayName", alternate = {"DisplayName"}) |
| 65 | + @Nullable |
| 66 | + public String description; |
| 67 | + |
| 68 | + /** |
| 69 | + * The Display Name. |
| 70 | + * A unique string that identifies the task. Required.Supports $filter(eq, ne) and orderBy. |
| 71 | + */ |
| 72 | + @SerializedName(value = "displayName", alternate = {"DisplayName"}) |
73 | 73 | @Expose |
74 | | - @Nullable |
75 | | - public String displayName; |
76 | | - |
77 | | - /** |
78 | | - * The Execution Sequence. |
79 | | - * An integer that states in what order the task will run in a workflow.Supports $orderby. |
80 | | - */ |
81 | | - @SerializedName(value = "executionSequence", alternate = {"ExecutionSequence"}) |
| 74 | + @Nullable |
| 75 | + public String displayName; |
| 76 | + |
| 77 | + /** |
| 78 | + * The Execution Sequence. |
| 79 | + * An integer that states in what order the task will run in a workflow.Supports $orderby. |
| 80 | + */ |
| 81 | + @SerializedName(value = "executionSequence", alternate = {"ExecutionSequence"}) |
82 | 82 | @Expose |
83 | | - @Nullable |
84 | | - public Integer executionSequence; |
85 | | - |
86 | | - /** |
87 | | - * The Is Enabled. |
88 | | - * A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. |
89 | | - */ |
90 | | - @SerializedName(value = "isEnabled", alternate = {"IsEnabled"}) |
| 83 | + @Nullable |
| 84 | + public Integer executionSequence; |
| 85 | + |
| 86 | + /** |
| 87 | + * The Is Enabled. |
| 88 | + * A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. |
| 89 | + */ |
| 90 | + @SerializedName(value = "isEnabled", alternate = {"IsEnabled"}) |
91 | 91 | @Expose |
92 | | - @Nullable |
93 | | - public Boolean isEnabled; |
94 | | - |
95 | | - /** |
96 | | - * The Task Definition Id. |
97 | | - * A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks. Required.Supports $filter(eq, ne). |
98 | | - */ |
99 | | - @SerializedName(value = "taskDefinitionId", alternate = {"TaskDefinitionId"}) |
| 92 | + @Nullable |
| 93 | + public Boolean isEnabled; |
| 94 | + |
| 95 | + /** |
| 96 | + * The Task Definition Id. |
| 97 | + * A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks. Required.Supports $filter(eq, ne). |
| 98 | + */ |
| 99 | + @SerializedName(value = "taskDefinitionId", alternate = {"TaskDefinitionId"}) |
100 | 100 | @Expose |
101 | | - @Nullable |
102 | | - public String taskDefinitionId; |
103 | | - |
104 | | - /** |
105 | | - * The Task Processing Results. |
106 | | - * The result of processing the task. |
107 | | - */ |
108 | | - @SerializedName(value = "taskProcessingResults", alternate = {"TaskProcessingResults"}) |
| 101 | + @Nullable |
| 102 | + public String taskDefinitionId; |
| 103 | + |
| 104 | + /** |
| 105 | + * The Task Processing Results. |
| 106 | + * The result of processing the task. |
| 107 | + */ |
| 108 | + @SerializedName(value = "taskProcessingResults", alternate = {"TaskProcessingResults"}) |
109 | 109 | @Expose |
110 | | - @Nullable |
111 | | - public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage taskProcessingResults; |
112 | | - |
113 | | - |
114 | | - /** |
115 | | - * Sets the raw JSON object |
116 | | - * |
117 | | - * @param serializer the serializer |
118 | | - * @param json the JSON object to set this object to |
119 | | - */ |
120 | | - public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
121 | | - |
122 | | - |
123 | | - if (json.has("taskProcessingResults")) { |
124 | | - taskProcessingResults = serializer.deserializeObject(json.get("taskProcessingResults"), com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage.class); |
125 | | - } |
126 | | - } |
127 | | -} |
| 110 | + @Nullable |
| 111 | + public com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage taskProcessingResults; |
| 112 | + |
| 113 | + |
| 114 | + /** |
| 115 | + * Sets the raw JSON object |
| 116 | + * |
| 117 | + * @param serializer the serializer |
| 118 | + * @param json the JSON object to set this object to |
| 119 | + */ |
| 120 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 121 | + |
| 122 | + |
| 123 | + if (json.has("taskProcessingResults")) { |
| 124 | + taskProcessingResults = serializer.deserializeObject(json.get("taskProcessingResults"), com.microsoft.graph.identitygovernance.requests.TaskProcessingResultCollectionPage.class); |
| 125 | + } |
| 126 | + } |
| 127 | +} |
0 commit comments