/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.appfabric.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Contains information about a user's access to an application. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UserAccessResultItem implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the application. *

*/ private String app; /** *

* The ID of the application tenant. *

*/ private String tenantId; /** *

* The display name of the tenant. *

*/ private String tenantDisplayName; /** *

* The unique ID of the task. *

*/ private String taskId; /** *

* The status of the user access result item. *

*

* The following states are possible: *

* */ private String resultStatus; /** *

* The email address of the target user. *

*/ private String email; /** *

* The unique ID of user. *

*/ private String userId; /** *

* The full name of the user. *

*/ private String userFullName; /** *

* The first name of the user. *

*/ private String userFirstName; /** *

* The last name of the user. *

*/ private String userLastName; /** *

* The status of the user returned by the application. *

*/ private String userStatus; /** *

* Contains information about an error returned from a user access task. *

*/ private TaskError taskError; /** *

* The name of the application. *

* * @param app * The name of the application. */ public void setApp(String app) { this.app = app; } /** *

* The name of the application. *

* * @return The name of the application. */ public String getApp() { return this.app; } /** *

* The name of the application. *

* * @param app * The name of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public UserAccessResultItem withApp(String app) { setApp(app); return this; } /** *

* The ID of the application tenant. *

* * @param tenantId * The ID of the application tenant. */ public void setTenantId(String tenantId) { this.tenantId = tenantId; } /** *

* The ID of the application tenant. *

* * @return The ID of the application tenant. */ public String getTenantId() { return this.tenantId; } /** *

* The ID of the application tenant. *

* * @param tenantId * The ID of the application tenant. * @return Returns a reference to this object so that method calls can be chained together. */ public UserAccessResultItem withTenantId(String tenantId) { setTenantId(tenantId); return this; } /** *

* The display name of the tenant. *

* * @param tenantDisplayName * The display name of the tenant. */ public void setTenantDisplayName(String tenantDisplayName) { this.tenantDisplayName = tenantDisplayName; } /** *

* The display name of the tenant. *

* * @return The display name of the tenant. */ public String getTenantDisplayName() { return this.tenantDisplayName; } /** *

* The display name of the tenant. *

* * @param tenantDisplayName * The display name of the tenant. * @return Returns a reference to this object so that method calls can be chained together. */ public UserAccessResultItem withTenantDisplayName(String tenantDisplayName) { setTenantDisplayName(tenantDisplayName); return this; } /** *

* The unique ID of the task. *

* * @param taskId * The unique ID of the task. */ public void setTaskId(String taskId) { this.taskId = taskId; } /** *

* The unique ID of the task. *

* * @return The unique ID of the task. */ public String getTaskId() { return this.taskId; } /** *

* The unique ID of the task. *

* * @param taskId * The unique ID of the task. * @return Returns a reference to this object so that method calls can be chained together. */ public UserAccessResultItem withTaskId(String taskId) { setTaskId(taskId); return this; } /** *

* The status of the user access result item. *

*

* The following states are possible: *

* * * @param resultStatus * The status of the user access result item.

*

* The following states are possible: *

*