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

com.amazonaws.services.storagegateway.model.JoinDomainResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2015-2020 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.storagegateway.model;

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

/**
 * 

* JoinDomainOutput *

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

* The unique Amazon Resource Name (ARN) of the gateway that joined the domain. *

*/ private String gatewayARN; /** *

* Indicates the status of the gateway as a member of the Active Directory domain. *

*
    *
  • *

    * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

    *
  • *
  • *

    * DETACHED: Indicates that gateway is not joined to a domain. *

    *
  • *
  • *

    * JOINED: Indicates that the gateway has successfully joined a domain. *

    *
  • *
  • *

    * JOINING: Indicates that a JoinDomain operation is in progress. *

    *
  • *
  • *

    * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error. *

    *
  • *
  • *

    * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within * the allotted time. *

    *
  • *
  • *

    * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

    *
  • *
*/ private String activeDirectoryStatus; /** *

* The unique Amazon Resource Name (ARN) of the gateway that joined the domain. *

* * @param gatewayARN * The unique Amazon Resource Name (ARN) of the gateway that joined the domain. */ public void setGatewayARN(String gatewayARN) { this.gatewayARN = gatewayARN; } /** *

* The unique Amazon Resource Name (ARN) of the gateway that joined the domain. *

* * @return The unique Amazon Resource Name (ARN) of the gateway that joined the domain. */ public String getGatewayARN() { return this.gatewayARN; } /** *

* The unique Amazon Resource Name (ARN) of the gateway that joined the domain. *

* * @param gatewayARN * The unique Amazon Resource Name (ARN) of the gateway that joined the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public JoinDomainResult withGatewayARN(String gatewayARN) { setGatewayARN(gatewayARN); return this; } /** *

* Indicates the status of the gateway as a member of the Active Directory domain. *

*
    *
  • *

    * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

    *
  • *
  • *

    * DETACHED: Indicates that gateway is not joined to a domain. *

    *
  • *
  • *

    * JOINED: Indicates that the gateway has successfully joined a domain. *

    *
  • *
  • *

    * JOINING: Indicates that a JoinDomain operation is in progress. *

    *
  • *
  • *

    * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error. *

    *
  • *
  • *

    * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within * the allotted time. *

    *
  • *
  • *

    * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

    *
  • *
* * @param activeDirectoryStatus * Indicates the status of the gateway as a member of the Active Directory domain.

*
    *
  • *

    * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

    *
  • *
  • *

    * DETACHED: Indicates that gateway is not joined to a domain. *

    *
  • *
  • *

    * JOINED: Indicates that the gateway has successfully joined a domain. *

    *
  • *
  • *

    * JOINING: Indicates that a JoinDomain operation is in progress. *

    *
  • *
  • *

    * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity * error. *

    *
  • *
  • *

    * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete * within the allotted time. *

    *
  • *
  • *

    * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

    *
  • * @see ActiveDirectoryStatus */ public void setActiveDirectoryStatus(String activeDirectoryStatus) { this.activeDirectoryStatus = activeDirectoryStatus; } /** *

    * Indicates the status of the gateway as a member of the Active Directory domain. *

    *
      *
    • *

      * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

      *
    • *
    • *

      * DETACHED: Indicates that gateway is not joined to a domain. *

      *
    • *
    • *

      * JOINED: Indicates that the gateway has successfully joined a domain. *

      *
    • *
    • *

      * JOINING: Indicates that a JoinDomain operation is in progress. *

      *
    • *
    • *

      * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error. *

      *
    • *
    • *

      * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within * the allotted time. *

      *
    • *
    • *

      * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

      *
    • *
    * * @return Indicates the status of the gateway as a member of the Active Directory domain.

    *
      *
    • *

      * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication * error. *

      *
    • *
    • *

      * DETACHED: Indicates that gateway is not joined to a domain. *

      *
    • *
    • *

      * JOINED: Indicates that the gateway has successfully joined a domain. *

      *
    • *
    • *

      * JOINING: Indicates that a JoinDomain operation is in progress. *

      *
    • *
    • *

      * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity * error. *

      *
    • *
    • *

      * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't * complete within the allotted time. *

      *
    • *
    • *

      * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

      *
    • * @see ActiveDirectoryStatus */ public String getActiveDirectoryStatus() { return this.activeDirectoryStatus; } /** *

      * Indicates the status of the gateway as a member of the Active Directory domain. *

      *
        *
      • *

        * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

        *
      • *
      • *

        * DETACHED: Indicates that gateway is not joined to a domain. *

        *
      • *
      • *

        * JOINED: Indicates that the gateway has successfully joined a domain. *

        *
      • *
      • *

        * JOINING: Indicates that a JoinDomain operation is in progress. *

        *
      • *
      • *

        * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error. *

        *
      • *
      • *

        * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within * the allotted time. *

        *
      • *
      • *

        * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

        *
      • *
      * * @param activeDirectoryStatus * Indicates the status of the gateway as a member of the Active Directory domain.

      *
        *
      • *

        * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

        *
      • *
      • *

        * DETACHED: Indicates that gateway is not joined to a domain. *

        *
      • *
      • *

        * JOINED: Indicates that the gateway has successfully joined a domain. *

        *
      • *
      • *

        * JOINING: Indicates that a JoinDomain operation is in progress. *

        *
      • *
      • *

        * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity * error. *

        *
      • *
      • *

        * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete * within the allotted time. *

        *
      • *
      • *

        * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ActiveDirectoryStatus */ public JoinDomainResult withActiveDirectoryStatus(String activeDirectoryStatus) { setActiveDirectoryStatus(activeDirectoryStatus); return this; } /** *

        * Indicates the status of the gateway as a member of the Active Directory domain. *

        *
          *
        • *

          * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

          *
        • *
        • *

          * DETACHED: Indicates that gateway is not joined to a domain. *

          *
        • *
        • *

          * JOINED: Indicates that the gateway has successfully joined a domain. *

          *
        • *
        • *

          * JOINING: Indicates that a JoinDomain operation is in progress. *

          *
        • *
        • *

          * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity error. *

          *
        • *
        • *

          * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete within * the allotted time. *

          *
        • *
        • *

          * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

          *
        • *
        * * @param activeDirectoryStatus * Indicates the status of the gateway as a member of the Active Directory domain.

        *
          *
        • *

          * ACCESS_DENIED: Indicates that the JoinDomain operation failed due to an authentication error. *

          *
        • *
        • *

          * DETACHED: Indicates that gateway is not joined to a domain. *

          *
        • *
        • *

          * JOINED: Indicates that the gateway has successfully joined a domain. *

          *
        • *
        • *

          * JOINING: Indicates that a JoinDomain operation is in progress. *

          *
        • *
        • *

          * NETWORK_ERROR: Indicates that JoinDomain operation failed due to a network or connectivity * error. *

          *
        • *
        • *

          * TIMEOUT: Indicates that the JoinDomain operation failed because the operation didn't complete * within the allotted time. *

          *
        • *
        • *

          * UNKNOWN_ERROR: Indicates that the JoinDomain operation failed due to another type of error. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ActiveDirectoryStatus */ public JoinDomainResult withActiveDirectoryStatus(ActiveDirectoryStatus activeDirectoryStatus) { this.activeDirectoryStatus = activeDirectoryStatus.toString(); return this; } /** * 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 (getGatewayARN() != null) sb.append("GatewayARN: ").append(getGatewayARN()).append(","); if (getActiveDirectoryStatus() != null) sb.append("ActiveDirectoryStatus: ").append(getActiveDirectoryStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JoinDomainResult == false) return false; JoinDomainResult other = (JoinDomainResult) obj; if (other.getGatewayARN() == null ^ this.getGatewayARN() == null) return false; if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == false) return false; if (other.getActiveDirectoryStatus() == null ^ this.getActiveDirectoryStatus() == null) return false; if (other.getActiveDirectoryStatus() != null && other.getActiveDirectoryStatus().equals(this.getActiveDirectoryStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode()); hashCode = prime * hashCode + ((getActiveDirectoryStatus() == null) ? 0 : getActiveDirectoryStatus().hashCode()); return hashCode; } @Override public JoinDomainResult clone() { try { return (JoinDomainResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy