Package com.microsoft.graph.teams
Class TeamsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.TeamsRequestBuilder
@Generated("com.microsoft.kiota")
public class TeamsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of team entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList all teams in an organization.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionTeamsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsRequestBuilderand sets the default values.TeamsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the collection of team entities.count()Provides operations to count the resources in the collection.get()List all teams in an organization.get(Consumer<TeamsRequestBuilder.GetRequestConfiguration> requestConfiguration) List all teams in an organization.Provides operations to call the getAllMessages method.Create a new team.post(Team body, Consumer<TeamsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new team.com.microsoft.kiota.RequestInformationList all teams in an organization.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<TeamsRequestBuilder.GetRequestConfiguration> requestConfiguration) List all teams in an organization.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Team body) Create a new team.com.microsoft.kiota.RequestInformationtoPostRequestInformation(Team body, Consumer<TeamsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new team.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
TeamsRequestBuilder
public TeamsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
TeamsRequestBuilder
public TeamsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTeamsRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
getAllMessages
Provides operations to call the getAllMessages method.- Returns:
- a
GetAllMessagesRequestBuilder
-
byTeamId
Provides operations to manage the collection of team entities.- Parameters:
teamId- The unique identifier of team- Returns:
- a
TeamItemRequestBuilder
-
get
List all teams in an organization.- Returns:
- a
TeamCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public TeamCollectionResponse get(@Nullable Consumer<TeamsRequestBuilder.GetRequestConfiguration> requestConfiguration) List all teams in an organization.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
TeamCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new team.- Parameters:
body- The request body- Returns:
- a
Team - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public Team post(@Nonnull Team body, @Nullable Consumer<TeamsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new team.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Team - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()List all teams in an organization.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TeamsRequestBuilder.GetRequestConfiguration> requestConfiguration) List all teams in an organization.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
Create a new team.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull Team body, @Nullable Consumer<TeamsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new team.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
TeamsRequestBuilder
-