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

com.amazonaws.services.workmail.model.DescribeGroupResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon WorkMail module holds the client classes that are used for communicating with Amazon WorkMail Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.workmail.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The identifier of the described group. *

*/ private String groupId; /** *

* The name of the described group. *

*/ private String name; /** *

* The email of the described group. *

*/ private String email; /** *

* The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). *

*/ private String state; /** *

* The date and time when a user was registered to WorkMail, in UNIX epoch time format. *

*/ private java.util.Date enabledDate; /** *

* The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. *

*/ private java.util.Date disabledDate; /** *

* If the value is set to true, the group is hidden from the address book. *

*/ private Boolean hiddenFromGlobalAddressList; /** *

* The identifier of the described group. *

* * @param groupId * The identifier of the described group. */ public void setGroupId(String groupId) { this.groupId = groupId; } /** *

* The identifier of the described group. *

* * @return The identifier of the described group. */ public String getGroupId() { return this.groupId; } /** *

* The identifier of the described group. *

* * @param groupId * The identifier of the described group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGroupResult withGroupId(String groupId) { setGroupId(groupId); return this; } /** *

* The name of the described group. *

* * @param name * The name of the described group. */ public void setName(String name) { this.name = name; } /** *

* The name of the described group. *

* * @return The name of the described group. */ public String getName() { return this.name; } /** *

* The name of the described group. *

* * @param name * The name of the described group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGroupResult withName(String name) { setName(name); return this; } /** *

* The email of the described group. *

* * @param email * The email of the described group. */ public void setEmail(String email) { this.email = email; } /** *

* The email of the described group. *

* * @return The email of the described group. */ public String getEmail() { return this.email; } /** *

* The email of the described group. *

* * @param email * The email of the described group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGroupResult withEmail(String email) { setEmail(email); return this; } /** *

* The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). *

* * @param state * The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). * @see EntityState */ public void setState(String state) { this.state = state; } /** *

* The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). *

* * @return The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). * @see EntityState */ public String getState() { return this.state; } /** *

* The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). *

* * @param state * The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). * @return Returns a reference to this object so that method calls can be chained together. * @see EntityState */ public DescribeGroupResult withState(String state) { setState(state); return this; } /** *

* The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). *

* * @param state * The state of the user: enabled (registered to WorkMail) or disabled (deregistered or never registered to * WorkMail). * @return Returns a reference to this object so that method calls can be chained together. * @see EntityState */ public DescribeGroupResult withState(EntityState state) { this.state = state.toString(); return this; } /** *

* The date and time when a user was registered to WorkMail, in UNIX epoch time format. *

* * @param enabledDate * The date and time when a user was registered to WorkMail, in UNIX epoch time format. */ public void setEnabledDate(java.util.Date enabledDate) { this.enabledDate = enabledDate; } /** *

* The date and time when a user was registered to WorkMail, in UNIX epoch time format. *

* * @return The date and time when a user was registered to WorkMail, in UNIX epoch time format. */ public java.util.Date getEnabledDate() { return this.enabledDate; } /** *

* The date and time when a user was registered to WorkMail, in UNIX epoch time format. *

* * @param enabledDate * The date and time when a user was registered to WorkMail, in UNIX epoch time format. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGroupResult withEnabledDate(java.util.Date enabledDate) { setEnabledDate(enabledDate); return this; } /** *

* The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. *

* * @param disabledDate * The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. */ public void setDisabledDate(java.util.Date disabledDate) { this.disabledDate = disabledDate; } /** *

* The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. *

* * @return The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. */ public java.util.Date getDisabledDate() { return this.disabledDate; } /** *

* The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. *

* * @param disabledDate * The date and time when a user was deregistered from WorkMail, in UNIX epoch time format. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGroupResult withDisabledDate(java.util.Date disabledDate) { setDisabledDate(disabledDate); return this; } /** *

* If the value is set to true, the group is hidden from the address book. *

* * @param hiddenFromGlobalAddressList * If the value is set to true, the group is hidden from the address book. */ public void setHiddenFromGlobalAddressList(Boolean hiddenFromGlobalAddressList) { this.hiddenFromGlobalAddressList = hiddenFromGlobalAddressList; } /** *

* If the value is set to true, the group is hidden from the address book. *

* * @return If the value is set to true, the group is hidden from the address book. */ public Boolean getHiddenFromGlobalAddressList() { return this.hiddenFromGlobalAddressList; } /** *

* If the value is set to true, the group is hidden from the address book. *

* * @param hiddenFromGlobalAddressList * If the value is set to true, the group is hidden from the address book. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeGroupResult withHiddenFromGlobalAddressList(Boolean hiddenFromGlobalAddressList) { setHiddenFromGlobalAddressList(hiddenFromGlobalAddressList); return this; } /** *

* If the value is set to true, the group is hidden from the address book. *

* * @return If the value is set to true, the group is hidden from the address book. */ public Boolean isHiddenFromGlobalAddressList() { return this.hiddenFromGlobalAddressList; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getGroupId() != null) sb.append("GroupId: ").append(getGroupId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getEmail() != null) sb.append("Email: ").append(getEmail()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getEnabledDate() != null) sb.append("EnabledDate: ").append(getEnabledDate()).append(","); if (getDisabledDate() != null) sb.append("DisabledDate: ").append(getDisabledDate()).append(","); if (getHiddenFromGlobalAddressList() != null) sb.append("HiddenFromGlobalAddressList: ").append(getHiddenFromGlobalAddressList()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeGroupResult == false) return false; DescribeGroupResult other = (DescribeGroupResult) obj; if (other.getGroupId() == null ^ this.getGroupId() == null) return false; if (other.getGroupId() != null && other.getGroupId().equals(this.getGroupId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getEmail() == null ^ this.getEmail() == null) return false; if (other.getEmail() != null && other.getEmail().equals(this.getEmail()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getEnabledDate() == null ^ this.getEnabledDate() == null) return false; if (other.getEnabledDate() != null && other.getEnabledDate().equals(this.getEnabledDate()) == false) return false; if (other.getDisabledDate() == null ^ this.getDisabledDate() == null) return false; if (other.getDisabledDate() != null && other.getDisabledDate().equals(this.getDisabledDate()) == false) return false; if (other.getHiddenFromGlobalAddressList() == null ^ this.getHiddenFromGlobalAddressList() == null) return false; if (other.getHiddenFromGlobalAddressList() != null && other.getHiddenFromGlobalAddressList().equals(this.getHiddenFromGlobalAddressList()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGroupId() == null) ? 0 : getGroupId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getEmail() == null) ? 0 : getEmail().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getEnabledDate() == null) ? 0 : getEnabledDate().hashCode()); hashCode = prime * hashCode + ((getDisabledDate() == null) ? 0 : getDisabledDate().hashCode()); hashCode = prime * hashCode + ((getHiddenFromGlobalAddressList() == null) ? 0 : getHiddenFromGlobalAddressList().hashCode()); return hashCode; } @Override public DescribeGroupResult clone() { try { return (DescribeGroupResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy