diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 93efc78e5a9..f95a76690c8 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -20823,6 +20823,326 @@ components: - name - requirements type: object + FunnelRequest: + example: + data: + attributes: + data_source: rum + enforced_execution_type: '' + request_id: '' + search: + cross_session_filter: '' + query_string: '@type:view' + steps: + - facet: '@view.name' + step_filter: '' + value: /apm/home + - facet: '@view.name' + step_filter: '' + value: /apm/traces + subquery_id: '' + time: + from: 1756425600000 + to: 1756857600000 + id: funnel_request + type: funnel_request + properties: + data: + $ref: '#/components/schemas/FunnelRequestData' + type: object + FunnelRequestData: + properties: + attributes: + $ref: '#/components/schemas/FunnelRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelRequestDataType' + required: + - type + type: object + FunnelRequestDataAttributes: + properties: + data_source: + type: string + enforced_execution_type: + type: string + request_id: + type: string + search: + $ref: '#/components/schemas/FunnelRequestDataAttributesSearch' + time: + $ref: '#/components/schemas/FunnelRequestDataAttributesTime' + type: object + FunnelRequestDataAttributesSearch: + properties: + cross_session_filter: + type: string + query_string: + type: string + steps: + items: + $ref: '#/components/schemas/FunnelRequestDataAttributesSearchStepsItems' + type: array + subquery_id: + type: string + type: object + FunnelRequestDataAttributesSearchStepsItems: + properties: + facet: + type: string + step_filter: + type: string + value: + type: string + type: object + FunnelRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + FunnelRequestDataType: + default: funnel_request + enum: + - funnel_request + example: funnel_request + type: string + x-enum-varnames: + - FUNNEL_REQUEST + FunnelResponse: + example: + data: + attributes: + end_to_end_conversion_rate: 0.1161386890038228 + funnel_steps: + - label: '@type:view @view.name:/apm/home' + value: 284608 + - label: '@type:view @view.name:/apm/traces' + value: 33054 + initial_count: 3925047 + id: funnel_response + type: funnel_response + properties: + data: + $ref: '#/components/schemas/FunnelResponseData' + type: object + FunnelResponseData: + properties: + attributes: + $ref: '#/components/schemas/FunnelResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelResponseDataType' + required: + - type + type: object + FunnelResponseDataAttributes: + properties: + end_to_end_conversion_rate: + format: double + type: number + end_to_end_elapsed_time: + $ref: '#/components/schemas/FunnelResponseElapsedTime' + funnel_steps: + items: + $ref: '#/components/schemas/FunnelResponseDataAttributesFunnelStepsItems' + type: array + initial_count: + format: int64 + type: integer + type: object + FunnelResponseDataAttributesFunnelStepsItems: + properties: + elapsed_time_to_next_step: + $ref: '#/components/schemas/FunnelResponseElapsedTime' + label: + type: string + value: + format: int64 + type: integer + type: object + FunnelResponseDataType: + default: funnel_response + enum: + - funnel_response + example: funnel_response + type: string + x-enum-varnames: + - FUNNEL_RESPONSE + FunnelResponseElapsedTime: + properties: + avg: + format: int64 + type: integer + max: + format: int64 + type: integer + min: + format: int64 + type: integer + p5: + format: int64 + type: integer + p50: + format: int64 + type: integer + p95: + format: int64 + type: integer + type: object + FunnelSuggestionRequest: + example: + data: + attributes: + data_source: '' + search: + cross_session_filter: '' + query_string: '@type:view' + steps: + - facet: '@view.name' + step_filter: '' + value: /apm/home + subquery_id: '' + term_search: + query: apm + time: + from: 1756425600000 + to: 1756857600000 + id: funnel_suggestion_request + type: funnel_suggestion_request + properties: + data: + $ref: '#/components/schemas/FunnelSuggestionRequestData' + type: object + FunnelSuggestionRequestData: + properties: + attributes: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelSuggestionRequestDataType' + required: + - type + type: object + FunnelSuggestionRequestDataAttributes: + properties: + data_source: + type: string + search: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesSearch' + term_search: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesTermSearch' + time: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesTime' + type: object + FunnelSuggestionRequestDataAttributesSearch: + properties: + cross_session_filter: + type: string + query_string: + type: string + steps: + items: + $ref: '#/components/schemas/FunnelSuggestionRequestDataAttributesSearchStepsItems' + type: array + subquery_id: + type: string + type: object + FunnelSuggestionRequestDataAttributesSearchStepsItems: + properties: + facet: + type: string + step_filter: + type: string + value: + type: string + type: object + FunnelSuggestionRequestDataAttributesTermSearch: + properties: + query: + type: string + type: object + FunnelSuggestionRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + FunnelSuggestionRequestDataType: + default: funnel_suggestion_request + enum: + - funnel_suggestion_request + example: funnel_suggestion_request + type: string + x-enum-varnames: + - FUNNEL_SUGGESTION_REQUEST + FunnelSuggestionResponse: + example: + data: + attributes: + actions: + - name: view_trace_details + - name: filter_by_service + - name: analyze_performance + views: + - name: /apm/traces + - name: /apm/services + - name: /apm/service-map + id: funnel_suggestion_response + type: funnel_suggestion_response + properties: + data: + $ref: '#/components/schemas/FunnelSuggestionResponseData' + type: object + FunnelSuggestionResponseData: + properties: + attributes: + $ref: '#/components/schemas/FunnelSuggestionResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/FunnelSuggestionResponseDataType' + required: + - type + type: object + FunnelSuggestionResponseDataAttributes: + properties: + actions: + items: + $ref: '#/components/schemas/FunnelSuggestionResponseDataAttributesActionsItems' + type: array + views: + items: + $ref: '#/components/schemas/FunnelSuggestionResponseDataAttributesViewsItems' + type: array + type: object + FunnelSuggestionResponseDataAttributesActionsItems: + properties: + name: + type: string + type: object + FunnelSuggestionResponseDataAttributesViewsItems: + properties: + name: + type: string + type: object + FunnelSuggestionResponseDataType: + default: funnel_suggestion_response + enum: + - funnel_suggestion_response + example: funnel_suggestion_response + type: string + x-enum-varnames: + - FUNNEL_SUGGESTION_RESPONSE GCPCredentials: description: The definition of the `GCPCredentials` object. oneOf: @@ -21735,6 +22055,369 @@ components: type: string type: array type: object + GetCohortRequest: + properties: + data: + $ref: '#/components/schemas/GetCohortRequestData' + type: object + GetCohortRequestData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortRequestDataType' + required: + - type + type: object + GetCohortRequestDataAttributes: + properties: + data_source: + type: string + definition: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinition' + enforced_execution_type: + type: string + request_id: + type: string + time: + $ref: '#/components/schemas/GetCohortRequestDataAttributesTime' + window_size: + type: string + type: object + GetCohortRequestDataAttributesDefinition: + properties: + audience_filters: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFilters' + inclusion_search: + type: string + return_search: + type: string + segment_id: + type: string + type: object + GetCohortRequestDataAttributesDefinitionAudienceFilters: + properties: + accounts: + items: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems' + type: array + formula: + type: string + segments: + items: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems' + type: array + users: + items: + $ref: '#/components/schemas/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems' + type: array + type: object + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems: + properties: + name: + example: '' + type: string + segment_id: + example: '' + type: string + required: + - name + - segment_id + type: object + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + GetCohortRequestDataType: + default: cohort_request + enum: + - cohort_request + example: cohort_request + type: string + x-enum-varnames: + - COHORT_REQUEST + GetCohortResponse: + example: + data: + attributes: + cohorts: + - cohort: '2024-01-01' + cohort_size: 1000 + start_time: 1704067200000 + values: + - absolute_value: 1000 + end_time: 1704672000000 + relative_value: 100 + start_time: 1704067200000 + window: 0 + - absolute_value: 750 + end_time: 1705276800000 + relative_value: 75 + start_time: 1704672000000 + window: 1 + - absolute_value: 600 + end_time: 1705881600000 + relative_value: 60 + start_time: 1705276800000 + window: 2 + id: cohort_response + type: cohort_response + properties: + data: + $ref: '#/components/schemas/GetCohortResponseData' + type: object + GetCohortResponseData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortResponseDataType' + required: + - type + type: object + GetCohortResponseDataAttributes: + properties: + cohorts: + items: + $ref: '#/components/schemas/GetCohortResponseDataAttributesCohortsItems' + type: array + type: object + GetCohortResponseDataAttributesCohortsItems: + properties: + cohort: + type: string + cohort_size: + format: int64 + type: integer + start_time: + format: int64 + type: integer + values: + items: + $ref: '#/components/schemas/GetCohortResponseDataAttributesCohortsItemsValuesItems' + type: array + type: object + GetCohortResponseDataAttributesCohortsItemsValuesItems: + properties: + absolute_value: + format: int64 + type: integer + end_time: + format: int64 + type: integer + relative_value: + format: double + type: number + start_time: + format: int64 + type: integer + window: + format: int64 + type: integer + type: object + GetCohortResponseDataType: + default: cohort_response + enum: + - cohort_response + example: cohort_response + type: string + x-enum-varnames: + - COHORT_RESPONSE + GetCohortUsersRequest: + properties: + data: + $ref: '#/components/schemas/GetCohortUsersRequestData' + type: object + GetCohortUsersRequestData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortUsersRequestDataType' + required: + - type + type: object + GetCohortUsersRequestDataAttributes: + properties: + data_source: + type: string + definition: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinition' + execution: + format: int64 + type: integer + time: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesTime' + user_selection: + type: string + window_size: + type: string + type: object + GetCohortUsersRequestDataAttributesDefinition: + properties: + audience_filters: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters' + cohort: + type: string + inclusion_search: + type: string + return_search: + type: string + segment_id: + type: string + window: + format: int64 + type: integer + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters: + properties: + accounts: + items: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems' + type: array + formula: + type: string + segments: + items: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems' + type: array + users: + items: + $ref: '#/components/schemas/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems' + type: array + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems: + properties: + name: + example: '' + type: string + segment_id: + example: '' + type: string + required: + - name + - segment_id + type: object + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + GetCohortUsersRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + GetCohortUsersRequestDataType: + default: cohort_users_request + enum: + - cohort_users_request + example: cohort_users_request + type: string + x-enum-varnames: + - COHORT_USERS_REQUEST + GetCohortUsersResponse: + example: + data: + attributes: + users: + - email: user@example.com + id: user123 + name: John Doe + - email: jane@example.com + id: user456 + name: Jane Smith + id: cohort_users_response + type: cohort_users_response + properties: + data: + $ref: '#/components/schemas/GetCohortUsersResponseData' + type: object + GetCohortUsersResponseData: + properties: + attributes: + $ref: '#/components/schemas/GetCohortUsersResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/GetCohortUsersResponseDataType' + required: + - type + type: object + GetCohortUsersResponseDataAttributes: + properties: + users: + items: + $ref: '#/components/schemas/GetCohortUsersResponseDataAttributesUsersItems' + type: array + type: object + GetCohortUsersResponseDataAttributesUsersItems: + properties: + email: + type: string + id: + type: string + name: + type: string + type: object + GetCohortUsersResponseDataType: + default: cohort_users_response + enum: + - cohort_users_response + example: cohort_users_response + type: string + x-enum-varnames: + - COHORT_USERS_RESPONSE GetCustomFrameworkResponse: description: Response object to get a custom framework. properties: @@ -42312,6 +42995,294 @@ components: example: report_id type: string type: object + SankeyRequest: + example: + data: + attributes: + data_source: '' + definition: + entries_per_step: 10 + number_of_steps: 5 + source: '@view.name' + target: '@view.name' + enforced_execution_type: '' + request_id: '' + sampling: + enabled: true + search: + audience_filters: {} + query: '@type:view @application.id:*' + subquery_id: '' + time: + from: 1756425600000 + to: 1756857600000 + id: sankey_request + type: sankey_request + properties: + data: + $ref: '#/components/schemas/SankeyRequestData' + type: object + SankeyRequestData: + properties: + attributes: + $ref: '#/components/schemas/SankeyRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/SankeyRequestDataType' + required: + - type + type: object + SankeyRequestDataAttributes: + properties: + data_source: + type: string + definition: + $ref: '#/components/schemas/SankeyRequestDataAttributesDefinition' + enforced_execution_type: + type: string + request_id: + type: string + sampling: + $ref: '#/components/schemas/SankeyRequestDataAttributesSampling' + search: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearch' + time: + $ref: '#/components/schemas/SankeyRequestDataAttributesTime' + type: object + SankeyRequestDataAttributesDefinition: + properties: + entries_per_step: + format: int64 + type: integer + number_of_steps: + format: int64 + type: integer + source: + type: string + target: + type: string + type: object + SankeyRequestDataAttributesSampling: + properties: + enabled: + description: The `sampling` `enabled`. + type: boolean + type: object + SankeyRequestDataAttributesSearch: + properties: + audience_filters: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFilters' + occurrences: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchOccurrences' + query: + type: string + subquery_id: + type: string + type: object + SankeyRequestDataAttributesSearchAudienceFilters: + properties: + accounts: + items: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems' + type: array + formula: + type: string + segments: + items: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems' + type: array + users: + items: + $ref: '#/components/schemas/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems' + type: array + type: object + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems: + properties: + name: + example: '' + type: string + segment_id: + example: '' + type: string + required: + - name + - segment_id + type: object + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems: + properties: + name: + example: '' + type: string + query: + type: string + required: + - name + type: object + SankeyRequestDataAttributesSearchOccurrences: + properties: + meta: + additionalProperties: + type: string + type: object + operator: + example: '' + type: string + value: + example: '' + type: string + required: + - operator + - value + type: object + SankeyRequestDataAttributesTime: + properties: + from: + format: int64 + type: integer + to: + format: int64 + type: integer + type: object + SankeyRequestDataType: + default: sankey_request + enum: + - sankey_request + example: sankey_request + type: string + x-enum-varnames: + - SANKEY_REQUEST + SankeyResponse: + example: + data: + attributes: + links: + - column: 0 + id: apm_home-to-apm_traces + source: apm_home + target: apm_traces + value: 33054 + nodes: + - aggregated_nodes: null + column: 0 + id: apm_home + incoming_value: 0 + name: /apm/home + outgoing_value: 33054 + type: regular + value: 284608 + - aggregated_nodes: null + column: 1 + id: apm_traces + incoming_value: 33054 + name: /apm/traces + outgoing_value: 15000 + type: regular + value: 33054 + id: sankey_response + type: sankey_response + properties: + data: + $ref: '#/components/schemas/SankeyResponseData' + type: object + SankeyResponseData: + properties: + attributes: + $ref: '#/components/schemas/SankeyResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/SankeyResponseDataType' + required: + - type + type: object + SankeyResponseDataAttributes: + properties: + links: + items: + $ref: '#/components/schemas/SankeyResponseDataAttributesLinksItems' + type: array + nodes: + items: + $ref: '#/components/schemas/SankeyResponseDataAttributesNodesItems' + type: array + type: object + SankeyResponseDataAttributesLinksItems: + properties: + column: + format: int64 + type: integer + id: + type: string + source: + type: string + target: + type: string + value: + format: int64 + type: integer + type: object + SankeyResponseDataAttributesNodesItems: + properties: + aggregated_nodes: + items: + $ref: '#/components/schemas/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems' + type: array + column: + format: int64 + type: integer + id: + type: string + incoming_value: + format: int64 + type: integer + name: + type: string + outgoing_value: + format: int64 + type: integer + type: + type: string + value: + format: int64 + type: integer + type: object + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems: + properties: + id: + type: string + incoming_value: + format: int64 + type: integer + name: + type: string + outgoing_value: + format: int64 + type: integer + type: + type: string + value: + format: int64 + type: integer + type: object + SankeyResponseDataType: + default: sankey_response + enum: + - sankey_response + example: sankey_response + type: string + x-enum-varnames: + - SANKEY_RESPONSE ScaRequest: properties: data: @@ -45944,6 +46915,229 @@ components: required: - securityTrigger type: object + Segment: + example: + data: + attributes: + created_at: '0001-01-01T00:00:00Z' + created_by: + handle: '' + id: '' + uuid: '' + data_query: + event_platform: + - facet: '@usr.id' + from: '2025-08-01' + name: high_value_users + query: '@type:view @view.name:/logs @usr.session_duration:>300000' + to: '2025-09-01' + description: Users who frequently visit logs and have high session duration + modified_at: '0001-01-01T00:00:00Z' + modified_by: + handle: '' + id: '' + uuid: '' + name: High-Value Users + org_id: 123456 + source: 0 + tags: + - high-value + - logs + - active + version: 1 + id: segment-12345 + type: segment + properties: + data: + $ref: '#/components/schemas/SegmentData' + type: object + SegmentArray: + properties: + data: + items: + $ref: '#/components/schemas/SegmentData' + type: array + required: + - data + type: object + SegmentData: + properties: + attributes: + $ref: '#/components/schemas/SegmentDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/SegmentDataType' + required: + - type + type: object + SegmentDataAttributes: + properties: + created_at: + format: date-time + type: string + created_by: + $ref: '#/components/schemas/SegmentDataSource' + data_query: + $ref: '#/components/schemas/SegmentDataAttributesDataQuery' + description: + type: string + disabled_at: + format: date-time + type: string + disabled_by: + $ref: '#/components/schemas/SegmentDataSource' + materialization_row_count: + format: int64 + type: integer + materialized_at: + type: string + modified_at: + format: date-time + type: string + modified_by: + $ref: '#/components/schemas/SegmentDataSource' + name: + example: '' + type: string + org_id: + format: int64 + type: integer + source: + format: int64 + type: integer + tags: + items: + type: string + type: array + version: + format: int64 + type: integer + required: + - data_query + - name + type: object + SegmentDataAttributesDataQuery: + properties: + combination: + type: string + event_platform: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryEventPlatformItems' + type: array + reference_table: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryReferenceTableItems' + type: array + static: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryStaticItems' + type: array + user_store: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryUserStoreItems' + type: array + type: object + SegmentDataAttributesDataQueryEventPlatformItems: + properties: + facet: + example: '' + type: string + from: + type: string + name: + type: string + query: + type: string + to: + type: string + required: + - facet + type: object + SegmentDataAttributesDataQueryReferenceTableItems: + properties: + columns: + items: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems' + type: array + filter_query: + type: string + join_condition: + $ref: '#/components/schemas/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition' + name: + type: string + table_name: + example: '' + type: string + required: + - join_condition + - table_name + type: object + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems: + properties: + alias: + type: string + name: + type: string + type: object + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition: + properties: + column_name: + example: '' + type: string + facet: + type: string + required: + - column_name + type: object + SegmentDataAttributesDataQueryStaticItems: + properties: + id: + type: string + name: + type: string + user_count: + format: int64 + minimum: 0 + type: integer + type: object + SegmentDataAttributesDataQueryUserStoreItems: + properties: + facet: + type: string + name: + type: string + query: + type: string + type: object + SegmentDataSource: + properties: + handle: + example: '' + type: string + icon: + type: string + id: + example: '' + type: string + name: + type: string + uuid: + example: '' + type: string + required: + - handle + - id + - uuid + type: object + SegmentDataType: + default: segment + enum: + - segment + example: segment + type: string + x-enum-varnames: + - SEGMENT Selectors: description: 'Selectors are used to filter security issues for which notifications should be generated. @@ -73028,6 +74222,54 @@ paths: operator: OR permissions: - rum_apps_write + /api/v2/rum/cohort: + post: + description: Analyze user cohorts for retention and conversion analysis + operationId: GetRumCohort + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortResponse' + description: Successful response with cohort analysis data + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum cohort + tags: + - Cohort + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/cohort/users: + post: + description: Get users within a specific cohort for retention analysis + operationId: GetRumCohortUsers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortUsersRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/GetCohortUsersResponse' + description: Successful response with cohort users + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum cohort users + tags: + - Cohort + x-unstable: '**Note**: This endpoint may be subject to changes.' /api/v2/rum/config/metrics: get: description: Get the list of configured rum-based metrics with their definitions. @@ -73282,6 +74524,134 @@ paths: operator: OR permissions: - rum_apps_read + /api/v2/rum/funnel: + post: + description: Analyze conversion funnels to understand user drop-off patterns + operationId: GetRumFunnel + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelResponse' + description: Successful response with funnel analysis data + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum funnel + tags: + - Funnel + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/funnel/new_step_suggestions: + post: + description: Get suggested steps for building conversion funnels + operationId: GetRumFunnelStepSuggestions + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelSuggestionRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FunnelSuggestionResponse' + description: Successful response with funnel step suggestions + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum funnel step suggestions + tags: + - Funnel + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/sankey: + post: + description: Generate Sankey diagrams to visualize user flow paths and drop-off + points + operationId: GetRumSankey + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SankeyRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SankeyResponse' + description: Successful response with Sankey diagram data + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Get rum sankey + tags: + - User Flow + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/segment: + get: + description: List all available user segments for audience targeting + operationId: ListRumSegments + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SegmentArray' + description: Successful response with list of segments + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: List rum segments + tags: + - Segments + x-unstable: '**Note**: This endpoint may be subject to changes.' + post: + description: Create a new user segment for audience targeting + operationId: CreateRumSegment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Segment' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Segment' + description: Segment created successfully + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Create rum segment + tags: + - Segments + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/rum/segment/initialize: + post: + description: Initialize default segments for a new organization + operationId: InitializeRumSegments + responses: + '200': + description: Default segments created successfully + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: [] + summary: Initialize rum segments + tags: + - Segments + x-unstable: '**Note**: This endpoint may be subject to changes.' /api/v2/saml_configurations/idp_metadata: post: description: 'Endpoint for uploading IdP metadata for SAML setup. @@ -81252,6 +82622,8 @@ tags: API. See the [Cloudflare integration page](https://docs.datadoghq.com/integrations/cloudflare/) for more information. name: Cloudflare Integration +- description: API for Cohort. + name: Cohort - description: Manage your Datadog Confluent Cloud integration accounts and account resources directly through the Datadog API. See the [Confluent Cloud page](https://docs.datadoghq.com/integrations/confluent_cloud/) for more information. @@ -81335,6 +82707,8 @@ tags: that apply configuration changes to multiple hosts at once.' name: Fleet Automation +- description: API for funnel. + name: Funnel - description: 'Configure your Datadog-Google Cloud Platform (GCP) integration directly through the Datadog API. Read more about the [Datadog-Google Cloud Platform integration](https://docs.datadoghq.com/integrations/google_cloud_platform).' @@ -81556,6 +82930,8 @@ tags: See the [Datadog Security page](https://docs.datadoghq.com/security/) for more information. name: Security Monitoring +- description: API for segments. + name: Segments - description: Create, update, delete, and retrieve sensitive data scanner groups and rules. See the [Sensitive Data Scanner page](https://docs.datadoghq.com/sensitive_data_scanner/) for more information. @@ -81643,6 +83019,8 @@ tags: description: Find out more at url: https://docs.datadoghq.com/account_management/billing/usage_details/ name: Usage Metering +- description: API for user flow. + name: User Flow - description: Create, edit, and disable users. externalDocs: url: https://docs.datadoghq.com/account_management/users diff --git a/examples/v2/cohort/GetRumCohort.java b/examples/v2/cohort/GetRumCohort.java new file mode 100644 index 00000000000..70511472e49 --- /dev/null +++ b/examples/v2/cohort/GetRumCohort.java @@ -0,0 +1,62 @@ +// Get rum cohort returns "Successful response with cohort analysis data" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.CohortApi; +import com.datadog.api.client.v2.model.GetCohortRequest; +import com.datadog.api.client.v2.model.GetCohortRequestData; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributes; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributesDefinition; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributesDefinitionAudienceFilters; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems; +import com.datadog.api.client.v2.model.GetCohortRequestDataAttributesTime; +import com.datadog.api.client.v2.model.GetCohortRequestDataType; +import com.datadog.api.client.v2.model.GetCohortResponse; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.getRumCohort", true); + CohortApi apiInstance = new CohortApi(defaultClient); + + GetCohortRequest body = + new GetCohortRequest() + .data( + new GetCohortRequestData() + .attributes( + new GetCohortRequestDataAttributes() + .definition( + new GetCohortRequestDataAttributesDefinition() + .audienceFilters( + new GetCohortRequestDataAttributesDefinitionAudienceFilters() + .accounts( + Collections.singletonList( + new GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems() + .name(""))) + .segments( + Collections.singletonList( + new GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems() + .name("") + .segmentId(""))) + .users( + Collections.singletonList( + new GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems() + .name(""))))) + .time(new GetCohortRequestDataAttributesTime())) + .type(GetCohortRequestDataType.COHORT_REQUEST)); + + try { + GetCohortResponse result = apiInstance.getRumCohort(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CohortApi#getRumCohort"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/cohort/GetRumCohortUsers.java b/examples/v2/cohort/GetRumCohortUsers.java new file mode 100644 index 00000000000..c7a7f8462a8 --- /dev/null +++ b/examples/v2/cohort/GetRumCohortUsers.java @@ -0,0 +1,62 @@ +// Get rum cohort users returns "Successful response with cohort users" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.CohortApi; +import com.datadog.api.client.v2.model.GetCohortUsersRequest; +import com.datadog.api.client.v2.model.GetCohortUsersRequestData; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributes; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributesDefinition; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributesDefinitionAudienceFilters; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataAttributesTime; +import com.datadog.api.client.v2.model.GetCohortUsersRequestDataType; +import com.datadog.api.client.v2.model.GetCohortUsersResponse; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.getRumCohortUsers", true); + CohortApi apiInstance = new CohortApi(defaultClient); + + GetCohortUsersRequest body = + new GetCohortUsersRequest() + .data( + new GetCohortUsersRequestData() + .attributes( + new GetCohortUsersRequestDataAttributes() + .definition( + new GetCohortUsersRequestDataAttributesDefinition() + .audienceFilters( + new GetCohortUsersRequestDataAttributesDefinitionAudienceFilters() + .accounts( + Collections.singletonList( + new GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems() + .name(""))) + .segments( + Collections.singletonList( + new GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems() + .name("") + .segmentId(""))) + .users( + Collections.singletonList( + new GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems() + .name(""))))) + .time(new GetCohortUsersRequestDataAttributesTime())) + .type(GetCohortUsersRequestDataType.COHORT_USERS_REQUEST)); + + try { + GetCohortUsersResponse result = apiInstance.getRumCohortUsers(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CohortApi#getRumCohortUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/funnel/GetRumFunnel.java b/examples/v2/funnel/GetRumFunnel.java new file mode 100644 index 00000000000..f54b9275b4a --- /dev/null +++ b/examples/v2/funnel/GetRumFunnel.java @@ -0,0 +1,64 @@ +// Get rum funnel returns "Successful response with funnel analysis data" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.FunnelApi; +import com.datadog.api.client.v2.model.FunnelRequest; +import com.datadog.api.client.v2.model.FunnelRequestData; +import com.datadog.api.client.v2.model.FunnelRequestDataAttributes; +import com.datadog.api.client.v2.model.FunnelRequestDataAttributesSearch; +import com.datadog.api.client.v2.model.FunnelRequestDataAttributesSearchStepsItems; +import com.datadog.api.client.v2.model.FunnelRequestDataAttributesTime; +import com.datadog.api.client.v2.model.FunnelRequestDataType; +import com.datadog.api.client.v2.model.FunnelResponse; +import java.util.Arrays; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.getRumFunnel", true); + FunnelApi apiInstance = new FunnelApi(defaultClient); + + FunnelRequest body = + new FunnelRequest() + .data( + new FunnelRequestData() + .attributes( + new FunnelRequestDataAttributes() + .dataSource("rum") + .enforcedExecutionType("") + .requestId("") + .search( + new FunnelRequestDataAttributesSearch() + .crossSessionFilter("") + .queryString("@type:view") + .steps( + Arrays.asList( + new FunnelRequestDataAttributesSearchStepsItems() + .facet("@view.name") + .stepFilter("") + .value("/apm/home"), + new FunnelRequestDataAttributesSearchStepsItems() + .facet("@view.name") + .stepFilter("") + .value("/apm/traces"))) + .subqueryId("")) + .time( + new FunnelRequestDataAttributesTime() + .from(1756425600000L) + .to(1756857600000L))) + .id("funnel_request") + .type(FunnelRequestDataType.FUNNEL_REQUEST)); + + try { + FunnelResponse result = apiInstance.getRumFunnel(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FunnelApi#getRumFunnel"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/funnel/GetRumFunnelStepSuggestions.java b/examples/v2/funnel/GetRumFunnelStepSuggestions.java new file mode 100644 index 00000000000..f3e91f5c3ed --- /dev/null +++ b/examples/v2/funnel/GetRumFunnelStepSuggestions.java @@ -0,0 +1,62 @@ +// Get rum funnel step suggestions returns "Successful response with funnel step suggestions" +// response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.FunnelApi; +import com.datadog.api.client.v2.model.FunnelSuggestionRequest; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestData; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestDataAttributes; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestDataAttributesSearch; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestDataAttributesSearchStepsItems; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestDataAttributesTermSearch; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestDataAttributesTime; +import com.datadog.api.client.v2.model.FunnelSuggestionRequestDataType; +import com.datadog.api.client.v2.model.FunnelSuggestionResponse; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.getRumFunnelStepSuggestions", true); + FunnelApi apiInstance = new FunnelApi(defaultClient); + + FunnelSuggestionRequest body = + new FunnelSuggestionRequest() + .data( + new FunnelSuggestionRequestData() + .attributes( + new FunnelSuggestionRequestDataAttributes() + .dataSource("") + .search( + new FunnelSuggestionRequestDataAttributesSearch() + .crossSessionFilter("") + .queryString("@type:view") + .steps( + Collections.singletonList( + new FunnelSuggestionRequestDataAttributesSearchStepsItems() + .facet("@view.name") + .stepFilter("") + .value("/apm/home"))) + .subqueryId("")) + .termSearch( + new FunnelSuggestionRequestDataAttributesTermSearch().query("apm")) + .time( + new FunnelSuggestionRequestDataAttributesTime() + .from(1756425600000L) + .to(1756857600000L))) + .id("funnel_suggestion_request") + .type(FunnelSuggestionRequestDataType.FUNNEL_SUGGESTION_REQUEST)); + + try { + FunnelSuggestionResponse result = apiInstance.getRumFunnelStepSuggestions(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FunnelApi#getRumFunnelStepSuggestions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/segments/CreateRumSegment.java b/examples/v2/segments/CreateRumSegment.java new file mode 100644 index 00000000000..7b73bfc071f --- /dev/null +++ b/examples/v2/segments/CreateRumSegment.java @@ -0,0 +1,66 @@ +// Create rum segment returns "Segment created successfully" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.SegmentsApi; +import com.datadog.api.client.v2.model.Segment; +import com.datadog.api.client.v2.model.SegmentData; +import com.datadog.api.client.v2.model.SegmentDataAttributes; +import com.datadog.api.client.v2.model.SegmentDataAttributesDataQuery; +import com.datadog.api.client.v2.model.SegmentDataAttributesDataQueryEventPlatformItems; +import com.datadog.api.client.v2.model.SegmentDataSource; +import com.datadog.api.client.v2.model.SegmentDataType; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.createRumSegment", true); + SegmentsApi apiInstance = new SegmentsApi(defaultClient); + + Segment body = + new Segment() + .data( + new SegmentData() + .attributes( + new SegmentDataAttributes() + .createdAt(OffsetDateTime.parse("0001-01-01T00:00:00Z")) + .createdBy(new SegmentDataSource().handle("").id("").uuid("")) + .dataQuery( + new SegmentDataAttributesDataQuery() + .eventPlatform( + Collections.singletonList( + new SegmentDataAttributesDataQueryEventPlatformItems() + .facet("@usr.id") + .from("2025-08-01") + .name("high_value_users") + .query( + "@type:view @view.name:/logs" + + " @usr.session_duration:>300000") + .to("2025-09-01")))) + .description( + "Users who frequently visit logs and have high session duration") + .modifiedAt(OffsetDateTime.parse("0001-01-01T00:00:00Z")) + .modifiedBy(new SegmentDataSource().handle("").id("").uuid("")) + .name("High-Value Users") + .orgId(123456L) + .source(0L) + .tags(Arrays.asList("high-value", "logs", "active")) + .version(1L)) + .id("segment-12345") + .type(SegmentDataType.SEGMENT)); + + try { + Segment result = apiInstance.createRumSegment(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SegmentsApi#createRumSegment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/segments/InitializeRumSegments.java b/examples/v2/segments/InitializeRumSegments.java new file mode 100644 index 00000000000..fb07b006dec --- /dev/null +++ b/examples/v2/segments/InitializeRumSegments.java @@ -0,0 +1,23 @@ +// Initialize rum segments returns "Default segments created successfully" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.SegmentsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.initializeRumSegments", true); + SegmentsApi apiInstance = new SegmentsApi(defaultClient); + + try { + apiInstance.initializeRumSegments(); + } catch (ApiException e) { + System.err.println("Exception when calling SegmentsApi#initializeRumSegments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/segments/ListRumSegments.java b/examples/v2/segments/ListRumSegments.java new file mode 100644 index 00000000000..60be37c3894 --- /dev/null +++ b/examples/v2/segments/ListRumSegments.java @@ -0,0 +1,25 @@ +// List rum segments returns "Successful response with list of segments" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.SegmentsApi; +import com.datadog.api.client.v2.model.SegmentArray; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.listRumSegments", true); + SegmentsApi apiInstance = new SegmentsApi(defaultClient); + + try { + SegmentArray result = apiInstance.listRumSegments(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SegmentsApi#listRumSegments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/user-flow/GetRumSankey.java b/examples/v2/user-flow/GetRumSankey.java new file mode 100644 index 00000000000..0fe08258fbe --- /dev/null +++ b/examples/v2/user-flow/GetRumSankey.java @@ -0,0 +1,63 @@ +// Get rum sankey returns "Successful response with Sankey diagram data" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.UserFlowApi; +import com.datadog.api.client.v2.model.SankeyRequest; +import com.datadog.api.client.v2.model.SankeyRequestData; +import com.datadog.api.client.v2.model.SankeyRequestDataAttributes; +import com.datadog.api.client.v2.model.SankeyRequestDataAttributesDefinition; +import com.datadog.api.client.v2.model.SankeyRequestDataAttributesSampling; +import com.datadog.api.client.v2.model.SankeyRequestDataAttributesSearch; +import com.datadog.api.client.v2.model.SankeyRequestDataAttributesSearchAudienceFilters; +import com.datadog.api.client.v2.model.SankeyRequestDataAttributesTime; +import com.datadog.api.client.v2.model.SankeyRequestDataType; +import com.datadog.api.client.v2.model.SankeyResponse; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setUnstableOperationEnabled("v2.getRumSankey", true); + UserFlowApi apiInstance = new UserFlowApi(defaultClient); + + SankeyRequest body = + new SankeyRequest() + .data( + new SankeyRequestData() + .attributes( + new SankeyRequestDataAttributes() + .dataSource("") + .definition( + new SankeyRequestDataAttributesDefinition() + .entriesPerStep(10L) + .numberOfSteps(5L) + .source("@view.name") + .target("@view.name")) + .enforcedExecutionType("") + .requestId("") + .sampling(new SankeyRequestDataAttributesSampling().enabled(true)) + .search( + new SankeyRequestDataAttributesSearch() + .audienceFilters( + new SankeyRequestDataAttributesSearchAudienceFilters()) + .query("@type:view @application.id:*") + .subqueryId("")) + .time( + new SankeyRequestDataAttributesTime() + .from(1756425600000L) + .to(1756857600000L))) + .id("sankey_request") + .type(SankeyRequestDataType.SANKEY_REQUEST)); + + try { + SankeyResponse result = apiInstance.getRumSankey(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserFlowApi#getRumSankey"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 790a403d960..6ff53b7e510 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -775,6 +775,14 @@ public class ApiClient { put("v2.listPipelines", false); put("v2.updatePipeline", false); put("v2.validatePipeline", false); + put("v2.getRumCohort", false); + put("v2.getRumCohortUsers", false); + put("v2.getRumFunnel", false); + put("v2.getRumFunnelStepSuggestions", false); + put("v2.getRumSankey", false); + put("v2.createRumSegment", false); + put("v2.initializeRumSegments", false); + put("v2.listRumSegments", false); put("v2.createScorecardOutcomesBatch", false); put("v2.createScorecardRule", false); put("v2.deleteScorecardRule", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/CohortApi.java b/src/main/java/com/datadog/api/client/v2/api/CohortApi.java new file mode 100644 index 00000000000..e9c74290097 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/api/CohortApi.java @@ -0,0 +1,340 @@ +package com.datadog.api.client.v2.api; + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.ApiResponse; +import com.datadog.api.client.Pair; +import com.datadog.api.client.v2.model.GetCohortRequest; +import com.datadog.api.client.v2.model.GetCohortResponse; +import com.datadog.api.client.v2.model.GetCohortUsersRequest; +import com.datadog.api.client.v2.model.GetCohortUsersResponse; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.GenericType; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.CompletableFuture; + +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class CohortApi { + private ApiClient apiClient; + + public CohortApi() { + this(ApiClient.getDefaultApiClient()); + } + + public CohortApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client. + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client. + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get rum cohort. + * + *

See {@link #getRumCohortWithHttpInfo}. + * + * @param body (required) + * @return GetCohortResponse + * @throws ApiException if fails to make API call + */ + public GetCohortResponse getRumCohort(GetCohortRequest body) throws ApiException { + return getRumCohortWithHttpInfo(body).getData(); + } + + /** + * Get rum cohort. + * + *

See {@link #getRumCohortWithHttpInfoAsync}. + * + * @param body (required) + * @return CompletableFuture<GetCohortResponse> + */ + public CompletableFuture getRumCohortAsync(GetCohortRequest body) { + return getRumCohortWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Analyze user cohorts for retention and conversion analysis + * + * @param body (required) + * @return ApiResponse<GetCohortResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Successful response with cohort analysis data -
429 Too many requests -
+ */ + public ApiResponse getRumCohortWithHttpInfo(GetCohortRequest body) + throws ApiException { + // Check if unstable operation is enabled + String operationId = "getRumCohort"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling getRumCohort"); + } + // create path and map variables + String localVarPath = "/api/v2/rum/cohort"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CohortApi.getRumCohort", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum cohort. + * + *

See {@link #getRumCohortWithHttpInfo}. + * + * @param body (required) + * @return CompletableFuture<ApiResponse<GetCohortResponse>> + */ + public CompletableFuture> getRumCohortWithHttpInfoAsync( + GetCohortRequest body) { + // Check if unstable operation is enabled + String operationId = "getRumCohort"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(400, "Missing the required parameter 'body' when calling getRumCohort")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/rum/cohort"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CohortApi.getRumCohort", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum cohort users. + * + *

See {@link #getRumCohortUsersWithHttpInfo}. + * + * @param body (required) + * @return GetCohortUsersResponse + * @throws ApiException if fails to make API call + */ + public GetCohortUsersResponse getRumCohortUsers(GetCohortUsersRequest body) throws ApiException { + return getRumCohortUsersWithHttpInfo(body).getData(); + } + + /** + * Get rum cohort users. + * + *

See {@link #getRumCohortUsersWithHttpInfoAsync}. + * + * @param body (required) + * @return CompletableFuture<GetCohortUsersResponse> + */ + public CompletableFuture getRumCohortUsersAsync( + GetCohortUsersRequest body) { + return getRumCohortUsersWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get users within a specific cohort for retention analysis + * + * @param body (required) + * @return ApiResponse<GetCohortUsersResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Successful response with cohort users -
429 Too many requests -
+ */ + public ApiResponse getRumCohortUsersWithHttpInfo( + GetCohortUsersRequest body) throws ApiException { + // Check if unstable operation is enabled + String operationId = "getRumCohortUsers"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling getRumCohortUsers"); + } + // create path and map variables + String localVarPath = "/api/v2/rum/cohort/users"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CohortApi.getRumCohortUsers", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum cohort users. + * + *

See {@link #getRumCohortUsersWithHttpInfo}. + * + * @param body (required) + * @return CompletableFuture<ApiResponse<GetCohortUsersResponse>> + */ + public CompletableFuture> getRumCohortUsersWithHttpInfoAsync( + GetCohortUsersRequest body) { + // Check if unstable operation is enabled + String operationId = "getRumCohortUsers"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'body' when calling getRumCohortUsers")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/rum/cohort/users"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CohortApi.getRumCohortUsers", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/api/FunnelApi.java b/src/main/java/com/datadog/api/client/v2/api/FunnelApi.java new file mode 100644 index 00000000000..ea7239ce61e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/api/FunnelApi.java @@ -0,0 +1,342 @@ +package com.datadog.api.client.v2.api; + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.ApiResponse; +import com.datadog.api.client.Pair; +import com.datadog.api.client.v2.model.FunnelRequest; +import com.datadog.api.client.v2.model.FunnelResponse; +import com.datadog.api.client.v2.model.FunnelSuggestionRequest; +import com.datadog.api.client.v2.model.FunnelSuggestionResponse; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.GenericType; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.CompletableFuture; + +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelApi { + private ApiClient apiClient; + + public FunnelApi() { + this(ApiClient.getDefaultApiClient()); + } + + public FunnelApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client. + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client. + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get rum funnel. + * + *

See {@link #getRumFunnelWithHttpInfo}. + * + * @param body (required) + * @return FunnelResponse + * @throws ApiException if fails to make API call + */ + public FunnelResponse getRumFunnel(FunnelRequest body) throws ApiException { + return getRumFunnelWithHttpInfo(body).getData(); + } + + /** + * Get rum funnel. + * + *

See {@link #getRumFunnelWithHttpInfoAsync}. + * + * @param body (required) + * @return CompletableFuture<FunnelResponse> + */ + public CompletableFuture getRumFunnelAsync(FunnelRequest body) { + return getRumFunnelWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Analyze conversion funnels to understand user drop-off patterns + * + * @param body (required) + * @return ApiResponse<FunnelResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Successful response with funnel analysis data -
429 Too many requests -
+ */ + public ApiResponse getRumFunnelWithHttpInfo(FunnelRequest body) + throws ApiException { + // Check if unstable operation is enabled + String operationId = "getRumFunnel"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling getRumFunnel"); + } + // create path and map variables + String localVarPath = "/api/v2/rum/funnel"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.FunnelApi.getRumFunnel", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum funnel. + * + *

See {@link #getRumFunnelWithHttpInfo}. + * + * @param body (required) + * @return CompletableFuture<ApiResponse<FunnelResponse>> + */ + public CompletableFuture> getRumFunnelWithHttpInfoAsync( + FunnelRequest body) { + // Check if unstable operation is enabled + String operationId = "getRumFunnel"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(400, "Missing the required parameter 'body' when calling getRumFunnel")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/rum/funnel"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.FunnelApi.getRumFunnel", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum funnel step suggestions. + * + *

See {@link #getRumFunnelStepSuggestionsWithHttpInfo}. + * + * @param body (required) + * @return FunnelSuggestionResponse + * @throws ApiException if fails to make API call + */ + public FunnelSuggestionResponse getRumFunnelStepSuggestions(FunnelSuggestionRequest body) + throws ApiException { + return getRumFunnelStepSuggestionsWithHttpInfo(body).getData(); + } + + /** + * Get rum funnel step suggestions. + * + *

See {@link #getRumFunnelStepSuggestionsWithHttpInfoAsync}. + * + * @param body (required) + * @return CompletableFuture<FunnelSuggestionResponse> + */ + public CompletableFuture getRumFunnelStepSuggestionsAsync( + FunnelSuggestionRequest body) { + return getRumFunnelStepSuggestionsWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get suggested steps for building conversion funnels + * + * @param body (required) + * @return ApiResponse<FunnelSuggestionResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Successful response with funnel step suggestions -
429 Too many requests -
+ */ + public ApiResponse getRumFunnelStepSuggestionsWithHttpInfo( + FunnelSuggestionRequest body) throws ApiException { + // Check if unstable operation is enabled + String operationId = "getRumFunnelStepSuggestions"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling getRumFunnelStepSuggestions"); + } + // create path and map variables + String localVarPath = "/api/v2/rum/funnel/new_step_suggestions"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.FunnelApi.getRumFunnelStepSuggestions", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum funnel step suggestions. + * + *

See {@link #getRumFunnelStepSuggestionsWithHttpInfo}. + * + * @param body (required) + * @return CompletableFuture<ApiResponse<FunnelSuggestionResponse>> + */ + public CompletableFuture> + getRumFunnelStepSuggestionsWithHttpInfoAsync(FunnelSuggestionRequest body) { + // Check if unstable operation is enabled + String operationId = "getRumFunnelStepSuggestions"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, + "Missing the required parameter 'body' when calling getRumFunnelStepSuggestions")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/rum/funnel/new_step_suggestions"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.FunnelApi.getRumFunnelStepSuggestions", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/api/SegmentsApi.java b/src/main/java/com/datadog/api/client/v2/api/SegmentsApi.java new file mode 100644 index 00000000000..ebe3b0bc3a1 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/api/SegmentsApi.java @@ -0,0 +1,439 @@ +package com.datadog.api.client.v2.api; + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.ApiResponse; +import com.datadog.api.client.Pair; +import com.datadog.api.client.v2.model.Segment; +import com.datadog.api.client.v2.model.SegmentArray; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.GenericType; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.CompletableFuture; + +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentsApi { + private ApiClient apiClient; + + public SegmentsApi() { + this(ApiClient.getDefaultApiClient()); + } + + public SegmentsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client. + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client. + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create rum segment. + * + *

See {@link #createRumSegmentWithHttpInfo}. + * + * @param body (required) + * @return Segment + * @throws ApiException if fails to make API call + */ + public Segment createRumSegment(Segment body) throws ApiException { + return createRumSegmentWithHttpInfo(body).getData(); + } + + /** + * Create rum segment. + * + *

See {@link #createRumSegmentWithHttpInfoAsync}. + * + * @param body (required) + * @return CompletableFuture<Segment> + */ + public CompletableFuture createRumSegmentAsync(Segment body) { + return createRumSegmentWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Create a new user segment for audience targeting + * + * @param body (required) + * @return ApiResponse<Segment> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
201 Segment created successfully -
429 Too many requests -
+ */ + public ApiResponse createRumSegmentWithHttpInfo(Segment body) throws ApiException { + // Check if unstable operation is enabled + String operationId = "createRumSegment"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling createRumSegment"); + } + // create path and map variables + String localVarPath = "/api/v2/rum/segment"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.SegmentsApi.createRumSegment", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Create rum segment. + * + *

See {@link #createRumSegmentWithHttpInfo}. + * + * @param body (required) + * @return CompletableFuture<ApiResponse<Segment>> + */ + public CompletableFuture> createRumSegmentWithHttpInfoAsync(Segment body) { + // Check if unstable operation is enabled + String operationId = "createRumSegment"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'body' when calling createRumSegment")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/rum/segment"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.SegmentsApi.createRumSegment", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Initialize rum segments. + * + *

See {@link #initializeRumSegmentsWithHttpInfo}. + * + * @throws ApiException if fails to make API call + */ + public void initializeRumSegments() throws ApiException { + initializeRumSegmentsWithHttpInfo(); + } + + /** + * Initialize rum segments. + * + *

See {@link #initializeRumSegmentsWithHttpInfoAsync}. + * + * @return CompletableFuture + */ + public CompletableFuture initializeRumSegmentsAsync() { + return initializeRumSegmentsWithHttpInfoAsync() + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Initialize default segments for a new organization + * + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Default segments created successfully -
429 Too many requests -
+ */ + public ApiResponse initializeRumSegmentsWithHttpInfo() throws ApiException { + // Check if unstable operation is enabled + String operationId = "initializeRumSegments"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/api/v2/rum/segment/initialize"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.SegmentsApi.initializeRumSegments", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"*/*"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + null); + } + + /** + * Initialize rum segments. + * + *

See {@link #initializeRumSegmentsWithHttpInfo}. + * + * @return CompletableFuture<ApiResponse<Void>> + */ + public CompletableFuture> initializeRumSegmentsWithHttpInfoAsync() { + // Check if unstable operation is enabled + String operationId = "initializeRumSegments"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/api/v2/rum/segment/initialize"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.SegmentsApi.initializeRumSegments", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"*/*"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + null); + } + + /** + * List rum segments. + * + *

See {@link #listRumSegmentsWithHttpInfo}. + * + * @return SegmentArray + * @throws ApiException if fails to make API call + */ + public SegmentArray listRumSegments() throws ApiException { + return listRumSegmentsWithHttpInfo().getData(); + } + + /** + * List rum segments. + * + *

See {@link #listRumSegmentsWithHttpInfoAsync}. + * + * @return CompletableFuture<SegmentArray> + */ + public CompletableFuture listRumSegmentsAsync() { + return listRumSegmentsWithHttpInfoAsync() + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * List all available user segments for audience targeting + * + * @return ApiResponse<SegmentArray> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Successful response with list of segments -
429 Too many requests -
+ */ + public ApiResponse listRumSegmentsWithHttpInfo() throws ApiException { + // Check if unstable operation is enabled + String operationId = "listRumSegments"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/api/v2/rum/segment"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.SegmentsApi.listRumSegments", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * List rum segments. + * + *

See {@link #listRumSegmentsWithHttpInfo}. + * + * @return CompletableFuture<ApiResponse<SegmentArray>> + */ + public CompletableFuture> listRumSegmentsWithHttpInfoAsync() { + // Check if unstable operation is enabled + String operationId = "listRumSegments"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = null; + // create path and map variables + String localVarPath = "/api/v2/rum/segment"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.SegmentsApi.listRumSegments", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/api/UserFlowApi.java b/src/main/java/com/datadog/api/client/v2/api/UserFlowApi.java new file mode 100644 index 00000000000..acb9efa025e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/api/UserFlowApi.java @@ -0,0 +1,191 @@ +package com.datadog.api.client.v2.api; + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.ApiResponse; +import com.datadog.api.client.Pair; +import com.datadog.api.client.v2.model.SankeyRequest; +import com.datadog.api.client.v2.model.SankeyResponse; +import jakarta.ws.rs.client.Invocation; +import jakarta.ws.rs.core.GenericType; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.CompletableFuture; + +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class UserFlowApi { + private ApiClient apiClient; + + public UserFlowApi() { + this(ApiClient.getDefaultApiClient()); + } + + public UserFlowApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client. + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client. + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get rum sankey. + * + *

See {@link #getRumSankeyWithHttpInfo}. + * + * @param body (required) + * @return SankeyResponse + * @throws ApiException if fails to make API call + */ + public SankeyResponse getRumSankey(SankeyRequest body) throws ApiException { + return getRumSankeyWithHttpInfo(body).getData(); + } + + /** + * Get rum sankey. + * + *

See {@link #getRumSankeyWithHttpInfoAsync}. + * + * @param body (required) + * @return CompletableFuture<SankeyResponse> + */ + public CompletableFuture getRumSankeyAsync(SankeyRequest body) { + return getRumSankeyWithHttpInfoAsync(body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Generate Sankey diagrams to visualize user flow paths and drop-off points + * + * @param body (required) + * @return ApiResponse<SankeyResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 Successful response with Sankey diagram data -
429 Too many requests -
+ */ + public ApiResponse getRumSankeyWithHttpInfo(SankeyRequest body) + throws ApiException { + // Check if unstable operation is enabled + String operationId = "getRumSankey"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling getRumSankey"); + } + // create path and map variables + String localVarPath = "/api/v2/rum/sankey"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.UserFlowApi.getRumSankey", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get rum sankey. + * + *

See {@link #getRumSankeyWithHttpInfo}. + * + * @param body (required) + * @return CompletableFuture<ApiResponse<SankeyResponse>> + */ + public CompletableFuture> getRumSankeyWithHttpInfoAsync( + SankeyRequest body) { + // Check if unstable operation is enabled + String operationId = "getRumSankey"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = body; + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(400, "Missing the required parameter 'body' when calling getRumSankey")); + return result; + } + // create path and map variables + String localVarPath = "/api/v2/rum/sankey"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.UserFlowApi.getRumSankey", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequest.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequest.java new file mode 100644 index 00000000000..f7df5175a40 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequest.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelRequest.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelRequest { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private FunnelRequestData data; + + public FunnelRequest data(FunnelRequestData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelRequestData getData() { + return data; + } + + public void setData(FunnelRequestData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelRequest + */ + @JsonAnySetter + public FunnelRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelRequest funnelRequest = (FunnelRequest) o; + return Objects.equals(this.data, funnelRequest.data) + && Objects.equals(this.additionalProperties, funnelRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequestData.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestData.java new file mode 100644 index 00000000000..ced340c7ff8 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelRequestData.JSON_PROPERTY_ATTRIBUTES, + FunnelRequestData.JSON_PROPERTY_ID, + FunnelRequestData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelRequestData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private FunnelRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private FunnelRequestDataType type = FunnelRequestDataType.FUNNEL_REQUEST; + + public FunnelRequestData() {} + + @JsonCreator + public FunnelRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) FunnelRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public FunnelRequestData attributes(FunnelRequestDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelRequestDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(FunnelRequestDataAttributes attributes) { + this.attributes = attributes; + } + + public FunnelRequestData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FunnelRequestData type(FunnelRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public FunnelRequestDataType getType() { + return type; + } + + public void setType(FunnelRequestDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelRequestData + */ + @JsonAnySetter + public FunnelRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelRequestData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelRequestData funnelRequestData = (FunnelRequestData) o; + return Objects.equals(this.attributes, funnelRequestData.attributes) + && Objects.equals(this.id, funnelRequestData.id) + && Objects.equals(this.type, funnelRequestData.type) + && Objects.equals(this.additionalProperties, funnelRequestData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelRequestData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributes.java new file mode 100644 index 00000000000..c02015151d2 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributes.java @@ -0,0 +1,252 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelRequestDataAttributes.JSON_PROPERTY_DATA_SOURCE, + FunnelRequestDataAttributes.JSON_PROPERTY_ENFORCED_EXECUTION_TYPE, + FunnelRequestDataAttributes.JSON_PROPERTY_REQUEST_ID, + FunnelRequestDataAttributes.JSON_PROPERTY_SEARCH, + FunnelRequestDataAttributes.JSON_PROPERTY_TIME +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelRequestDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; + private String dataSource; + + public static final String JSON_PROPERTY_ENFORCED_EXECUTION_TYPE = "enforced_execution_type"; + private String enforcedExecutionType; + + public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; + private String requestId; + + public static final String JSON_PROPERTY_SEARCH = "search"; + private FunnelRequestDataAttributesSearch search; + + public static final String JSON_PROPERTY_TIME = "time"; + private FunnelRequestDataAttributesTime time; + + public FunnelRequestDataAttributes dataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * GetdataSource + * + * @return dataSource + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDataSource() { + return dataSource; + } + + public void setDataSource(String dataSource) { + this.dataSource = dataSource; + } + + public FunnelRequestDataAttributes enforcedExecutionType(String enforcedExecutionType) { + this.enforcedExecutionType = enforcedExecutionType; + return this; + } + + /** + * GetenforcedExecutionType + * + * @return enforcedExecutionType + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENFORCED_EXECUTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEnforcedExecutionType() { + return enforcedExecutionType; + } + + public void setEnforcedExecutionType(String enforcedExecutionType) { + this.enforcedExecutionType = enforcedExecutionType; + } + + public FunnelRequestDataAttributes requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * GetrequestId + * + * @return requestId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public FunnelRequestDataAttributes search(FunnelRequestDataAttributesSearch search) { + this.search = search; + this.unparsed |= search.unparsed; + return this; + } + + /** + * Getsearch + * + * @return search + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelRequestDataAttributesSearch getSearch() { + return search; + } + + public void setSearch(FunnelRequestDataAttributesSearch search) { + this.search = search; + } + + public FunnelRequestDataAttributes time(FunnelRequestDataAttributesTime time) { + this.time = time; + this.unparsed |= time.unparsed; + return this; + } + + /** + * Gettime + * + * @return time + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelRequestDataAttributesTime getTime() { + return time; + } + + public void setTime(FunnelRequestDataAttributesTime time) { + this.time = time; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelRequestDataAttributes + */ + @JsonAnySetter + public FunnelRequestDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelRequestDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelRequestDataAttributes funnelRequestDataAttributes = (FunnelRequestDataAttributes) o; + return Objects.equals(this.dataSource, funnelRequestDataAttributes.dataSource) + && Objects.equals( + this.enforcedExecutionType, funnelRequestDataAttributes.enforcedExecutionType) + && Objects.equals(this.requestId, funnelRequestDataAttributes.requestId) + && Objects.equals(this.search, funnelRequestDataAttributes.search) + && Objects.equals(this.time, funnelRequestDataAttributes.time) + && Objects.equals( + this.additionalProperties, funnelRequestDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + dataSource, enforcedExecutionType, requestId, search, time, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelRequestDataAttributes {\n"); + sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); + sb.append(" enforcedExecutionType: ") + .append(toIndentedString(enforcedExecutionType)) + .append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesSearch.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesSearch.java new file mode 100644 index 00000000000..bb17d290ef9 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesSearch.java @@ -0,0 +1,237 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelRequestDataAttributesSearch.JSON_PROPERTY_CROSS_SESSION_FILTER, + FunnelRequestDataAttributesSearch.JSON_PROPERTY_QUERY_STRING, + FunnelRequestDataAttributesSearch.JSON_PROPERTY_STEPS, + FunnelRequestDataAttributesSearch.JSON_PROPERTY_SUBQUERY_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelRequestDataAttributesSearch { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CROSS_SESSION_FILTER = "cross_session_filter"; + private String crossSessionFilter; + + public static final String JSON_PROPERTY_QUERY_STRING = "query_string"; + private String queryString; + + public static final String JSON_PROPERTY_STEPS = "steps"; + private List steps = null; + + public static final String JSON_PROPERTY_SUBQUERY_ID = "subquery_id"; + private String subqueryId; + + public FunnelRequestDataAttributesSearch crossSessionFilter(String crossSessionFilter) { + this.crossSessionFilter = crossSessionFilter; + return this; + } + + /** + * GetcrossSessionFilter + * + * @return crossSessionFilter + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CROSS_SESSION_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCrossSessionFilter() { + return crossSessionFilter; + } + + public void setCrossSessionFilter(String crossSessionFilter) { + this.crossSessionFilter = crossSessionFilter; + } + + public FunnelRequestDataAttributesSearch queryString(String queryString) { + this.queryString = queryString; + return this; + } + + /** + * GetqueryString + * + * @return queryString + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQueryString() { + return queryString; + } + + public void setQueryString(String queryString) { + this.queryString = queryString; + } + + public FunnelRequestDataAttributesSearch steps( + List steps) { + this.steps = steps; + for (FunnelRequestDataAttributesSearchStepsItems item : steps) { + this.unparsed |= item.unparsed; + } + return this; + } + + public FunnelRequestDataAttributesSearch addStepsItem( + FunnelRequestDataAttributesSearchStepsItems stepsItem) { + if (this.steps == null) { + this.steps = new ArrayList<>(); + } + this.steps.add(stepsItem); + this.unparsed |= stepsItem.unparsed; + return this; + } + + /** + * Getsteps + * + * @return steps + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STEPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSteps() { + return steps; + } + + public void setSteps(List steps) { + this.steps = steps; + } + + public FunnelRequestDataAttributesSearch subqueryId(String subqueryId) { + this.subqueryId = subqueryId; + return this; + } + + /** + * GetsubqueryId + * + * @return subqueryId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBQUERY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSubqueryId() { + return subqueryId; + } + + public void setSubqueryId(String subqueryId) { + this.subqueryId = subqueryId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelRequestDataAttributesSearch + */ + @JsonAnySetter + public FunnelRequestDataAttributesSearch putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelRequestDataAttributesSearch object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelRequestDataAttributesSearch funnelRequestDataAttributesSearch = + (FunnelRequestDataAttributesSearch) o; + return Objects.equals( + this.crossSessionFilter, funnelRequestDataAttributesSearch.crossSessionFilter) + && Objects.equals(this.queryString, funnelRequestDataAttributesSearch.queryString) + && Objects.equals(this.steps, funnelRequestDataAttributesSearch.steps) + && Objects.equals(this.subqueryId, funnelRequestDataAttributesSearch.subqueryId) + && Objects.equals( + this.additionalProperties, funnelRequestDataAttributesSearch.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(crossSessionFilter, queryString, steps, subqueryId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelRequestDataAttributesSearch {\n"); + sb.append(" crossSessionFilter: ").append(toIndentedString(crossSessionFilter)).append("\n"); + sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n"); + sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); + sb.append(" subqueryId: ").append(toIndentedString(subqueryId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesSearchStepsItems.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesSearchStepsItems.java new file mode 100644 index 00000000000..01c045fa928 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesSearchStepsItems.java @@ -0,0 +1,195 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelRequestDataAttributesSearchStepsItems.JSON_PROPERTY_FACET, + FunnelRequestDataAttributesSearchStepsItems.JSON_PROPERTY_STEP_FILTER, + FunnelRequestDataAttributesSearchStepsItems.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelRequestDataAttributesSearchStepsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FACET = "facet"; + private String facet; + + public static final String JSON_PROPERTY_STEP_FILTER = "step_filter"; + private String stepFilter; + + public static final String JSON_PROPERTY_VALUE = "value"; + private String value; + + public FunnelRequestDataAttributesSearchStepsItems facet(String facet) { + this.facet = facet; + return this; + } + + /** + * Getfacet + * + * @return facet + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FACET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFacet() { + return facet; + } + + public void setFacet(String facet) { + this.facet = facet; + } + + public FunnelRequestDataAttributesSearchStepsItems stepFilter(String stepFilter) { + this.stepFilter = stepFilter; + return this; + } + + /** + * GetstepFilter + * + * @return stepFilter + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STEP_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStepFilter() { + return stepFilter; + } + + public void setStepFilter(String stepFilter) { + this.stepFilter = stepFilter; + } + + public FunnelRequestDataAttributesSearchStepsItems value(String value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelRequestDataAttributesSearchStepsItems + */ + @JsonAnySetter + public FunnelRequestDataAttributesSearchStepsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelRequestDataAttributesSearchStepsItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelRequestDataAttributesSearchStepsItems funnelRequestDataAttributesSearchStepsItems = + (FunnelRequestDataAttributesSearchStepsItems) o; + return Objects.equals(this.facet, funnelRequestDataAttributesSearchStepsItems.facet) + && Objects.equals(this.stepFilter, funnelRequestDataAttributesSearchStepsItems.stepFilter) + && Objects.equals(this.value, funnelRequestDataAttributesSearchStepsItems.value) + && Objects.equals( + this.additionalProperties, + funnelRequestDataAttributesSearchStepsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(facet, stepFilter, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelRequestDataAttributesSearchStepsItems {\n"); + sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" stepFilter: ").append(toIndentedString(stepFilter)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesTime.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesTime.java new file mode 100644 index 00000000000..38dbc9552f0 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataAttributesTime.java @@ -0,0 +1,166 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelRequestDataAttributesTime.JSON_PROPERTY_FROM, + FunnelRequestDataAttributesTime.JSON_PROPERTY_TO +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelRequestDataAttributesTime { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FROM = "from"; + private Long from; + + public static final String JSON_PROPERTY_TO = "to"; + private Long to; + + public FunnelRequestDataAttributesTime from(Long from) { + this.from = from; + return this; + } + + /** + * Getfrom + * + * @return from + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getFrom() { + return from; + } + + public void setFrom(Long from) { + this.from = from; + } + + public FunnelRequestDataAttributesTime to(Long to) { + this.to = to; + return this; + } + + /** + * Getto + * + * @return to + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getTo() { + return to; + } + + public void setTo(Long to) { + this.to = to; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelRequestDataAttributesTime + */ + @JsonAnySetter + public FunnelRequestDataAttributesTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelRequestDataAttributesTime object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelRequestDataAttributesTime funnelRequestDataAttributesTime = + (FunnelRequestDataAttributesTime) o; + return Objects.equals(this.from, funnelRequestDataAttributesTime.from) + && Objects.equals(this.to, funnelRequestDataAttributesTime.to) + && Objects.equals( + this.additionalProperties, funnelRequestDataAttributesTime.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(from, to, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelRequestDataAttributesTime {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataType.java new file mode 100644 index 00000000000..a03f07842b9 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelRequestDataType.java @@ -0,0 +1,56 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = FunnelRequestDataType.FunnelRequestDataTypeSerializer.class) +public class FunnelRequestDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("funnel_request")); + + public static final FunnelRequestDataType FUNNEL_REQUEST = + new FunnelRequestDataType("funnel_request"); + + FunnelRequestDataType(String value) { + super(value, allowedValues); + } + + public static class FunnelRequestDataTypeSerializer extends StdSerializer { + public FunnelRequestDataTypeSerializer(Class t) { + super(t); + } + + public FunnelRequestDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + FunnelRequestDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static FunnelRequestDataType fromValue(String value) { + return new FunnelRequestDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelResponse.java b/src/main/java/com/datadog/api/client/v2/model/FunnelResponse.java new file mode 100644 index 00000000000..80be138511c --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelResponse.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private FunnelResponseData data; + + public FunnelResponse data(FunnelResponseData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelResponseData getData() { + return data; + } + + public void setData(FunnelResponseData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelResponse + */ + @JsonAnySetter + public FunnelResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelResponse funnelResponse = (FunnelResponse) o; + return Objects.equals(this.data, funnelResponse.data) + && Objects.equals(this.additionalProperties, funnelResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelResponseData.java b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseData.java new file mode 100644 index 00000000000..f2f6a88dbe6 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelResponseData.JSON_PROPERTY_ATTRIBUTES, + FunnelResponseData.JSON_PROPERTY_ID, + FunnelResponseData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelResponseData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private FunnelResponseDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private FunnelResponseDataType type = FunnelResponseDataType.FUNNEL_RESPONSE; + + public FunnelResponseData() {} + + @JsonCreator + public FunnelResponseData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) FunnelResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public FunnelResponseData attributes(FunnelResponseDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelResponseDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(FunnelResponseDataAttributes attributes) { + this.attributes = attributes; + } + + public FunnelResponseData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FunnelResponseData type(FunnelResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public FunnelResponseDataType getType() { + return type; + } + + public void setType(FunnelResponseDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelResponseData + */ + @JsonAnySetter + public FunnelResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelResponseData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelResponseData funnelResponseData = (FunnelResponseData) o; + return Objects.equals(this.attributes, funnelResponseData.attributes) + && Objects.equals(this.id, funnelResponseData.id) + && Objects.equals(this.type, funnelResponseData.type) + && Objects.equals(this.additionalProperties, funnelResponseData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelResponseData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataAttributes.java new file mode 100644 index 00000000000..b5d61bc4125 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataAttributes.java @@ -0,0 +1,249 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelResponseDataAttributes.JSON_PROPERTY_END_TO_END_CONVERSION_RATE, + FunnelResponseDataAttributes.JSON_PROPERTY_END_TO_END_ELAPSED_TIME, + FunnelResponseDataAttributes.JSON_PROPERTY_FUNNEL_STEPS, + FunnelResponseDataAttributes.JSON_PROPERTY_INITIAL_COUNT +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelResponseDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_END_TO_END_CONVERSION_RATE = + "end_to_end_conversion_rate"; + private Double endToEndConversionRate; + + public static final String JSON_PROPERTY_END_TO_END_ELAPSED_TIME = "end_to_end_elapsed_time"; + private FunnelResponseElapsedTime endToEndElapsedTime; + + public static final String JSON_PROPERTY_FUNNEL_STEPS = "funnel_steps"; + private List funnelSteps = null; + + public static final String JSON_PROPERTY_INITIAL_COUNT = "initial_count"; + private Long initialCount; + + public FunnelResponseDataAttributes endToEndConversionRate(Double endToEndConversionRate) { + this.endToEndConversionRate = endToEndConversionRate; + return this; + } + + /** + * GetendToEndConversionRate + * + * @return endToEndConversionRate + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_END_TO_END_CONVERSION_RATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getEndToEndConversionRate() { + return endToEndConversionRate; + } + + public void setEndToEndConversionRate(Double endToEndConversionRate) { + this.endToEndConversionRate = endToEndConversionRate; + } + + public FunnelResponseDataAttributes endToEndElapsedTime( + FunnelResponseElapsedTime endToEndElapsedTime) { + this.endToEndElapsedTime = endToEndElapsedTime; + this.unparsed |= endToEndElapsedTime.unparsed; + return this; + } + + /** + * GetendToEndElapsedTime + * + * @return endToEndElapsedTime + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_END_TO_END_ELAPSED_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelResponseElapsedTime getEndToEndElapsedTime() { + return endToEndElapsedTime; + } + + public void setEndToEndElapsedTime(FunnelResponseElapsedTime endToEndElapsedTime) { + this.endToEndElapsedTime = endToEndElapsedTime; + } + + public FunnelResponseDataAttributes funnelSteps( + List funnelSteps) { + this.funnelSteps = funnelSteps; + for (FunnelResponseDataAttributesFunnelStepsItems item : funnelSteps) { + this.unparsed |= item.unparsed; + } + return this; + } + + public FunnelResponseDataAttributes addFunnelStepsItem( + FunnelResponseDataAttributesFunnelStepsItems funnelStepsItem) { + if (this.funnelSteps == null) { + this.funnelSteps = new ArrayList<>(); + } + this.funnelSteps.add(funnelStepsItem); + this.unparsed |= funnelStepsItem.unparsed; + return this; + } + + /** + * GetfunnelSteps + * + * @return funnelSteps + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FUNNEL_STEPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getFunnelSteps() { + return funnelSteps; + } + + public void setFunnelSteps(List funnelSteps) { + this.funnelSteps = funnelSteps; + } + + public FunnelResponseDataAttributes initialCount(Long initialCount) { + this.initialCount = initialCount; + return this; + } + + /** + * GetinitialCount + * + * @return initialCount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INITIAL_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getInitialCount() { + return initialCount; + } + + public void setInitialCount(Long initialCount) { + this.initialCount = initialCount; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelResponseDataAttributes + */ + @JsonAnySetter + public FunnelResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelResponseDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelResponseDataAttributes funnelResponseDataAttributes = (FunnelResponseDataAttributes) o; + return Objects.equals( + this.endToEndConversionRate, funnelResponseDataAttributes.endToEndConversionRate) + && Objects.equals( + this.endToEndElapsedTime, funnelResponseDataAttributes.endToEndElapsedTime) + && Objects.equals(this.funnelSteps, funnelResponseDataAttributes.funnelSteps) + && Objects.equals(this.initialCount, funnelResponseDataAttributes.initialCount) + && Objects.equals( + this.additionalProperties, funnelResponseDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + endToEndConversionRate, + endToEndElapsedTime, + funnelSteps, + initialCount, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelResponseDataAttributes {\n"); + sb.append(" endToEndConversionRate: ") + .append(toIndentedString(endToEndConversionRate)) + .append("\n"); + sb.append(" endToEndElapsedTime: ") + .append(toIndentedString(endToEndElapsedTime)) + .append("\n"); + sb.append(" funnelSteps: ").append(toIndentedString(funnelSteps)).append("\n"); + sb.append(" initialCount: ").append(toIndentedString(initialCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataAttributesFunnelStepsItems.java b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataAttributesFunnelStepsItems.java new file mode 100644 index 00000000000..411feefdc94 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataAttributesFunnelStepsItems.java @@ -0,0 +1,201 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelResponseDataAttributesFunnelStepsItems.JSON_PROPERTY_ELAPSED_TIME_TO_NEXT_STEP, + FunnelResponseDataAttributesFunnelStepsItems.JSON_PROPERTY_LABEL, + FunnelResponseDataAttributesFunnelStepsItems.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelResponseDataAttributesFunnelStepsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ELAPSED_TIME_TO_NEXT_STEP = "elapsed_time_to_next_step"; + private FunnelResponseElapsedTime elapsedTimeToNextStep; + + public static final String JSON_PROPERTY_LABEL = "label"; + private String label; + + public static final String JSON_PROPERTY_VALUE = "value"; + private Long value; + + public FunnelResponseDataAttributesFunnelStepsItems elapsedTimeToNextStep( + FunnelResponseElapsedTime elapsedTimeToNextStep) { + this.elapsedTimeToNextStep = elapsedTimeToNextStep; + this.unparsed |= elapsedTimeToNextStep.unparsed; + return this; + } + + /** + * GetelapsedTimeToNextStep + * + * @return elapsedTimeToNextStep + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ELAPSED_TIME_TO_NEXT_STEP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelResponseElapsedTime getElapsedTimeToNextStep() { + return elapsedTimeToNextStep; + } + + public void setElapsedTimeToNextStep(FunnelResponseElapsedTime elapsedTimeToNextStep) { + this.elapsedTimeToNextStep = elapsedTimeToNextStep; + } + + public FunnelResponseDataAttributesFunnelStepsItems label(String label) { + this.label = label; + return this; + } + + /** + * Getlabel + * + * @return label + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LABEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public FunnelResponseDataAttributesFunnelStepsItems value(Long value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getValue() { + return value; + } + + public void setValue(Long value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelResponseDataAttributesFunnelStepsItems + */ + @JsonAnySetter + public FunnelResponseDataAttributesFunnelStepsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelResponseDataAttributesFunnelStepsItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelResponseDataAttributesFunnelStepsItems funnelResponseDataAttributesFunnelStepsItems = + (FunnelResponseDataAttributesFunnelStepsItems) o; + return Objects.equals( + this.elapsedTimeToNextStep, + funnelResponseDataAttributesFunnelStepsItems.elapsedTimeToNextStep) + && Objects.equals(this.label, funnelResponseDataAttributesFunnelStepsItems.label) + && Objects.equals(this.value, funnelResponseDataAttributesFunnelStepsItems.value) + && Objects.equals( + this.additionalProperties, + funnelResponseDataAttributesFunnelStepsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(elapsedTimeToNextStep, label, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelResponseDataAttributesFunnelStepsItems {\n"); + sb.append(" elapsedTimeToNextStep: ") + .append(toIndentedString(elapsedTimeToNextStep)) + .append("\n"); + sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataType.java new file mode 100644 index 00000000000..b328051d971 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseDataType.java @@ -0,0 +1,57 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = FunnelResponseDataType.FunnelResponseDataTypeSerializer.class) +public class FunnelResponseDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("funnel_response")); + + public static final FunnelResponseDataType FUNNEL_RESPONSE = + new FunnelResponseDataType("funnel_response"); + + FunnelResponseDataType(String value) { + super(value, allowedValues); + } + + public static class FunnelResponseDataTypeSerializer + extends StdSerializer { + public FunnelResponseDataTypeSerializer(Class t) { + super(t); + } + + public FunnelResponseDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + FunnelResponseDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static FunnelResponseDataType fromValue(String value) { + return new FunnelResponseDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelResponseElapsedTime.java b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseElapsedTime.java new file mode 100644 index 00000000000..5ae263d80b1 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelResponseElapsedTime.java @@ -0,0 +1,273 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelResponseElapsedTime.JSON_PROPERTY_AVG, + FunnelResponseElapsedTime.JSON_PROPERTY_MAX, + FunnelResponseElapsedTime.JSON_PROPERTY_MIN, + FunnelResponseElapsedTime.JSON_PROPERTY_P5, + FunnelResponseElapsedTime.JSON_PROPERTY_P50, + FunnelResponseElapsedTime.JSON_PROPERTY_P95 +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelResponseElapsedTime { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_AVG = "avg"; + private Long avg; + + public static final String JSON_PROPERTY_MAX = "max"; + private Long max; + + public static final String JSON_PROPERTY_MIN = "min"; + private Long min; + + public static final String JSON_PROPERTY_P5 = "p5"; + private Long p5; + + public static final String JSON_PROPERTY_P50 = "p50"; + private Long p50; + + public static final String JSON_PROPERTY_P95 = "p95"; + private Long p95; + + public FunnelResponseElapsedTime avg(Long avg) { + this.avg = avg; + return this; + } + + /** + * Getavg + * + * @return avg + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AVG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getAvg() { + return avg; + } + + public void setAvg(Long avg) { + this.avg = avg; + } + + public FunnelResponseElapsedTime max(Long max) { + this.max = max; + return this; + } + + /** + * Getmax + * + * @return max + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAX) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMax() { + return max; + } + + public void setMax(Long max) { + this.max = max; + } + + public FunnelResponseElapsedTime min(Long min) { + this.min = min; + return this; + } + + /** + * Getmin + * + * @return min + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMin() { + return min; + } + + public void setMin(Long min) { + this.min = min; + } + + public FunnelResponseElapsedTime p5(Long p5) { + this.p5 = p5; + return this; + } + + /** + * Getp5 + * + * @return p5 + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_P5) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getP5() { + return p5; + } + + public void setP5(Long p5) { + this.p5 = p5; + } + + public FunnelResponseElapsedTime p50(Long p50) { + this.p50 = p50; + return this; + } + + /** + * Getp50 + * + * @return p50 + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_P50) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getP50() { + return p50; + } + + public void setP50(Long p50) { + this.p50 = p50; + } + + public FunnelResponseElapsedTime p95(Long p95) { + this.p95 = p95; + return this; + } + + /** + * Getp95 + * + * @return p95 + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_P95) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getP95() { + return p95; + } + + public void setP95(Long p95) { + this.p95 = p95; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelResponseElapsedTime + */ + @JsonAnySetter + public FunnelResponseElapsedTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelResponseElapsedTime object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelResponseElapsedTime funnelResponseElapsedTime = (FunnelResponseElapsedTime) o; + return Objects.equals(this.avg, funnelResponseElapsedTime.avg) + && Objects.equals(this.max, funnelResponseElapsedTime.max) + && Objects.equals(this.min, funnelResponseElapsedTime.min) + && Objects.equals(this.p5, funnelResponseElapsedTime.p5) + && Objects.equals(this.p50, funnelResponseElapsedTime.p50) + && Objects.equals(this.p95, funnelResponseElapsedTime.p95) + && Objects.equals( + this.additionalProperties, funnelResponseElapsedTime.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(avg, max, min, p5, p50, p95, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelResponseElapsedTime {\n"); + sb.append(" avg: ").append(toIndentedString(avg)).append("\n"); + sb.append(" max: ").append(toIndentedString(max)).append("\n"); + sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" p5: ").append(toIndentedString(p5)).append("\n"); + sb.append(" p50: ").append(toIndentedString(p50)).append("\n"); + sb.append(" p95: ").append(toIndentedString(p95)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequest.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequest.java new file mode 100644 index 00000000000..9c3cc1146cc --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequest.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelSuggestionRequest.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequest { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private FunnelSuggestionRequestData data; + + public FunnelSuggestionRequest data(FunnelSuggestionRequestData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionRequestData getData() { + return data; + } + + public void setData(FunnelSuggestionRequestData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequest + */ + @JsonAnySetter + public FunnelSuggestionRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequest funnelSuggestionRequest = (FunnelSuggestionRequest) o; + return Objects.equals(this.data, funnelSuggestionRequest.data) + && Objects.equals(this.additionalProperties, funnelSuggestionRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestData.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestData.java new file mode 100644 index 00000000000..07b161712f3 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestData.java @@ -0,0 +1,208 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionRequestData.JSON_PROPERTY_ATTRIBUTES, + FunnelSuggestionRequestData.JSON_PROPERTY_ID, + FunnelSuggestionRequestData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequestData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private FunnelSuggestionRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private FunnelSuggestionRequestDataType type = + FunnelSuggestionRequestDataType.FUNNEL_SUGGESTION_REQUEST; + + public FunnelSuggestionRequestData() {} + + @JsonCreator + public FunnelSuggestionRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) + FunnelSuggestionRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public FunnelSuggestionRequestData attributes(FunnelSuggestionRequestDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionRequestDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(FunnelSuggestionRequestDataAttributes attributes) { + this.attributes = attributes; + } + + public FunnelSuggestionRequestData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FunnelSuggestionRequestData type(FunnelSuggestionRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public FunnelSuggestionRequestDataType getType() { + return type; + } + + public void setType(FunnelSuggestionRequestDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequestData + */ + @JsonAnySetter + public FunnelSuggestionRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionRequestData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequestData funnelSuggestionRequestData = (FunnelSuggestionRequestData) o; + return Objects.equals(this.attributes, funnelSuggestionRequestData.attributes) + && Objects.equals(this.id, funnelSuggestionRequestData.id) + && Objects.equals(this.type, funnelSuggestionRequestData.type) + && Objects.equals( + this.additionalProperties, funnelSuggestionRequestData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequestData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributes.java new file mode 100644 index 00000000000..7de0ec6e80e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributes.java @@ -0,0 +1,226 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionRequestDataAttributes.JSON_PROPERTY_DATA_SOURCE, + FunnelSuggestionRequestDataAttributes.JSON_PROPERTY_SEARCH, + FunnelSuggestionRequestDataAttributes.JSON_PROPERTY_TERM_SEARCH, + FunnelSuggestionRequestDataAttributes.JSON_PROPERTY_TIME +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequestDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; + private String dataSource; + + public static final String JSON_PROPERTY_SEARCH = "search"; + private FunnelSuggestionRequestDataAttributesSearch search; + + public static final String JSON_PROPERTY_TERM_SEARCH = "term_search"; + private FunnelSuggestionRequestDataAttributesTermSearch termSearch; + + public static final String JSON_PROPERTY_TIME = "time"; + private FunnelSuggestionRequestDataAttributesTime time; + + public FunnelSuggestionRequestDataAttributes dataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * GetdataSource + * + * @return dataSource + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDataSource() { + return dataSource; + } + + public void setDataSource(String dataSource) { + this.dataSource = dataSource; + } + + public FunnelSuggestionRequestDataAttributes search( + FunnelSuggestionRequestDataAttributesSearch search) { + this.search = search; + this.unparsed |= search.unparsed; + return this; + } + + /** + * Getsearch + * + * @return search + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionRequestDataAttributesSearch getSearch() { + return search; + } + + public void setSearch(FunnelSuggestionRequestDataAttributesSearch search) { + this.search = search; + } + + public FunnelSuggestionRequestDataAttributes termSearch( + FunnelSuggestionRequestDataAttributesTermSearch termSearch) { + this.termSearch = termSearch; + this.unparsed |= termSearch.unparsed; + return this; + } + + /** + * GettermSearch + * + * @return termSearch + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TERM_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionRequestDataAttributesTermSearch getTermSearch() { + return termSearch; + } + + public void setTermSearch(FunnelSuggestionRequestDataAttributesTermSearch termSearch) { + this.termSearch = termSearch; + } + + public FunnelSuggestionRequestDataAttributes time( + FunnelSuggestionRequestDataAttributesTime time) { + this.time = time; + this.unparsed |= time.unparsed; + return this; + } + + /** + * Gettime + * + * @return time + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionRequestDataAttributesTime getTime() { + return time; + } + + public void setTime(FunnelSuggestionRequestDataAttributesTime time) { + this.time = time; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequestDataAttributes + */ + @JsonAnySetter + public FunnelSuggestionRequestDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionRequestDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequestDataAttributes funnelSuggestionRequestDataAttributes = + (FunnelSuggestionRequestDataAttributes) o; + return Objects.equals(this.dataSource, funnelSuggestionRequestDataAttributes.dataSource) + && Objects.equals(this.search, funnelSuggestionRequestDataAttributes.search) + && Objects.equals(this.termSearch, funnelSuggestionRequestDataAttributes.termSearch) + && Objects.equals(this.time, funnelSuggestionRequestDataAttributes.time) + && Objects.equals( + this.additionalProperties, funnelSuggestionRequestDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(dataSource, search, termSearch, time, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequestDataAttributes {\n"); + sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); + sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" termSearch: ").append(toIndentedString(termSearch)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesSearch.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesSearch.java new file mode 100644 index 00000000000..b56d5d2e190 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesSearch.java @@ -0,0 +1,239 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionRequestDataAttributesSearch.JSON_PROPERTY_CROSS_SESSION_FILTER, + FunnelSuggestionRequestDataAttributesSearch.JSON_PROPERTY_QUERY_STRING, + FunnelSuggestionRequestDataAttributesSearch.JSON_PROPERTY_STEPS, + FunnelSuggestionRequestDataAttributesSearch.JSON_PROPERTY_SUBQUERY_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequestDataAttributesSearch { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CROSS_SESSION_FILTER = "cross_session_filter"; + private String crossSessionFilter; + + public static final String JSON_PROPERTY_QUERY_STRING = "query_string"; + private String queryString; + + public static final String JSON_PROPERTY_STEPS = "steps"; + private List steps = null; + + public static final String JSON_PROPERTY_SUBQUERY_ID = "subquery_id"; + private String subqueryId; + + public FunnelSuggestionRequestDataAttributesSearch crossSessionFilter(String crossSessionFilter) { + this.crossSessionFilter = crossSessionFilter; + return this; + } + + /** + * GetcrossSessionFilter + * + * @return crossSessionFilter + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CROSS_SESSION_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCrossSessionFilter() { + return crossSessionFilter; + } + + public void setCrossSessionFilter(String crossSessionFilter) { + this.crossSessionFilter = crossSessionFilter; + } + + public FunnelSuggestionRequestDataAttributesSearch queryString(String queryString) { + this.queryString = queryString; + return this; + } + + /** + * GetqueryString + * + * @return queryString + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQueryString() { + return queryString; + } + + public void setQueryString(String queryString) { + this.queryString = queryString; + } + + public FunnelSuggestionRequestDataAttributesSearch steps( + List steps) { + this.steps = steps; + for (FunnelSuggestionRequestDataAttributesSearchStepsItems item : steps) { + this.unparsed |= item.unparsed; + } + return this; + } + + public FunnelSuggestionRequestDataAttributesSearch addStepsItem( + FunnelSuggestionRequestDataAttributesSearchStepsItems stepsItem) { + if (this.steps == null) { + this.steps = new ArrayList<>(); + } + this.steps.add(stepsItem); + this.unparsed |= stepsItem.unparsed; + return this; + } + + /** + * Getsteps + * + * @return steps + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STEPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSteps() { + return steps; + } + + public void setSteps(List steps) { + this.steps = steps; + } + + public FunnelSuggestionRequestDataAttributesSearch subqueryId(String subqueryId) { + this.subqueryId = subqueryId; + return this; + } + + /** + * GetsubqueryId + * + * @return subqueryId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBQUERY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSubqueryId() { + return subqueryId; + } + + public void setSubqueryId(String subqueryId) { + this.subqueryId = subqueryId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequestDataAttributesSearch + */ + @JsonAnySetter + public FunnelSuggestionRequestDataAttributesSearch putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionRequestDataAttributesSearch object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequestDataAttributesSearch funnelSuggestionRequestDataAttributesSearch = + (FunnelSuggestionRequestDataAttributesSearch) o; + return Objects.equals( + this.crossSessionFilter, funnelSuggestionRequestDataAttributesSearch.crossSessionFilter) + && Objects.equals(this.queryString, funnelSuggestionRequestDataAttributesSearch.queryString) + && Objects.equals(this.steps, funnelSuggestionRequestDataAttributesSearch.steps) + && Objects.equals(this.subqueryId, funnelSuggestionRequestDataAttributesSearch.subqueryId) + && Objects.equals( + this.additionalProperties, + funnelSuggestionRequestDataAttributesSearch.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(crossSessionFilter, queryString, steps, subqueryId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequestDataAttributesSearch {\n"); + sb.append(" crossSessionFilter: ").append(toIndentedString(crossSessionFilter)).append("\n"); + sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n"); + sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); + sb.append(" subqueryId: ").append(toIndentedString(subqueryId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesSearchStepsItems.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesSearchStepsItems.java new file mode 100644 index 00000000000..275cd9ef65d --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesSearchStepsItems.java @@ -0,0 +1,199 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionRequestDataAttributesSearchStepsItems.JSON_PROPERTY_FACET, + FunnelSuggestionRequestDataAttributesSearchStepsItems.JSON_PROPERTY_STEP_FILTER, + FunnelSuggestionRequestDataAttributesSearchStepsItems.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequestDataAttributesSearchStepsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FACET = "facet"; + private String facet; + + public static final String JSON_PROPERTY_STEP_FILTER = "step_filter"; + private String stepFilter; + + public static final String JSON_PROPERTY_VALUE = "value"; + private String value; + + public FunnelSuggestionRequestDataAttributesSearchStepsItems facet(String facet) { + this.facet = facet; + return this; + } + + /** + * Getfacet + * + * @return facet + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FACET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFacet() { + return facet; + } + + public void setFacet(String facet) { + this.facet = facet; + } + + public FunnelSuggestionRequestDataAttributesSearchStepsItems stepFilter(String stepFilter) { + this.stepFilter = stepFilter; + return this; + } + + /** + * GetstepFilter + * + * @return stepFilter + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STEP_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getStepFilter() { + return stepFilter; + } + + public void setStepFilter(String stepFilter) { + this.stepFilter = stepFilter; + } + + public FunnelSuggestionRequestDataAttributesSearchStepsItems value(String value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequestDataAttributesSearchStepsItems + */ + @JsonAnySetter + public FunnelSuggestionRequestDataAttributesSearchStepsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this FunnelSuggestionRequestDataAttributesSearchStepsItems object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequestDataAttributesSearchStepsItems + funnelSuggestionRequestDataAttributesSearchStepsItems = + (FunnelSuggestionRequestDataAttributesSearchStepsItems) o; + return Objects.equals(this.facet, funnelSuggestionRequestDataAttributesSearchStepsItems.facet) + && Objects.equals( + this.stepFilter, funnelSuggestionRequestDataAttributesSearchStepsItems.stepFilter) + && Objects.equals(this.value, funnelSuggestionRequestDataAttributesSearchStepsItems.value) + && Objects.equals( + this.additionalProperties, + funnelSuggestionRequestDataAttributesSearchStepsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(facet, stepFilter, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequestDataAttributesSearchStepsItems {\n"); + sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" stepFilter: ").append(toIndentedString(stepFilter)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesTermSearch.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesTermSearch.java new file mode 100644 index 00000000000..e1058a7afa7 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesTermSearch.java @@ -0,0 +1,140 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelSuggestionRequestDataAttributesTermSearch.JSON_PROPERTY_QUERY}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequestDataAttributesTermSearch { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public FunnelSuggestionRequestDataAttributesTermSearch query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequestDataAttributesTermSearch + */ + @JsonAnySetter + public FunnelSuggestionRequestDataAttributesTermSearch putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionRequestDataAttributesTermSearch object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequestDataAttributesTermSearch + funnelSuggestionRequestDataAttributesTermSearch = + (FunnelSuggestionRequestDataAttributesTermSearch) o; + return Objects.equals(this.query, funnelSuggestionRequestDataAttributesTermSearch.query) + && Objects.equals( + this.additionalProperties, + funnelSuggestionRequestDataAttributesTermSearch.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequestDataAttributesTermSearch {\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesTime.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesTime.java new file mode 100644 index 00000000000..5a8a8b6ad0c --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataAttributesTime.java @@ -0,0 +1,167 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionRequestDataAttributesTime.JSON_PROPERTY_FROM, + FunnelSuggestionRequestDataAttributesTime.JSON_PROPERTY_TO +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionRequestDataAttributesTime { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FROM = "from"; + private Long from; + + public static final String JSON_PROPERTY_TO = "to"; + private Long to; + + public FunnelSuggestionRequestDataAttributesTime from(Long from) { + this.from = from; + return this; + } + + /** + * Getfrom + * + * @return from + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getFrom() { + return from; + } + + public void setFrom(Long from) { + this.from = from; + } + + public FunnelSuggestionRequestDataAttributesTime to(Long to) { + this.to = to; + return this; + } + + /** + * Getto + * + * @return to + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getTo() { + return to; + } + + public void setTo(Long to) { + this.to = to; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionRequestDataAttributesTime + */ + @JsonAnySetter + public FunnelSuggestionRequestDataAttributesTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionRequestDataAttributesTime object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionRequestDataAttributesTime funnelSuggestionRequestDataAttributesTime = + (FunnelSuggestionRequestDataAttributesTime) o; + return Objects.equals(this.from, funnelSuggestionRequestDataAttributesTime.from) + && Objects.equals(this.to, funnelSuggestionRequestDataAttributesTime.to) + && Objects.equals( + this.additionalProperties, + funnelSuggestionRequestDataAttributesTime.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(from, to, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionRequestDataAttributesTime {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataType.java new file mode 100644 index 00000000000..49a38e1d8ca --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionRequestDataType.java @@ -0,0 +1,58 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize( + using = FunnelSuggestionRequestDataType.FunnelSuggestionRequestDataTypeSerializer.class) +public class FunnelSuggestionRequestDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("funnel_suggestion_request")); + + public static final FunnelSuggestionRequestDataType FUNNEL_SUGGESTION_REQUEST = + new FunnelSuggestionRequestDataType("funnel_suggestion_request"); + + FunnelSuggestionRequestDataType(String value) { + super(value, allowedValues); + } + + public static class FunnelSuggestionRequestDataTypeSerializer + extends StdSerializer { + public FunnelSuggestionRequestDataTypeSerializer(Class t) { + super(t); + } + + public FunnelSuggestionRequestDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + FunnelSuggestionRequestDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static FunnelSuggestionRequestDataType fromValue(String value) { + return new FunnelSuggestionRequestDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponse.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponse.java new file mode 100644 index 00000000000..248db494506 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponse.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelSuggestionResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private FunnelSuggestionResponseData data; + + public FunnelSuggestionResponse data(FunnelSuggestionResponseData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionResponseData getData() { + return data; + } + + public void setData(FunnelSuggestionResponseData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionResponse + */ + @JsonAnySetter + public FunnelSuggestionResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionResponse funnelSuggestionResponse = (FunnelSuggestionResponse) o; + return Objects.equals(this.data, funnelSuggestionResponse.data) + && Objects.equals(this.additionalProperties, funnelSuggestionResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseData.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseData.java new file mode 100644 index 00000000000..e07a58fd3c1 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseData.java @@ -0,0 +1,209 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionResponseData.JSON_PROPERTY_ATTRIBUTES, + FunnelSuggestionResponseData.JSON_PROPERTY_ID, + FunnelSuggestionResponseData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionResponseData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private FunnelSuggestionResponseDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private FunnelSuggestionResponseDataType type = + FunnelSuggestionResponseDataType.FUNNEL_SUGGESTION_RESPONSE; + + public FunnelSuggestionResponseData() {} + + @JsonCreator + public FunnelSuggestionResponseData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) + FunnelSuggestionResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public FunnelSuggestionResponseData attributes( + FunnelSuggestionResponseDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FunnelSuggestionResponseDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(FunnelSuggestionResponseDataAttributes attributes) { + this.attributes = attributes; + } + + public FunnelSuggestionResponseData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FunnelSuggestionResponseData type(FunnelSuggestionResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public FunnelSuggestionResponseDataType getType() { + return type; + } + + public void setType(FunnelSuggestionResponseDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionResponseData + */ + @JsonAnySetter + public FunnelSuggestionResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionResponseData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionResponseData funnelSuggestionResponseData = (FunnelSuggestionResponseData) o; + return Objects.equals(this.attributes, funnelSuggestionResponseData.attributes) + && Objects.equals(this.id, funnelSuggestionResponseData.id) + && Objects.equals(this.type, funnelSuggestionResponseData.type) + && Objects.equals( + this.additionalProperties, funnelSuggestionResponseData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionResponseData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributes.java new file mode 100644 index 00000000000..c32bd95ebd8 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributes.java @@ -0,0 +1,196 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + FunnelSuggestionResponseDataAttributes.JSON_PROPERTY_ACTIONS, + FunnelSuggestionResponseDataAttributes.JSON_PROPERTY_VIEWS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionResponseDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACTIONS = "actions"; + private List actions = null; + + public static final String JSON_PROPERTY_VIEWS = "views"; + private List views = null; + + public FunnelSuggestionResponseDataAttributes actions( + List actions) { + this.actions = actions; + for (FunnelSuggestionResponseDataAttributesActionsItems item : actions) { + this.unparsed |= item.unparsed; + } + return this; + } + + public FunnelSuggestionResponseDataAttributes addActionsItem( + FunnelSuggestionResponseDataAttributesActionsItems actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + this.unparsed |= actionsItem.unparsed; + return this; + } + + /** + * Getactions + * + * @return actions + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + + public FunnelSuggestionResponseDataAttributes views( + List views) { + this.views = views; + for (FunnelSuggestionResponseDataAttributesViewsItems item : views) { + this.unparsed |= item.unparsed; + } + return this; + } + + public FunnelSuggestionResponseDataAttributes addViewsItem( + FunnelSuggestionResponseDataAttributesViewsItems viewsItem) { + if (this.views == null) { + this.views = new ArrayList<>(); + } + this.views.add(viewsItem); + this.unparsed |= viewsItem.unparsed; + return this; + } + + /** + * Getviews + * + * @return views + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VIEWS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getViews() { + return views; + } + + public void setViews(List views) { + this.views = views; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionResponseDataAttributes + */ + @JsonAnySetter + public FunnelSuggestionResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionResponseDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionResponseDataAttributes funnelSuggestionResponseDataAttributes = + (FunnelSuggestionResponseDataAttributes) o; + return Objects.equals(this.actions, funnelSuggestionResponseDataAttributes.actions) + && Objects.equals(this.views, funnelSuggestionResponseDataAttributes.views) + && Objects.equals( + this.additionalProperties, funnelSuggestionResponseDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(actions, views, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionResponseDataAttributes {\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" views: ").append(toIndentedString(views)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributesActionsItems.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributesActionsItems.java new file mode 100644 index 00000000000..cb0c545313e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributesActionsItems.java @@ -0,0 +1,142 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelSuggestionResponseDataAttributesActionsItems.JSON_PROPERTY_NAME}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionResponseDataAttributesActionsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public FunnelSuggestionResponseDataAttributesActionsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionResponseDataAttributesActionsItems + */ + @JsonAnySetter + public FunnelSuggestionResponseDataAttributesActionsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this FunnelSuggestionResponseDataAttributesActionsItems object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionResponseDataAttributesActionsItems + funnelSuggestionResponseDataAttributesActionsItems = + (FunnelSuggestionResponseDataAttributesActionsItems) o; + return Objects.equals(this.name, funnelSuggestionResponseDataAttributesActionsItems.name) + && Objects.equals( + this.additionalProperties, + funnelSuggestionResponseDataAttributesActionsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionResponseDataAttributesActionsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributesViewsItems.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributesViewsItems.java new file mode 100644 index 00000000000..74e8efaaa85 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataAttributesViewsItems.java @@ -0,0 +1,140 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({FunnelSuggestionResponseDataAttributesViewsItems.JSON_PROPERTY_NAME}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class FunnelSuggestionResponseDataAttributesViewsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public FunnelSuggestionResponseDataAttributesViewsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return FunnelSuggestionResponseDataAttributesViewsItems + */ + @JsonAnySetter + public FunnelSuggestionResponseDataAttributesViewsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this FunnelSuggestionResponseDataAttributesViewsItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FunnelSuggestionResponseDataAttributesViewsItems + funnelSuggestionResponseDataAttributesViewsItems = + (FunnelSuggestionResponseDataAttributesViewsItems) o; + return Objects.equals(this.name, funnelSuggestionResponseDataAttributesViewsItems.name) + && Objects.equals( + this.additionalProperties, + funnelSuggestionResponseDataAttributesViewsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FunnelSuggestionResponseDataAttributesViewsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataType.java new file mode 100644 index 00000000000..b9a0554ec47 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/FunnelSuggestionResponseDataType.java @@ -0,0 +1,58 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize( + using = FunnelSuggestionResponseDataType.FunnelSuggestionResponseDataTypeSerializer.class) +public class FunnelSuggestionResponseDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("funnel_suggestion_response")); + + public static final FunnelSuggestionResponseDataType FUNNEL_SUGGESTION_RESPONSE = + new FunnelSuggestionResponseDataType("funnel_suggestion_response"); + + FunnelSuggestionResponseDataType(String value) { + super(value, allowedValues); + } + + public static class FunnelSuggestionResponseDataTypeSerializer + extends StdSerializer { + public FunnelSuggestionResponseDataTypeSerializer(Class t) { + super(t); + } + + public FunnelSuggestionResponseDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + FunnelSuggestionResponseDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static FunnelSuggestionResponseDataType fromValue(String value) { + return new FunnelSuggestionResponseDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequest.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequest.java new file mode 100644 index 00000000000..32641df9b13 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequest.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({GetCohortRequest.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequest { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private GetCohortRequestData data; + + public GetCohortRequest data(GetCohortRequestData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortRequestData getData() { + return data; + } + + public void setData(GetCohortRequestData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequest + */ + @JsonAnySetter + public GetCohortRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequest getCohortRequest = (GetCohortRequest) o; + return Objects.equals(this.data, getCohortRequest.data) + && Objects.equals(this.additionalProperties, getCohortRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestData.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestData.java new file mode 100644 index 00000000000..f15ea30268e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestData.JSON_PROPERTY_ATTRIBUTES, + GetCohortRequestData.JSON_PROPERTY_ID, + GetCohortRequestData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private GetCohortRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private GetCohortRequestDataType type = GetCohortRequestDataType.COHORT_REQUEST; + + public GetCohortRequestData() {} + + @JsonCreator + public GetCohortRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) GetCohortRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public GetCohortRequestData attributes(GetCohortRequestDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortRequestDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(GetCohortRequestDataAttributes attributes) { + this.attributes = attributes; + } + + public GetCohortRequestData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetCohortRequestData type(GetCohortRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GetCohortRequestDataType getType() { + return type; + } + + public void setType(GetCohortRequestDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestData + */ + @JsonAnySetter + public GetCohortRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortRequestData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestData getCohortRequestData = (GetCohortRequestData) o; + return Objects.equals(this.attributes, getCohortRequestData.attributes) + && Objects.equals(this.id, getCohortRequestData.id) + && Objects.equals(this.type, getCohortRequestData.type) + && Objects.equals(this.additionalProperties, getCohortRequestData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributes.java new file mode 100644 index 00000000000..28ddc8a5dc7 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributes.java @@ -0,0 +1,287 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributes.JSON_PROPERTY_DATA_SOURCE, + GetCohortRequestDataAttributes.JSON_PROPERTY_DEFINITION, + GetCohortRequestDataAttributes.JSON_PROPERTY_ENFORCED_EXECUTION_TYPE, + GetCohortRequestDataAttributes.JSON_PROPERTY_REQUEST_ID, + GetCohortRequestDataAttributes.JSON_PROPERTY_TIME, + GetCohortRequestDataAttributes.JSON_PROPERTY_WINDOW_SIZE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; + private String dataSource; + + public static final String JSON_PROPERTY_DEFINITION = "definition"; + private GetCohortRequestDataAttributesDefinition definition; + + public static final String JSON_PROPERTY_ENFORCED_EXECUTION_TYPE = "enforced_execution_type"; + private String enforcedExecutionType; + + public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; + private String requestId; + + public static final String JSON_PROPERTY_TIME = "time"; + private GetCohortRequestDataAttributesTime time; + + public static final String JSON_PROPERTY_WINDOW_SIZE = "window_size"; + private String windowSize; + + public GetCohortRequestDataAttributes dataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * GetdataSource + * + * @return dataSource + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDataSource() { + return dataSource; + } + + public void setDataSource(String dataSource) { + this.dataSource = dataSource; + } + + public GetCohortRequestDataAttributes definition( + GetCohortRequestDataAttributesDefinition definition) { + this.definition = definition; + this.unparsed |= definition.unparsed; + return this; + } + + /** + * Getdefinition + * + * @return definition + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEFINITION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortRequestDataAttributesDefinition getDefinition() { + return definition; + } + + public void setDefinition(GetCohortRequestDataAttributesDefinition definition) { + this.definition = definition; + } + + public GetCohortRequestDataAttributes enforcedExecutionType(String enforcedExecutionType) { + this.enforcedExecutionType = enforcedExecutionType; + return this; + } + + /** + * GetenforcedExecutionType + * + * @return enforcedExecutionType + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENFORCED_EXECUTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEnforcedExecutionType() { + return enforcedExecutionType; + } + + public void setEnforcedExecutionType(String enforcedExecutionType) { + this.enforcedExecutionType = enforcedExecutionType; + } + + public GetCohortRequestDataAttributes requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * GetrequestId + * + * @return requestId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public GetCohortRequestDataAttributes time(GetCohortRequestDataAttributesTime time) { + this.time = time; + this.unparsed |= time.unparsed; + return this; + } + + /** + * Gettime + * + * @return time + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortRequestDataAttributesTime getTime() { + return time; + } + + public void setTime(GetCohortRequestDataAttributesTime time) { + this.time = time; + } + + public GetCohortRequestDataAttributes windowSize(String windowSize) { + this.windowSize = windowSize; + return this; + } + + /** + * GetwindowSize + * + * @return windowSize + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WINDOW_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getWindowSize() { + return windowSize; + } + + public void setWindowSize(String windowSize) { + this.windowSize = windowSize; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributes + */ + @JsonAnySetter + public GetCohortRequestDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortRequestDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributes getCohortRequestDataAttributes = + (GetCohortRequestDataAttributes) o; + return Objects.equals(this.dataSource, getCohortRequestDataAttributes.dataSource) + && Objects.equals(this.definition, getCohortRequestDataAttributes.definition) + && Objects.equals( + this.enforcedExecutionType, getCohortRequestDataAttributes.enforcedExecutionType) + && Objects.equals(this.requestId, getCohortRequestDataAttributes.requestId) + && Objects.equals(this.time, getCohortRequestDataAttributes.time) + && Objects.equals(this.windowSize, getCohortRequestDataAttributes.windowSize) + && Objects.equals( + this.additionalProperties, getCohortRequestDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + dataSource, + definition, + enforcedExecutionType, + requestId, + time, + windowSize, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributes {\n"); + sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); + sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); + sb.append(" enforcedExecutionType: ") + .append(toIndentedString(enforcedExecutionType)) + .append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" windowSize: ").append(toIndentedString(windowSize)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinition.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinition.java new file mode 100644 index 00000000000..1a155323770 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinition.java @@ -0,0 +1,227 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributesDefinition.JSON_PROPERTY_AUDIENCE_FILTERS, + GetCohortRequestDataAttributesDefinition.JSON_PROPERTY_INCLUSION_SEARCH, + GetCohortRequestDataAttributesDefinition.JSON_PROPERTY_RETURN_SEARCH, + GetCohortRequestDataAttributesDefinition.JSON_PROPERTY_SEGMENT_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributesDefinition { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_AUDIENCE_FILTERS = "audience_filters"; + private GetCohortRequestDataAttributesDefinitionAudienceFilters audienceFilters; + + public static final String JSON_PROPERTY_INCLUSION_SEARCH = "inclusion_search"; + private String inclusionSearch; + + public static final String JSON_PROPERTY_RETURN_SEARCH = "return_search"; + private String returnSearch; + + public static final String JSON_PROPERTY_SEGMENT_ID = "segment_id"; + private String segmentId; + + public GetCohortRequestDataAttributesDefinition audienceFilters( + GetCohortRequestDataAttributesDefinitionAudienceFilters audienceFilters) { + this.audienceFilters = audienceFilters; + this.unparsed |= audienceFilters.unparsed; + return this; + } + + /** + * GetaudienceFilters + * + * @return audienceFilters + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUDIENCE_FILTERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortRequestDataAttributesDefinitionAudienceFilters getAudienceFilters() { + return audienceFilters; + } + + public void setAudienceFilters( + GetCohortRequestDataAttributesDefinitionAudienceFilters audienceFilters) { + this.audienceFilters = audienceFilters; + } + + public GetCohortRequestDataAttributesDefinition inclusionSearch(String inclusionSearch) { + this.inclusionSearch = inclusionSearch; + return this; + } + + /** + * GetinclusionSearch + * + * @return inclusionSearch + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCLUSION_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInclusionSearch() { + return inclusionSearch; + } + + public void setInclusionSearch(String inclusionSearch) { + this.inclusionSearch = inclusionSearch; + } + + public GetCohortRequestDataAttributesDefinition returnSearch(String returnSearch) { + this.returnSearch = returnSearch; + return this; + } + + /** + * GetreturnSearch + * + * @return returnSearch + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RETURN_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReturnSearch() { + return returnSearch; + } + + public void setReturnSearch(String returnSearch) { + this.returnSearch = returnSearch; + } + + public GetCohortRequestDataAttributesDefinition segmentId(String segmentId) { + this.segmentId = segmentId; + return this; + } + + /** + * GetsegmentId + * + * @return segmentId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEGMENT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSegmentId() { + return segmentId; + } + + public void setSegmentId(String segmentId) { + this.segmentId = segmentId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributesDefinition + */ + @JsonAnySetter + public GetCohortRequestDataAttributesDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortRequestDataAttributesDefinition object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributesDefinition getCohortRequestDataAttributesDefinition = + (GetCohortRequestDataAttributesDefinition) o; + return Objects.equals( + this.audienceFilters, getCohortRequestDataAttributesDefinition.audienceFilters) + && Objects.equals( + this.inclusionSearch, getCohortRequestDataAttributesDefinition.inclusionSearch) + && Objects.equals(this.returnSearch, getCohortRequestDataAttributesDefinition.returnSearch) + && Objects.equals(this.segmentId, getCohortRequestDataAttributesDefinition.segmentId) + && Objects.equals( + this.additionalProperties, + getCohortRequestDataAttributesDefinition.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + audienceFilters, inclusionSearch, returnSearch, segmentId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributesDefinition {\n"); + sb.append(" audienceFilters: ").append(toIndentedString(audienceFilters)).append("\n"); + sb.append(" inclusionSearch: ").append(toIndentedString(inclusionSearch)).append("\n"); + sb.append(" returnSearch: ").append(toIndentedString(returnSearch)).append("\n"); + sb.append(" segmentId: ").append(toIndentedString(segmentId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFilters.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFilters.java new file mode 100644 index 00000000000..3e8f93d47ab --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFilters.java @@ -0,0 +1,278 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_ACCOUNTS, + GetCohortRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_FORMULA, + GetCohortRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_SEGMENTS, + GetCohortRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_USERS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributesDefinitionAudienceFilters { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + private List accounts = + null; + + public static final String JSON_PROPERTY_FORMULA = "formula"; + private String formula; + + public static final String JSON_PROPERTY_SEGMENTS = "segments"; + private List segments = + null; + + public static final String JSON_PROPERTY_USERS = "users"; + private List users = null; + + public GetCohortRequestDataAttributesDefinitionAudienceFilters accounts( + List accounts) { + this.accounts = accounts; + for (GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems item : accounts) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFilters addAccountsItem( + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems accountsItem) { + if (this.accounts == null) { + this.accounts = new ArrayList<>(); + } + this.accounts.add(accountsItem); + this.unparsed |= accountsItem.unparsed; + return this; + } + + /** + * Getaccounts + * + * @return accounts + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAccounts() { + return accounts; + } + + public void setAccounts( + List accounts) { + this.accounts = accounts; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFilters formula(String formula) { + this.formula = formula; + return this; + } + + /** + * Getformula + * + * @return formula + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FORMULA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFormula() { + return formula; + } + + public void setFormula(String formula) { + this.formula = formula; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFilters segments( + List segments) { + this.segments = segments; + for (GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems item : segments) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFilters addSegmentsItem( + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems segmentsItem) { + if (this.segments == null) { + this.segments = new ArrayList<>(); + } + this.segments.add(segmentsItem); + this.unparsed |= segmentsItem.unparsed; + return this; + } + + /** + * Getsegments + * + * @return segments + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEGMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSegments() { + return segments; + } + + public void setSegments( + List segments) { + this.segments = segments; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFilters users( + List users) { + this.users = users; + for (GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems item : users) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFilters addUsersItem( + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + this.unparsed |= usersItem.unparsed; + return this; + } + + /** + * Getusers + * + * @return users + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUsers() { + return users; + } + + public void setUsers( + List users) { + this.users = users; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributesDefinitionAudienceFilters + */ + @JsonAnySetter + public GetCohortRequestDataAttributesDefinitionAudienceFilters putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortRequestDataAttributesDefinitionAudienceFilters object is equal to + * o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributesDefinitionAudienceFilters + getCohortRequestDataAttributesDefinitionAudienceFilters = + (GetCohortRequestDataAttributesDefinitionAudienceFilters) o; + return Objects.equals( + this.accounts, getCohortRequestDataAttributesDefinitionAudienceFilters.accounts) + && Objects.equals( + this.formula, getCohortRequestDataAttributesDefinitionAudienceFilters.formula) + && Objects.equals( + this.segments, getCohortRequestDataAttributesDefinitionAudienceFilters.segments) + && Objects.equals(this.users, getCohortRequestDataAttributesDefinitionAudienceFilters.users) + && Objects.equals( + this.additionalProperties, + getCohortRequestDataAttributesDefinitionAudienceFilters.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(accounts, formula, segments, users, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributesDefinitionAudienceFilters {\n"); + sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); + sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); + sb.append(" segments: ").append(toIndentedString(segments)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.java new file mode 100644 index 00000000000..1e356a2ef13 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.java @@ -0,0 +1,183 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.JSON_PROPERTY_NAME, + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems() {} + + @JsonCreator + public GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.name = name; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems + */ + @JsonAnySetter + public GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems object + * is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems + getCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems = + (GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems) o; + return Objects.equals( + this.name, getCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.name) + && Objects.equals( + this.query, getCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems.query) + && Objects.equals( + this.additionalProperties, + getCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributesDefinitionAudienceFiltersAccountsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.java new file mode 100644 index 00000000000..40273e44f6b --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.java @@ -0,0 +1,186 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.JSON_PROPERTY_NAME, + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.JSON_PROPERTY_SEGMENT_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SEGMENT_ID = "segment_id"; + private String segmentId; + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems() {} + + @JsonCreator + public GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name, + @JsonProperty(required = true, value = JSON_PROPERTY_SEGMENT_ID) String segmentId) { + this.name = name; + this.segmentId = segmentId; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems segmentId( + String segmentId) { + this.segmentId = segmentId; + return this; + } + + /** + * GetsegmentId + * + * @return segmentId + */ + @JsonProperty(JSON_PROPERTY_SEGMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getSegmentId() { + return segmentId; + } + + public void setSegmentId(String segmentId) { + this.segmentId = segmentId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + */ + @JsonAnySetter + public GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems object + * is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + getCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems = + (GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems) o; + return Objects.equals( + this.name, getCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.name) + && Objects.equals( + this.segmentId, + getCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.segmentId) + && Objects.equals( + this.additionalProperties, + getCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, segmentId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributesDefinitionAudienceFiltersSegmentsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" segmentId: ").append(toIndentedString(segmentId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.java new file mode 100644 index 00000000000..2cae14222fc --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.java @@ -0,0 +1,182 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.JSON_PROPERTY_NAME, + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems() {} + + @JsonCreator + public GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.name = name; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems + */ + @JsonAnySetter + public GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems object is + * equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems + getCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems = + (GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems) o; + return Objects.equals( + this.name, getCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.name) + && Objects.equals( + this.query, getCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.query) + && Objects.equals( + this.additionalProperties, + getCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributesDefinitionAudienceFiltersUsersItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesTime.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesTime.java new file mode 100644 index 00000000000..8cc04521e92 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataAttributesTime.java @@ -0,0 +1,166 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortRequestDataAttributesTime.JSON_PROPERTY_FROM, + GetCohortRequestDataAttributesTime.JSON_PROPERTY_TO +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortRequestDataAttributesTime { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FROM = "from"; + private Long from; + + public static final String JSON_PROPERTY_TO = "to"; + private Long to; + + public GetCohortRequestDataAttributesTime from(Long from) { + this.from = from; + return this; + } + + /** + * Getfrom + * + * @return from + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getFrom() { + return from; + } + + public void setFrom(Long from) { + this.from = from; + } + + public GetCohortRequestDataAttributesTime to(Long to) { + this.to = to; + return this; + } + + /** + * Getto + * + * @return to + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getTo() { + return to; + } + + public void setTo(Long to) { + this.to = to; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortRequestDataAttributesTime + */ + @JsonAnySetter + public GetCohortRequestDataAttributesTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortRequestDataAttributesTime object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortRequestDataAttributesTime getCohortRequestDataAttributesTime = + (GetCohortRequestDataAttributesTime) o; + return Objects.equals(this.from, getCohortRequestDataAttributesTime.from) + && Objects.equals(this.to, getCohortRequestDataAttributesTime.to) + && Objects.equals( + this.additionalProperties, getCohortRequestDataAttributesTime.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(from, to, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortRequestDataAttributesTime {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataType.java new file mode 100644 index 00000000000..dee8be78752 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortRequestDataType.java @@ -0,0 +1,57 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = GetCohortRequestDataType.GetCohortRequestDataTypeSerializer.class) +public class GetCohortRequestDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("cohort_request")); + + public static final GetCohortRequestDataType COHORT_REQUEST = + new GetCohortRequestDataType("cohort_request"); + + GetCohortRequestDataType(String value) { + super(value, allowedValues); + } + + public static class GetCohortRequestDataTypeSerializer + extends StdSerializer { + public GetCohortRequestDataTypeSerializer(Class t) { + super(t); + } + + public GetCohortRequestDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + GetCohortRequestDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static GetCohortRequestDataType fromValue(String value) { + return new GetCohortRequestDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortResponse.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponse.java new file mode 100644 index 00000000000..6b73e1f806c --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponse.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({GetCohortResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private GetCohortResponseData data; + + public GetCohortResponse data(GetCohortResponseData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortResponseData getData() { + return data; + } + + public void setData(GetCohortResponseData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortResponse + */ + @JsonAnySetter + public GetCohortResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortResponse getCohortResponse = (GetCohortResponse) o; + return Objects.equals(this.data, getCohortResponse.data) + && Objects.equals(this.additionalProperties, getCohortResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseData.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseData.java new file mode 100644 index 00000000000..ac52ce35a8b --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortResponseData.JSON_PROPERTY_ATTRIBUTES, + GetCohortResponseData.JSON_PROPERTY_ID, + GetCohortResponseData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortResponseData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private GetCohortResponseDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private GetCohortResponseDataType type = GetCohortResponseDataType.COHORT_RESPONSE; + + public GetCohortResponseData() {} + + @JsonCreator + public GetCohortResponseData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) GetCohortResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public GetCohortResponseData attributes(GetCohortResponseDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortResponseDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(GetCohortResponseDataAttributes attributes) { + this.attributes = attributes; + } + + public GetCohortResponseData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetCohortResponseData type(GetCohortResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GetCohortResponseDataType getType() { + return type; + } + + public void setType(GetCohortResponseDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortResponseData + */ + @JsonAnySetter + public GetCohortResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortResponseData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortResponseData getCohortResponseData = (GetCohortResponseData) o; + return Objects.equals(this.attributes, getCohortResponseData.attributes) + && Objects.equals(this.id, getCohortResponseData.id) + && Objects.equals(this.type, getCohortResponseData.type) + && Objects.equals(this.additionalProperties, getCohortResponseData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortResponseData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributes.java new file mode 100644 index 00000000000..9d5d6813801 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributes.java @@ -0,0 +1,153 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({GetCohortResponseDataAttributes.JSON_PROPERTY_COHORTS}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortResponseDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COHORTS = "cohorts"; + private List cohorts = null; + + public GetCohortResponseDataAttributes cohorts( + List cohorts) { + this.cohorts = cohorts; + for (GetCohortResponseDataAttributesCohortsItems item : cohorts) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortResponseDataAttributes addCohortsItem( + GetCohortResponseDataAttributesCohortsItems cohortsItem) { + if (this.cohorts == null) { + this.cohorts = new ArrayList<>(); + } + this.cohorts.add(cohortsItem); + this.unparsed |= cohortsItem.unparsed; + return this; + } + + /** + * Getcohorts + * + * @return cohorts + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COHORTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getCohorts() { + return cohorts; + } + + public void setCohorts(List cohorts) { + this.cohorts = cohorts; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortResponseDataAttributes + */ + @JsonAnySetter + public GetCohortResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortResponseDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortResponseDataAttributes getCohortResponseDataAttributes = + (GetCohortResponseDataAttributes) o; + return Objects.equals(this.cohorts, getCohortResponseDataAttributes.cohorts) + && Objects.equals( + this.additionalProperties, getCohortResponseDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(cohorts, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortResponseDataAttributes {\n"); + sb.append(" cohorts: ").append(toIndentedString(cohorts)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributesCohortsItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributesCohortsItems.java new file mode 100644 index 00000000000..5c14af7da43 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributesCohortsItems.java @@ -0,0 +1,238 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortResponseDataAttributesCohortsItems.JSON_PROPERTY_COHORT, + GetCohortResponseDataAttributesCohortsItems.JSON_PROPERTY_COHORT_SIZE, + GetCohortResponseDataAttributesCohortsItems.JSON_PROPERTY_START_TIME, + GetCohortResponseDataAttributesCohortsItems.JSON_PROPERTY_VALUES +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortResponseDataAttributesCohortsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COHORT = "cohort"; + private String cohort; + + public static final String JSON_PROPERTY_COHORT_SIZE = "cohort_size"; + private Long cohortSize; + + public static final String JSON_PROPERTY_START_TIME = "start_time"; + private Long startTime; + + public static final String JSON_PROPERTY_VALUES = "values"; + private List values = null; + + public GetCohortResponseDataAttributesCohortsItems cohort(String cohort) { + this.cohort = cohort; + return this; + } + + /** + * Getcohort + * + * @return cohort + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COHORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCohort() { + return cohort; + } + + public void setCohort(String cohort) { + this.cohort = cohort; + } + + public GetCohortResponseDataAttributesCohortsItems cohortSize(Long cohortSize) { + this.cohortSize = cohortSize; + return this; + } + + /** + * GetcohortSize + * + * @return cohortSize + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COHORT_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getCohortSize() { + return cohortSize; + } + + public void setCohortSize(Long cohortSize) { + this.cohortSize = cohortSize; + } + + public GetCohortResponseDataAttributesCohortsItems startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * GetstartTime + * + * @return startTime + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_START_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public GetCohortResponseDataAttributesCohortsItems values( + List values) { + this.values = values; + for (GetCohortResponseDataAttributesCohortsItemsValuesItems item : values) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortResponseDataAttributesCohortsItems addValuesItem( + GetCohortResponseDataAttributesCohortsItemsValuesItems valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + this.unparsed |= valuesItem.unparsed; + return this; + } + + /** + * Getvalues + * + * @return values + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortResponseDataAttributesCohortsItems + */ + @JsonAnySetter + public GetCohortResponseDataAttributesCohortsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortResponseDataAttributesCohortsItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortResponseDataAttributesCohortsItems getCohortResponseDataAttributesCohortsItems = + (GetCohortResponseDataAttributesCohortsItems) o; + return Objects.equals(this.cohort, getCohortResponseDataAttributesCohortsItems.cohort) + && Objects.equals(this.cohortSize, getCohortResponseDataAttributesCohortsItems.cohortSize) + && Objects.equals(this.startTime, getCohortResponseDataAttributesCohortsItems.startTime) + && Objects.equals(this.values, getCohortResponseDataAttributesCohortsItems.values) + && Objects.equals( + this.additionalProperties, + getCohortResponseDataAttributesCohortsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(cohort, cohortSize, startTime, values, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortResponseDataAttributesCohortsItems {\n"); + sb.append(" cohort: ").append(toIndentedString(cohort)).append("\n"); + sb.append(" cohortSize: ").append(toIndentedString(cohortSize)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributesCohortsItemsValuesItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributesCohortsItemsValuesItems.java new file mode 100644 index 00000000000..5dcabc6c654 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataAttributesCohortsItemsValuesItems.java @@ -0,0 +1,262 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortResponseDataAttributesCohortsItemsValuesItems.JSON_PROPERTY_ABSOLUTE_VALUE, + GetCohortResponseDataAttributesCohortsItemsValuesItems.JSON_PROPERTY_END_TIME, + GetCohortResponseDataAttributesCohortsItemsValuesItems.JSON_PROPERTY_RELATIVE_VALUE, + GetCohortResponseDataAttributesCohortsItemsValuesItems.JSON_PROPERTY_START_TIME, + GetCohortResponseDataAttributesCohortsItemsValuesItems.JSON_PROPERTY_WINDOW +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortResponseDataAttributesCohortsItemsValuesItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ABSOLUTE_VALUE = "absolute_value"; + private Long absoluteValue; + + public static final String JSON_PROPERTY_END_TIME = "end_time"; + private Long endTime; + + public static final String JSON_PROPERTY_RELATIVE_VALUE = "relative_value"; + private Double relativeValue; + + public static final String JSON_PROPERTY_START_TIME = "start_time"; + private Long startTime; + + public static final String JSON_PROPERTY_WINDOW = "window"; + private Long window; + + public GetCohortResponseDataAttributesCohortsItemsValuesItems absoluteValue(Long absoluteValue) { + this.absoluteValue = absoluteValue; + return this; + } + + /** + * GetabsoluteValue + * + * @return absoluteValue + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ABSOLUTE_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getAbsoluteValue() { + return absoluteValue; + } + + public void setAbsoluteValue(Long absoluteValue) { + this.absoluteValue = absoluteValue; + } + + public GetCohortResponseDataAttributesCohortsItemsValuesItems endTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * GetendTime + * + * @return endTime + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_END_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public GetCohortResponseDataAttributesCohortsItemsValuesItems relativeValue( + Double relativeValue) { + this.relativeValue = relativeValue; + return this; + } + + /** + * GetrelativeValue + * + * @return relativeValue + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RELATIVE_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getRelativeValue() { + return relativeValue; + } + + public void setRelativeValue(Double relativeValue) { + this.relativeValue = relativeValue; + } + + public GetCohortResponseDataAttributesCohortsItemsValuesItems startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * GetstartTime + * + * @return startTime + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_START_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public GetCohortResponseDataAttributesCohortsItemsValuesItems window(Long window) { + this.window = window; + return this; + } + + /** + * Getwindow + * + * @return window + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WINDOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getWindow() { + return window; + } + + public void setWindow(Long window) { + this.window = window; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortResponseDataAttributesCohortsItemsValuesItems + */ + @JsonAnySetter + public GetCohortResponseDataAttributesCohortsItemsValuesItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortResponseDataAttributesCohortsItemsValuesItems object is equal to + * o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortResponseDataAttributesCohortsItemsValuesItems + getCohortResponseDataAttributesCohortsItemsValuesItems = + (GetCohortResponseDataAttributesCohortsItemsValuesItems) o; + return Objects.equals( + this.absoluteValue, + getCohortResponseDataAttributesCohortsItemsValuesItems.absoluteValue) + && Objects.equals( + this.endTime, getCohortResponseDataAttributesCohortsItemsValuesItems.endTime) + && Objects.equals( + this.relativeValue, + getCohortResponseDataAttributesCohortsItemsValuesItems.relativeValue) + && Objects.equals( + this.startTime, getCohortResponseDataAttributesCohortsItemsValuesItems.startTime) + && Objects.equals( + this.window, getCohortResponseDataAttributesCohortsItemsValuesItems.window) + && Objects.equals( + this.additionalProperties, + getCohortResponseDataAttributesCohortsItemsValuesItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + absoluteValue, endTime, relativeValue, startTime, window, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortResponseDataAttributesCohortsItemsValuesItems {\n"); + sb.append(" absoluteValue: ").append(toIndentedString(absoluteValue)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" relativeValue: ").append(toIndentedString(relativeValue)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" window: ").append(toIndentedString(window)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataType.java new file mode 100644 index 00000000000..ac7313b90f9 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortResponseDataType.java @@ -0,0 +1,57 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = GetCohortResponseDataType.GetCohortResponseDataTypeSerializer.class) +public class GetCohortResponseDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("cohort_response")); + + public static final GetCohortResponseDataType COHORT_RESPONSE = + new GetCohortResponseDataType("cohort_response"); + + GetCohortResponseDataType(String value) { + super(value, allowedValues); + } + + public static class GetCohortResponseDataTypeSerializer + extends StdSerializer { + public GetCohortResponseDataTypeSerializer(Class t) { + super(t); + } + + public GetCohortResponseDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + GetCohortResponseDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static GetCohortResponseDataType fromValue(String value) { + return new GetCohortResponseDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequest.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequest.java new file mode 100644 index 00000000000..d365f32ad86 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequest.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({GetCohortUsersRequest.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequest { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private GetCohortUsersRequestData data; + + public GetCohortUsersRequest data(GetCohortUsersRequestData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersRequestData getData() { + return data; + } + + public void setData(GetCohortUsersRequestData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequest + */ + @JsonAnySetter + public GetCohortUsersRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequest getCohortUsersRequest = (GetCohortUsersRequest) o; + return Objects.equals(this.data, getCohortUsersRequest.data) + && Objects.equals(this.additionalProperties, getCohortUsersRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestData.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestData.java new file mode 100644 index 00000000000..18036c00a9b --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestData.java @@ -0,0 +1,207 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestData.JSON_PROPERTY_ATTRIBUTES, + GetCohortUsersRequestData.JSON_PROPERTY_ID, + GetCohortUsersRequestData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private GetCohortUsersRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private GetCohortUsersRequestDataType type = GetCohortUsersRequestDataType.COHORT_USERS_REQUEST; + + public GetCohortUsersRequestData() {} + + @JsonCreator + public GetCohortUsersRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) + GetCohortUsersRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public GetCohortUsersRequestData attributes(GetCohortUsersRequestDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersRequestDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(GetCohortUsersRequestDataAttributes attributes) { + this.attributes = attributes; + } + + public GetCohortUsersRequestData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetCohortUsersRequestData type(GetCohortUsersRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GetCohortUsersRequestDataType getType() { + return type; + } + + public void setType(GetCohortUsersRequestDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestData + */ + @JsonAnySetter + public GetCohortUsersRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersRequestData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestData getCohortUsersRequestData = (GetCohortUsersRequestData) o; + return Objects.equals(this.attributes, getCohortUsersRequestData.attributes) + && Objects.equals(this.id, getCohortUsersRequestData.id) + && Objects.equals(this.type, getCohortUsersRequestData.type) + && Objects.equals( + this.additionalProperties, getCohortUsersRequestData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequestData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributes.java new file mode 100644 index 00000000000..b2f09e6fb91 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributes.java @@ -0,0 +1,278 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributes.JSON_PROPERTY_DATA_SOURCE, + GetCohortUsersRequestDataAttributes.JSON_PROPERTY_DEFINITION, + GetCohortUsersRequestDataAttributes.JSON_PROPERTY_EXECUTION, + GetCohortUsersRequestDataAttributes.JSON_PROPERTY_TIME, + GetCohortUsersRequestDataAttributes.JSON_PROPERTY_USER_SELECTION, + GetCohortUsersRequestDataAttributes.JSON_PROPERTY_WINDOW_SIZE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; + private String dataSource; + + public static final String JSON_PROPERTY_DEFINITION = "definition"; + private GetCohortUsersRequestDataAttributesDefinition definition; + + public static final String JSON_PROPERTY_EXECUTION = "execution"; + private Long execution; + + public static final String JSON_PROPERTY_TIME = "time"; + private GetCohortUsersRequestDataAttributesTime time; + + public static final String JSON_PROPERTY_USER_SELECTION = "user_selection"; + private String userSelection; + + public static final String JSON_PROPERTY_WINDOW_SIZE = "window_size"; + private String windowSize; + + public GetCohortUsersRequestDataAttributes dataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * GetdataSource + * + * @return dataSource + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDataSource() { + return dataSource; + } + + public void setDataSource(String dataSource) { + this.dataSource = dataSource; + } + + public GetCohortUsersRequestDataAttributes definition( + GetCohortUsersRequestDataAttributesDefinition definition) { + this.definition = definition; + this.unparsed |= definition.unparsed; + return this; + } + + /** + * Getdefinition + * + * @return definition + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEFINITION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersRequestDataAttributesDefinition getDefinition() { + return definition; + } + + public void setDefinition(GetCohortUsersRequestDataAttributesDefinition definition) { + this.definition = definition; + } + + public GetCohortUsersRequestDataAttributes execution(Long execution) { + this.execution = execution; + return this; + } + + /** + * Getexecution + * + * @return execution + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXECUTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getExecution() { + return execution; + } + + public void setExecution(Long execution) { + this.execution = execution; + } + + public GetCohortUsersRequestDataAttributes time(GetCohortUsersRequestDataAttributesTime time) { + this.time = time; + this.unparsed |= time.unparsed; + return this; + } + + /** + * Gettime + * + * @return time + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersRequestDataAttributesTime getTime() { + return time; + } + + public void setTime(GetCohortUsersRequestDataAttributesTime time) { + this.time = time; + } + + public GetCohortUsersRequestDataAttributes userSelection(String userSelection) { + this.userSelection = userSelection; + return this; + } + + /** + * GetuserSelection + * + * @return userSelection + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USER_SELECTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUserSelection() { + return userSelection; + } + + public void setUserSelection(String userSelection) { + this.userSelection = userSelection; + } + + public GetCohortUsersRequestDataAttributes windowSize(String windowSize) { + this.windowSize = windowSize; + return this; + } + + /** + * GetwindowSize + * + * @return windowSize + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WINDOW_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getWindowSize() { + return windowSize; + } + + public void setWindowSize(String windowSize) { + this.windowSize = windowSize; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributes + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersRequestDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributes getCohortUsersRequestDataAttributes = + (GetCohortUsersRequestDataAttributes) o; + return Objects.equals(this.dataSource, getCohortUsersRequestDataAttributes.dataSource) + && Objects.equals(this.definition, getCohortUsersRequestDataAttributes.definition) + && Objects.equals(this.execution, getCohortUsersRequestDataAttributes.execution) + && Objects.equals(this.time, getCohortUsersRequestDataAttributes.time) + && Objects.equals(this.userSelection, getCohortUsersRequestDataAttributes.userSelection) + && Objects.equals(this.windowSize, getCohortUsersRequestDataAttributes.windowSize) + && Objects.equals( + this.additionalProperties, getCohortUsersRequestDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + dataSource, definition, execution, time, userSelection, windowSize, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequestDataAttributes {\n"); + sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); + sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); + sb.append(" execution: ").append(toIndentedString(execution)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" userSelection: ").append(toIndentedString(userSelection)).append("\n"); + sb.append(" windowSize: ").append(toIndentedString(windowSize)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinition.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinition.java new file mode 100644 index 00000000000..4d1e8fe1574 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinition.java @@ -0,0 +1,289 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributesDefinition.JSON_PROPERTY_AUDIENCE_FILTERS, + GetCohortUsersRequestDataAttributesDefinition.JSON_PROPERTY_COHORT, + GetCohortUsersRequestDataAttributesDefinition.JSON_PROPERTY_INCLUSION_SEARCH, + GetCohortUsersRequestDataAttributesDefinition.JSON_PROPERTY_RETURN_SEARCH, + GetCohortUsersRequestDataAttributesDefinition.JSON_PROPERTY_SEGMENT_ID, + GetCohortUsersRequestDataAttributesDefinition.JSON_PROPERTY_WINDOW +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributesDefinition { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_AUDIENCE_FILTERS = "audience_filters"; + private GetCohortUsersRequestDataAttributesDefinitionAudienceFilters audienceFilters; + + public static final String JSON_PROPERTY_COHORT = "cohort"; + private String cohort; + + public static final String JSON_PROPERTY_INCLUSION_SEARCH = "inclusion_search"; + private String inclusionSearch; + + public static final String JSON_PROPERTY_RETURN_SEARCH = "return_search"; + private String returnSearch; + + public static final String JSON_PROPERTY_SEGMENT_ID = "segment_id"; + private String segmentId; + + public static final String JSON_PROPERTY_WINDOW = "window"; + private Long window; + + public GetCohortUsersRequestDataAttributesDefinition audienceFilters( + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters audienceFilters) { + this.audienceFilters = audienceFilters; + this.unparsed |= audienceFilters.unparsed; + return this; + } + + /** + * GetaudienceFilters + * + * @return audienceFilters + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUDIENCE_FILTERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters getAudienceFilters() { + return audienceFilters; + } + + public void setAudienceFilters( + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters audienceFilters) { + this.audienceFilters = audienceFilters; + } + + public GetCohortUsersRequestDataAttributesDefinition cohort(String cohort) { + this.cohort = cohort; + return this; + } + + /** + * Getcohort + * + * @return cohort + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COHORT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCohort() { + return cohort; + } + + public void setCohort(String cohort) { + this.cohort = cohort; + } + + public GetCohortUsersRequestDataAttributesDefinition inclusionSearch(String inclusionSearch) { + this.inclusionSearch = inclusionSearch; + return this; + } + + /** + * GetinclusionSearch + * + * @return inclusionSearch + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCLUSION_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInclusionSearch() { + return inclusionSearch; + } + + public void setInclusionSearch(String inclusionSearch) { + this.inclusionSearch = inclusionSearch; + } + + public GetCohortUsersRequestDataAttributesDefinition returnSearch(String returnSearch) { + this.returnSearch = returnSearch; + return this; + } + + /** + * GetreturnSearch + * + * @return returnSearch + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RETURN_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReturnSearch() { + return returnSearch; + } + + public void setReturnSearch(String returnSearch) { + this.returnSearch = returnSearch; + } + + public GetCohortUsersRequestDataAttributesDefinition segmentId(String segmentId) { + this.segmentId = segmentId; + return this; + } + + /** + * GetsegmentId + * + * @return segmentId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEGMENT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSegmentId() { + return segmentId; + } + + public void setSegmentId(String segmentId) { + this.segmentId = segmentId; + } + + public GetCohortUsersRequestDataAttributesDefinition window(Long window) { + this.window = window; + return this; + } + + /** + * Getwindow + * + * @return window + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WINDOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getWindow() { + return window; + } + + public void setWindow(Long window) { + this.window = window; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributesDefinition + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributesDefinition putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersRequestDataAttributesDefinition object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributesDefinition getCohortUsersRequestDataAttributesDefinition = + (GetCohortUsersRequestDataAttributesDefinition) o; + return Objects.equals( + this.audienceFilters, getCohortUsersRequestDataAttributesDefinition.audienceFilters) + && Objects.equals(this.cohort, getCohortUsersRequestDataAttributesDefinition.cohort) + && Objects.equals( + this.inclusionSearch, getCohortUsersRequestDataAttributesDefinition.inclusionSearch) + && Objects.equals( + this.returnSearch, getCohortUsersRequestDataAttributesDefinition.returnSearch) + && Objects.equals(this.segmentId, getCohortUsersRequestDataAttributesDefinition.segmentId) + && Objects.equals(this.window, getCohortUsersRequestDataAttributesDefinition.window) + && Objects.equals( + this.additionalProperties, + getCohortUsersRequestDataAttributesDefinition.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + audienceFilters, + cohort, + inclusionSearch, + returnSearch, + segmentId, + window, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequestDataAttributesDefinition {\n"); + sb.append(" audienceFilters: ").append(toIndentedString(audienceFilters)).append("\n"); + sb.append(" cohort: ").append(toIndentedString(cohort)).append("\n"); + sb.append(" inclusionSearch: ").append(toIndentedString(inclusionSearch)).append("\n"); + sb.append(" returnSearch: ").append(toIndentedString(returnSearch)).append("\n"); + sb.append(" segmentId: ").append(toIndentedString(segmentId)).append("\n"); + sb.append(" window: ").append(toIndentedString(window)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.java new file mode 100644 index 00000000000..acbe566f98d --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.java @@ -0,0 +1,283 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_ACCOUNTS, + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_FORMULA, + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_SEGMENTS, + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters.JSON_PROPERTY_USERS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributesDefinitionAudienceFilters { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + private List accounts = + null; + + public static final String JSON_PROPERTY_FORMULA = "formula"; + private String formula; + + public static final String JSON_PROPERTY_SEGMENTS = "segments"; + private List segments = + null; + + public static final String JSON_PROPERTY_USERS = "users"; + private List users = null; + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters accounts( + List accounts) { + this.accounts = accounts; + for (GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems item : + accounts) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters addAccountsItem( + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems accountsItem) { + if (this.accounts == null) { + this.accounts = new ArrayList<>(); + } + this.accounts.add(accountsItem); + this.unparsed |= accountsItem.unparsed; + return this; + } + + /** + * Getaccounts + * + * @return accounts + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List + getAccounts() { + return accounts; + } + + public void setAccounts( + List accounts) { + this.accounts = accounts; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters formula(String formula) { + this.formula = formula; + return this; + } + + /** + * Getformula + * + * @return formula + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FORMULA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFormula() { + return formula; + } + + public void setFormula(String formula) { + this.formula = formula; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters segments( + List segments) { + this.segments = segments; + for (GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems item : + segments) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters addSegmentsItem( + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems segmentsItem) { + if (this.segments == null) { + this.segments = new ArrayList<>(); + } + this.segments.add(segmentsItem); + this.unparsed |= segmentsItem.unparsed; + return this; + } + + /** + * Getsegments + * + * @return segments + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEGMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List + getSegments() { + return segments; + } + + public void setSegments( + List segments) { + this.segments = segments; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters users( + List users) { + this.users = users; + for (GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems item : users) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters addUsersItem( + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + this.unparsed |= usersItem.unparsed; + return this; + } + + /** + * Getusers + * + * @return users + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUsers() { + return users; + } + + public void setUsers( + List users) { + this.users = users; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributesDefinitionAudienceFilters + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributesDefinitionAudienceFilters putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortUsersRequestDataAttributesDefinitionAudienceFilters object is + * equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributesDefinitionAudienceFilters + getCohortUsersRequestDataAttributesDefinitionAudienceFilters = + (GetCohortUsersRequestDataAttributesDefinitionAudienceFilters) o; + return Objects.equals( + this.accounts, getCohortUsersRequestDataAttributesDefinitionAudienceFilters.accounts) + && Objects.equals( + this.formula, getCohortUsersRequestDataAttributesDefinitionAudienceFilters.formula) + && Objects.equals( + this.segments, getCohortUsersRequestDataAttributesDefinitionAudienceFilters.segments) + && Objects.equals( + this.users, getCohortUsersRequestDataAttributesDefinitionAudienceFilters.users) + && Objects.equals( + this.additionalProperties, + getCohortUsersRequestDataAttributesDefinitionAudienceFilters.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(accounts, formula, segments, users, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequestDataAttributesDefinitionAudienceFilters {\n"); + sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); + sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); + sb.append(" segments: ").append(toIndentedString(segments)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.java new file mode 100644 index 00000000000..68f3eb8020d --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.java @@ -0,0 +1,188 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.JSON_PROPERTY_NAME, + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems() {} + + @JsonCreator + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.name = name; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems name( + String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems query( + String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems + putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems + * object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems = + (GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems) o; + return Objects.equals( + this.name, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.name) + && Objects.equals( + this.query, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems.query) + && Objects.equals( + this.additionalProperties, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append( + "class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersAccountsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.java new file mode 100644 index 00000000000..7538871167d --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.java @@ -0,0 +1,189 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.JSON_PROPERTY_NAME, + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.JSON_PROPERTY_SEGMENT_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SEGMENT_ID = "segment_id"; + private String segmentId; + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems() {} + + @JsonCreator + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name, + @JsonProperty(required = true, value = JSON_PROPERTY_SEGMENT_ID) String segmentId) { + this.name = name; + this.segmentId = segmentId; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems name( + String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems segmentId( + String segmentId) { + this.segmentId = segmentId; + return this; + } + + /** + * GetsegmentId + * + * @return segmentId + */ + @JsonProperty(JSON_PROPERTY_SEGMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getSegmentId() { + return segmentId; + } + + public void setSegmentId(String segmentId) { + this.segmentId = segmentId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + * object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems = + (GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems) o; + return Objects.equals( + this.name, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.name) + && Objects.equals( + this.segmentId, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems.segmentId) + && Objects.equals( + this.additionalProperties, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, segmentId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append( + "class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersSegmentsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" segmentId: ").append(toIndentedString(segmentId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.java new file mode 100644 index 00000000000..1a1adc37280 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.java @@ -0,0 +1,185 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.JSON_PROPERTY_NAME, + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems() {} + + @JsonCreator + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.name = name; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems query( + String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems + putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems + * object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems = + (GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems) o; + return Objects.equals( + this.name, getCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.name) + && Objects.equals( + this.query, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems.query) + && Objects.equals( + this.additionalProperties, + getCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequestDataAttributesDefinitionAudienceFiltersUsersItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesTime.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesTime.java new file mode 100644 index 00000000000..c8ac5955f99 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataAttributesTime.java @@ -0,0 +1,167 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersRequestDataAttributesTime.JSON_PROPERTY_FROM, + GetCohortUsersRequestDataAttributesTime.JSON_PROPERTY_TO +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersRequestDataAttributesTime { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FROM = "from"; + private Long from; + + public static final String JSON_PROPERTY_TO = "to"; + private Long to; + + public GetCohortUsersRequestDataAttributesTime from(Long from) { + this.from = from; + return this; + } + + /** + * Getfrom + * + * @return from + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getFrom() { + return from; + } + + public void setFrom(Long from) { + this.from = from; + } + + public GetCohortUsersRequestDataAttributesTime to(Long to) { + this.to = to; + return this; + } + + /** + * Getto + * + * @return to + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getTo() { + return to; + } + + public void setTo(Long to) { + this.to = to; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersRequestDataAttributesTime + */ + @JsonAnySetter + public GetCohortUsersRequestDataAttributesTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersRequestDataAttributesTime object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersRequestDataAttributesTime getCohortUsersRequestDataAttributesTime = + (GetCohortUsersRequestDataAttributesTime) o; + return Objects.equals(this.from, getCohortUsersRequestDataAttributesTime.from) + && Objects.equals(this.to, getCohortUsersRequestDataAttributesTime.to) + && Objects.equals( + this.additionalProperties, + getCohortUsersRequestDataAttributesTime.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(from, to, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersRequestDataAttributesTime {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataType.java new file mode 100644 index 00000000000..9d7b27810ee --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersRequestDataType.java @@ -0,0 +1,57 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = GetCohortUsersRequestDataType.GetCohortUsersRequestDataTypeSerializer.class) +public class GetCohortUsersRequestDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("cohort_users_request")); + + public static final GetCohortUsersRequestDataType COHORT_USERS_REQUEST = + new GetCohortUsersRequestDataType("cohort_users_request"); + + GetCohortUsersRequestDataType(String value) { + super(value, allowedValues); + } + + public static class GetCohortUsersRequestDataTypeSerializer + extends StdSerializer { + public GetCohortUsersRequestDataTypeSerializer(Class t) { + super(t); + } + + public GetCohortUsersRequestDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + GetCohortUsersRequestDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static GetCohortUsersRequestDataType fromValue(String value) { + return new GetCohortUsersRequestDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponse.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponse.java new file mode 100644 index 00000000000..7d608f07479 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponse.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({GetCohortUsersResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private GetCohortUsersResponseData data; + + public GetCohortUsersResponse data(GetCohortUsersResponseData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersResponseData getData() { + return data; + } + + public void setData(GetCohortUsersResponseData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersResponse + */ + @JsonAnySetter + public GetCohortUsersResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersResponse getCohortUsersResponse = (GetCohortUsersResponse) o; + return Objects.equals(this.data, getCohortUsersResponse.data) + && Objects.equals(this.additionalProperties, getCohortUsersResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseData.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseData.java new file mode 100644 index 00000000000..925256aca26 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseData.java @@ -0,0 +1,208 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersResponseData.JSON_PROPERTY_ATTRIBUTES, + GetCohortUsersResponseData.JSON_PROPERTY_ID, + GetCohortUsersResponseData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersResponseData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private GetCohortUsersResponseDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private GetCohortUsersResponseDataType type = + GetCohortUsersResponseDataType.COHORT_USERS_RESPONSE; + + public GetCohortUsersResponseData() {} + + @JsonCreator + public GetCohortUsersResponseData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) + GetCohortUsersResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public GetCohortUsersResponseData attributes(GetCohortUsersResponseDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public GetCohortUsersResponseDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(GetCohortUsersResponseDataAttributes attributes) { + this.attributes = attributes; + } + + public GetCohortUsersResponseData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetCohortUsersResponseData type(GetCohortUsersResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GetCohortUsersResponseDataType getType() { + return type; + } + + public void setType(GetCohortUsersResponseDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersResponseData + */ + @JsonAnySetter + public GetCohortUsersResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersResponseData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersResponseData getCohortUsersResponseData = (GetCohortUsersResponseData) o; + return Objects.equals(this.attributes, getCohortUsersResponseData.attributes) + && Objects.equals(this.id, getCohortUsersResponseData.id) + && Objects.equals(this.type, getCohortUsersResponseData.type) + && Objects.equals( + this.additionalProperties, getCohortUsersResponseData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersResponseData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataAttributes.java new file mode 100644 index 00000000000..8c0781fbea5 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataAttributes.java @@ -0,0 +1,153 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({GetCohortUsersResponseDataAttributes.JSON_PROPERTY_USERS}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersResponseDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_USERS = "users"; + private List users = null; + + public GetCohortUsersResponseDataAttributes users( + List users) { + this.users = users; + for (GetCohortUsersResponseDataAttributesUsersItems item : users) { + this.unparsed |= item.unparsed; + } + return this; + } + + public GetCohortUsersResponseDataAttributes addUsersItem( + GetCohortUsersResponseDataAttributesUsersItems usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + this.unparsed |= usersItem.unparsed; + return this; + } + + /** + * Getusers + * + * @return users + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUsers() { + return users; + } + + public void setUsers(List users) { + this.users = users; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersResponseDataAttributes + */ + @JsonAnySetter + public GetCohortUsersResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersResponseDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersResponseDataAttributes getCohortUsersResponseDataAttributes = + (GetCohortUsersResponseDataAttributes) o; + return Objects.equals(this.users, getCohortUsersResponseDataAttributes.users) + && Objects.equals( + this.additionalProperties, getCohortUsersResponseDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(users, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersResponseDataAttributes {\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataAttributesUsersItems.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataAttributesUsersItems.java new file mode 100644 index 00000000000..f4aeaed3ec7 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataAttributesUsersItems.java @@ -0,0 +1,195 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + GetCohortUsersResponseDataAttributesUsersItems.JSON_PROPERTY_EMAIL, + GetCohortUsersResponseDataAttributesUsersItems.JSON_PROPERTY_ID, + GetCohortUsersResponseDataAttributesUsersItems.JSON_PROPERTY_NAME +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class GetCohortUsersResponseDataAttributesUsersItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public GetCohortUsersResponseDataAttributesUsersItems email(String email) { + this.email = email; + return this; + } + + /** + * Getemail + * + * @return email + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public GetCohortUsersResponseDataAttributesUsersItems id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetCohortUsersResponseDataAttributesUsersItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return GetCohortUsersResponseDataAttributesUsersItems + */ + @JsonAnySetter + public GetCohortUsersResponseDataAttributesUsersItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this GetCohortUsersResponseDataAttributesUsersItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCohortUsersResponseDataAttributesUsersItems getCohortUsersResponseDataAttributesUsersItems = + (GetCohortUsersResponseDataAttributesUsersItems) o; + return Objects.equals(this.email, getCohortUsersResponseDataAttributesUsersItems.email) + && Objects.equals(this.id, getCohortUsersResponseDataAttributesUsersItems.id) + && Objects.equals(this.name, getCohortUsersResponseDataAttributesUsersItems.name) + && Objects.equals( + this.additionalProperties, + getCohortUsersResponseDataAttributesUsersItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(email, id, name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCohortUsersResponseDataAttributesUsersItems {\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataType.java new file mode 100644 index 00000000000..40ab9daa0a4 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/GetCohortUsersResponseDataType.java @@ -0,0 +1,58 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize( + using = GetCohortUsersResponseDataType.GetCohortUsersResponseDataTypeSerializer.class) +public class GetCohortUsersResponseDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("cohort_users_response")); + + public static final GetCohortUsersResponseDataType COHORT_USERS_RESPONSE = + new GetCohortUsersResponseDataType("cohort_users_response"); + + GetCohortUsersResponseDataType(String value) { + super(value, allowedValues); + } + + public static class GetCohortUsersResponseDataTypeSerializer + extends StdSerializer { + public GetCohortUsersResponseDataTypeSerializer(Class t) { + super(t); + } + + public GetCohortUsersResponseDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + GetCohortUsersResponseDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static GetCohortUsersResponseDataType fromValue(String value) { + return new GetCohortUsersResponseDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequest.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequest.java new file mode 100644 index 00000000000..44a2f909a1f --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequest.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({SankeyRequest.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequest { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private SankeyRequestData data; + + public SankeyRequest data(SankeyRequestData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestData getData() { + return data; + } + + public void setData(SankeyRequestData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequest + */ + @JsonAnySetter + public SankeyRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequest sankeyRequest = (SankeyRequest) o; + return Objects.equals(this.data, sankeyRequest.data) + && Objects.equals(this.additionalProperties, sankeyRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestData.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestData.java new file mode 100644 index 00000000000..6ce64181d95 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestData.JSON_PROPERTY_ATTRIBUTES, + SankeyRequestData.JSON_PROPERTY_ID, + SankeyRequestData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private SankeyRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private SankeyRequestDataType type = SankeyRequestDataType.SANKEY_REQUEST; + + public SankeyRequestData() {} + + @JsonCreator + public SankeyRequestData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) SankeyRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public SankeyRequestData attributes(SankeyRequestDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(SankeyRequestDataAttributes attributes) { + this.attributes = attributes; + } + + public SankeyRequestData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SankeyRequestData type(SankeyRequestDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SankeyRequestDataType getType() { + return type; + } + + public void setType(SankeyRequestDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestData + */ + @JsonAnySetter + public SankeyRequestData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestData sankeyRequestData = (SankeyRequestData) o; + return Objects.equals(this.attributes, sankeyRequestData.attributes) + && Objects.equals(this.id, sankeyRequestData.id) + && Objects.equals(this.type, sankeyRequestData.type) + && Objects.equals(this.additionalProperties, sankeyRequestData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributes.java new file mode 100644 index 00000000000..98640083f84 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributes.java @@ -0,0 +1,315 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributes.JSON_PROPERTY_DATA_SOURCE, + SankeyRequestDataAttributes.JSON_PROPERTY_DEFINITION, + SankeyRequestDataAttributes.JSON_PROPERTY_ENFORCED_EXECUTION_TYPE, + SankeyRequestDataAttributes.JSON_PROPERTY_REQUEST_ID, + SankeyRequestDataAttributes.JSON_PROPERTY_SAMPLING, + SankeyRequestDataAttributes.JSON_PROPERTY_SEARCH, + SankeyRequestDataAttributes.JSON_PROPERTY_TIME +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; + private String dataSource; + + public static final String JSON_PROPERTY_DEFINITION = "definition"; + private SankeyRequestDataAttributesDefinition definition; + + public static final String JSON_PROPERTY_ENFORCED_EXECUTION_TYPE = "enforced_execution_type"; + private String enforcedExecutionType; + + public static final String JSON_PROPERTY_REQUEST_ID = "request_id"; + private String requestId; + + public static final String JSON_PROPERTY_SAMPLING = "sampling"; + private SankeyRequestDataAttributesSampling sampling; + + public static final String JSON_PROPERTY_SEARCH = "search"; + private SankeyRequestDataAttributesSearch search; + + public static final String JSON_PROPERTY_TIME = "time"; + private SankeyRequestDataAttributesTime time; + + public SankeyRequestDataAttributes dataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * GetdataSource + * + * @return dataSource + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDataSource() { + return dataSource; + } + + public void setDataSource(String dataSource) { + this.dataSource = dataSource; + } + + public SankeyRequestDataAttributes definition(SankeyRequestDataAttributesDefinition definition) { + this.definition = definition; + this.unparsed |= definition.unparsed; + return this; + } + + /** + * Getdefinition + * + * @return definition + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DEFINITION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributesDefinition getDefinition() { + return definition; + } + + public void setDefinition(SankeyRequestDataAttributesDefinition definition) { + this.definition = definition; + } + + public SankeyRequestDataAttributes enforcedExecutionType(String enforcedExecutionType) { + this.enforcedExecutionType = enforcedExecutionType; + return this; + } + + /** + * GetenforcedExecutionType + * + * @return enforcedExecutionType + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENFORCED_EXECUTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEnforcedExecutionType() { + return enforcedExecutionType; + } + + public void setEnforcedExecutionType(String enforcedExecutionType) { + this.enforcedExecutionType = enforcedExecutionType; + } + + public SankeyRequestDataAttributes requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * GetrequestId + * + * @return requestId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public SankeyRequestDataAttributes sampling(SankeyRequestDataAttributesSampling sampling) { + this.sampling = sampling; + this.unparsed |= sampling.unparsed; + return this; + } + + /** + * Getsampling + * + * @return sampling + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SAMPLING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributesSampling getSampling() { + return sampling; + } + + public void setSampling(SankeyRequestDataAttributesSampling sampling) { + this.sampling = sampling; + } + + public SankeyRequestDataAttributes search(SankeyRequestDataAttributesSearch search) { + this.search = search; + this.unparsed |= search.unparsed; + return this; + } + + /** + * Getsearch + * + * @return search + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEARCH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributesSearch getSearch() { + return search; + } + + public void setSearch(SankeyRequestDataAttributesSearch search) { + this.search = search; + } + + public SankeyRequestDataAttributes time(SankeyRequestDataAttributesTime time) { + this.time = time; + this.unparsed |= time.unparsed; + return this; + } + + /** + * Gettime + * + * @return time + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributesTime getTime() { + return time; + } + + public void setTime(SankeyRequestDataAttributesTime time) { + this.time = time; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributes + */ + @JsonAnySetter + public SankeyRequestDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributes sankeyRequestDataAttributes = (SankeyRequestDataAttributes) o; + return Objects.equals(this.dataSource, sankeyRequestDataAttributes.dataSource) + && Objects.equals(this.definition, sankeyRequestDataAttributes.definition) + && Objects.equals( + this.enforcedExecutionType, sankeyRequestDataAttributes.enforcedExecutionType) + && Objects.equals(this.requestId, sankeyRequestDataAttributes.requestId) + && Objects.equals(this.sampling, sankeyRequestDataAttributes.sampling) + && Objects.equals(this.search, sankeyRequestDataAttributes.search) + && Objects.equals(this.time, sankeyRequestDataAttributes.time) + && Objects.equals( + this.additionalProperties, sankeyRequestDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + dataSource, + definition, + enforcedExecutionType, + requestId, + sampling, + search, + time, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributes {\n"); + sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); + sb.append(" definition: ").append(toIndentedString(definition)).append("\n"); + sb.append(" enforcedExecutionType: ") + .append(toIndentedString(enforcedExecutionType)) + .append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" sampling: ").append(toIndentedString(sampling)).append("\n"); + sb.append(" search: ").append(toIndentedString(search)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesDefinition.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesDefinition.java new file mode 100644 index 00000000000..7c238fff621 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesDefinition.java @@ -0,0 +1,220 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesDefinition.JSON_PROPERTY_ENTRIES_PER_STEP, + SankeyRequestDataAttributesDefinition.JSON_PROPERTY_NUMBER_OF_STEPS, + SankeyRequestDataAttributesDefinition.JSON_PROPERTY_SOURCE, + SankeyRequestDataAttributesDefinition.JSON_PROPERTY_TARGET +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesDefinition { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ENTRIES_PER_STEP = "entries_per_step"; + private Long entriesPerStep; + + public static final String JSON_PROPERTY_NUMBER_OF_STEPS = "number_of_steps"; + private Long numberOfSteps; + + public static final String JSON_PROPERTY_SOURCE = "source"; + private String source; + + public static final String JSON_PROPERTY_TARGET = "target"; + private String target; + + public SankeyRequestDataAttributesDefinition entriesPerStep(Long entriesPerStep) { + this.entriesPerStep = entriesPerStep; + return this; + } + + /** + * GetentriesPerStep + * + * @return entriesPerStep + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENTRIES_PER_STEP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getEntriesPerStep() { + return entriesPerStep; + } + + public void setEntriesPerStep(Long entriesPerStep) { + this.entriesPerStep = entriesPerStep; + } + + public SankeyRequestDataAttributesDefinition numberOfSteps(Long numberOfSteps) { + this.numberOfSteps = numberOfSteps; + return this; + } + + /** + * GetnumberOfSteps + * + * @return numberOfSteps + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NUMBER_OF_STEPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getNumberOfSteps() { + return numberOfSteps; + } + + public void setNumberOfSteps(Long numberOfSteps) { + this.numberOfSteps = numberOfSteps; + } + + public SankeyRequestDataAttributesDefinition source(String source) { + this.source = source; + return this; + } + + /** + * Getsource + * + * @return source + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public SankeyRequestDataAttributesDefinition target(String target) { + this.target = target; + return this; + } + + /** + * Gettarget + * + * @return target + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TARGET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTarget() { + return target; + } + + public void setTarget(String target) { + this.target = target; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesDefinition + */ + @JsonAnySetter + public SankeyRequestDataAttributesDefinition putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributesDefinition object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesDefinition sankeyRequestDataAttributesDefinition = + (SankeyRequestDataAttributesDefinition) o; + return Objects.equals(this.entriesPerStep, sankeyRequestDataAttributesDefinition.entriesPerStep) + && Objects.equals(this.numberOfSteps, sankeyRequestDataAttributesDefinition.numberOfSteps) + && Objects.equals(this.source, sankeyRequestDataAttributesDefinition.source) + && Objects.equals(this.target, sankeyRequestDataAttributesDefinition.target) + && Objects.equals( + this.additionalProperties, sankeyRequestDataAttributesDefinition.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(entriesPerStep, numberOfSteps, source, target, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesDefinition {\n"); + sb.append(" entriesPerStep: ").append(toIndentedString(entriesPerStep)).append("\n"); + sb.append(" numberOfSteps: ").append(toIndentedString(numberOfSteps)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSampling.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSampling.java new file mode 100644 index 00000000000..c8cc297a20f --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSampling.java @@ -0,0 +1,137 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({SankeyRequestDataAttributesSampling.JSON_PROPERTY_ENABLED}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSampling { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled; + + public SankeyRequestDataAttributesSampling enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * The sampling enabled. + * + * @return enabled + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSampling + */ + @JsonAnySetter + public SankeyRequestDataAttributesSampling putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributesSampling object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSampling sankeyRequestDataAttributesSampling = + (SankeyRequestDataAttributesSampling) o; + return Objects.equals(this.enabled, sankeyRequestDataAttributesSampling.enabled) + && Objects.equals( + this.additionalProperties, sankeyRequestDataAttributesSampling.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(enabled, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSampling {\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearch.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearch.java new file mode 100644 index 00000000000..48c6c49c6fb --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearch.java @@ -0,0 +1,224 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesSearch.JSON_PROPERTY_AUDIENCE_FILTERS, + SankeyRequestDataAttributesSearch.JSON_PROPERTY_OCCURRENCES, + SankeyRequestDataAttributesSearch.JSON_PROPERTY_QUERY, + SankeyRequestDataAttributesSearch.JSON_PROPERTY_SUBQUERY_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSearch { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_AUDIENCE_FILTERS = "audience_filters"; + private SankeyRequestDataAttributesSearchAudienceFilters audienceFilters; + + public static final String JSON_PROPERTY_OCCURRENCES = "occurrences"; + private SankeyRequestDataAttributesSearchOccurrences occurrences; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public static final String JSON_PROPERTY_SUBQUERY_ID = "subquery_id"; + private String subqueryId; + + public SankeyRequestDataAttributesSearch audienceFilters( + SankeyRequestDataAttributesSearchAudienceFilters audienceFilters) { + this.audienceFilters = audienceFilters; + this.unparsed |= audienceFilters.unparsed; + return this; + } + + /** + * GetaudienceFilters + * + * @return audienceFilters + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AUDIENCE_FILTERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributesSearchAudienceFilters getAudienceFilters() { + return audienceFilters; + } + + public void setAudienceFilters(SankeyRequestDataAttributesSearchAudienceFilters audienceFilters) { + this.audienceFilters = audienceFilters; + } + + public SankeyRequestDataAttributesSearch occurrences( + SankeyRequestDataAttributesSearchOccurrences occurrences) { + this.occurrences = occurrences; + this.unparsed |= occurrences.unparsed; + return this; + } + + /** + * Getoccurrences + * + * @return occurrences + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OCCURRENCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyRequestDataAttributesSearchOccurrences getOccurrences() { + return occurrences; + } + + public void setOccurrences(SankeyRequestDataAttributesSearchOccurrences occurrences) { + this.occurrences = occurrences; + } + + public SankeyRequestDataAttributesSearch query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public SankeyRequestDataAttributesSearch subqueryId(String subqueryId) { + this.subqueryId = subqueryId; + return this; + } + + /** + * GetsubqueryId + * + * @return subqueryId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBQUERY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSubqueryId() { + return subqueryId; + } + + public void setSubqueryId(String subqueryId) { + this.subqueryId = subqueryId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSearch + */ + @JsonAnySetter + public SankeyRequestDataAttributesSearch putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributesSearch object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSearch sankeyRequestDataAttributesSearch = + (SankeyRequestDataAttributesSearch) o; + return Objects.equals(this.audienceFilters, sankeyRequestDataAttributesSearch.audienceFilters) + && Objects.equals(this.occurrences, sankeyRequestDataAttributesSearch.occurrences) + && Objects.equals(this.query, sankeyRequestDataAttributesSearch.query) + && Objects.equals(this.subqueryId, sankeyRequestDataAttributesSearch.subqueryId) + && Objects.equals( + this.additionalProperties, sankeyRequestDataAttributesSearch.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(audienceFilters, occurrences, query, subqueryId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSearch {\n"); + sb.append(" audienceFilters: ").append(toIndentedString(audienceFilters)).append("\n"); + sb.append(" occurrences: ").append(toIndentedString(occurrences)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" subqueryId: ").append(toIndentedString(subqueryId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFilters.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFilters.java new file mode 100644 index 00000000000..cac636e6117 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFilters.java @@ -0,0 +1,269 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesSearchAudienceFilters.JSON_PROPERTY_ACCOUNTS, + SankeyRequestDataAttributesSearchAudienceFilters.JSON_PROPERTY_FORMULA, + SankeyRequestDataAttributesSearchAudienceFilters.JSON_PROPERTY_SEGMENTS, + SankeyRequestDataAttributesSearchAudienceFilters.JSON_PROPERTY_USERS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSearchAudienceFilters { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + private List accounts = null; + + public static final String JSON_PROPERTY_FORMULA = "formula"; + private String formula; + + public static final String JSON_PROPERTY_SEGMENTS = "segments"; + private List segments = null; + + public static final String JSON_PROPERTY_USERS = "users"; + private List users = null; + + public SankeyRequestDataAttributesSearchAudienceFilters accounts( + List accounts) { + this.accounts = accounts; + for (SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems item : accounts) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SankeyRequestDataAttributesSearchAudienceFilters addAccountsItem( + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems accountsItem) { + if (this.accounts == null) { + this.accounts = new ArrayList<>(); + } + this.accounts.add(accountsItem); + this.unparsed |= accountsItem.unparsed; + return this; + } + + /** + * Getaccounts + * + * @return accounts + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAccounts() { + return accounts; + } + + public void setAccounts( + List accounts) { + this.accounts = accounts; + } + + public SankeyRequestDataAttributesSearchAudienceFilters formula(String formula) { + this.formula = formula; + return this; + } + + /** + * Getformula + * + * @return formula + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FORMULA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFormula() { + return formula; + } + + public void setFormula(String formula) { + this.formula = formula; + } + + public SankeyRequestDataAttributesSearchAudienceFilters segments( + List segments) { + this.segments = segments; + for (SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems item : segments) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SankeyRequestDataAttributesSearchAudienceFilters addSegmentsItem( + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems segmentsItem) { + if (this.segments == null) { + this.segments = new ArrayList<>(); + } + this.segments.add(segmentsItem); + this.unparsed |= segmentsItem.unparsed; + return this; + } + + /** + * Getsegments + * + * @return segments + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEGMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getSegments() { + return segments; + } + + public void setSegments( + List segments) { + this.segments = segments; + } + + public SankeyRequestDataAttributesSearchAudienceFilters users( + List users) { + this.users = users; + for (SankeyRequestDataAttributesSearchAudienceFiltersUsersItems item : users) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SankeyRequestDataAttributesSearchAudienceFilters addUsersItem( + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + this.unparsed |= usersItem.unparsed; + return this; + } + + /** + * Getusers + * + * @return users + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUsers() { + return users; + } + + public void setUsers(List users) { + this.users = users; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSearchAudienceFilters + */ + @JsonAnySetter + public SankeyRequestDataAttributesSearchAudienceFilters putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributesSearchAudienceFilters object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSearchAudienceFilters + sankeyRequestDataAttributesSearchAudienceFilters = + (SankeyRequestDataAttributesSearchAudienceFilters) o; + return Objects.equals(this.accounts, sankeyRequestDataAttributesSearchAudienceFilters.accounts) + && Objects.equals(this.formula, sankeyRequestDataAttributesSearchAudienceFilters.formula) + && Objects.equals(this.segments, sankeyRequestDataAttributesSearchAudienceFilters.segments) + && Objects.equals(this.users, sankeyRequestDataAttributesSearchAudienceFilters.users) + && Objects.equals( + this.additionalProperties, + sankeyRequestDataAttributesSearchAudienceFilters.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(accounts, formula, segments, users, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSearchAudienceFilters {\n"); + sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); + sb.append(" formula: ").append(toIndentedString(formula)).append("\n"); + sb.append(" segments: ").append(toIndentedString(segments)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.java new file mode 100644 index 00000000000..3e937db7175 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.java @@ -0,0 +1,182 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.JSON_PROPERTY_NAME, + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems() {} + + @JsonCreator + public SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.name = name; + } + + public SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems + */ + @JsonAnySetter + public SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems object is + * equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems + sankeyRequestDataAttributesSearchAudienceFiltersAccountsItems = + (SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems) o; + return Objects.equals( + this.name, sankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.name) + && Objects.equals( + this.query, sankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.query) + && Objects.equals( + this.additionalProperties, + sankeyRequestDataAttributesSearchAudienceFiltersAccountsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSearchAudienceFiltersAccountsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.java new file mode 100644 index 00000000000..a27bf30aa4c --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.java @@ -0,0 +1,183 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.JSON_PROPERTY_NAME, + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.JSON_PROPERTY_SEGMENT_ID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SEGMENT_ID = "segment_id"; + private String segmentId; + + public SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems() {} + + @JsonCreator + public SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name, + @JsonProperty(required = true, value = JSON_PROPERTY_SEGMENT_ID) String segmentId) { + this.name = name; + this.segmentId = segmentId; + } + + public SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems segmentId(String segmentId) { + this.segmentId = segmentId; + return this; + } + + /** + * GetsegmentId + * + * @return segmentId + */ + @JsonProperty(JSON_PROPERTY_SEGMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getSegmentId() { + return segmentId; + } + + public void setSegmentId(String segmentId) { + this.segmentId = segmentId; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems + */ + @JsonAnySetter + public SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems object is + * equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems + sankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems = + (SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems) o; + return Objects.equals( + this.name, sankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.name) + && Objects.equals( + this.segmentId, sankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.segmentId) + && Objects.equals( + this.additionalProperties, + sankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, segmentId, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSearchAudienceFiltersSegmentsItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" segmentId: ").append(toIndentedString(segmentId)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.java new file mode 100644 index 00000000000..b3a3a83b107 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.java @@ -0,0 +1,182 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.JSON_PROPERTY_NAME, + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSearchAudienceFiltersUsersItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public SankeyRequestDataAttributesSearchAudienceFiltersUsersItems() {} + + @JsonCreator + public SankeyRequestDataAttributesSearchAudienceFiltersUsersItems( + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.name = name; + } + + public SankeyRequestDataAttributesSearchAudienceFiltersUsersItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SankeyRequestDataAttributesSearchAudienceFiltersUsersItems query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSearchAudienceFiltersUsersItems + */ + @JsonAnySetter + public SankeyRequestDataAttributesSearchAudienceFiltersUsersItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SankeyRequestDataAttributesSearchAudienceFiltersUsersItems object is equal + * to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSearchAudienceFiltersUsersItems + sankeyRequestDataAttributesSearchAudienceFiltersUsersItems = + (SankeyRequestDataAttributesSearchAudienceFiltersUsersItems) o; + return Objects.equals( + this.name, sankeyRequestDataAttributesSearchAudienceFiltersUsersItems.name) + && Objects.equals( + this.query, sankeyRequestDataAttributesSearchAudienceFiltersUsersItems.query) + && Objects.equals( + this.additionalProperties, + sankeyRequestDataAttributesSearchAudienceFiltersUsersItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSearchAudienceFiltersUsersItems {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchOccurrences.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchOccurrences.java new file mode 100644 index 00000000000..ff95b9e9557 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesSearchOccurrences.java @@ -0,0 +1,212 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesSearchOccurrences.JSON_PROPERTY_META, + SankeyRequestDataAttributesSearchOccurrences.JSON_PROPERTY_OPERATOR, + SankeyRequestDataAttributesSearchOccurrences.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesSearchOccurrences { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_META = "meta"; + private Map meta = null; + + public static final String JSON_PROPERTY_OPERATOR = "operator"; + private String operator; + + public static final String JSON_PROPERTY_VALUE = "value"; + private String value; + + public SankeyRequestDataAttributesSearchOccurrences() {} + + @JsonCreator + public SankeyRequestDataAttributesSearchOccurrences( + @JsonProperty(required = true, value = JSON_PROPERTY_OPERATOR) String operator, + @JsonProperty(required = true, value = JSON_PROPERTY_VALUE) String value) { + this.operator = operator; + this.value = value; + } + + public SankeyRequestDataAttributesSearchOccurrences meta(Map meta) { + this.meta = meta; + return this; + } + + public SankeyRequestDataAttributesSearchOccurrences putMetaItem(String key, String metaItem) { + if (this.meta == null) { + this.meta = new HashMap<>(); + } + this.meta.put(key, metaItem); + return this; + } + + /** + * Getmeta + * + * @return meta + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getMeta() { + return meta; + } + + public void setMeta(Map meta) { + this.meta = meta; + } + + public SankeyRequestDataAttributesSearchOccurrences operator(String operator) { + this.operator = operator; + return this; + } + + /** + * Getoperator + * + * @return operator + */ + @JsonProperty(JSON_PROPERTY_OPERATOR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public SankeyRequestDataAttributesSearchOccurrences value(String value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesSearchOccurrences + */ + @JsonAnySetter + public SankeyRequestDataAttributesSearchOccurrences putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributesSearchOccurrences object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesSearchOccurrences sankeyRequestDataAttributesSearchOccurrences = + (SankeyRequestDataAttributesSearchOccurrences) o; + return Objects.equals(this.meta, sankeyRequestDataAttributesSearchOccurrences.meta) + && Objects.equals(this.operator, sankeyRequestDataAttributesSearchOccurrences.operator) + && Objects.equals(this.value, sankeyRequestDataAttributesSearchOccurrences.value) + && Objects.equals( + this.additionalProperties, + sankeyRequestDataAttributesSearchOccurrences.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(meta, operator, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesSearchOccurrences {\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesTime.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesTime.java new file mode 100644 index 00000000000..e9f4bd0f645 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataAttributesTime.java @@ -0,0 +1,166 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyRequestDataAttributesTime.JSON_PROPERTY_FROM, + SankeyRequestDataAttributesTime.JSON_PROPERTY_TO +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyRequestDataAttributesTime { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FROM = "from"; + private Long from; + + public static final String JSON_PROPERTY_TO = "to"; + private Long to; + + public SankeyRequestDataAttributesTime from(Long from) { + this.from = from; + return this; + } + + /** + * Getfrom + * + * @return from + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getFrom() { + return from; + } + + public void setFrom(Long from) { + this.from = from; + } + + public SankeyRequestDataAttributesTime to(Long to) { + this.to = to; + return this; + } + + /** + * Getto + * + * @return to + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getTo() { + return to; + } + + public void setTo(Long to) { + this.to = to; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyRequestDataAttributesTime + */ + @JsonAnySetter + public SankeyRequestDataAttributesTime putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyRequestDataAttributesTime object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyRequestDataAttributesTime sankeyRequestDataAttributesTime = + (SankeyRequestDataAttributesTime) o; + return Objects.equals(this.from, sankeyRequestDataAttributesTime.from) + && Objects.equals(this.to, sankeyRequestDataAttributesTime.to) + && Objects.equals( + this.additionalProperties, sankeyRequestDataAttributesTime.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(from, to, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyRequestDataAttributesTime {\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataType.java b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataType.java new file mode 100644 index 00000000000..5d2cbc4939b --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyRequestDataType.java @@ -0,0 +1,56 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = SankeyRequestDataType.SankeyRequestDataTypeSerializer.class) +public class SankeyRequestDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("sankey_request")); + + public static final SankeyRequestDataType SANKEY_REQUEST = + new SankeyRequestDataType("sankey_request"); + + SankeyRequestDataType(String value) { + super(value, allowedValues); + } + + public static class SankeyRequestDataTypeSerializer extends StdSerializer { + public SankeyRequestDataTypeSerializer(Class t) { + super(t); + } + + public SankeyRequestDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + SankeyRequestDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SankeyRequestDataType fromValue(String value) { + return new SankeyRequestDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponse.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponse.java new file mode 100644 index 00000000000..bc807bac5a6 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponse.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({SankeyResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private SankeyResponseData data; + + public SankeyResponse data(SankeyResponseData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyResponseData getData() { + return data; + } + + public void setData(SankeyResponseData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyResponse + */ + @JsonAnySetter + public SankeyResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyResponse sankeyResponse = (SankeyResponse) o; + return Objects.equals(this.data, sankeyResponse.data) + && Objects.equals(this.additionalProperties, sankeyResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponseData.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseData.java new file mode 100644 index 00000000000..bde7775c4f9 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyResponseData.JSON_PROPERTY_ATTRIBUTES, + SankeyResponseData.JSON_PROPERTY_ID, + SankeyResponseData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyResponseData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private SankeyResponseDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private SankeyResponseDataType type = SankeyResponseDataType.SANKEY_RESPONSE; + + public SankeyResponseData() {} + + @JsonCreator + public SankeyResponseData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) SankeyResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public SankeyResponseData attributes(SankeyResponseDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SankeyResponseDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(SankeyResponseDataAttributes attributes) { + this.attributes = attributes; + } + + public SankeyResponseData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SankeyResponseData type(SankeyResponseDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SankeyResponseDataType getType() { + return type; + } + + public void setType(SankeyResponseDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyResponseData + */ + @JsonAnySetter + public SankeyResponseData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyResponseData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyResponseData sankeyResponseData = (SankeyResponseData) o; + return Objects.equals(this.attributes, sankeyResponseData.attributes) + && Objects.equals(this.id, sankeyResponseData.id) + && Objects.equals(this.type, sankeyResponseData.type) + && Objects.equals(this.additionalProperties, sankeyResponseData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyResponseData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributes.java new file mode 100644 index 00000000000..d78eedc2540 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributes.java @@ -0,0 +1,193 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyResponseDataAttributes.JSON_PROPERTY_LINKS, + SankeyResponseDataAttributes.JSON_PROPERTY_NODES +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyResponseDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_LINKS = "links"; + private List links = null; + + public static final String JSON_PROPERTY_NODES = "nodes"; + private List nodes = null; + + public SankeyResponseDataAttributes links(List links) { + this.links = links; + for (SankeyResponseDataAttributesLinksItems item : links) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SankeyResponseDataAttributes addLinksItem( + SankeyResponseDataAttributesLinksItems linksItem) { + if (this.links == null) { + this.links = new ArrayList<>(); + } + this.links.add(linksItem); + this.unparsed |= linksItem.unparsed; + return this; + } + + /** + * Getlinks + * + * @return links + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LINKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getLinks() { + return links; + } + + public void setLinks(List links) { + this.links = links; + } + + public SankeyResponseDataAttributes nodes(List nodes) { + this.nodes = nodes; + for (SankeyResponseDataAttributesNodesItems item : nodes) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SankeyResponseDataAttributes addNodesItem( + SankeyResponseDataAttributesNodesItems nodesItem) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + this.nodes.add(nodesItem); + this.unparsed |= nodesItem.unparsed; + return this; + } + + /** + * Getnodes + * + * @return nodes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getNodes() { + return nodes; + } + + public void setNodes(List nodes) { + this.nodes = nodes; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyResponseDataAttributes + */ + @JsonAnySetter + public SankeyResponseDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyResponseDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyResponseDataAttributes sankeyResponseDataAttributes = (SankeyResponseDataAttributes) o; + return Objects.equals(this.links, sankeyResponseDataAttributes.links) + && Objects.equals(this.nodes, sankeyResponseDataAttributes.nodes) + && Objects.equals( + this.additionalProperties, sankeyResponseDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(links, nodes, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyResponseDataAttributes {\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesLinksItems.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesLinksItems.java new file mode 100644 index 00000000000..f9479d6d164 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesLinksItems.java @@ -0,0 +1,247 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyResponseDataAttributesLinksItems.JSON_PROPERTY_COLUMN, + SankeyResponseDataAttributesLinksItems.JSON_PROPERTY_ID, + SankeyResponseDataAttributesLinksItems.JSON_PROPERTY_SOURCE, + SankeyResponseDataAttributesLinksItems.JSON_PROPERTY_TARGET, + SankeyResponseDataAttributesLinksItems.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyResponseDataAttributesLinksItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COLUMN = "column"; + private Long column; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_SOURCE = "source"; + private String source; + + public static final String JSON_PROPERTY_TARGET = "target"; + private String target; + + public static final String JSON_PROPERTY_VALUE = "value"; + private Long value; + + public SankeyResponseDataAttributesLinksItems column(Long column) { + this.column = column; + return this; + } + + /** + * Getcolumn + * + * @return column + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLUMN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getColumn() { + return column; + } + + public void setColumn(Long column) { + this.column = column; + } + + public SankeyResponseDataAttributesLinksItems id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SankeyResponseDataAttributesLinksItems source(String source) { + this.source = source; + return this; + } + + /** + * Getsource + * + * @return source + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public SankeyResponseDataAttributesLinksItems target(String target) { + this.target = target; + return this; + } + + /** + * Gettarget + * + * @return target + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TARGET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTarget() { + return target; + } + + public void setTarget(String target) { + this.target = target; + } + + public SankeyResponseDataAttributesLinksItems value(Long value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getValue() { + return value; + } + + public void setValue(Long value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyResponseDataAttributesLinksItems + */ + @JsonAnySetter + public SankeyResponseDataAttributesLinksItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyResponseDataAttributesLinksItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyResponseDataAttributesLinksItems sankeyResponseDataAttributesLinksItems = + (SankeyResponseDataAttributesLinksItems) o; + return Objects.equals(this.column, sankeyResponseDataAttributesLinksItems.column) + && Objects.equals(this.id, sankeyResponseDataAttributesLinksItems.id) + && Objects.equals(this.source, sankeyResponseDataAttributesLinksItems.source) + && Objects.equals(this.target, sankeyResponseDataAttributesLinksItems.target) + && Objects.equals(this.value, sankeyResponseDataAttributesLinksItems.value) + && Objects.equals( + this.additionalProperties, sankeyResponseDataAttributesLinksItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(column, id, source, target, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyResponseDataAttributesLinksItems {\n"); + sb.append(" column: ").append(toIndentedString(column)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" target: ").append(toIndentedString(target)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesNodesItems.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesNodesItems.java new file mode 100644 index 00000000000..af2e6dc6c8a --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesNodesItems.java @@ -0,0 +1,355 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_AGGREGATED_NODES, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_COLUMN, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_ID, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_INCOMING_VALUE, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_NAME, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_OUTGOING_VALUE, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_TYPE, + SankeyResponseDataAttributesNodesItems.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyResponseDataAttributesNodesItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_AGGREGATED_NODES = "aggregated_nodes"; + private List aggregatedNodes = null; + + public static final String JSON_PROPERTY_COLUMN = "column"; + private Long column; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_INCOMING_VALUE = "incoming_value"; + private Long incomingValue; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_OUTGOING_VALUE = "outgoing_value"; + private Long outgoingValue; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public static final String JSON_PROPERTY_VALUE = "value"; + private Long value; + + public SankeyResponseDataAttributesNodesItems aggregatedNodes( + List aggregatedNodes) { + this.aggregatedNodes = aggregatedNodes; + for (SankeyResponseDataAttributesNodesItemsAggregatedNodesItems item : aggregatedNodes) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SankeyResponseDataAttributesNodesItems addAggregatedNodesItem( + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems aggregatedNodesItem) { + if (this.aggregatedNodes == null) { + this.aggregatedNodes = new ArrayList<>(); + } + this.aggregatedNodes.add(aggregatedNodesItem); + this.unparsed |= aggregatedNodesItem.unparsed; + return this; + } + + /** + * GetaggregatedNodes + * + * @return aggregatedNodes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_AGGREGATED_NODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getAggregatedNodes() { + return aggregatedNodes; + } + + public void setAggregatedNodes( + List aggregatedNodes) { + this.aggregatedNodes = aggregatedNodes; + } + + public SankeyResponseDataAttributesNodesItems column(Long column) { + this.column = column; + return this; + } + + /** + * Getcolumn + * + * @return column + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLUMN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getColumn() { + return column; + } + + public void setColumn(Long column) { + this.column = column; + } + + public SankeyResponseDataAttributesNodesItems id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SankeyResponseDataAttributesNodesItems incomingValue(Long incomingValue) { + this.incomingValue = incomingValue; + return this; + } + + /** + * GetincomingValue + * + * @return incomingValue + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCOMING_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getIncomingValue() { + return incomingValue; + } + + public void setIncomingValue(Long incomingValue) { + this.incomingValue = incomingValue; + } + + public SankeyResponseDataAttributesNodesItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SankeyResponseDataAttributesNodesItems outgoingValue(Long outgoingValue) { + this.outgoingValue = outgoingValue; + return this; + } + + /** + * GetoutgoingValue + * + * @return outgoingValue + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OUTGOING_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getOutgoingValue() { + return outgoingValue; + } + + public void setOutgoingValue(Long outgoingValue) { + this.outgoingValue = outgoingValue; + } + + public SankeyResponseDataAttributesNodesItems type(String type) { + this.type = type; + return this; + } + + /** + * Gettype + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public SankeyResponseDataAttributesNodesItems value(Long value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getValue() { + return value; + } + + public void setValue(Long value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyResponseDataAttributesNodesItems + */ + @JsonAnySetter + public SankeyResponseDataAttributesNodesItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SankeyResponseDataAttributesNodesItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyResponseDataAttributesNodesItems sankeyResponseDataAttributesNodesItems = + (SankeyResponseDataAttributesNodesItems) o; + return Objects.equals( + this.aggregatedNodes, sankeyResponseDataAttributesNodesItems.aggregatedNodes) + && Objects.equals(this.column, sankeyResponseDataAttributesNodesItems.column) + && Objects.equals(this.id, sankeyResponseDataAttributesNodesItems.id) + && Objects.equals(this.incomingValue, sankeyResponseDataAttributesNodesItems.incomingValue) + && Objects.equals(this.name, sankeyResponseDataAttributesNodesItems.name) + && Objects.equals(this.outgoingValue, sankeyResponseDataAttributesNodesItems.outgoingValue) + && Objects.equals(this.type, sankeyResponseDataAttributesNodesItems.type) + && Objects.equals(this.value, sankeyResponseDataAttributesNodesItems.value) + && Objects.equals( + this.additionalProperties, sankeyResponseDataAttributesNodesItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + aggregatedNodes, + column, + id, + incomingValue, + name, + outgoingValue, + type, + value, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyResponseDataAttributesNodesItems {\n"); + sb.append(" aggregatedNodes: ").append(toIndentedString(aggregatedNodes)).append("\n"); + sb.append(" column: ").append(toIndentedString(column)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" incomingValue: ").append(toIndentedString(incomingValue)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" outgoingValue: ").append(toIndentedString(outgoingValue)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.java new file mode 100644 index 00000000000..cc0018e4529 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.java @@ -0,0 +1,289 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.JSON_PROPERTY_ID, + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.JSON_PROPERTY_INCOMING_VALUE, + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.JSON_PROPERTY_NAME, + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.JSON_PROPERTY_OUTGOING_VALUE, + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.JSON_PROPERTY_TYPE, + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems.JSON_PROPERTY_VALUE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SankeyResponseDataAttributesNodesItemsAggregatedNodesItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_INCOMING_VALUE = "incoming_value"; + private Long incomingValue; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_OUTGOING_VALUE = "outgoing_value"; + private Long outgoingValue; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public static final String JSON_PROPERTY_VALUE = "value"; + private Long value; + + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems incomingValue( + Long incomingValue) { + this.incomingValue = incomingValue; + return this; + } + + /** + * GetincomingValue + * + * @return incomingValue + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCOMING_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getIncomingValue() { + return incomingValue; + } + + public void setIncomingValue(Long incomingValue) { + this.incomingValue = incomingValue; + } + + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems outgoingValue( + Long outgoingValue) { + this.outgoingValue = outgoingValue; + return this; + } + + /** + * GetoutgoingValue + * + * @return outgoingValue + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OUTGOING_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getOutgoingValue() { + return outgoingValue; + } + + public void setOutgoingValue(Long outgoingValue) { + this.outgoingValue = outgoingValue; + } + + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems type(String type) { + this.type = type; + return this; + } + + /** + * Gettype + * + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems value(Long value) { + this.value = value; + return this; + } + + /** + * Getvalue + * + * @return value + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getValue() { + return value; + } + + public void setValue(Long value) { + this.value = value; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SankeyResponseDataAttributesNodesItemsAggregatedNodesItems + */ + @JsonAnySetter + public SankeyResponseDataAttributesNodesItemsAggregatedNodesItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SankeyResponseDataAttributesNodesItemsAggregatedNodesItems object is equal + * to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SankeyResponseDataAttributesNodesItemsAggregatedNodesItems + sankeyResponseDataAttributesNodesItemsAggregatedNodesItems = + (SankeyResponseDataAttributesNodesItemsAggregatedNodesItems) o; + return Objects.equals(this.id, sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.id) + && Objects.equals( + this.incomingValue, + sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.incomingValue) + && Objects.equals( + this.name, sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.name) + && Objects.equals( + this.outgoingValue, + sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.outgoingValue) + && Objects.equals( + this.type, sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.type) + && Objects.equals( + this.value, sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.value) + && Objects.equals( + this.additionalProperties, + sankeyResponseDataAttributesNodesItemsAggregatedNodesItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, incomingValue, name, outgoingValue, type, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SankeyResponseDataAttributesNodesItemsAggregatedNodesItems {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" incomingValue: ").append(toIndentedString(incomingValue)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" outgoingValue: ").append(toIndentedString(outgoingValue)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataType.java b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataType.java new file mode 100644 index 00000000000..c1de5aa3cb1 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SankeyResponseDataType.java @@ -0,0 +1,57 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = SankeyResponseDataType.SankeyResponseDataTypeSerializer.class) +public class SankeyResponseDataType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("sankey_response")); + + public static final SankeyResponseDataType SANKEY_RESPONSE = + new SankeyResponseDataType("sankey_response"); + + SankeyResponseDataType(String value) { + super(value, allowedValues); + } + + public static class SankeyResponseDataTypeSerializer + extends StdSerializer { + public SankeyResponseDataTypeSerializer(Class t) { + super(t); + } + + public SankeyResponseDataTypeSerializer() { + this(null); + } + + @Override + public void serialize( + SankeyResponseDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SankeyResponseDataType fromValue(String value) { + return new SankeyResponseDataType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/Segment.java b/src/main/java/com/datadog/api/client/v2/model/Segment.java new file mode 100644 index 00000000000..ea374d81557 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/Segment.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({Segment.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class Segment { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private SegmentData data; + + public Segment data(SegmentData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SegmentData getData() { + return data; + } + + public void setData(SegmentData data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return Segment + */ + @JsonAnySetter + public Segment putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this Segment object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Segment segment = (Segment) o; + return Objects.equals(this.data, segment.data) + && Objects.equals(this.additionalProperties, segment.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Segment {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentArray.java b/src/main/java/com/datadog/api/client/v2/model/SegmentArray.java new file mode 100644 index 00000000000..640004b8b93 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentArray.java @@ -0,0 +1,154 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({SegmentArray.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentArray { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public SegmentArray() {} + + @JsonCreator + public SegmentArray( + @JsonProperty(required = true, value = JSON_PROPERTY_DATA) List data) { + this.data = data; + } + + public SegmentArray data(List data) { + this.data = data; + for (SegmentData item : data) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SegmentArray addDataItem(SegmentData dataItem) { + this.data.add(dataItem); + this.unparsed |= dataItem.unparsed; + return this; + } + + /** + * Getdata + * + * @return data + */ + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentArray + */ + @JsonAnySetter + public SegmentArray putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentArray object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentArray segmentArray = (SegmentArray) o; + return Objects.equals(this.data, segmentArray.data) + && Objects.equals(this.additionalProperties, segmentArray.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentArray {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentData.java b/src/main/java/com/datadog/api/client/v2/model/SegmentData.java new file mode 100644 index 00000000000..d9e1aca3d1f --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentData.java @@ -0,0 +1,205 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentData.JSON_PROPERTY_ATTRIBUTES, + SegmentData.JSON_PROPERTY_ID, + SegmentData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private SegmentDataAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private SegmentDataType type = SegmentDataType.SEGMENT; + + public SegmentData() {} + + @JsonCreator + public SegmentData( + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) SegmentDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + } + + public SegmentData attributes(SegmentDataAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Getattributes + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SegmentDataAttributes getAttributes() { + return attributes; + } + + public void setAttributes(SegmentDataAttributes attributes) { + this.attributes = attributes; + } + + public SegmentData id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SegmentData type(SegmentDataType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Gettype + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SegmentDataType getType() { + return type; + } + + public void setType(SegmentDataType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentData + */ + @JsonAnySetter + public SegmentData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentData object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentData segmentData = (SegmentData) o; + return Objects.equals(this.attributes, segmentData.attributes) + && Objects.equals(this.id, segmentData.id) + && Objects.equals(this.type, segmentData.type) + && Objects.equals(this.additionalProperties, segmentData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributes.java new file mode 100644 index 00000000000..4bf7ec46833 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributes.java @@ -0,0 +1,560 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributes.JSON_PROPERTY_CREATED_AT, + SegmentDataAttributes.JSON_PROPERTY_CREATED_BY, + SegmentDataAttributes.JSON_PROPERTY_DATA_QUERY, + SegmentDataAttributes.JSON_PROPERTY_DESCRIPTION, + SegmentDataAttributes.JSON_PROPERTY_DISABLED_AT, + SegmentDataAttributes.JSON_PROPERTY_DISABLED_BY, + SegmentDataAttributes.JSON_PROPERTY_MATERIALIZATION_ROW_COUNT, + SegmentDataAttributes.JSON_PROPERTY_MATERIALIZED_AT, + SegmentDataAttributes.JSON_PROPERTY_MODIFIED_AT, + SegmentDataAttributes.JSON_PROPERTY_MODIFIED_BY, + SegmentDataAttributes.JSON_PROPERTY_NAME, + SegmentDataAttributes.JSON_PROPERTY_ORG_ID, + SegmentDataAttributes.JSON_PROPERTY_SOURCE, + SegmentDataAttributes.JSON_PROPERTY_TAGS, + SegmentDataAttributes.JSON_PROPERTY_VERSION +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_CREATED_BY = "created_by"; + private SegmentDataSource createdBy; + + public static final String JSON_PROPERTY_DATA_QUERY = "data_query"; + private SegmentDataAttributesDataQuery dataQuery; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_DISABLED_AT = "disabled_at"; + private OffsetDateTime disabledAt; + + public static final String JSON_PROPERTY_DISABLED_BY = "disabled_by"; + private SegmentDataSource disabledBy; + + public static final String JSON_PROPERTY_MATERIALIZATION_ROW_COUNT = "materialization_row_count"; + private Long materializationRowCount; + + public static final String JSON_PROPERTY_MATERIALIZED_AT = "materialized_at"; + private String materializedAt; + + public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at"; + private OffsetDateTime modifiedAt; + + public static final String JSON_PROPERTY_MODIFIED_BY = "modified_by"; + private SegmentDataSource modifiedBy; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_ORG_ID = "org_id"; + private Long orgId; + + public static final String JSON_PROPERTY_SOURCE = "source"; + private Long source; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private List tags = null; + + public static final String JSON_PROPERTY_VERSION = "version"; + private Long version; + + public SegmentDataAttributes() {} + + @JsonCreator + public SegmentDataAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_DATA_QUERY) + SegmentDataAttributesDataQuery dataQuery, + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.dataQuery = dataQuery; + this.unparsed |= dataQuery.unparsed; + this.name = name; + } + + public SegmentDataAttributes createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * GetcreatedAt + * + * @return createdAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + public SegmentDataAttributes createdBy(SegmentDataSource createdBy) { + this.createdBy = createdBy; + this.unparsed |= createdBy.unparsed; + return this; + } + + /** + * GetcreatedBy + * + * @return createdBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SegmentDataSource getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(SegmentDataSource createdBy) { + this.createdBy = createdBy; + } + + public SegmentDataAttributes dataQuery(SegmentDataAttributesDataQuery dataQuery) { + this.dataQuery = dataQuery; + this.unparsed |= dataQuery.unparsed; + return this; + } + + /** + * GetdataQuery + * + * @return dataQuery + */ + @JsonProperty(JSON_PROPERTY_DATA_QUERY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SegmentDataAttributesDataQuery getDataQuery() { + return dataQuery; + } + + public void setDataQuery(SegmentDataAttributesDataQuery dataQuery) { + this.dataQuery = dataQuery; + } + + public SegmentDataAttributes description(String description) { + this.description = description; + return this; + } + + /** + * Getdescription + * + * @return description + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public SegmentDataAttributes disabledAt(OffsetDateTime disabledAt) { + this.disabledAt = disabledAt; + return this; + } + + /** + * GetdisabledAt + * + * @return disabledAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DISABLED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getDisabledAt() { + return disabledAt; + } + + public void setDisabledAt(OffsetDateTime disabledAt) { + this.disabledAt = disabledAt; + } + + public SegmentDataAttributes disabledBy(SegmentDataSource disabledBy) { + this.disabledBy = disabledBy; + this.unparsed |= disabledBy.unparsed; + return this; + } + + /** + * GetdisabledBy + * + * @return disabledBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DISABLED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SegmentDataSource getDisabledBy() { + return disabledBy; + } + + public void setDisabledBy(SegmentDataSource disabledBy) { + this.disabledBy = disabledBy; + } + + public SegmentDataAttributes materializationRowCount(Long materializationRowCount) { + this.materializationRowCount = materializationRowCount; + return this; + } + + /** + * GetmaterializationRowCount + * + * @return materializationRowCount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MATERIALIZATION_ROW_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getMaterializationRowCount() { + return materializationRowCount; + } + + public void setMaterializationRowCount(Long materializationRowCount) { + this.materializationRowCount = materializationRowCount; + } + + public SegmentDataAttributes materializedAt(String materializedAt) { + this.materializedAt = materializedAt; + return this; + } + + /** + * GetmaterializedAt + * + * @return materializedAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MATERIALIZED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMaterializedAt() { + return materializedAt; + } + + public void setMaterializedAt(String materializedAt) { + this.materializedAt = materializedAt; + } + + public SegmentDataAttributes modifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = modifiedAt; + return this; + } + + /** + * GetmodifiedAt + * + * @return modifiedAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MODIFIED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getModifiedAt() { + return modifiedAt; + } + + public void setModifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = modifiedAt; + } + + public SegmentDataAttributes modifiedBy(SegmentDataSource modifiedBy) { + this.modifiedBy = modifiedBy; + this.unparsed |= modifiedBy.unparsed; + return this; + } + + /** + * GetmodifiedBy + * + * @return modifiedBy + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MODIFIED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public SegmentDataSource getModifiedBy() { + return modifiedBy; + } + + public void setModifiedBy(SegmentDataSource modifiedBy) { + this.modifiedBy = modifiedBy; + } + + public SegmentDataAttributes name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SegmentDataAttributes orgId(Long orgId) { + this.orgId = orgId; + return this; + } + + /** + * GetorgId + * + * @return orgId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ORG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getOrgId() { + return orgId; + } + + public void setOrgId(Long orgId) { + this.orgId = orgId; + } + + public SegmentDataAttributes source(Long source) { + this.source = source; + return this; + } + + /** + * Getsource + * + * @return source + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getSource() { + return source; + } + + public void setSource(Long source) { + this.source = source; + } + + public SegmentDataAttributes tags(List tags) { + this.tags = tags; + return this; + } + + public SegmentDataAttributes addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Gettags + * + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public SegmentDataAttributes version(Long version) { + this.version = version; + return this; + } + + /** + * Getversion + * + * @return version + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VERSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getVersion() { + return version; + } + + public void setVersion(Long version) { + this.version = version; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributes + */ + @JsonAnySetter + public SegmentDataAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributes segmentDataAttributes = (SegmentDataAttributes) o; + return Objects.equals(this.createdAt, segmentDataAttributes.createdAt) + && Objects.equals(this.createdBy, segmentDataAttributes.createdBy) + && Objects.equals(this.dataQuery, segmentDataAttributes.dataQuery) + && Objects.equals(this.description, segmentDataAttributes.description) + && Objects.equals(this.disabledAt, segmentDataAttributes.disabledAt) + && Objects.equals(this.disabledBy, segmentDataAttributes.disabledBy) + && Objects.equals( + this.materializationRowCount, segmentDataAttributes.materializationRowCount) + && Objects.equals(this.materializedAt, segmentDataAttributes.materializedAt) + && Objects.equals(this.modifiedAt, segmentDataAttributes.modifiedAt) + && Objects.equals(this.modifiedBy, segmentDataAttributes.modifiedBy) + && Objects.equals(this.name, segmentDataAttributes.name) + && Objects.equals(this.orgId, segmentDataAttributes.orgId) + && Objects.equals(this.source, segmentDataAttributes.source) + && Objects.equals(this.tags, segmentDataAttributes.tags) + && Objects.equals(this.version, segmentDataAttributes.version) + && Objects.equals(this.additionalProperties, segmentDataAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + createdAt, + createdBy, + dataQuery, + description, + disabledAt, + disabledBy, + materializationRowCount, + materializedAt, + modifiedAt, + modifiedBy, + name, + orgId, + source, + tags, + version, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributes {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" dataQuery: ").append(toIndentedString(dataQuery)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" disabledAt: ").append(toIndentedString(disabledAt)).append("\n"); + sb.append(" disabledBy: ").append(toIndentedString(disabledBy)).append("\n"); + sb.append(" materializationRowCount: ") + .append(toIndentedString(materializationRowCount)) + .append("\n"); + sb.append(" materializedAt: ").append(toIndentedString(materializedAt)).append("\n"); + sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); + sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" orgId: ").append(toIndentedString(orgId)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQuery.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQuery.java new file mode 100644 index 00000000000..7bf71c222e4 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQuery.java @@ -0,0 +1,308 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQuery.JSON_PROPERTY_COMBINATION, + SegmentDataAttributesDataQuery.JSON_PROPERTY_EVENT_PLATFORM, + SegmentDataAttributesDataQuery.JSON_PROPERTY_REFERENCE_TABLE, + SegmentDataAttributesDataQuery.JSON_PROPERTY_STATIC, + SegmentDataAttributesDataQuery.JSON_PROPERTY_USER_STORE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQuery { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COMBINATION = "combination"; + private String combination; + + public static final String JSON_PROPERTY_EVENT_PLATFORM = "event_platform"; + private List eventPlatform = null; + + public static final String JSON_PROPERTY_REFERENCE_TABLE = "reference_table"; + private List referenceTable = null; + + public static final String JSON_PROPERTY_STATIC = "static"; + private List _static = null; + + public static final String JSON_PROPERTY_USER_STORE = "user_store"; + private List userStore = null; + + public SegmentDataAttributesDataQuery combination(String combination) { + this.combination = combination; + return this; + } + + /** + * Getcombination + * + * @return combination + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COMBINATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCombination() { + return combination; + } + + public void setCombination(String combination) { + this.combination = combination; + } + + public SegmentDataAttributesDataQuery eventPlatform( + List eventPlatform) { + this.eventPlatform = eventPlatform; + for (SegmentDataAttributesDataQueryEventPlatformItems item : eventPlatform) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SegmentDataAttributesDataQuery addEventPlatformItem( + SegmentDataAttributesDataQueryEventPlatformItems eventPlatformItem) { + if (this.eventPlatform == null) { + this.eventPlatform = new ArrayList<>(); + } + this.eventPlatform.add(eventPlatformItem); + this.unparsed |= eventPlatformItem.unparsed; + return this; + } + + /** + * GeteventPlatform + * + * @return eventPlatform + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EVENT_PLATFORM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getEventPlatform() { + return eventPlatform; + } + + public void setEventPlatform( + List eventPlatform) { + this.eventPlatform = eventPlatform; + } + + public SegmentDataAttributesDataQuery referenceTable( + List referenceTable) { + this.referenceTable = referenceTable; + for (SegmentDataAttributesDataQueryReferenceTableItems item : referenceTable) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SegmentDataAttributesDataQuery addReferenceTableItem( + SegmentDataAttributesDataQueryReferenceTableItems referenceTableItem) { + if (this.referenceTable == null) { + this.referenceTable = new ArrayList<>(); + } + this.referenceTable.add(referenceTableItem); + this.unparsed |= referenceTableItem.unparsed; + return this; + } + + /** + * GetreferenceTable + * + * @return referenceTable + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REFERENCE_TABLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getReferenceTable() { + return referenceTable; + } + + public void setReferenceTable( + List referenceTable) { + this.referenceTable = referenceTable; + } + + public SegmentDataAttributesDataQuery _static( + List _static) { + this._static = _static; + for (SegmentDataAttributesDataQueryStaticItems item : _static) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SegmentDataAttributesDataQuery add_staticItem( + SegmentDataAttributesDataQueryStaticItems _staticItem) { + if (this._static == null) { + this._static = new ArrayList<>(); + } + this._static.add(_staticItem); + this.unparsed |= _staticItem.unparsed; + return this; + } + + /** + * Get_static + * + * @return _static + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STATIC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getStatic() { + return _static; + } + + public void setStatic(List _static) { + this._static = _static; + } + + public SegmentDataAttributesDataQuery userStore( + List userStore) { + this.userStore = userStore; + for (SegmentDataAttributesDataQueryUserStoreItems item : userStore) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SegmentDataAttributesDataQuery addUserStoreItem( + SegmentDataAttributesDataQueryUserStoreItems userStoreItem) { + if (this.userStore == null) { + this.userStore = new ArrayList<>(); + } + this.userStore.add(userStoreItem); + this.unparsed |= userStoreItem.unparsed; + return this; + } + + /** + * GetuserStore + * + * @return userStore + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USER_STORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getUserStore() { + return userStore; + } + + public void setUserStore(List userStore) { + this.userStore = userStore; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQuery + */ + @JsonAnySetter + public SegmentDataAttributesDataQuery putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataAttributesDataQuery object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQuery segmentDataAttributesDataQuery = + (SegmentDataAttributesDataQuery) o; + return Objects.equals(this.combination, segmentDataAttributesDataQuery.combination) + && Objects.equals(this.eventPlatform, segmentDataAttributesDataQuery.eventPlatform) + && Objects.equals(this.referenceTable, segmentDataAttributesDataQuery.referenceTable) + && Objects.equals(this._static, segmentDataAttributesDataQuery._static) + && Objects.equals(this.userStore, segmentDataAttributesDataQuery.userStore) + && Objects.equals( + this.additionalProperties, segmentDataAttributesDataQuery.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + combination, eventPlatform, referenceTable, _static, userStore, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQuery {\n"); + sb.append(" combination: ").append(toIndentedString(combination)).append("\n"); + sb.append(" eventPlatform: ").append(toIndentedString(eventPlatform)).append("\n"); + sb.append(" referenceTable: ").append(toIndentedString(referenceTable)).append("\n"); + sb.append(" _static: ").append(toIndentedString(_static)).append("\n"); + sb.append(" userStore: ").append(toIndentedString(userStore)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryEventPlatformItems.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryEventPlatformItems.java new file mode 100644 index 00000000000..71dd9a15fde --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryEventPlatformItems.java @@ -0,0 +1,258 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQueryEventPlatformItems.JSON_PROPERTY_FACET, + SegmentDataAttributesDataQueryEventPlatformItems.JSON_PROPERTY_FROM, + SegmentDataAttributesDataQueryEventPlatformItems.JSON_PROPERTY_NAME, + SegmentDataAttributesDataQueryEventPlatformItems.JSON_PROPERTY_QUERY, + SegmentDataAttributesDataQueryEventPlatformItems.JSON_PROPERTY_TO +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQueryEventPlatformItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FACET = "facet"; + private String facet; + + public static final String JSON_PROPERTY_FROM = "from"; + private String from; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public static final String JSON_PROPERTY_TO = "to"; + private String to; + + public SegmentDataAttributesDataQueryEventPlatformItems() {} + + @JsonCreator + public SegmentDataAttributesDataQueryEventPlatformItems( + @JsonProperty(required = true, value = JSON_PROPERTY_FACET) String facet) { + this.facet = facet; + } + + public SegmentDataAttributesDataQueryEventPlatformItems facet(String facet) { + this.facet = facet; + return this; + } + + /** + * Getfacet + * + * @return facet + */ + @JsonProperty(JSON_PROPERTY_FACET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getFacet() { + return facet; + } + + public void setFacet(String facet) { + this.facet = facet; + } + + public SegmentDataAttributesDataQueryEventPlatformItems from(String from) { + this.from = from; + return this; + } + + /** + * Getfrom + * + * @return from + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public SegmentDataAttributesDataQueryEventPlatformItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SegmentDataAttributesDataQueryEventPlatformItems query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public SegmentDataAttributesDataQueryEventPlatformItems to(String to) { + this.to = to; + return this; + } + + /** + * Getto + * + * @return to + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQueryEventPlatformItems + */ + @JsonAnySetter + public SegmentDataAttributesDataQueryEventPlatformItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataAttributesDataQueryEventPlatformItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQueryEventPlatformItems + segmentDataAttributesDataQueryEventPlatformItems = + (SegmentDataAttributesDataQueryEventPlatformItems) o; + return Objects.equals(this.facet, segmentDataAttributesDataQueryEventPlatformItems.facet) + && Objects.equals(this.from, segmentDataAttributesDataQueryEventPlatformItems.from) + && Objects.equals(this.name, segmentDataAttributesDataQueryEventPlatformItems.name) + && Objects.equals(this.query, segmentDataAttributesDataQueryEventPlatformItems.query) + && Objects.equals(this.to, segmentDataAttributesDataQueryEventPlatformItems.to) + && Objects.equals( + this.additionalProperties, + segmentDataAttributesDataQueryEventPlatformItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(facet, from, name, query, to, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQueryEventPlatformItems {\n"); + sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItems.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItems.java new file mode 100644 index 00000000000..0b0c5ad1622 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItems.java @@ -0,0 +1,284 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQueryReferenceTableItems.JSON_PROPERTY_COLUMNS, + SegmentDataAttributesDataQueryReferenceTableItems.JSON_PROPERTY_FILTER_QUERY, + SegmentDataAttributesDataQueryReferenceTableItems.JSON_PROPERTY_JOIN_CONDITION, + SegmentDataAttributesDataQueryReferenceTableItems.JSON_PROPERTY_NAME, + SegmentDataAttributesDataQueryReferenceTableItems.JSON_PROPERTY_TABLE_NAME +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQueryReferenceTableItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COLUMNS = "columns"; + private List columns = null; + + public static final String JSON_PROPERTY_FILTER_QUERY = "filter_query"; + private String filterQuery; + + public static final String JSON_PROPERTY_JOIN_CONDITION = "join_condition"; + private SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition joinCondition; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_TABLE_NAME = "table_name"; + private String tableName; + + public SegmentDataAttributesDataQueryReferenceTableItems() {} + + @JsonCreator + public SegmentDataAttributesDataQueryReferenceTableItems( + @JsonProperty(required = true, value = JSON_PROPERTY_JOIN_CONDITION) + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition joinCondition, + @JsonProperty(required = true, value = JSON_PROPERTY_TABLE_NAME) String tableName) { + this.joinCondition = joinCondition; + this.unparsed |= joinCondition.unparsed; + this.tableName = tableName; + } + + public SegmentDataAttributesDataQueryReferenceTableItems columns( + List columns) { + this.columns = columns; + for (SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems item : columns) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SegmentDataAttributesDataQueryReferenceTableItems addColumnsItem( + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems columnsItem) { + if (this.columns == null) { + this.columns = new ArrayList<>(); + } + this.columns.add(columnsItem); + this.unparsed |= columnsItem.unparsed; + return this; + } + + /** + * Getcolumns + * + * @return columns + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COLUMNS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getColumns() { + return columns; + } + + public void setColumns( + List columns) { + this.columns = columns; + } + + public SegmentDataAttributesDataQueryReferenceTableItems filterQuery(String filterQuery) { + this.filterQuery = filterQuery; + return this; + } + + /** + * GetfilterQuery + * + * @return filterQuery + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FILTER_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFilterQuery() { + return filterQuery; + } + + public void setFilterQuery(String filterQuery) { + this.filterQuery = filterQuery; + } + + public SegmentDataAttributesDataQueryReferenceTableItems joinCondition( + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition joinCondition) { + this.joinCondition = joinCondition; + this.unparsed |= joinCondition.unparsed; + return this; + } + + /** + * GetjoinCondition + * + * @return joinCondition + */ + @JsonProperty(JSON_PROPERTY_JOIN_CONDITION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition getJoinCondition() { + return joinCondition; + } + + public void setJoinCondition( + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition joinCondition) { + this.joinCondition = joinCondition; + } + + public SegmentDataAttributesDataQueryReferenceTableItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SegmentDataAttributesDataQueryReferenceTableItems tableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * GettableName + * + * @return tableName + */ + @JsonProperty(JSON_PROPERTY_TABLE_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getTableName() { + return tableName; + } + + public void setTableName(String tableName) { + this.tableName = tableName; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQueryReferenceTableItems + */ + @JsonAnySetter + public SegmentDataAttributesDataQueryReferenceTableItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataAttributesDataQueryReferenceTableItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQueryReferenceTableItems + segmentDataAttributesDataQueryReferenceTableItems = + (SegmentDataAttributesDataQueryReferenceTableItems) o; + return Objects.equals(this.columns, segmentDataAttributesDataQueryReferenceTableItems.columns) + && Objects.equals( + this.filterQuery, segmentDataAttributesDataQueryReferenceTableItems.filterQuery) + && Objects.equals( + this.joinCondition, segmentDataAttributesDataQueryReferenceTableItems.joinCondition) + && Objects.equals(this.name, segmentDataAttributesDataQueryReferenceTableItems.name) + && Objects.equals( + this.tableName, segmentDataAttributesDataQueryReferenceTableItems.tableName) + && Objects.equals( + this.additionalProperties, + segmentDataAttributesDataQueryReferenceTableItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(columns, filterQuery, joinCondition, name, tableName, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQueryReferenceTableItems {\n"); + sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" filterQuery: ").append(toIndentedString(filterQuery)).append("\n"); + sb.append(" joinCondition: ").append(toIndentedString(joinCondition)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.java new file mode 100644 index 00000000000..f4eb8d66121 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.java @@ -0,0 +1,174 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.JSON_PROPERTY_ALIAS, + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems.JSON_PROPERTY_NAME +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ALIAS = "alias"; + private String alias; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems alias(String alias) { + this.alias = alias; + return this; + } + + /** + * Getalias + * + * @return alias + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALIAS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems + */ + @JsonAnySetter + public SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems object is + * equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems + segmentDataAttributesDataQueryReferenceTableItemsColumnsItems = + (SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems) o; + return Objects.equals( + this.alias, segmentDataAttributesDataQueryReferenceTableItemsColumnsItems.alias) + && Objects.equals( + this.name, segmentDataAttributesDataQueryReferenceTableItemsColumnsItems.name) + && Objects.equals( + this.additionalProperties, + segmentDataAttributesDataQueryReferenceTableItemsColumnsItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(alias, name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQueryReferenceTableItemsColumnsItems {\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.java new file mode 100644 index 00000000000..9ae4f0bdc69 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.java @@ -0,0 +1,184 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.JSON_PROPERTY_COLUMN_NAME, + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition.JSON_PROPERTY_FACET +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_COLUMN_NAME = "column_name"; + private String columnName; + + public static final String JSON_PROPERTY_FACET = "facet"; + private String facet; + + public SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition() {} + + @JsonCreator + public SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition( + @JsonProperty(required = true, value = JSON_PROPERTY_COLUMN_NAME) String columnName) { + this.columnName = columnName; + } + + public SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition columnName( + String columnName) { + this.columnName = columnName; + return this; + } + + /** + * GetcolumnName + * + * @return columnName + */ + @JsonProperty(JSON_PROPERTY_COLUMN_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getColumnName() { + return columnName; + } + + public void setColumnName(String columnName) { + this.columnName = columnName; + } + + public SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition facet(String facet) { + this.facet = facet; + return this; + } + + /** + * Getfacet + * + * @return facet + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FACET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFacet() { + return facet; + } + + public void setFacet(String facet) { + this.facet = facet; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition + */ + @JsonAnySetter + public SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition object is + * equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition + segmentDataAttributesDataQueryReferenceTableItemsJoinCondition = + (SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition) o; + return Objects.equals( + this.columnName, + segmentDataAttributesDataQueryReferenceTableItemsJoinCondition.columnName) + && Objects.equals( + this.facet, segmentDataAttributesDataQueryReferenceTableItemsJoinCondition.facet) + && Objects.equals( + this.additionalProperties, + segmentDataAttributesDataQueryReferenceTableItemsJoinCondition.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(columnName, facet, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQueryReferenceTableItemsJoinCondition {\n"); + sb.append(" columnName: ").append(toIndentedString(columnName)).append("\n"); + sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryStaticItems.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryStaticItems.java new file mode 100644 index 00000000000..bc51ac19ee0 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryStaticItems.java @@ -0,0 +1,194 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQueryStaticItems.JSON_PROPERTY_ID, + SegmentDataAttributesDataQueryStaticItems.JSON_PROPERTY_NAME, + SegmentDataAttributesDataQueryStaticItems.JSON_PROPERTY_USER_COUNT +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQueryStaticItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_USER_COUNT = "user_count"; + private Long userCount; + + public SegmentDataAttributesDataQueryStaticItems id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SegmentDataAttributesDataQueryStaticItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SegmentDataAttributesDataQueryStaticItems userCount(Long userCount) { + this.userCount = userCount; + return this; + } + + /** + * GetuserCount minimum: 0 + * + * @return userCount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_USER_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getUserCount() { + return userCount; + } + + public void setUserCount(Long userCount) { + this.userCount = userCount; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQueryStaticItems + */ + @JsonAnySetter + public SegmentDataAttributesDataQueryStaticItems putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataAttributesDataQueryStaticItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQueryStaticItems segmentDataAttributesDataQueryStaticItems = + (SegmentDataAttributesDataQueryStaticItems) o; + return Objects.equals(this.id, segmentDataAttributesDataQueryStaticItems.id) + && Objects.equals(this.name, segmentDataAttributesDataQueryStaticItems.name) + && Objects.equals(this.userCount, segmentDataAttributesDataQueryStaticItems.userCount) + && Objects.equals( + this.additionalProperties, + segmentDataAttributesDataQueryStaticItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, userCount, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQueryStaticItems {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" userCount: ").append(toIndentedString(userCount)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryUserStoreItems.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryUserStoreItems.java new file mode 100644 index 00000000000..91ecde65329 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataAttributesDataQueryUserStoreItems.java @@ -0,0 +1,195 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataAttributesDataQueryUserStoreItems.JSON_PROPERTY_FACET, + SegmentDataAttributesDataQueryUserStoreItems.JSON_PROPERTY_NAME, + SegmentDataAttributesDataQueryUserStoreItems.JSON_PROPERTY_QUERY +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataAttributesDataQueryUserStoreItems { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_FACET = "facet"; + private String facet; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUERY = "query"; + private String query; + + public SegmentDataAttributesDataQueryUserStoreItems facet(String facet) { + this.facet = facet; + return this; + } + + /** + * Getfacet + * + * @return facet + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FACET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFacet() { + return facet; + } + + public void setFacet(String facet) { + this.facet = facet; + } + + public SegmentDataAttributesDataQueryUserStoreItems name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SegmentDataAttributesDataQueryUserStoreItems query(String query) { + this.query = query; + return this; + } + + /** + * Getquery + * + * @return query + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataAttributesDataQueryUserStoreItems + */ + @JsonAnySetter + public SegmentDataAttributesDataQueryUserStoreItems putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataAttributesDataQueryUserStoreItems object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataAttributesDataQueryUserStoreItems segmentDataAttributesDataQueryUserStoreItems = + (SegmentDataAttributesDataQueryUserStoreItems) o; + return Objects.equals(this.facet, segmentDataAttributesDataQueryUserStoreItems.facet) + && Objects.equals(this.name, segmentDataAttributesDataQueryUserStoreItems.name) + && Objects.equals(this.query, segmentDataAttributesDataQueryUserStoreItems.query) + && Objects.equals( + this.additionalProperties, + segmentDataAttributesDataQueryUserStoreItems.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(facet, name, query, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataAttributesDataQueryUserStoreItems {\n"); + sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataSource.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataSource.java new file mode 100644 index 00000000000..5f1a01ff36e --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataSource.java @@ -0,0 +1,255 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** */ +@JsonPropertyOrder({ + SegmentDataSource.JSON_PROPERTY_HANDLE, + SegmentDataSource.JSON_PROPERTY_ICON, + SegmentDataSource.JSON_PROPERTY_ID, + SegmentDataSource.JSON_PROPERTY_NAME, + SegmentDataSource.JSON_PROPERTY_UUID +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SegmentDataSource { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_HANDLE = "handle"; + private String handle; + + public static final String JSON_PROPERTY_ICON = "icon"; + private String icon; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_UUID = "uuid"; + private String uuid; + + public SegmentDataSource() {} + + @JsonCreator + public SegmentDataSource( + @JsonProperty(required = true, value = JSON_PROPERTY_HANDLE) String handle, + @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, + @JsonProperty(required = true, value = JSON_PROPERTY_UUID) String uuid) { + this.handle = handle; + this.id = id; + this.uuid = uuid; + } + + public SegmentDataSource handle(String handle) { + this.handle = handle; + return this; + } + + /** + * Gethandle + * + * @return handle + */ + @JsonProperty(JSON_PROPERTY_HANDLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getHandle() { + return handle; + } + + public void setHandle(String handle) { + this.handle = handle; + } + + public SegmentDataSource icon(String icon) { + this.icon = icon; + return this; + } + + /** + * Geticon + * + * @return icon + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ICON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public SegmentDataSource id(String id) { + this.id = id; + return this; + } + + /** + * Getid + * + * @return id + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SegmentDataSource name(String name) { + this.name = name; + return this; + } + + /** + * Getname + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SegmentDataSource uuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * Getuuid + * + * @return uuid + */ + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SegmentDataSource + */ + @JsonAnySetter + public SegmentDataSource putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SegmentDataSource object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SegmentDataSource segmentDataSource = (SegmentDataSource) o; + return Objects.equals(this.handle, segmentDataSource.handle) + && Objects.equals(this.icon, segmentDataSource.icon) + && Objects.equals(this.id, segmentDataSource.id) + && Objects.equals(this.name, segmentDataSource.name) + && Objects.equals(this.uuid, segmentDataSource.uuid) + && Objects.equals(this.additionalProperties, segmentDataSource.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(handle, icon, id, name, uuid, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SegmentDataSource {\n"); + sb.append(" handle: ").append(toIndentedString(handle)).append("\n"); + sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SegmentDataType.java b/src/main/java/com/datadog/api/client/v2/model/SegmentDataType.java new file mode 100644 index 00000000000..f0f717e5249 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SegmentDataType.java @@ -0,0 +1,53 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** */ +@JsonSerialize(using = SegmentDataType.SegmentDataTypeSerializer.class) +public class SegmentDataType extends ModelEnum { + + private static final Set allowedValues = new HashSet(Arrays.asList("segment")); + + public static final SegmentDataType SEGMENT = new SegmentDataType("segment"); + + SegmentDataType(String value) { + super(value, allowedValues); + } + + public static class SegmentDataTypeSerializer extends StdSerializer { + public SegmentDataTypeSerializer(Class t) { + super(t); + } + + public SegmentDataTypeSerializer() { + this(null); + } + + @Override + public void serialize(SegmentDataType value, JsonGenerator jgen, SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SegmentDataType fromValue(String value) { + return new SegmentDataType(value); + } +} diff --git a/src/test/resources/com/datadog/api/client/v2/api/cohort.feature b/src/test/resources/com/datadog/api/client/v2/api/cohort.feature new file mode 100644 index 00000000000..8ca5e7bbdd9 --- /dev/null +++ b/src/test/resources/com/datadog/api/client/v2/api/cohort.feature @@ -0,0 +1,24 @@ +@endpoint(cohort) @endpoint(cohort-v2) +Feature: Cohort + API for Cohort. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "Cohort" API + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum cohort returns "Successful response with cohort analysis data" response + Given operation "GetRumCohort" enabled + And new "GetRumCohort" request + And body with value {"data": {"attributes": {"definition": {"audience_filters": {"accounts": [{"name": ""}], "segments": [{"name": "", "segment_id": ""}], "users": [{"name": ""}]}}, "time": {}}, "type": "cohort_request"}} + When the request is sent + Then the response status is 200 Successful response with cohort analysis data + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum cohort users returns "Successful response with cohort users" response + Given operation "GetRumCohortUsers" enabled + And new "GetRumCohortUsers" request + And body with value {"data": {"attributes": {"definition": {"audience_filters": {"accounts": [{"name": ""}], "segments": [{"name": "", "segment_id": ""}], "users": [{"name": ""}]}}, "time": {}}, "type": "cohort_users_request"}} + When the request is sent + Then the response status is 200 Successful response with cohort users diff --git a/src/test/resources/com/datadog/api/client/v2/api/funnel.feature b/src/test/resources/com/datadog/api/client/v2/api/funnel.feature new file mode 100644 index 00000000000..929450400fe --- /dev/null +++ b/src/test/resources/com/datadog/api/client/v2/api/funnel.feature @@ -0,0 +1,24 @@ +@endpoint(funnel) @endpoint(funnel-v2) +Feature: Funnel + API for funnel. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "Funnel" API + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum funnel returns "Successful response with funnel analysis data" response + Given operation "GetRumFunnel" enabled + And new "GetRumFunnel" request + And body with value {"data": {"attributes": {"data_source": "rum", "enforced_execution_type": "", "request_id": "", "search": {"cross_session_filter": "", "query_string": "@type:view", "steps": [{"facet": "@view.name", "step_filter": "", "value": "/apm/home"}, {"facet": "@view.name", "step_filter": "", "value": "/apm/traces"}], "subquery_id": ""}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "funnel_request", "type": "funnel_request"}} + When the request is sent + Then the response status is 200 Successful response with funnel analysis data + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum funnel step suggestions returns "Successful response with funnel step suggestions" response + Given operation "GetRumFunnelStepSuggestions" enabled + And new "GetRumFunnelStepSuggestions" request + And body with value {"data": {"attributes": {"data_source": "", "search": {"cross_session_filter": "", "query_string": "@type:view", "steps": [{"facet": "@view.name", "step_filter": "", "value": "/apm/home"}], "subquery_id": ""}, "term_search": {"query": "apm"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "funnel_suggestion_request", "type": "funnel_suggestion_request"}} + When the request is sent + Then the response status is 200 Successful response with funnel step suggestions diff --git a/src/test/resources/com/datadog/api/client/v2/api/segments.feature b/src/test/resources/com/datadog/api/client/v2/api/segments.feature new file mode 100644 index 00000000000..95cc467d6d6 --- /dev/null +++ b/src/test/resources/com/datadog/api/client/v2/api/segments.feature @@ -0,0 +1,30 @@ +@endpoint(segments) @endpoint(segments-v2) +Feature: Segments + API for segments. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "Segments" API + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Create rum segment returns "Segment created successfully" response + Given operation "CreateRumSegment" enabled + And new "CreateRumSegment" request + And body with value {"data": {"attributes": {"created_at": "0001-01-01T00:00:00Z", "created_by": {"handle": "", "id": "", "uuid": ""}, "data_query": {"event_platform": [{"facet": "@usr.id", "from": "2025-08-01", "name": "high_value_users", "query": "@type:view @view.name:/logs @usr.session_duration:>300000", "to": "2025-09-01"}]}, "description": "Users who frequently visit logs and have high session duration", "modified_at": "0001-01-01T00:00:00Z", "modified_by": {"handle": "", "id": "", "uuid": ""}, "name": "High-Value Users", "org_id": 123456, "source": 0, "tags": ["high-value", "logs", "active"], "version": 1}, "id": "segment-12345", "type": "segment"}} + When the request is sent + Then the response status is 201 Segment created successfully + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Initialize rum segments returns "Default segments created successfully" response + Given operation "InitializeRumSegments" enabled + And new "InitializeRumSegments" request + When the request is sent + Then the response status is 200 Default segments created successfully + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: List rum segments returns "Successful response with list of segments" response + Given operation "ListRumSegments" enabled + And new "ListRumSegments" request + When the request is sent + Then the response status is 200 Successful response with list of segments diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index f4a7f9e7f8d..f019e40f8b6 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -3254,6 +3254,18 @@ "type": "idempotent" } }, + "GetRumCohort": { + "tag": "Cohort", + "undo": { + "type": "safe" + } + }, + "GetRumCohortUsers": { + "tag": "Cohort", + "undo": { + "type": "safe" + } + }, "ListRumMetrics": { "tag": "Rum Metrics", "undo": { @@ -3303,6 +3315,42 @@ "type": "safe" } }, + "GetRumFunnel": { + "tag": "Funnel", + "undo": { + "type": "safe" + } + }, + "GetRumFunnelStepSuggestions": { + "tag": "Funnel", + "undo": { + "type": "safe" + } + }, + "GetRumSankey": { + "tag": "User Flow", + "undo": { + "type": "safe" + } + }, + "ListRumSegments": { + "tag": "Segments", + "undo": { + "type": "safe" + } + }, + "CreateRumSegment": { + "tag": "Segments", + "undo": { + "type": "safe" + } + }, + "InitializeRumSegments": { + "tag": "Segments", + "undo": { + "type": "safe" + } + }, "UploadIdPMetadata": { "tag": "Organizations", "undo": { diff --git a/src/test/resources/com/datadog/api/client/v2/api/user_flow.feature b/src/test/resources/com/datadog/api/client/v2/api/user_flow.feature new file mode 100644 index 00000000000..6dca1f69876 --- /dev/null +++ b/src/test/resources/com/datadog/api/client/v2/api/user_flow.feature @@ -0,0 +1,14 @@ +@endpoint(user-flow) @endpoint(user-flow-v2) +Feature: User Flow + API for user flow. + + @generated @skip @team:DataDog/product-analytics-backend + Scenario: Get rum sankey returns "Successful response with Sankey diagram data" response + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "UserFlow" API + And operation "GetRumSankey" enabled + And new "GetRumSankey" request + And body with value {"data": {"attributes": {"data_source": "", "definition": {"entries_per_step": 10, "number_of_steps": 5, "source": "@view.name", "target": "@view.name"}, "enforced_execution_type": "", "request_id": "", "sampling": {"enabled": true}, "search": {"audience_filters": {}, "query": "@type:view @application.id:*", "subquery_id": ""}, "time": {"from": 1756425600000, "to": 1756857600000}}, "id": "sankey_request", "type": "sankey_request"}} + When the request is sent + Then the response status is 200 Successful response with Sankey diagram data