|
| 1 | +/** |
| 2 | + * Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | + * Licensed under the MIT License. See License.txt in the project root for |
| 4 | + * license information. |
| 5 | + * |
| 6 | + * Code generated by Microsoft (R) AutoRest Code Generator. |
| 7 | + */ |
| 8 | + |
| 9 | +package com.microsoft.azure.management.servicefabricmesh; |
| 10 | + |
| 11 | +import java.util.List; |
| 12 | +import com.microsoft.azure.management.servicefabricmesh.implementation.ServiceResourceDescriptionInner; |
| 13 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 14 | + |
| 15 | +/** |
| 16 | + * This type describes properties of an application resource. |
| 17 | + */ |
| 18 | +public class ApplicationProperties { |
| 19 | + /** |
| 20 | + * User readable description of the application. |
| 21 | + */ |
| 22 | + @JsonProperty(value = "description") |
| 23 | + private String description; |
| 24 | + |
| 25 | + /** |
| 26 | + * Internal use. |
| 27 | + */ |
| 28 | + @JsonProperty(value = "debugParams") |
| 29 | + private String debugParams; |
| 30 | + |
| 31 | + /** |
| 32 | + * describes the services in the application. |
| 33 | + */ |
| 34 | + @JsonProperty(value = "services") |
| 35 | + private List<ServiceResourceDescriptionInner> services; |
| 36 | + |
| 37 | + /** |
| 38 | + * Describes the health state of an application resource. Possible values |
| 39 | + * include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'. |
| 40 | + */ |
| 41 | + @JsonProperty(value = "healthState", access = JsonProperty.Access.WRITE_ONLY) |
| 42 | + private HealthState healthState; |
| 43 | + |
| 44 | + /** |
| 45 | + * When the application's health state is not 'Ok', this additional details |
| 46 | + * from service fabric Health Manager for the user to know why the |
| 47 | + * application is marked unhealthy. |
| 48 | + */ |
| 49 | + @JsonProperty(value = "unhealthyEvaluation", access = JsonProperty.Access.WRITE_ONLY) |
| 50 | + private String unhealthyEvaluation; |
| 51 | + |
| 52 | + /** |
| 53 | + * Status of the application resource. Possible values include: 'Invalid', |
| 54 | + * 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'. |
| 55 | + */ |
| 56 | + @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) |
| 57 | + private ApplicationResourceStatus status; |
| 58 | + |
| 59 | + /** |
| 60 | + * Gives additional information about the current status of the application |
| 61 | + * deployment. |
| 62 | + */ |
| 63 | + @JsonProperty(value = "statusDetails", access = JsonProperty.Access.WRITE_ONLY) |
| 64 | + private String statusDetails; |
| 65 | + |
| 66 | + /** |
| 67 | + * Names of the services in the application. |
| 68 | + */ |
| 69 | + @JsonProperty(value = "serviceNames", access = JsonProperty.Access.WRITE_ONLY) |
| 70 | + private List<String> serviceNames; |
| 71 | + |
| 72 | + /** |
| 73 | + * Describes the diagnostics definition and usage for an application |
| 74 | + * resource. |
| 75 | + */ |
| 76 | + @JsonProperty(value = "diagnostics") |
| 77 | + private DiagnosticsDescription diagnostics; |
| 78 | + |
| 79 | + /** |
| 80 | + * Get user readable description of the application. |
| 81 | + * |
| 82 | + * @return the description value |
| 83 | + */ |
| 84 | + public String description() { |
| 85 | + return this.description; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Set user readable description of the application. |
| 90 | + * |
| 91 | + * @param description the description value to set |
| 92 | + * @return the ApplicationProperties object itself. |
| 93 | + */ |
| 94 | + public ApplicationProperties withDescription(String description) { |
| 95 | + this.description = description; |
| 96 | + return this; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Get internal use. |
| 101 | + * |
| 102 | + * @return the debugParams value |
| 103 | + */ |
| 104 | + public String debugParams() { |
| 105 | + return this.debugParams; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Set internal use. |
| 110 | + * |
| 111 | + * @param debugParams the debugParams value to set |
| 112 | + * @return the ApplicationProperties object itself. |
| 113 | + */ |
| 114 | + public ApplicationProperties withDebugParams(String debugParams) { |
| 115 | + this.debugParams = debugParams; |
| 116 | + return this; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Get describes the services in the application. |
| 121 | + * |
| 122 | + * @return the services value |
| 123 | + */ |
| 124 | + public List<ServiceResourceDescriptionInner> services() { |
| 125 | + return this.services; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Set describes the services in the application. |
| 130 | + * |
| 131 | + * @param services the services value to set |
| 132 | + * @return the ApplicationProperties object itself. |
| 133 | + */ |
| 134 | + public ApplicationProperties withServices(List<ServiceResourceDescriptionInner> services) { |
| 135 | + this.services = services; |
| 136 | + return this; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * Get describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'. |
| 141 | + * |
| 142 | + * @return the healthState value |
| 143 | + */ |
| 144 | + public HealthState healthState() { |
| 145 | + return this.healthState; |
| 146 | + } |
| 147 | + |
| 148 | + /** |
| 149 | + * Get when the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy. |
| 150 | + * |
| 151 | + * @return the unhealthyEvaluation value |
| 152 | + */ |
| 153 | + public String unhealthyEvaluation() { |
| 154 | + return this.unhealthyEvaluation; |
| 155 | + } |
| 156 | + |
| 157 | + /** |
| 158 | + * Get status of the application resource. Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'. |
| 159 | + * |
| 160 | + * @return the status value |
| 161 | + */ |
| 162 | + public ApplicationResourceStatus status() { |
| 163 | + return this.status; |
| 164 | + } |
| 165 | + |
| 166 | + /** |
| 167 | + * Get gives additional information about the current status of the application deployment. |
| 168 | + * |
| 169 | + * @return the statusDetails value |
| 170 | + */ |
| 171 | + public String statusDetails() { |
| 172 | + return this.statusDetails; |
| 173 | + } |
| 174 | + |
| 175 | + /** |
| 176 | + * Get names of the services in the application. |
| 177 | + * |
| 178 | + * @return the serviceNames value |
| 179 | + */ |
| 180 | + public List<String> serviceNames() { |
| 181 | + return this.serviceNames; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Get describes the diagnostics definition and usage for an application resource. |
| 186 | + * |
| 187 | + * @return the diagnostics value |
| 188 | + */ |
| 189 | + public DiagnosticsDescription diagnostics() { |
| 190 | + return this.diagnostics; |
| 191 | + } |
| 192 | + |
| 193 | + /** |
| 194 | + * Set describes the diagnostics definition and usage for an application resource. |
| 195 | + * |
| 196 | + * @param diagnostics the diagnostics value to set |
| 197 | + * @return the ApplicationProperties object itself. |
| 198 | + */ |
| 199 | + public ApplicationProperties withDiagnostics(DiagnosticsDescription diagnostics) { |
| 200 | + this.diagnostics = diagnostics; |
| 201 | + return this; |
| 202 | + } |
| 203 | + |
| 204 | +} |
0 commit comments