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

com.softlayer.api.service.container.user.customer.PasswordSet Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.container.user.customer;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.user.security.Question;
import java.util.ArrayList;
import java.util.List;

/**
 * Container for holding information necessary for the setting and resetting of customer passwords 
*
* * * @see SoftLayer_Container_User_Customer_PasswordSet */ @ApiType("SoftLayer_Container_User_Customer_PasswordSet") public class PasswordSet extends Entity { /** * id of SoftLayer_User_Security_Question */ @ApiProperty(canBeNullOrNotSet = true) protected Long answeredSecurityQuestionId; public Long getAnsweredSecurityQuestionId() { return answeredSecurityQuestionId; } public void setAnsweredSecurityQuestionId(Long answeredSecurityQuestionId) { answeredSecurityQuestionIdSpecified = true; this.answeredSecurityQuestionId = answeredSecurityQuestionId; } protected boolean answeredSecurityQuestionIdSpecified; public boolean isAnsweredSecurityQuestionIdSpecified() { return answeredSecurityQuestionIdSpecified; } public void unsetAnsweredSecurityQuestionId() { answeredSecurityQuestionId = null; answeredSecurityQuestionIdSpecified = false; } /** * the authentication methods required */ @ApiProperty(canBeNullOrNotSet = true) protected List authenticationMethods; public List getAuthenticationMethods() { if (authenticationMethods == null) { authenticationMethods = new ArrayList(); } return authenticationMethods; } protected boolean authenticationMethodsSpecified; public boolean isAuthenticationMethodsSpecified() { return authenticationMethodsSpecified; } public void unsetAuthenticationMethods() { authenticationMethods = null; authenticationMethodsSpecified = false; } /** * the password key provided to user in the password set url link sent via email */ @ApiProperty(canBeNullOrNotSet = true) protected String key; public String getKey() { return key; } public void setKey(String key) { keySpecified = true; this.key = key; } protected boolean keySpecified; public boolean isKeySpecified() { return keySpecified; } public void unsetKey() { key = null; keySpecified = false; } /** * the user's new password */ @ApiProperty(canBeNullOrNotSet = true) protected String password; public String getPassword() { return password; } public void setPassword(String password) { passwordSpecified = true; this.password = password; } protected boolean passwordSpecified; public boolean isPasswordSpecified() { return passwordSpecified; } public void unsetPassword() { password = null; passwordSpecified = false; } /** * answer to security question provided by the user */ @ApiProperty(canBeNullOrNotSet = true) protected String securityAnswer; public String getSecurityAnswer() { return securityAnswer; } public void setSecurityAnswer(String securityAnswer) { securityAnswerSpecified = true; this.securityAnswer = securityAnswer; } protected boolean securityAnswerSpecified; public boolean isSecurityAnswerSpecified() { return securityAnswerSpecified; } public void unsetSecurityAnswer() { securityAnswer = null; securityAnswerSpecified = false; } /** * array of SoftLayer_User_Security_Question */ @ApiProperty(canBeNullOrNotSet = true) protected List securityQuestions; public List getSecurityQuestions() { if (securityQuestions == null) { securityQuestions = new ArrayList(); } return securityQuestions; } protected boolean securityQuestionsSpecified; public boolean isSecurityQuestionsSpecified() { return securityQuestionsSpecified; } public void unsetSecurityQuestions() { securityQuestions = null; securityQuestionsSpecified = false; } /** * the id of the user to authenticate */ @ApiProperty(canBeNullOrNotSet = true) protected Long userId; public Long getUserId() { return userId; } public void setUserId(Long userId) { userIdSpecified = true; this.userId = userId; } protected boolean userIdSpecified; public boolean isUserIdSpecified() { return userIdSpecified; } public void unsetUserId() { userId = null; userIdSpecified = false; } public static class Mask extends com.softlayer.api.service.Entity.Mask { public Mask answeredSecurityQuestionId() { withLocalProperty("answeredSecurityQuestionId"); return this; } public Mask authenticationMethods() { withLocalProperty("authenticationMethods"); return this; } public Mask key() { withLocalProperty("key"); return this; } public Mask password() { withLocalProperty("password"); return this; } public Mask securityAnswer() { withLocalProperty("securityAnswer"); return this; } public com.softlayer.api.service.user.security.Question.Mask securityQuestions() { return withSubMask("securityQuestions", com.softlayer.api.service.user.security.Question.Mask.class); } public Mask userId() { withLocalProperty("userId"); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy