com.azure.resourcemanager.elastic.models.UserInfo Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.elastic.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** User Information to be passed to partners. */
@Fluent
public final class UserInfo {
/*
* First name of the user
*/
@JsonProperty(value = "firstName")
private String firstName;
/*
* Last name of the user
*/
@JsonProperty(value = "lastName")
private String lastName;
/*
* Company name of the user
*/
@JsonProperty(value = "companyName")
private String companyName;
/*
* Email of the user used by Elastic for contacting them if needed
*/
@JsonProperty(value = "emailAddress")
private String emailAddress;
/*
* Company information of the user to be passed to partners.
*/
@JsonProperty(value = "companyInfo")
private CompanyInfo companyInfo;
/** Creates an instance of UserInfo class. */
public UserInfo() {
}
/**
* Get the firstName property: First name of the user.
*
* @return the firstName value.
*/
public String firstName() {
return this.firstName;
}
/**
* Set the firstName property: First name of the user.
*
* @param firstName the firstName value to set.
* @return the UserInfo object itself.
*/
public UserInfo withFirstName(String firstName) {
this.firstName = firstName;
return this;
}
/**
* Get the lastName property: Last name of the user.
*
* @return the lastName value.
*/
public String lastName() {
return this.lastName;
}
/**
* Set the lastName property: Last name of the user.
*
* @param lastName the lastName value to set.
* @return the UserInfo object itself.
*/
public UserInfo withLastName(String lastName) {
this.lastName = lastName;
return this;
}
/**
* Get the companyName property: Company name of the user.
*
* @return the companyName value.
*/
public String companyName() {
return this.companyName;
}
/**
* Set the companyName property: Company name of the user.
*
* @param companyName the companyName value to set.
* @return the UserInfo object itself.
*/
public UserInfo withCompanyName(String companyName) {
this.companyName = companyName;
return this;
}
/**
* Get the emailAddress property: Email of the user used by Elastic for contacting them if needed.
*
* @return the emailAddress value.
*/
public String emailAddress() {
return this.emailAddress;
}
/**
* Set the emailAddress property: Email of the user used by Elastic for contacting them if needed.
*
* @param emailAddress the emailAddress value to set.
* @return the UserInfo object itself.
*/
public UserInfo withEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* Get the companyInfo property: Company information of the user to be passed to partners.
*
* @return the companyInfo value.
*/
public CompanyInfo companyInfo() {
return this.companyInfo;
}
/**
* Set the companyInfo property: Company information of the user to be passed to partners.
*
* @param companyInfo the companyInfo value to set.
* @return the UserInfo object itself.
*/
public UserInfo withCompanyInfo(CompanyInfo companyInfo) {
this.companyInfo = companyInfo;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (companyInfo() != null) {
companyInfo().validate();
}
}
}