|
| 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.PresenceStatusMessage; |
| 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 Presence Set Status Message Parameter Set. |
| 21 | + */ |
| 22 | +public class PresenceSetStatusMessageParameterSet { |
| 23 | + /** |
| 24 | + * The status Message. |
| 25 | + * |
| 26 | + */ |
| 27 | + @SerializedName(value = "statusMessage", alternate = {"StatusMessage"}) |
| 28 | + @Expose |
| 29 | + @Nullable |
| 30 | + public PresenceStatusMessage statusMessage; |
| 31 | + |
| 32 | + |
| 33 | + /** |
| 34 | + * Instiaciates a new PresenceSetStatusMessageParameterSet |
| 35 | + */ |
| 36 | + public PresenceSetStatusMessageParameterSet() {} |
| 37 | + /** |
| 38 | + * Instiaciates a new PresenceSetStatusMessageParameterSet |
| 39 | + * @param builder builder bearing the parameters to initialize from |
| 40 | + */ |
| 41 | + protected PresenceSetStatusMessageParameterSet(@Nonnull final PresenceSetStatusMessageParameterSetBuilder builder) { |
| 42 | + this.statusMessage = builder.statusMessage; |
| 43 | + } |
| 44 | + /** |
| 45 | + * Gets a new builder for the body |
| 46 | + * @return a new builder |
| 47 | + */ |
| 48 | + @Nonnull |
| 49 | + public static PresenceSetStatusMessageParameterSetBuilder newBuilder() { |
| 50 | + return new PresenceSetStatusMessageParameterSetBuilder(); |
| 51 | + } |
| 52 | + /** |
| 53 | + * Fluent builder for the PresenceSetStatusMessageParameterSet |
| 54 | + */ |
| 55 | + public static final class PresenceSetStatusMessageParameterSetBuilder { |
| 56 | + /** |
| 57 | + * The statusMessage parameter value |
| 58 | + */ |
| 59 | + @Nullable |
| 60 | + protected PresenceStatusMessage statusMessage; |
| 61 | + /** |
| 62 | + * Sets the StatusMessage |
| 63 | + * @param val the value to set it to |
| 64 | + * @return the current builder object |
| 65 | + */ |
| 66 | + @Nonnull |
| 67 | + public PresenceSetStatusMessageParameterSetBuilder withStatusMessage(@Nullable final PresenceStatusMessage val) { |
| 68 | + this.statusMessage = val; |
| 69 | + return this; |
| 70 | + } |
| 71 | + /** |
| 72 | + * Instanciates a new PresenceSetStatusMessageParameterSetBuilder |
| 73 | + */ |
| 74 | + @Nullable |
| 75 | + protected PresenceSetStatusMessageParameterSetBuilder(){} |
| 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 PresenceSetStatusMessageParameterSet build() { |
| 82 | + return new PresenceSetStatusMessageParameterSet(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.statusMessage != null) { |
| 93 | + result.add(new com.microsoft.graph.options.FunctionOption("statusMessage", statusMessage)); |
| 94 | + } |
| 95 | + return result; |
| 96 | + } |
| 97 | +} |
0 commit comments