ProvisioningStep.php
| 1 | <?php |
| 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 | * ProvisioningStep File |
| 6 | * PHP version 7 |
| 7 | * |
| 8 | * @category Library |
| 9 | * @package Microsoft.Graph |
| 10 | * @copyright (c) Microsoft Corporation. All rights reserved. |
| 11 | * @license https://opensource.org/licenses/MIT MIT License |
| 12 | * @link https://graph.microsoft.com |
| 13 | */ |
| 14 | namespace Microsoft\Graph\Model; |
| 15 | /** |
| 16 | * ProvisioningStep class |
| 17 | * |
| 18 | * @category Model |
| 19 | * @package Microsoft.Graph |
| 20 | * @copyright (c) Microsoft Corporation. All rights reserved. |
| 21 | * @license https://opensource.org/licenses/MIT MIT License |
| 22 | * @link https://graph.microsoft.com |
| 23 | */ |
| 24 | class ProvisioningStep extends Entity |
| 25 | { |
| 26 | /** |
| 27 | * Gets the description |
| 28 | * Summary of what occurred during the step. |
| 29 | * |
| 30 | * @return string|null The description |
| 31 | */ |
| 32 | public function getDescription() |
| 33 | { |
| 34 | if (array_key_exists("description", $this->_propDict)) { |
| 35 | return $this->_propDict["description"]; |
| 36 | } else { |
| 37 | return null; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Sets the description |
| 43 | * Summary of what occurred during the step. |
| 44 | * |
| 45 | * @param string $val The value of the description |
| 46 | * |
| 47 | * @return ProvisioningStep |
| 48 | */ |
| 49 | public function setDescription($val) |
| 50 | { |
| 51 | $this->_propDict["description"] = $val; |
| 52 | return $this; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Gets the details |
| 57 | * Details of what occurred during the step. |
| 58 | * |
| 59 | * @return DetailsInfo|null The details |
| 60 | */ |
| 61 | public function getDetails() |
| 62 | { |
| 63 | if (array_key_exists("details", $this->_propDict)) { |
| 64 | if (is_a($this->_propDict["details"], "\Microsoft\Graph\Model\DetailsInfo") || is_null($this->_propDict["details"])) { |
| 65 | return $this->_propDict["details"]; |
| 66 | } else { |
| 67 | $this->_propDict["details"] = new DetailsInfo($this->_propDict["details"]); |
| 68 | return $this->_propDict["details"]; |
| 69 | } |
| 70 | } |
| 71 | return null; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Sets the details |
| 76 | * Details of what occurred during the step. |
| 77 | * |
| 78 | * @param DetailsInfo $val The value to assign to the details |
| 79 | * |
| 80 | * @return ProvisioningStep The ProvisioningStep |
| 81 | */ |
| 82 | public function setDetails($val) |
| 83 | { |
| 84 | $this->_propDict["details"] = $val; |
| 85 | return $this; |
| 86 | } |
| 87 | /** |
| 88 | * Gets the name |
| 89 | * Name of the step. |
| 90 | * |
| 91 | * @return string|null The name |
| 92 | */ |
| 93 | public function getName() |
| 94 | { |
| 95 | if (array_key_exists("name", $this->_propDict)) { |
| 96 | return $this->_propDict["name"]; |
| 97 | } else { |
| 98 | return null; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Sets the name |
| 104 | * Name of the step. |
| 105 | * |
| 106 | * @param string $val The value of the name |
| 107 | * |
| 108 | * @return ProvisioningStep |
| 109 | */ |
| 110 | public function setName($val) |
| 111 | { |
| 112 | $this->_propDict["name"] = $val; |
| 113 | return $this; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Gets the provisioningStepType |
| 118 | * Type of step. Possible values are: import, scoping, matching, processing, referenceResolution, export, unknownFutureValue. |
| 119 | * |
| 120 | * @return ProvisioningStepType|null The provisioningStepType |
| 121 | */ |
| 122 | public function getProvisioningStepType() |
| 123 | { |
| 124 | if (array_key_exists("provisioningStepType", $this->_propDict)) { |
| 125 | if (is_a($this->_propDict["provisioningStepType"], "\Microsoft\Graph\Model\ProvisioningStepType") || is_null($this->_propDict["provisioningStepType"])) { |
| 126 | return $this->_propDict["provisioningStepType"]; |
| 127 | } else { |
| 128 | $this->_propDict["provisioningStepType"] = new ProvisioningStepType($this->_propDict["provisioningStepType"]); |
| 129 | return $this->_propDict["provisioningStepType"]; |
| 130 | } |
| 131 | } |
| 132 | return null; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Sets the provisioningStepType |
| 137 | * Type of step. Possible values are: import, scoping, matching, processing, referenceResolution, export, unknownFutureValue. |
| 138 | * |
| 139 | * @param ProvisioningStepType $val The value to assign to the provisioningStepType |
| 140 | * |
| 141 | * @return ProvisioningStep The ProvisioningStep |
| 142 | */ |
| 143 | public function setProvisioningStepType($val) |
| 144 | { |
| 145 | $this->_propDict["provisioningStepType"] = $val; |
| 146 | return $this; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Gets the status |
| 151 | * Status of the step. Possible values are: success, warning, failure, skipped, unknownFutureValue. |
| 152 | * |
| 153 | * @return ProvisioningResult|null The status |
| 154 | */ |
| 155 | public function getStatus() |
| 156 | { |
| 157 | if (array_key_exists("status", $this->_propDict)) { |
| 158 | if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\ProvisioningResult") || is_null($this->_propDict["status"])) { |
| 159 | return $this->_propDict["status"]; |
| 160 | } else { |
| 161 | $this->_propDict["status"] = new ProvisioningResult($this->_propDict["status"]); |
| 162 | return $this->_propDict["status"]; |
| 163 | } |
| 164 | } |
| 165 | return null; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Sets the status |
| 170 | * Status of the step. Possible values are: success, warning, failure, skipped, unknownFutureValue. |
| 171 | * |
| 172 | * @param ProvisioningResult $val The value to assign to the status |
| 173 | * |
| 174 | * @return ProvisioningStep The ProvisioningStep |
| 175 | */ |
| 176 | public function setStatus($val) |
| 177 | { |
| 178 | $this->_propDict["status"] = $val; |
| 179 | return $this; |
| 180 | } |
| 181 | } |
| 182 |