com.microsoft.graph.models.EventTentativelyAcceptParameterSet Maven / Gradle / Ivy
// Template Source: BaseMethodParameterSet.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.models.TimeSlot;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.google.gson.JsonObject;
import java.util.EnumSet;
import java.util.ArrayList;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Event Tentatively Accept Parameter Set.
*/
public class EventTentativelyAcceptParameterSet {
/**
* The proposed New Time.
*
*/
@SerializedName(value = "proposedNewTime", alternate = {"ProposedNewTime"})
@Expose
@Nullable
public TimeSlot proposedNewTime;
/**
* The send Response.
*
*/
@SerializedName(value = "sendResponse", alternate = {"SendResponse"})
@Expose
@Nullable
public Boolean sendResponse;
/**
* The comment.
*
*/
@SerializedName(value = "comment", alternate = {"Comment"})
@Expose
@Nullable
public String comment;
/**
* Instiaciates a new EventTentativelyAcceptParameterSet
*/
public EventTentativelyAcceptParameterSet() {}
/**
* Instiaciates a new EventTentativelyAcceptParameterSet
* @param builder builder bearing the parameters to initialize from
*/
protected EventTentativelyAcceptParameterSet(@Nonnull final EventTentativelyAcceptParameterSetBuilder builder) {
this.proposedNewTime = builder.proposedNewTime;
this.sendResponse = builder.sendResponse;
this.comment = builder.comment;
}
/**
* Gets a new builder for the body
* @return a new builder
*/
@Nonnull
public static EventTentativelyAcceptParameterSetBuilder newBuilder() {
return new EventTentativelyAcceptParameterSetBuilder();
}
/**
* Fluent builder for the EventTentativelyAcceptParameterSet
*/
public static final class EventTentativelyAcceptParameterSetBuilder {
/**
* The proposedNewTime parameter value
*/
@Nullable
protected TimeSlot proposedNewTime;
/**
* Sets the ProposedNewTime
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public EventTentativelyAcceptParameterSetBuilder withProposedNewTime(@Nullable final TimeSlot val) {
this.proposedNewTime = val;
return this;
}
/**
* The sendResponse parameter value
*/
@Nullable
protected Boolean sendResponse;
/**
* Sets the SendResponse
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public EventTentativelyAcceptParameterSetBuilder withSendResponse(@Nullable final Boolean val) {
this.sendResponse = val;
return this;
}
/**
* The comment parameter value
*/
@Nullable
protected String comment;
/**
* Sets the Comment
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public EventTentativelyAcceptParameterSetBuilder withComment(@Nullable final String val) {
this.comment = val;
return this;
}
/**
* Instanciates a new EventTentativelyAcceptParameterSetBuilder
*/
@Nullable
protected EventTentativelyAcceptParameterSetBuilder(){}
/**
* Buils the resulting body object to be passed to the request
* @return the body object to pass to the request
*/
@Nonnull
public EventTentativelyAcceptParameterSet build() {
return new EventTentativelyAcceptParameterSet(this);
}
}
/**
* Gets the functions options from the properties that have been set
* @return a list of function options for the request
*/
@Nonnull
public java.util.List getFunctionOptions() {
final ArrayList result = new ArrayList<>();
if(this.proposedNewTime != null) {
result.add(new com.microsoft.graph.options.FunctionOption("proposedNewTime", proposedNewTime));
}
if(this.sendResponse != null) {
result.add(new com.microsoft.graph.options.FunctionOption("sendResponse", sendResponse));
}
if(this.comment != null) {
result.add(new com.microsoft.graph.options.FunctionOption("comment", comment));
}
return result;
}
}