|
| 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.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.X509CertificateAuthenticationModeConfiguration; |
| 13 | +import com.microsoft.graph.models.X509CertificateUserBinding; |
| 14 | +import com.microsoft.graph.models.AuthenticationMethodConfiguration; |
| 15 | +import com.microsoft.graph.requests.AuthenticationMethodTargetCollectionPage; |
| 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 X509Certificate Authentication Method Configuration. |
| 28 | + */ |
| 29 | +public class X509CertificateAuthenticationMethodConfiguration extends AuthenticationMethodConfiguration implements IJsonBackedObject { |
| 30 | + |
| 31 | + |
| 32 | + /** |
| 33 | + * The Authentication Mode Configuration. |
| 34 | + * |
| 35 | + */ |
| 36 | + @SerializedName(value = "authenticationModeConfiguration", alternate = {"AuthenticationModeConfiguration"}) |
| 37 | + @Expose |
| 38 | + @Nullable |
| 39 | + public X509CertificateAuthenticationModeConfiguration authenticationModeConfiguration; |
| 40 | + |
| 41 | + /** |
| 42 | + * The Certificate User Bindings. |
| 43 | + * |
| 44 | + */ |
| 45 | + @SerializedName(value = "certificateUserBindings", alternate = {"CertificateUserBindings"}) |
| 46 | + @Expose |
| 47 | + @Nullable |
| 48 | + public java.util.List<X509CertificateUserBinding> certificateUserBindings; |
| 49 | + |
| 50 | + /** |
| 51 | + * The Include Targets. |
| 52 | + * |
| 53 | + */ |
| 54 | + @SerializedName(value = "includeTargets", alternate = {"IncludeTargets"}) |
| 55 | + @Expose |
| 56 | + @Nullable |
| 57 | + public com.microsoft.graph.requests.AuthenticationMethodTargetCollectionPage includeTargets; |
| 58 | + |
| 59 | + |
| 60 | + /** |
| 61 | + * Sets the raw JSON object |
| 62 | + * |
| 63 | + * @param serializer the serializer |
| 64 | + * @param json the JSON object to set this object to |
| 65 | + */ |
| 66 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 67 | + |
| 68 | + |
| 69 | + if (json.has("includeTargets")) { |
| 70 | + includeTargets = serializer.deserializeObject(json.get("includeTargets"), com.microsoft.graph.requests.AuthenticationMethodTargetCollectionPage.class); |
| 71 | + } |
| 72 | + } |
| 73 | +} |
0 commit comments