All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.models.DriveItemInviteParameterSet 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.DriveRecipient;
import com.microsoft.graph.models.Permission;
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 Drive Item Invite Parameter Set.
 */
public class DriveItemInviteParameterSet {
    /**
     * The require Sign In.
     * 
     */
    @SerializedName(value = "requireSignIn", alternate = {"RequireSignIn"})
    @Expose
	@Nullable
    public Boolean requireSignIn;

    /**
     * The roles.
     * 
     */
    @SerializedName(value = "roles", alternate = {"Roles"})
    @Expose
	@Nullable
    public java.util.List roles;

    /**
     * The send Invitation.
     * 
     */
    @SerializedName(value = "sendInvitation", alternate = {"SendInvitation"})
    @Expose
	@Nullable
    public Boolean sendInvitation;

    /**
     * The message.
     * 
     */
    @SerializedName(value = "message", alternate = {"Message"})
    @Expose
	@Nullable
    public String message;

    /**
     * The recipients.
     * 
     */
    @SerializedName(value = "recipients", alternate = {"Recipients"})
    @Expose
	@Nullable
    public java.util.List recipients;

    /**
     * The retain Inherited Permissions.
     * 
     */
    @SerializedName(value = "retainInheritedPermissions", alternate = {"RetainInheritedPermissions"})
    @Expose
	@Nullable
    public Boolean retainInheritedPermissions;

    /**
     * The expiration Date Time.
     * 
     */
    @SerializedName(value = "expirationDateTime", alternate = {"ExpirationDateTime"})
    @Expose
	@Nullable
    public String expirationDateTime;

    /**
     * The password.
     * 
     */
    @SerializedName(value = "password", alternate = {"Password"})
    @Expose
	@Nullable
    public String password;


    /**
     * Instiaciates a new DriveItemInviteParameterSet
     */
    public DriveItemInviteParameterSet() {}
    /**
     * Instiaciates a new DriveItemInviteParameterSet
     * @param builder builder bearing the parameters to initialize from
     */
    protected DriveItemInviteParameterSet(@Nonnull final DriveItemInviteParameterSetBuilder builder) {
        this.requireSignIn = builder.requireSignIn;
        this.roles = builder.roles;
        this.sendInvitation = builder.sendInvitation;
        this.message = builder.message;
        this.recipients = builder.recipients;
        this.retainInheritedPermissions = builder.retainInheritedPermissions;
        this.expirationDateTime = builder.expirationDateTime;
        this.password = builder.password;
    }
    /**
     * Gets a new builder for the body
     * @return a new builder
     */
    @Nonnull
    public static DriveItemInviteParameterSetBuilder newBuilder() {
        return new DriveItemInviteParameterSetBuilder();
    }
    /**
     * Fluent builder for the DriveItemInviteParameterSet
     */
    public static final class DriveItemInviteParameterSetBuilder {
        /**
         * The requireSignIn parameter value
         */
        @Nullable
        protected Boolean requireSignIn;
        /**
         * Sets the RequireSignIn
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withRequireSignIn(@Nullable final Boolean val) {
            this.requireSignIn = val;
            return this;
        }
        /**
         * The roles parameter value
         */
        @Nullable
        protected java.util.List roles;
        /**
         * Sets the Roles
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withRoles(@Nullable final java.util.List val) {
            this.roles = val;
            return this;
        }
        /**
         * The sendInvitation parameter value
         */
        @Nullable
        protected Boolean sendInvitation;
        /**
         * Sets the SendInvitation
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withSendInvitation(@Nullable final Boolean val) {
            this.sendInvitation = val;
            return this;
        }
        /**
         * The message parameter value
         */
        @Nullable
        protected String message;
        /**
         * Sets the Message
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withMessage(@Nullable final String val) {
            this.message = val;
            return this;
        }
        /**
         * The recipients parameter value
         */
        @Nullable
        protected java.util.List recipients;
        /**
         * Sets the Recipients
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withRecipients(@Nullable final java.util.List val) {
            this.recipients = val;
            return this;
        }
        /**
         * The retainInheritedPermissions parameter value
         */
        @Nullable
        protected Boolean retainInheritedPermissions;
        /**
         * Sets the RetainInheritedPermissions
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withRetainInheritedPermissions(@Nullable final Boolean val) {
            this.retainInheritedPermissions = val;
            return this;
        }
        /**
         * The expirationDateTime parameter value
         */
        @Nullable
        protected String expirationDateTime;
        /**
         * Sets the ExpirationDateTime
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withExpirationDateTime(@Nullable final String val) {
            this.expirationDateTime = val;
            return this;
        }
        /**
         * The password parameter value
         */
        @Nullable
        protected String password;
        /**
         * Sets the Password
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public DriveItemInviteParameterSetBuilder withPassword(@Nullable final String val) {
            this.password = val;
            return this;
        }
        /**
         * Instanciates a new DriveItemInviteParameterSetBuilder
         */
        @Nullable
        protected DriveItemInviteParameterSetBuilder(){}
        /**
         * Buils the resulting body object to be passed to the request
         * @return the body object to pass to the request
         */
        @Nonnull
        public DriveItemInviteParameterSet build() {
            return new DriveItemInviteParameterSet(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.requireSignIn != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("requireSignIn", requireSignIn));
        }
        if(this.roles != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("roles", roles));
        }
        if(this.sendInvitation != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("sendInvitation", sendInvitation));
        }
        if(this.message != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("message", message));
        }
        if(this.recipients != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("recipients", recipients));
        }
        if(this.retainInheritedPermissions != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("retainInheritedPermissions", retainInheritedPermissions));
        }
        if(this.expirationDateTime != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("expirationDateTime", expirationDateTime));
        }
        if(this.password != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("password", password));
        }
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy