|
| 1 | +// Template Source: BaseMethodParameterSet.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 | + |
| 8 | +import com.microsoft.graph.models.AddLargeGalleryViewOperation; |
| 9 | +import com.google.gson.annotations.Expose; |
| 10 | +import com.google.gson.annotations.SerializedName; |
| 11 | +import javax.annotation.Nonnull; |
| 12 | +import javax.annotation.Nullable; |
| 13 | +import com.google.gson.JsonObject; |
| 14 | +import java.util.EnumSet; |
| 15 | +import java.util.ArrayList; |
| 16 | + |
| 17 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 18 | + |
| 19 | +/** |
| 20 | + * The class for the Call Add Large Gallery View Parameter Set. |
| 21 | + */ |
| 22 | +public class CallAddLargeGalleryViewParameterSet { |
| 23 | + /** |
| 24 | + * The client Context. |
| 25 | + * |
| 26 | + */ |
| 27 | + @SerializedName(value = "clientContext", alternate = {"ClientContext"}) |
| 28 | + @Expose |
| 29 | + @Nullable |
| 30 | + public String clientContext; |
| 31 | + |
| 32 | + |
| 33 | + /** |
| 34 | + * Instiaciates a new CallAddLargeGalleryViewParameterSet |
| 35 | + */ |
| 36 | + public CallAddLargeGalleryViewParameterSet() {} |
| 37 | + /** |
| 38 | + * Instiaciates a new CallAddLargeGalleryViewParameterSet |
| 39 | + * @param builder builder bearing the parameters to initialize from |
| 40 | + */ |
| 41 | + protected CallAddLargeGalleryViewParameterSet(@Nonnull final CallAddLargeGalleryViewParameterSetBuilder builder) { |
| 42 | + this.clientContext = builder.clientContext; |
| 43 | + } |
| 44 | + /** |
| 45 | + * Gets a new builder for the body |
| 46 | + * @return a new builder |
| 47 | + */ |
| 48 | + @Nonnull |
| 49 | + public static CallAddLargeGalleryViewParameterSetBuilder newBuilder() { |
| 50 | + return new CallAddLargeGalleryViewParameterSetBuilder(); |
| 51 | + } |
| 52 | + /** |
| 53 | + * Fluent builder for the CallAddLargeGalleryViewParameterSet |
| 54 | + */ |
| 55 | + public static final class CallAddLargeGalleryViewParameterSetBuilder { |
| 56 | + /** |
| 57 | + * The clientContext parameter value |
| 58 | + */ |
| 59 | + @Nullable |
| 60 | + protected String clientContext; |
| 61 | + /** |
| 62 | + * Sets the ClientContext |
| 63 | + * @param val the value to set it to |
| 64 | + * @return the current builder object |
| 65 | + */ |
| 66 | + @Nonnull |
| 67 | + public CallAddLargeGalleryViewParameterSetBuilder withClientContext(@Nullable final String val) { |
| 68 | + this.clientContext = val; |
| 69 | + return this; |
| 70 | + } |
| 71 | + /** |
| 72 | + * Instanciates a new CallAddLargeGalleryViewParameterSetBuilder |
| 73 | + */ |
| 74 | + @Nullable |
| 75 | + protected CallAddLargeGalleryViewParameterSetBuilder(){} |
| 76 | + /** |
| 77 | + * Buils the resulting body object to be passed to the request |
| 78 | + * @return the body object to pass to the request |
| 79 | + */ |
| 80 | + @Nonnull |
| 81 | + public CallAddLargeGalleryViewParameterSet build() { |
| 82 | + return new CallAddLargeGalleryViewParameterSet(this); |
| 83 | + } |
| 84 | + } |
| 85 | + /** |
| 86 | + * Gets the functions options from the properties that have been set |
| 87 | + * @return a list of function options for the request |
| 88 | + */ |
| 89 | + @Nonnull |
| 90 | + public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() { |
| 91 | + final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>(); |
| 92 | + if(this.clientContext != null) { |
| 93 | + result.add(new com.microsoft.graph.options.FunctionOption("clientContext", clientContext)); |
| 94 | + } |
| 95 | + return result; |
| 96 | + } |
| 97 | +} |
0 commit comments