com.microsoft.graph.models.GroupValidatePropertiesParameterSet 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.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 Group Validate Properties Parameter Set.
*/
public class GroupValidatePropertiesParameterSet {
/**
* The display Name.
*
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;
/**
* The mail Nickname.
*
*/
@SerializedName(value = "mailNickname", alternate = {"MailNickname"})
@Expose
@Nullable
public String mailNickname;
/**
* The on Behalf Of User Id.
*
*/
@SerializedName(value = "onBehalfOfUserId", alternate = {"OnBehalfOfUserId"})
@Expose
@Nullable
public java.util.UUID onBehalfOfUserId;
/**
* Instiaciates a new GroupValidatePropertiesParameterSet
*/
public GroupValidatePropertiesParameterSet() {}
/**
* Instiaciates a new GroupValidatePropertiesParameterSet
* @param builder builder bearing the parameters to initialize from
*/
protected GroupValidatePropertiesParameterSet(@Nonnull final GroupValidatePropertiesParameterSetBuilder builder) {
this.displayName = builder.displayName;
this.mailNickname = builder.mailNickname;
this.onBehalfOfUserId = builder.onBehalfOfUserId;
}
/**
* Gets a new builder for the body
* @return a new builder
*/
@Nonnull
public static GroupValidatePropertiesParameterSetBuilder newBuilder() {
return new GroupValidatePropertiesParameterSetBuilder();
}
/**
* Fluent builder for the GroupValidatePropertiesParameterSet
*/
public static final class GroupValidatePropertiesParameterSetBuilder {
/**
* The displayName parameter value
*/
@Nullable
protected String displayName;
/**
* Sets the DisplayName
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public GroupValidatePropertiesParameterSetBuilder withDisplayName(@Nullable final String val) {
this.displayName = val;
return this;
}
/**
* The mailNickname parameter value
*/
@Nullable
protected String mailNickname;
/**
* Sets the MailNickname
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public GroupValidatePropertiesParameterSetBuilder withMailNickname(@Nullable final String val) {
this.mailNickname = val;
return this;
}
/**
* The onBehalfOfUserId parameter value
*/
@Nullable
protected java.util.UUID onBehalfOfUserId;
/**
* Sets the OnBehalfOfUserId
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public GroupValidatePropertiesParameterSetBuilder withOnBehalfOfUserId(@Nullable final java.util.UUID val) {
this.onBehalfOfUserId = val;
return this;
}
/**
* Instanciates a new GroupValidatePropertiesParameterSetBuilder
*/
@Nullable
protected GroupValidatePropertiesParameterSetBuilder(){}
/**
* Buils the resulting body object to be passed to the request
* @return the body object to pass to the request
*/
@Nonnull
public GroupValidatePropertiesParameterSet build() {
return new GroupValidatePropertiesParameterSet(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.displayName != null) {
result.add(new com.microsoft.graph.options.FunctionOption("displayName", displayName));
}
if(this.mailNickname != null) {
result.add(new com.microsoft.graph.options.FunctionOption("mailNickname", mailNickname));
}
if(this.onBehalfOfUserId != null) {
result.add(new com.microsoft.graph.options.FunctionOption("onBehalfOfUserId", onBehalfOfUserId));
}
return result;
}
}