---
schema_version: "1"
id: 9a481e324ba1c22b0977d18ee70c900c3b2dd7d6af8784179a5c02f1cd01ad55
title: Work with Teams
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforce-slack-sdk/apex-slack-sdk/guides/apex_ref/apex_ref_teams.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_teams.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 471c340f15b6a59459386d59d644d5b1a3330a683f3d074333b6af6b3dbacdad
products:
  - Apex SDK for Slack (Beta)
---
# Work with Teams

The following are Apex classes for the Slack `team` [API methods](https://api.slack.com/methods?filter=team).

## Team Class

Represents a team.

### Team Methods

The following are methods for `Team`.

#### getDefaultChannels()

**Signature**

```java
public List<String> getDefaultChannels()
```

**Return Value**

Type: List\<String\>

#### getDiscoverable()

**Signature**

```java
public String getDiscoverable()
```

**Return Value**

Type: String

#### getDomain()

**Signature**

```java
public String getDomain()
```

**Return Value**

Type: String

#### getEmailDomain()

**Signature**

```java
public String getEmailDomain()
```

**Return Value**

Type: String

#### getEnterpriseDomain()

**Signature**

```java
public String getEnterpriseDomain()
```

**Return Value**

Type: String

#### getEnterpriseId()

**Signature**

```java
public String getEnterpriseId()
```

**Return Value**

Type: String

#### getEnterpriseName()

**Signature**

```java
public String getEnterpriseName()
```

**Return Value**

Type: String

#### getIcon()

**Signature**

```java
public Slack.TeamIcon getIcon()
```

**Return Value**

Type: Slack.TeamIcon

#### getId()

**Signature**

```java
public String getId()
```

**Return Value**

Type: String

#### getIsVerified()

**Signature**

```java
public Boolean getIsVerified()
```

**Return Value**

Type: Boolean

#### getName()

**Signature**

```java
public String getName()
```

**Return Value**

Type: String

#### getUrl()

**Signature**

```java
public String getUrl()
```

**Return Value**

Type: String

#### setDefaultChannels(defaultChannels)

**Signature**

```java
public void setDefaultChannels(List<String> defaultChannels)
```

**Parameters**

_defaultChannels_

Type: List\<String\>

**Return Value**

Type: void

#### setDiscoverable(discoverable)

**Signature**

```java
public void setDiscoverable(String discoverable)
```

**Parameters**

_discoverable_

Type: String

**Return Value**

Type: void

#### setDomain(domain)

**Signature**

```java
public void setDomain(String domain)
```

**Parameters**

_domain_

Type: String

**Return Value**

Type: void

#### setEmailDomain(emailDomain)

**Signature**

```java
public void setEmailDomain(String emailDomain)
```

**Parameters**

_emailDomain_

Type: String

**Return Value**

Type: void

#### setEnterpriseId(enterpriseId)

**Signature**

```java
public void setEnterpriseId(String enterpriseId)
```

**Parameters**

_enterpriseId_

Type: String

**Return Value**

Type: void

#### setEnterpriseDomain(enterpriseDomain)

**Signature**

```java
public void setEnterpriseDomain(String enterpriseDomain)
```

**Parameters**

_enterpriseDomain_

Type: String

**Return Value**

Type: void

#### setEnterpriseName(enterpriseName)

**Signature**

```java
public void setEnterpriseName(String enterpriseName)
```

**Parameters**

_enterpriseName_

Type: String

**Return Value**

Type: void

#### setIcon(icon)

**Signature**

```java
public void setIcon(Slack.TeamIcon icon)
```

**Parameters**

_icon_

Type: Slack.TeamIcon

**Return Value**

Type: void

#### setId(id)

**Signature**

```java
public void setId(String id)
```

**Parameters**

_id_

Type: String

**Return Value**

Type: void

#### setIsVerified(isVerified)

**Signature**

```java
public void setIsVerified(Boolean isVerified)
```

**Parameters**

_isVerified_

Type: Boolean

**Return Value**

Type: void

#### setName(name)

**Signature**

```java
public void setName(String name)
```

**Parameters**

_name_

Type: String

**Return Value**

Type: void

#### setUrl(url)

**Signature**

```java
public void setUrl(String url)
```

**Parameters**

_url_

Type: String

**Return Value**

Type: void

## Team.Profile Class

### Team.Profile Methods

The following are methods for `Team.Profile`.

#### getFieldName()

**Signature**

```java
public String getFieldName()
```

**Return Value**

Type: String

#### getHint()

**Signature**

```java
public String getHint()
```

**Return Value**

Type: String

#### getId()

**Signature**

```java
public String getId()
```

**Return Value**

Type: String

#### getLabel()

**Signature**

```java
public String getLabel()
```

**Return Value**

Type: String

#### getOptions()

**Signature**

```java
public Slack.Team.ProfileOptions getOptions()
```

**Return Value**

Type: Slack.Team.ProfileOptions

#### getOrdering()

**Signature**

```java
public Integer getOrdering()
```

**Return Value**

Type: Integer

#### getPossibleValues()

**Signature**

```java
public List<String> getPossibleValues()
```

**Return Value**

Type: List\<String\>

#### getType()

**Signature**

```java
public String getType()
```

**Return Value**

Type: String

#### isHidden()

**Signature**

```java
public Boolean isHidden()
```

**Return Value**

Type: String

#### setFieldName(fieldName)

**Signature**

```java
public void setFieldName(String fieldName)
```

**Parameters**

_fieldName_

Type: String

**Return Value**

Type: void

#### setHidden(hidden)

**Signature**

```java
public void setHidden(Boolean hidden)
```

**Parameters**

_hidden_

Type: Boolean

**Return Value**

Type: void

#### setHint(hintValue)

**Signature**

```java
public void setHint(String hintValue)
```

**Parameters**

_hintValue_

Type: String

**Return Value**

Type: void

#### setId(id)

**Signature**

```java
public void setId(String id)
```

**Parameters**

_id_

Type: String

**Return Value**

Type: void

#### setLabel(label)

**Signature**

```java
public void setLabel(String label)
```

**Parameters**

_label_

Type: String

**Return Value**

Type: void

#### setOptions(options)

**Signature**

```java
public void setOptions(Slack.Team.ProfileOptions options)
```

**Parameters**

_options_

Type: Slack.Team.ProfileOptions

**Return Value**

Type: void

#### setOrdering(ordering)

**Signature**

```java
public void setOrdering(Integer ordering)
```

**Parameters**

_ordering_

Type: Integer

**Return Value**

Type: void

#### setPossibleValues(possibleValues)

**Signature**

```java
public void setPossibleValues(List<String> possibleValues)
```

**Parameters**

_possibleValues_

Type: List\<String\>

**Return Value**

Type: void

#### setType(type)

**Signature**

```java
public void setType(String type)
```

**Parameters**

_type_

Type: String

**Return Value**

Type: void

## Team.ProfileOptions Class

### Team.ProfileOptions Methods

The following are methods for `Team.ProfileOptions`.

#### isprotected()

**Signature**

```java
public Boolean isprotected()
```

**Return Value**

Type: Boolean

#### setprotected(\_protected)

**Signature**

```java
public void setprotected(Boolean _protected)
```

**Parameters**

_\_protected_

Type: Boolean

**Return Value**

Type: void

## TeamIcon Class

Represents the team's icon.

### TeamIcon Methods

The following are methods for `TeamIcon`.

#### getImage34()

**Signature**

```java
public String getImage34()
```

**Return Value**

Type: String

#### getImage44()

**Signature**

```java
public String getImage44()
```

**Return Value**

Type: String

#### getImage68()

**Signature**

```java
public String getImage68()
```

**Return Value**

Type: String

#### getImage88()

**Signature**

```java
public String getImage88()
```

**Return Value**

Type: String

#### getImage102()

**Signature**

```java
public String getImage102()
```

**Return Value**

Type: String

#### getImage132()

**Signature**

```java
public String getImage132()
```

**Return Value**

Type: String

#### getImage230()

**Signature**

```java
public String getImage230()
```

**Return Value**

Type: String

#### getImageOriginal()

**Signature**

```java
public String getImageOriginal()
```

**Return Value**

Type: String

#### isImageDefault()

Returns true if a team has not yet set a custom icon.

**Signature**

```java
public Boolean isImageDefault()
```

**Return Value**

Type: Boolean

#### setImage34(image34)

**Signature**

```java
public void setImage34(String image34)
```

**Parameters**

_image34_

Type: String

**Return Value**

Type: void

#### setImage44(image44)

**Signature**

```java
public void setImage44(String image44)
```

**Parameters**

_image44_

Type: String

**Return Value**

Type: void

#### setImage68(image68)

**Signature**

```java
public void setImage68(String image68)
```

**Parameters**

_image68_

Type: String

**Return Value**

Type: void

#### setImage88(image88)

**Signature**

```java
public void setImage88(String image88)
```

**Parameters**

_image88_

Type: String

**Return Value**

Type: void

#### setImage102(image102)

**Signature**

```java
public void setImage102(String image102)
```

**Parameters**

_image102_

Type: String

**Return Value**

Type: void

#### setImage132(image132)

**Signature**

```java
public void setImage132(String image132)
```

**Parameters**

_image132_

Type: String

**Return Value**

Type: void

#### setImage230(image230)

**Signature**

```java
public void setImage230(String image230)
```

**Parameters**

_image230_

Type: String

**Return Value**

Type: void

#### setImageDefault(imageDefault)

**Signature**

```java
public void setImageDefault(Boolean imageDefault)
```

**Parameters**

_imageDefault_

Type: Boolean

**Return Value**

Type: void

#### setImageOriginal(imageOriginal)

**Signature**

```java
public void setImageOriginal(String imageOriginal)
```

**Parameters**

_imageOriginal_

Type: String

**Return Value**

Type: void

## BillableInfo Class

Represents billable users information.

### BillableInfo Methods

The following are methods for `BillableInfo`.

#### isBillingActive()

**Signature**

```java
public Boolean isBillingActive()
```

**Return Value**

Type: Boolean

#### setBillingActive(billingActive)

**Signature**

```java
public void setBillingActive(Boolean billingActive)
```

**Parameters**

_billingActive_

Type: Boolean

## IntegrationLogs Class

Represents the integration activity logs for a team.

**Usage**

See Slack's [team.integrationLogs method](https://api.slack.com/methods/team.integrationLogs).

### IntegrationLogs Methods

The following are methods for `IntegrationLogs`.

#### getAppId()

**Signature**

```java
public String getAppId()
```

**Return Value**

Type: String

#### getAppType()

**Signature**

```java
public String getAppType()
```

**Return Value**

Type: String

#### getChangeType()

**Signature**

```java
public String getChangeType()
```

**Return Value**

Type: String

#### getChannel()

**Signature**

```java
public String getChannel()
```

**Return Value**

Type: String

#### getDate()

**Signature**

```java
public Integer getDate()
```

**Return Value**

Type: Integer

#### getReason()

**Signature**

```java
public String getReason()
```

**Return Value**

Type: String

#### getResolution()

**Signature**

```java
public String getResolution()
```

**Return Value**

Type: String

#### getRssFeedChangeType()

**Signature**

```java
public String getRssFeedChangeType()
```

**Return Value**

Type: String

#### getRssFeedTitle()

**Signature**

```java
public String getRssFeedTitle()
```

**Return Value**

Type: String

#### getRssFeedUrl()

**Signature**

```java
public String getRssFeedUrl()
```

**Return Value**

Type: String

#### getScope()

**Signature**

```java
public String getScope()
```

**Return Value**

Type: String

#### getServiceId()

**Signature**

```java
public String getServiceId()
```

**Return Value**

Type: String

#### getServiceType()

**Signature**

```java
public String getServiceType()
```

**Return Value**

Type: String

#### getUserId()

**Signature**

```java
public String getUserId()
```

**Return Value**

Type: String

#### getUserName()

**Signature**

```java
public String getUserName()
```

**Return Value**

Type: String

#### isRssFeed()

**Signature**

```java
public Boolean isRssFeed()
```

**Return Value**

Type: Boolean

#### setAppId(appId)

**Signature**

```java
public void setAppId(String appId)
```

**Parameters**

_appId_

Type: String

**Return Value**

Type: void

#### setAppType(appType)

**Signature**

```java
public void setAppType(String appType)
```

**Parameters**

_appType_

Type: String

**Return Value**

Type: void

#### setChangeType(changeType)

**Signature**

```java
public void setChangeType(String changeType)
```

**Parameters**

_changeType_

Type: String

**Return Value**

Type: void

#### setChannel(channel)

**Signature**

```java
public void setChannel(String channel)
```

**Parameters**

_channel_

Type: String

**Return Value**

Type: void

#### setDate(dateValue)

**Signature**

```java
public void setDate(Integer dateValue)
```

**Parameters**

_dateValue_

Type: Integer

**Return Value**

Type: void

#### setReason(reason)

**Signature**

```java
public void setReason(String reason)
```

**Parameters**

_reason_

Type: String

**Return Value**

Type: void

#### setResolution(resolution)

**Signature**

```java
public void setResolution(String resolution)
```

**Parameters**

_resolution_

Type: String

**Return Value**

Type: void

#### setRssFeed(rssFeed)

**Signature**

```java
public void setRssFeed(Boolean rssFeed)
```

**Parameters**

_rssFeed_

Type: Boolean

**Return Value**

Type: void

#### setRssFeedChangeType(rssFeedChangeType)

**Signature**

```java
public void setRssFeedChangeType(String rssFeedChangeType)
```

**Parameters**

_rssFeedChangeType_

Type: String

**Return Value**

Type: void

#### setRssFeedTitle(rssFeedTitle)

**Signature**

```java
public void setRssFeedTitle(String rssFeedTitle)
```

**Parameters**

_rssFeedTitle_

Type: String

**Return Value**

Type: void

#### setRssFeedUrl(rssFeedUrl)

**Signature**

```java
public void setRssFeedUrl(String rssFeedUrl)
```

**Parameters**

_rssFeedUrl_

Type: String

**Return Value**

Type: void

#### setScope(scope)

**Signature**

```java
public void setScope(String scope)
```

**Parameters**

_scope_

Type: String

**Return Value**

Type: void

#### setServiceId(serviceId)

**Signature**

```java
public void setServiceId(String serviceId)
```

**Parameters**

_serviceId_

Type: String

**Return Value**

Type: void

#### setServiceType(serviceType)

**Signature**

```java
public void setServiceType(String serviceType)
```

**Parameters**

_serviceType_

Type: String

**Return Value**

Type: void

#### setUserId(userId)

**Signature**

```java
public void setUserId(String userId)
```

**Parameters**

_userId_

Type: String

**Return Value**

Type: void

#### setUserName(userName)

**Signature**

```java
public void setUserName(String userName)
```

**Parameters**

_userName_

Type: String

**Return Value**

Type: void

## Login Class

Represents an access log entry that contains information about a user accessing Slack, IP address, and user agent combination.

**Usage**

See Slack's [team.accessLogs method](https://api.slack.com/methods/team.accessLogs).

### Login Methods

The following are methods for `Login`.

#### getCount()

**Signature**

```java
public Integer getCount()
```

**Return Value**

Type: Integer

#### getCountry()

Gets the best guess on the country where the access originated, based on the IP address.

**Signature**

```java
public String getCountry()
```

**Return Value**

Type: String

#### getDateFirst()

Gets the unix timestamp of the first access log entry for the user, IP address, and user agent combination.

**Signature**

```java
public Integer getDateFirst()
```

**Return Value**

Type: Integer

#### getDateLast()

Get the most recent unix timestamp for the access log entry.

**Signature**

```java
public Integer getDateLast()
```

**Return Value**

Type: Integer

#### getIp()

Gets the IP address of the device that's used for the user access.

**Signature**

```java
public String getIp()
```

**Return Value**

Type: String

#### getIsp()

Gets Slack's best guess at the internet service provider owning the IP address.

**Signature**

```java
public String getIsp()
```

**Return Value**

Type: String

#### getRegion()

Gets the best guess on the region where the access originated, based on the IP address.

**Signature**

```java
public String getRegion()
```

**Return Value**

Type: String

#### getUserAgent()

**Signature**

```java
public String getUserAgent()
```

**Return Value**

Type: String

#### getUserId()

**Signature**

```java
public String getUserId()
```

**Return Value**

Type: String

#### getUsername()

**Signature**

```java
public String getUsername()
```

**Return Value**

Type: String

#### setCount(count)

**Signature**

```java
public void setCount(Integer count)
```

**Parameters**

_count_

Type: Integer

**Return Value**

Type: void

#### setCountry(country)

**Signature**

```java
public void setCountry(String country)
```

**Parameters**

_country_

Type: String

**Return Value**

Type: void

#### setDateFirst(dateFirst)

**Signature**

```java
public void setDateFirst(Integer dateFirst)
```

**Parameters**

_dateFirst_

Type: Integer

**Return Value**

Type: void

#### setDateLast(dateLast)

**Signature**

```java
public void setDateLast(Integer dateLast)
```

**Parameters**

_dateLast_

Type: Integer

**Return Value**

Type: void

#### setIp(ip)

**Signature**

```java
public void setIp(String ip)
```

**Parameters**

_ip_

Type: String

**Return Value**

Type: void

#### setIsp(isp)

**Signature**

```java
public void setIsp(String isp)
```

**Parameters**

_isp_

Type: String

**Return Value**

Type: void

#### setRegion(region)

**Signature**

```java
public void setRegion(String region)
```

**Parameters**

_region_

Type: String

**Return Value**

Type: void

#### setUserAgent(userAgent)

**Signature**

```java
public void setUserAgent(String userAgent)
```

**Parameters**

_userAgent_

Type: String

**Return Value**

Type: void

#### setUserId(userId)

**Signature**

```java
public void setUserId(String userId)
```

**Parameters**

_userId_

Type: String

**Return Value**

Type: void

#### setUsername(username)

**Signature**

```java
public void setUsername(String username)
```

**Parameters**

_username_

Type: String

**Return Value**

Type: void

## TeamAccessLogsRequest Class

Sends a request to get the access logs for the current team.

**Usage**

See Slack’s [team.accessLogs method](https://api.slack.com/methods/team.accessLogs).

### TeamAccessLogsRequest Methods

The following are methods for `TeamAccessLogsRequest`.

#### builder()

Builds a request object that's used when executing the API call.

**Signature**

```java
public static Slack.TeamAccessLogsRequest.Builder builder()
```

**Return Value**

Type: Slack.TeamAccessLogsRequest.Builder

## TeamAccessLogsRequest.Builder Class

Contains methods to build an instance of the `Slack.TeamAccessLogsRequest` class.

A Builder object is obtained by invoking one of the `TeamAccessLogsRequest.builder` methods defined by the `TeamAccessLogsRequest` class.

### TeamAccessLogsRequest.Builder Methods

The following are methods for `TeamAccessLogsRequest.Builder`. These methods are optional unless specified otherwise.

#### before(before)

End of time range of logs to include in results (inclusive). The default is `now`.

**Signature**

```java
public Slack.TeamAccessLogsRequest.Builder before(Integer before)
```

**Parameters**

_before_

Type: Integer

**Return Value**

Type: Slack.TeamAccessLogsRequest.Builder

#### build()

Required. Returns an instance of `Slack.TeamAccessLogsRequest`.

**Signature**

```java
public Slack.TeamAccessLogsRequest build()
```

**Return Value**

Type: Slack.TeamAccessLogsRequest

#### count(count)

Number of items to return per page. The default is 100.

**Signature**

```java
public Slack.TeamAccessLogsRequest.Builder count(Integer count)
```

**Parameters**

_count_

Type: Integer

**Return Value**

Type: Slack.TeamAccessLogsRequest.Builder

#### page(page)

Page number of results to return. The default is 1.

**Signature**

```java
public Slack.TeamAccessLogsRequest.Builder page(Integer page)
```

**Parameters**

_page_

Type: Integer

**Return Value**

Type: Slack.TeamAccessLogsRequest.Builder

#### teamId(teamId)

The encoded team ID to get logs from, which is required if an org token is used.

**Signature**

```java
public Slack.TeamAccessLogsRequest.Builder teamId(String teamId)
```

**Parameters**

_teamId_

Type: String

**Return Value**

Type: Slack.TeamAccessLogsRequest.Builder

## TeamAccessLogsResponse Class

Gets the access logs for the current team.

**Usage**

See Slack’s [team.accessLogs method](https://api.slack.com/methods/team.accessLogs).

### TeamAccessLogsResponse Methods

This class contains [standard response methods](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_response.md).

The following are methods for `TeamAccessLogsResponse`.

#### getLogins()

**Signature**

```java
public List<Slack.Login> getLogins()
```

**Return Value**

Type: List<[Slack.Login](#login-class)>

#### getPaging()

**Signature**

```java
public Slack.Paging getPaging()
```

**Return Value**

Type: [Slack.Paging](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_paging.md)

#### setLogins(logins)

**Signature**

```java
public void setLogins(List<Slack.Login> logins)
```

**Parameters**

_logins_

Type: List<[Slack.Login](#login-class)>

**Return Value**

Type: void

#### setPaging(paging)

**Signature**

```java
public void setPaging(Slack.Paging paging)
```

**Parameters**

_paging_

Type: [Slack.Paging](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_paging.md)

**Return Value**

Type: void

## TeamBillableInfoRequest Class

Sends a request to get billable users information for the current team.

**Usage**

See Slack's [team.billableInfo method](https://api.slack.com/methods/team.billableInfo).

### TeamBillableInfoRequest Methods

The following are methods for `TeamBillableInfoRequest`.

#### builder()

Builds a request object that's used when executing the API call.

**Signature**

```java
public static Slack.TeamBillableInfoRequest.Builder builder()
```

**Return Value**

Type: Slack.TeamBillableInfoRequest.Builder

## TeamBillableInfoRequest.Builder Class

Contains methods to build an instance of the `Slack.TeamBillableInfoRequest` class.

A Builder object is obtained by invoking one of the `TeamBillableInfoRequest.builder` methods defined by the `TeamBillableInfoRequest` class.

### TeamBillableInfoRequestBuilder Methods

The following are methods for `TeamBillableInfoRequest.Builder`. These methods are optional unless specified otherwise.

#### build()

Required. Returns an instance of `Slack.TeamBillableInfoRequest`.

**Signature**

```java
public Slack.TeamBillableInfoRequest build()
```

**Return Value**

Type: Slack.TeamBillableInfoRequest

#### teamId(teamId)

The encoded team ID to get billable information from, which is required if an org token is used.

**Signature**

```java
public Slack.TeamBillableInfoRequest.Builder teamId(String teamId)
```

**Parameters**

_teamId_

Type: String

#### user(user)

A user to retrieve the billable information for. The default is to return all users.

**Signature**

```java
public Slack.TeamBillableInfoRequest.Builder user(String user)
```

**Parameters**

_user_

Type: String

**Return Value**

Type: Slack.TeamBillableInfoRequest.Builder

## TeamBillableInfoResponse Class

Gets billable users information for the current team.

**Usage**

See Slack's [team.billableInfo method](https://api.slack.com/methods/team.billableInfo).

### TeamBillableInfoResponse Methods

This class contains [standard response methods](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_response.md).

The following are methods for `TeamBillableInfoResponse`.

#### getBillableInfo()

**Signature**

```java
public Map<String,Slack.BillableInfo> getBillableInfo()
```

**Return Value**

Type: Map<String,Slack.BillableInfo>

#### setBillableInfo(billableInfo)

**Signature**

```java
public void setBillableInfo(Map<String,Slack.BillableInfo> billableInfo)
```

**Parameters**

_billableInfo_

Type: Map<String,Slack.BillableInfo>

**Return Value**

Type: void

## TeamInfoRequest Class

Sends a request to get information about the current team.

**Usage**

See Slack’s [team.info method](https://api.slack.com/methods/team.info).

### TeamInfoRequest Methods

The following are methods for `TeamInfoRequest`.

#### builder()

Builds a request object that's used when executing the API call.

**Signature**

```java
public static Slack.TeamInfoRequest.Builder builder()
```

**Return Value**

Type: Slack.TeamInfoRequest.Builder

## TeamInfoRequest.Builder Class

Contains methods to build an instance of the `Slack.TeamInfoRequest` class.

A Builder object is obtained by invoking one of the `TeamInfoRequest.builder` methods defined by the `TeamInfoRequest` class.

### TeamInfoRequest.Builder Methods

The following are methods for `TeamInfoRequest.Builder`. These methods are optional unless specified otherwise.

#### build()

Required. Returns an instance of the `Slack.TeamInfoRequest` object.

**Signature**

```java
public Slack.TeamInfoRequest build()
```

**Return Value**

Type: Slack.TeamInfoRequest

#### team(team)

**Signature**

```java
public Slack.TeamInfoRequest.Builder team(String team)
```

**Parameters**
team

Type: String

**Return Value**

Type: [Slack.TeamInfoRequest.Builder](#teaminforequestbuilder-class)

## TeamInfoResponse Class

Gets information about the current team.

**Usage**

See Slack’s [team.info method](https://api.slack.com/methods/team.info).

### TeamInfoResponse Methods

This class contains [standard response methods](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_response.md).

The following are methods for `TeamInfoResponse`.

#### getTeam()

**Signature**

```java
public Slack.Team getTeam()
```

**Return Value**

Type: Slack.Team

#### setTeam(team)

**Signature**

```java
public void setTeam(Slack.Team team)
```

**Parameters**

_team_

Type: Slack.Team

**Return Value**

Type: void

## TeamIntegrationLogsRequest Class

Sends a request to get the integration logs for the current team.

**Usage**

See Slack’s [team.integrationLogs method](https://api.slack.com/methods/team.integrationLogs).

### TeamIntegrationLogsRequest Methods

The following are methods for `TeamIntegrationLogsRequest`.

#### builder()

Builds a request object that's used when executing the API call.
**Signature**

```java
public static Slack.TeamIntegrationLogsRequest.Builder builder()
```

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

## TeamIntegrationLogsRequest.Builder Class

Contains methods to build an instance of the `Slack.TeamIntegrationLogsRequest` class.

A Builder object is obtained by invoking one of the `TeamIntegrationLogsRequest.builder` methods defined by the `TeamIntegrationLogsRequest` class.

### TeamIntegrationLogsRequest.Builder Methods

The following are methods for `TeamIntegrationLogsRequest.Builder`. These methods are optional unless specified otherwise.

#### appId(appId)

Filters logs using the ID of this Slack app. The default is to return all logs.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder appId(String appId)
```

**Parameters**

_appId_

Type: String

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

#### build()

Required. Returns an instance of the `Slack.TeamIntegrationLogsRequest` object.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest build()
```

**Return Value**

Type: Slack.TeamIntegrationLogsRequest

#### changeType(changeType)

Filters logs using this change type. Valid values are `added`, `removed`, `enabled`, `disabled`, and `updated`. The default is to return all logs.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder changeType(String changeType)
```

**Parameters**

_changeType_

Type: String

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

#### count(count)

The number of items to return per page. The default is 100.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder count(Integer count)
```

**Parameters**

_count_

Type: Integer

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

#### page(page)

The page number of results to return. The default is 1.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder page(Integer page)
```

**Parameters**

_page_

Type: Integer

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

#### serviceId(serviceId)

Filters logs using this service. The default is to return all logs.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder serviceId(String serviceId)
```

**Parameters**

_serviceId_

Type: String

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

#### teamId(teamId)

The encoded team ID to get logs from, which is required if an org token is used.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder teamId(String teamId)
```

**Parameters**

_teamId_

Type: String

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

#### user(user)

Filters logs generated by this user’s actions. The default is to return all logs.

**Signature**

```java
public Slack.TeamIntegrationLogsRequest.Builder user(String user)
```

**Parameters**

_user_

Type: String

**Return Value**

Type: Slack.TeamIntegrationLogsRequest.Builder

## TeamIntegrationLogsResponse Class

Gets the integration logs for the current team.

**Usage**

See Slack’s [team.integrationLogs method](https://api.slack.com/methods/team.integrationLogs).

### TeamIntegrationLogsResponse Methods

This class contains [standard response methods](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_response.md).

The following are methods for `TeamIntegrationLogsResponse`.

#### getLogs()

**Signature**

```java
public List<Slack.IntegrationLog> getLogs()
```

**Return Value**

Type: List<Slack.IntegrationLog>

#### getPaging()

**Signature**

```java
public Slack.Paging getPaging()
```

**Return Value**

Type: [Slack.Paging](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_paging.md)

#### setLogs(logs)

**Signature**

```java
public void setLogs(List<Slack.IntegrationLog> logs)
```

**Parameters**

_logs_

Type: List<Slack.IntegrationLog>

**Return Value**

Type: void

#### setPaging(paging)

**Signature**

```java
public void setPaging(Slack.Paging paging)
```

**Parameters**

_paging_

Type: [Slack.Paging](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_paging.md)

**Return Value**

Type: void

## TeamProfileGetRequest Class

Sends a request to retrieve a team's profile.

**Usage**

See Slack’s [team.profile.get method](https://api.slack.com/methods/team.profile.get).

### TeamProfileGetRequest Methods

The following are methods for `TeamProfileGetRequest`.

#### builder()

Builds a request object that's used when executing the API call.

**Signature**

```java
public static Slack.TeamProfileGetRequest.Builder builder()
```

**Return Value**

Type: Slack.TeamProfileGetRequest.Builder

## TeamProfileGetRequestBuilder.Builder Class

Contains methods to build an instance of the `Slack.TeamProfileGetRequest` class.

A Builder object is obtained by invoking one of the `TeamProfileGetRequest.builder` methods defined by the `TeamProfileGetRequest` class.

### TeamProfileGetRequest.Builder Methods

The following are methods for `TeamProfileGetRequest.Builder`. These methods are optional unless specified otherwise.

#### build()

Required. Returns an instance of `Slack.TeamProfileGetRequest`.

**Signature**

```java
public Slack.TeamProfileGetRequest build()
```

**Return Value**

Type: Slack.TeamProfileGetRequest

#### teamId(teamId)

**Signature**

```java
public Slack.TeamProfileGetRequest.Builder teamId(String teamId)
```

**Parameters**

_teamId_

Type: String

**Return Value**

Type: Slack.TeamProfileGetRequest.Builder

#### visibility(visibility)

Filters by visibility. Valid values are `all`, `visible`, or `hidden`. The default is `all`.

**Signature**

```java
public Slack.TeamProfileGetRequest.Builder visibility(String visibility)
```

**Parameters**

_visibility_

Type: String

**Return Value**

Type: Slack.TeamProfileGetRequest.Builder

## TeamProfileGetResponse Class

Retrieve a team's profile.

**Usage**

See Slack’s [team.profile.get method](https://api.slack.com/methods/team.profile.get).

### TeamProfileGetResponse Methods

This class contains [standard response methods](https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_response.md).

The following are methods for `TeamProfileGetResponse`.

#### getProfile()

Gets the team’s profile.

**Signature**

```java
public Slack.TeamProfileGetResponse.Profiles getProfile()
```

**Return Value**

Type: Slack.TeamProfileGetResponse.Profiles

#### setProfile(profile)

**Signature**

```java
public void setProfile(Slack.TeamProfileGetResponse.Profiles profile)
```

**Parameters**

_profile_

Type: Slack.TeamProfileGetResponse.Profiles

**Return Value**

Type: void
