/* * 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.glue.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 GetDatabasesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Data Catalog from which to retrieve Databases
. If none is provided, the Amazon Web
* Services account ID is used by default.
*
* A continuation token, if this is a continuation call. *
*/ private String nextToken; /** ** The maximum number of databases to return in one response. *
*/ private Integer maxResults; /** *
* Allows you to specify that you want to list the databases shared with your account. The allowable values are
* FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity) shared with
* your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in yor
* local account.
*
* The ID of the Data Catalog from which to retrieve Databases
. If none is provided, the Amazon Web
* Services account ID is used by default.
*
Databases
. If none is provided, the Amazon
* Web Services account ID is used by default.
*/
public void setCatalogId(String catalogId) {
this.catalogId = catalogId;
}
/**
*
* The ID of the Data Catalog from which to retrieve Databases
. If none is provided, the Amazon Web
* Services account ID is used by default.
*
Databases
. If none is provided, the Amazon
* Web Services account ID is used by default.
*/
public String getCatalogId() {
return this.catalogId;
}
/**
*
* The ID of the Data Catalog from which to retrieve Databases
. If none is provided, the Amazon Web
* Services account ID is used by default.
*
Databases
. If none is provided, the Amazon
* Web Services account ID is used by default.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDatabasesRequest withCatalogId(String catalogId) {
setCatalogId(catalogId);
return this;
}
/**
* * A continuation token, if this is a continuation call. *
* * @param nextToken * A continuation token, if this is a continuation call. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** A continuation token, if this is a continuation call. *
* * @return A continuation token, if this is a continuation call. */ public String getNextToken() { return this.nextToken; } /** ** A continuation token, if this is a continuation call. *
* * @param nextToken * A continuation token, if this is a continuation call. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatabasesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The maximum number of databases to return in one response. *
* * @param maxResults * The maximum number of databases to return in one response. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** The maximum number of databases to return in one response. *
* * @return The maximum number of databases to return in one response. */ public Integer getMaxResults() { return this.maxResults; } /** ** The maximum number of databases to return in one response. *
* * @param maxResults * The maximum number of databases to return in one response. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDatabasesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *
* Allows you to specify that you want to list the databases shared with your account. The allowable values are
* FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity) shared with
* your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in yor
* local account.
*
FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity)
* shared with your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in
* yor local account.
*
* Allows you to specify that you want to list the databases shared with your account. The allowable values are
* FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity) shared with
* your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in yor
* local account.
*
FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity)
* shared with your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in
* yor local account.
*
* Allows you to specify that you want to list the databases shared with your account. The allowable values are
* FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity) shared with
* your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in yor
* local account.
*
FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity)
* shared with your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in
* yor local account.
*
* Allows you to specify that you want to list the databases shared with your account. The allowable values are
* FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity) shared with
* your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in yor
* local account.
*
FEDERATED
, FOREIGN
or ALL
.
*
* If set to FEDERATED
, will list the federated databases (referencing an external entity)
* shared with your account.
*
* If set to FOREIGN
, will list the databases shared with your account.
*
* If set to ALL
, will list the databases shared with your account, as well as the databases in
* yor local account.
*