Class TeamRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.team.TeamRequestBuilder

@Generated("com.microsoft.kiota") public class TeamRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the team property of the microsoft.graph.group entity.
  • Constructor Details

    • TeamRequestBuilder

      public TeamRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new TeamRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • TeamRequestBuilder

      public TeamRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new TeamRequestBuilder and 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

    • allChannels

      @Nonnull public AllChannelsRequestBuilder allChannels()
      Provides operations to manage the allChannels property of the microsoft.graph.team entity.
      Returns:
      a AllChannelsRequestBuilder
    • archive

      @Nonnull public ArchiveRequestBuilder archive()
      Provides operations to call the archive method.
      Returns:
      a ArchiveRequestBuilder
    • channels

      @Nonnull public ChannelsRequestBuilder channels()
      Provides operations to manage the channels property of the microsoft.graph.team entity.
      Returns:
      a ChannelsRequestBuilder
    • clone

      @Nonnull public CloneRequestBuilder clone()
      Provides operations to call the clone method.
      Overrides:
      clone in class Object
      Returns:
      a CloneRequestBuilder
    • completeMigration

      @Nonnull public CompleteMigrationRequestBuilder completeMigration()
      Provides operations to call the completeMigration method.
      Returns:
      a CompleteMigrationRequestBuilder
    • group

      @Nonnull public GroupRequestBuilder group()
      Provides operations to manage the group property of the microsoft.graph.team entity.
      Returns:
      a GroupRequestBuilder
    • incomingChannels

      @Nonnull public IncomingChannelsRequestBuilder incomingChannels()
      Provides operations to manage the incomingChannels property of the microsoft.graph.team entity.
      Returns:
      a IncomingChannelsRequestBuilder
    • installedApps

      @Nonnull public InstalledAppsRequestBuilder installedApps()
      Provides operations to manage the installedApps property of the microsoft.graph.team entity.
      Returns:
      a InstalledAppsRequestBuilder
    • members

      @Nonnull public MembersRequestBuilder members()
      Provides operations to manage the members property of the microsoft.graph.team entity.
      Returns:
      a MembersRequestBuilder
    • operations

      @Nonnull public OperationsRequestBuilder operations()
      Provides operations to manage the operations property of the microsoft.graph.team entity.
      Returns:
      a OperationsRequestBuilder
    • permissionGrants

      @Nonnull public PermissionGrantsRequestBuilder permissionGrants()
      Provides operations to manage the permissionGrants property of the microsoft.graph.team entity.
      Returns:
      a PermissionGrantsRequestBuilder
    • photo

      @Nonnull public PhotoRequestBuilder photo()
      Provides operations to manage the photo property of the microsoft.graph.team entity.
      Returns:
      a PhotoRequestBuilder
    • primaryChannel

      @Nonnull public PrimaryChannelRequestBuilder primaryChannel()
      Provides operations to manage the primaryChannel property of the microsoft.graph.team entity.
      Returns:
      a PrimaryChannelRequestBuilder
    • schedule

      @Nonnull public ScheduleRequestBuilder schedule()
      Provides operations to manage the schedule property of the microsoft.graph.team entity.
      Returns:
      a ScheduleRequestBuilder
    • sendActivityNotification

      @Nonnull public SendActivityNotificationRequestBuilder sendActivityNotification()
      Provides operations to call the sendActivityNotification method.
      Returns:
      a SendActivityNotificationRequestBuilder
    • tags

      @Nonnull public TagsRequestBuilder tags()
      Provides operations to manage the tags property of the microsoft.graph.team entity.
      Returns:
      a TagsRequestBuilder
    • template

      @Nonnull public TemplateRequestBuilder template()
      Provides operations to manage the template property of the microsoft.graph.team entity.
      Returns:
      a TemplateRequestBuilder
    • unarchive

      @Nonnull public UnarchiveRequestBuilder unarchive()
      Provides operations to call the unarchive method.
      Returns:
      a UnarchiveRequestBuilder
    • delete

      public void delete()
      Delete navigation property team for groups
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<TeamRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property team for groups
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public Team get()
      The team associated with this group.
      Returns:
      a Team
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public Team get(@Nullable Consumer<TeamRequestBuilder.GetRequestConfiguration> requestConfiguration)
      The team associated with this group.
      Parameters:
      requestConfiguration - 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
    • put

      @Nullable public Team put(@Nonnull Team body)
      Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays.The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls.
      Parameters:
      body - The request body
      Returns:
      a Team
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • put

      @Nullable public Team put(@Nonnull Team body, @Nullable Consumer<TeamRequestBuilder.PutRequestConfiguration> requestConfiguration)
      Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays.The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls.
      Parameters:
      body - The request body
      requestConfiguration - 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:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property team for groups
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<TeamRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property team for groups
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      The team associated with this group.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TeamRequestBuilder.GetRequestConfiguration> requestConfiguration)
      The team associated with this group.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPutRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull Team body)
      Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays.The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPutRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPutRequestInformation(@Nonnull Team body, @Nullable Consumer<TeamRequestBuilder.PutRequestConfiguration> requestConfiguration)
      Create a new team under a group. In order to create a team, the group must have a least one owner. If the creation of the team call is delayed, you can retry the call up to three times before you have to wait for 15 minutes due to a propagation delay. If the group was created less than 15 minutes ago, the call might fail with a 404 error code due to replication delays. If the group was created less than 15 minutes ago, it's possible for a call to create a team to fail with a 404 error code, due to ongoing replication delays.The recommended pattern is to retry the Create team call three times, with a 10 second delay between calls.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public TeamRequestBuilder withUrl(@Nonnull String rawUrl)
      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 TeamRequestBuilder