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

com.amazonaws.services.directory.model.StartSchemaExtensionRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Directory Service module holds the client classes that is used for communicating with AWS Directory 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.directory.model;

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

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The identifier of the directory for which the schema extension will be applied to. *

*/ private String directoryId; /** *

* If true, creates a snapshot of the directory before applying the schema extension. *

*/ private Boolean createSnapshotBeforeSchemaExtension; /** *

* The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be * formatted in an ldif file with \n. See the example request below for more details. The file size can be no larger * than 1MB. *

*/ private String ldifContent; /** *

* A description of the schema extension. *

*/ private String description; /** *

* The identifier of the directory for which the schema extension will be applied to. *

* * @param directoryId * The identifier of the directory for which the schema extension will be applied to. */ public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } /** *

* The identifier of the directory for which the schema extension will be applied to. *

* * @return The identifier of the directory for which the schema extension will be applied to. */ public String getDirectoryId() { return this.directoryId; } /** *

* The identifier of the directory for which the schema extension will be applied to. *

* * @param directoryId * The identifier of the directory for which the schema extension will be applied to. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSchemaExtensionRequest withDirectoryId(String directoryId) { setDirectoryId(directoryId); return this; } /** *

* If true, creates a snapshot of the directory before applying the schema extension. *

* * @param createSnapshotBeforeSchemaExtension * If true, creates a snapshot of the directory before applying the schema extension. */ public void setCreateSnapshotBeforeSchemaExtension(Boolean createSnapshotBeforeSchemaExtension) { this.createSnapshotBeforeSchemaExtension = createSnapshotBeforeSchemaExtension; } /** *

* If true, creates a snapshot of the directory before applying the schema extension. *

* * @return If true, creates a snapshot of the directory before applying the schema extension. */ public Boolean getCreateSnapshotBeforeSchemaExtension() { return this.createSnapshotBeforeSchemaExtension; } /** *

* If true, creates a snapshot of the directory before applying the schema extension. *

* * @param createSnapshotBeforeSchemaExtension * If true, creates a snapshot of the directory before applying the schema extension. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSchemaExtensionRequest withCreateSnapshotBeforeSchemaExtension(Boolean createSnapshotBeforeSchemaExtension) { setCreateSnapshotBeforeSchemaExtension(createSnapshotBeforeSchemaExtension); return this; } /** *

* If true, creates a snapshot of the directory before applying the schema extension. *

* * @return If true, creates a snapshot of the directory before applying the schema extension. */ public Boolean isCreateSnapshotBeforeSchemaExtension() { return this.createSnapshotBeforeSchemaExtension; } /** *

* The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be * formatted in an ldif file with \n. See the example request below for more details. The file size can be no larger * than 1MB. *

* * @param ldifContent * The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would * be formatted in an ldif file with \n. See the example request below for more details. The file size can be * no larger than 1MB. */ public void setLdifContent(String ldifContent) { this.ldifContent = ldifContent; } /** *

* The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be * formatted in an ldif file with \n. See the example request below for more details. The file size can be no larger * than 1MB. *

* * @return The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would * be formatted in an ldif file with \n. See the example request below for more details. The file size can * be no larger than 1MB. */ public String getLdifContent() { return this.ldifContent; } /** *

* The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be * formatted in an ldif file with \n. See the example request below for more details. The file size can be no larger * than 1MB. *

* * @param ldifContent * The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would * be formatted in an ldif file with \n. See the example request below for more details. The file size can be * no larger than 1MB. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSchemaExtensionRequest withLdifContent(String ldifContent) { setLdifContent(ldifContent); return this; } /** *

* A description of the schema extension. *

* * @param description * A description of the schema extension. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the schema extension. *

* * @return A description of the schema extension. */ public String getDescription() { return this.description; } /** *

* A description of the schema extension. *

* * @param description * A description of the schema extension. * @return Returns a reference to this object so that method calls can be chained together. */ public StartSchemaExtensionRequest withDescription(String description) { setDescription(description); 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 (getDirectoryId() != null) sb.append("DirectoryId: ").append(getDirectoryId()).append(","); if (getCreateSnapshotBeforeSchemaExtension() != null) sb.append("CreateSnapshotBeforeSchemaExtension: ").append(getCreateSnapshotBeforeSchemaExtension()).append(","); if (getLdifContent() != null) sb.append("LdifContent: ").append(getLdifContent()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartSchemaExtensionRequest == false) return false; StartSchemaExtensionRequest other = (StartSchemaExtensionRequest) obj; if (other.getDirectoryId() == null ^ this.getDirectoryId() == null) return false; if (other.getDirectoryId() != null && other.getDirectoryId().equals(this.getDirectoryId()) == false) return false; if (other.getCreateSnapshotBeforeSchemaExtension() == null ^ this.getCreateSnapshotBeforeSchemaExtension() == null) return false; if (other.getCreateSnapshotBeforeSchemaExtension() != null && other.getCreateSnapshotBeforeSchemaExtension().equals(this.getCreateSnapshotBeforeSchemaExtension()) == false) return false; if (other.getLdifContent() == null ^ this.getLdifContent() == null) return false; if (other.getLdifContent() != null && other.getLdifContent().equals(this.getLdifContent()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDirectoryId() == null) ? 0 : getDirectoryId().hashCode()); hashCode = prime * hashCode + ((getCreateSnapshotBeforeSchemaExtension() == null) ? 0 : getCreateSnapshotBeforeSchemaExtension().hashCode()); hashCode = prime * hashCode + ((getLdifContent() == null) ? 0 : getLdifContent().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; } @Override public StartSchemaExtensionRequest clone() { return (StartSchemaExtensionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy