Class OrganizationItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.organization.item.OrganizationItemRequestBuilder

@Generated("com.microsoft.kiota") public class OrganizationItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of organization entities.
  • Constructor Details

    • OrganizationItemRequestBuilder

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

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

    • branding

      @Nonnull public BrandingRequestBuilder branding()
      Provides operations to manage the branding property of the microsoft.graph.organization entity.
      Returns:
      a BrandingRequestBuilder
    • certificateBasedAuthConfiguration

      @Nonnull public CertificateBasedAuthConfigurationRequestBuilder certificateBasedAuthConfiguration()
      Provides operations to manage the certificateBasedAuthConfiguration property of the microsoft.graph.organization entity.
      Returns:
      a CertificateBasedAuthConfigurationRequestBuilder
    • checkMemberGroups

      @Nonnull public CheckMemberGroupsRequestBuilder checkMemberGroups()
      Provides operations to call the checkMemberGroups method.
      Returns:
      a CheckMemberGroupsRequestBuilder
    • checkMemberObjects

      @Nonnull public CheckMemberObjectsRequestBuilder checkMemberObjects()
      Provides operations to call the checkMemberObjects method.
      Returns:
      a CheckMemberObjectsRequestBuilder
    • extensions

      @Nonnull public ExtensionsRequestBuilder extensions()
      Provides operations to manage the extensions property of the microsoft.graph.organization entity.
      Returns:
      a ExtensionsRequestBuilder
    • getMemberGroups

      @Nonnull public GetMemberGroupsRequestBuilder getMemberGroups()
      Provides operations to call the getMemberGroups method.
      Returns:
      a GetMemberGroupsRequestBuilder
    • getMemberObjects

      @Nonnull public GetMemberObjectsRequestBuilder getMemberObjects()
      Provides operations to call the getMemberObjects method.
      Returns:
      a GetMemberObjectsRequestBuilder
    • restore

      @Nonnull public RestoreRequestBuilder restore()
      Provides operations to call the restore method.
      Returns:
      a RestoreRequestBuilder
    • setMobileDeviceManagementAuthority

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

      public void delete()
      Delete entity from organization
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<OrganizationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from organization
      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 Organization get()
      Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
      Returns:
      a Organization
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public Organization get(@Nullable Consumer<OrganizationItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Organization
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public Organization patch(@Nonnull Organization body)
      Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization.
      Parameters:
      body - The request body
      Returns:
      a Organization
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public Organization patch(@Nonnull Organization body, @Nullable Consumer<OrganizationItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Organization
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete entity from organization
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<OrganizationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from organization
      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()
      Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<OrganizationItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Organization body)
      Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Organization body, @Nullable Consumer<OrganizationItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public OrganizationItemRequestBuilder 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 OrganizationItemRequestBuilder