|
| 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.callrecords.models; |
| 7 | + |
| 8 | +import com.microsoft.graph.callrecords.models.PstnOnlineMeetingDialoutReport; |
| 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 Record Get Pstn Online Meeting Dialout Report Parameter Set. |
| 21 | + */ |
| 22 | +public class CallRecordGetPstnOnlineMeetingDialoutReportParameterSet { |
| 23 | + /** |
| 24 | + * The from Date Time. |
| 25 | + * |
| 26 | + */ |
| 27 | + @SerializedName(value = "fromDateTime", alternate = {"FromDateTime"}) |
| 28 | + @Expose |
| 29 | + @Nullable |
| 30 | + public java.time.OffsetDateTime fromDateTime; |
| 31 | + |
| 32 | + /** |
| 33 | + * The to Date Time. |
| 34 | + * |
| 35 | + */ |
| 36 | + @SerializedName(value = "toDateTime", alternate = {"ToDateTime"}) |
| 37 | + @Expose |
| 38 | + @Nullable |
| 39 | + public java.time.OffsetDateTime toDateTime; |
| 40 | + |
| 41 | + |
| 42 | + /** |
| 43 | + * Instiaciates a new CallRecordGetPstnOnlineMeetingDialoutReportParameterSet |
| 44 | + */ |
| 45 | + public CallRecordGetPstnOnlineMeetingDialoutReportParameterSet() {} |
| 46 | + /** |
| 47 | + * Instiaciates a new CallRecordGetPstnOnlineMeetingDialoutReportParameterSet |
| 48 | + * @param builder builder bearing the parameters to initialize from |
| 49 | + */ |
| 50 | + protected CallRecordGetPstnOnlineMeetingDialoutReportParameterSet(@Nonnull final CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder builder) { |
| 51 | + this.fromDateTime = builder.fromDateTime; |
| 52 | + this.toDateTime = builder.toDateTime; |
| 53 | + } |
| 54 | + /** |
| 55 | + * Gets a new builder for the body |
| 56 | + * @return a new builder |
| 57 | + */ |
| 58 | + @Nonnull |
| 59 | + public static CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder newBuilder() { |
| 60 | + return new CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder(); |
| 61 | + } |
| 62 | + /** |
| 63 | + * Fluent builder for the CallRecordGetPstnOnlineMeetingDialoutReportParameterSet |
| 64 | + */ |
| 65 | + public static final class CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder { |
| 66 | + /** |
| 67 | + * The fromDateTime parameter value |
| 68 | + */ |
| 69 | + @Nullable |
| 70 | + protected java.time.OffsetDateTime fromDateTime; |
| 71 | + /** |
| 72 | + * Sets the FromDateTime |
| 73 | + * @param val the value to set it to |
| 74 | + * @return the current builder object |
| 75 | + */ |
| 76 | + @Nonnull |
| 77 | + public CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder withFromDateTime(@Nullable final java.time.OffsetDateTime val) { |
| 78 | + this.fromDateTime = val; |
| 79 | + return this; |
| 80 | + } |
| 81 | + /** |
| 82 | + * The toDateTime parameter value |
| 83 | + */ |
| 84 | + @Nullable |
| 85 | + protected java.time.OffsetDateTime toDateTime; |
| 86 | + /** |
| 87 | + * Sets the ToDateTime |
| 88 | + * @param val the value to set it to |
| 89 | + * @return the current builder object |
| 90 | + */ |
| 91 | + @Nonnull |
| 92 | + public CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder withToDateTime(@Nullable final java.time.OffsetDateTime val) { |
| 93 | + this.toDateTime = val; |
| 94 | + return this; |
| 95 | + } |
| 96 | + /** |
| 97 | + * Instanciates a new CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder |
| 98 | + */ |
| 99 | + @Nullable |
| 100 | + protected CallRecordGetPstnOnlineMeetingDialoutReportParameterSetBuilder(){} |
| 101 | + /** |
| 102 | + * Buils the resulting body object to be passed to the request |
| 103 | + * @return the body object to pass to the request |
| 104 | + */ |
| 105 | + @Nonnull |
| 106 | + public CallRecordGetPstnOnlineMeetingDialoutReportParameterSet build() { |
| 107 | + return new CallRecordGetPstnOnlineMeetingDialoutReportParameterSet(this); |
| 108 | + } |
| 109 | + } |
| 110 | + /** |
| 111 | + * Gets the functions options from the properties that have been set |
| 112 | + * @return a list of function options for the request |
| 113 | + */ |
| 114 | + @Nonnull |
| 115 | + public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() { |
| 116 | + final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>(); |
| 117 | + if(this.fromDateTime != null) { |
| 118 | + result.add(new com.microsoft.graph.options.FunctionOption("fromDateTime", fromDateTime)); |
| 119 | + } |
| 120 | + if(this.toDateTime != null) { |
| 121 | + result.add(new com.microsoft.graph.options.FunctionOption("toDateTime", toDateTime)); |
| 122 | + } |
| 123 | + return result; |
| 124 | + } |
| 125 | +} |
0 commit comments