libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AlexaBusiness.SearchRooms

Description

Searches rooms and lists the ones that meet a set of filter and sort criteria.

This operation returns paginated results.

Synopsis

Creating a Request

data SearchRooms Source #

See: newSearchRooms smart constructor.

Constructors

SearchRooms' 

Fields

  • filters :: Maybe [Filter]

    The filters to use to list a specified set of rooms. The supported filter keys are RoomName and ProfileName.

  • sortCriteria :: Maybe [Sort]

    The sort order to use in listing the specified set of rooms. The supported sort keys are RoomName and ProfileName.

  • nextToken :: Maybe Text

    An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

  • maxResults :: Maybe Natural

    The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

Instances

Instances details
Eq SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Read SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Show SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Generic SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Associated Types

type Rep SearchRooms :: Type -> Type #

NFData SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Methods

rnf :: SearchRooms -> () #

Hashable SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

ToJSON SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

AWSPager SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

AWSRequest SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Associated Types

type AWSResponse SearchRooms #

ToHeaders SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Methods

toHeaders :: SearchRooms -> [Header] #

ToPath SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

ToQuery SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

type Rep SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

type Rep SearchRooms = D1 ('MetaData "SearchRooms" "Amazonka.AlexaBusiness.SearchRooms" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SearchRooms'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 ('MetaSel ('Just "sortCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Sort]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse SearchRooms Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

newSearchRooms :: SearchRooms Source #

Create a value of SearchRooms with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:filters:SearchRooms', searchRooms_filters - The filters to use to list a specified set of rooms. The supported filter keys are RoomName and ProfileName.

$sel:sortCriteria:SearchRooms', searchRooms_sortCriteria - The sort order to use in listing the specified set of rooms. The supported sort keys are RoomName and ProfileName.

$sel:nextToken:SearchRooms', searchRooms_nextToken - An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

$sel:maxResults:SearchRooms', searchRooms_maxResults - The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

Request Lenses

searchRooms_filters :: Lens' SearchRooms (Maybe [Filter]) Source #

The filters to use to list a specified set of rooms. The supported filter keys are RoomName and ProfileName.

searchRooms_sortCriteria :: Lens' SearchRooms (Maybe [Sort]) Source #

The sort order to use in listing the specified set of rooms. The supported sort keys are RoomName and ProfileName.

searchRooms_nextToken :: Lens' SearchRooms (Maybe Text) Source #

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

searchRooms_maxResults :: Lens' SearchRooms (Maybe Natural) Source #

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

Destructuring the Response

data SearchRoomsResponse Source #

See: newSearchRoomsResponse smart constructor.

Constructors

SearchRoomsResponse' 

Fields

Instances

Instances details
Eq SearchRoomsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Read SearchRoomsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Show SearchRoomsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Generic SearchRoomsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Associated Types

type Rep SearchRoomsResponse :: Type -> Type #

NFData SearchRoomsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

Methods

rnf :: SearchRoomsResponse -> () #

type Rep SearchRoomsResponse Source # 
Instance details

Defined in Amazonka.AlexaBusiness.SearchRooms

type Rep SearchRoomsResponse = D1 ('MetaData "SearchRoomsResponse" "Amazonka.AlexaBusiness.SearchRooms" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "SearchRoomsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rooms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RoomData])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "totalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSearchRoomsResponse Source #

Create a value of SearchRoomsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:rooms:SearchRoomsResponse', searchRoomsResponse_rooms - The rooms that meet the specified set of filter criteria, in sort order.

$sel:nextToken:SearchRooms', searchRoomsResponse_nextToken - The token returned to indicate that there is more data available.

$sel:totalCount:SearchRoomsResponse', searchRoomsResponse_totalCount - The total number of rooms returned.

$sel:httpStatus:SearchRoomsResponse', searchRoomsResponse_httpStatus - The response's http status code.

Response Lenses

searchRoomsResponse_rooms :: Lens' SearchRoomsResponse (Maybe [RoomData]) Source #

The rooms that meet the specified set of filter criteria, in sort order.

searchRoomsResponse_nextToken :: Lens' SearchRoomsResponse (Maybe Text) Source #

The token returned to indicate that there is more data available.

searchRoomsResponse_totalCount :: Lens' SearchRoomsResponse (Maybe Int) Source #

The total number of rooms returned.