diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java index 257988d5f239..d4f3484fea7b 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java @@ -24,21 +24,6 @@ import com.azure.messaging.eventgrid.systemevents.AcsRecordingFileStatusUpdatedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingApplicationDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingBoundaryChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropVarietyChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmerChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFieldChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingHarvestDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingPlantingDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonalFieldChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingTillageDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueDeletedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData; import com.azure.messaging.eventgrid.systemevents.ContainerRegistryChartDeletedEventData; @@ -426,7 +411,6 @@ public final class SystemEventNames { public static final String STORAGE_BLOB_INVENTORY_POLICY_COMPLETED = "Microsoft.Storage.BlobInventoryPolicyCompleted"; - /** * indicates an event of blob renaming. */ @@ -553,67 +537,6 @@ public final class SystemEventNames { public static final String POLICY_INSIGHTS_POLICY_STATE_CHANGED = "Microsoft.PolicyInsights.PolicyStateChanged"; public static final String POLICY_INSIGHTS_POLICY_STATE_DELETED = "Microsoft.PolicyInsights.PolicyStateDeleted"; - // Agriculture Food Farming - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */ - public static final String AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED = - "Microsoft.AgFoodPlatform.ApplicationDataChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */ - public static final String AGRI_FOOD_FARMING_BOUNDARY_CHANGED = "Microsoft.AgFoodPlatform.BoundaryChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */ - public static final String AGRI_FOOD_FARMING_CROP_CHANGED = "Microsoft.AgFoodPlatform.CropChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */ - public static final String AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED = "Microsoft.AgFoodPlatform.CropVarietyChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */ - public static final String AGRI_FOOD_FARMING_FARM_CHANGED = "Microsoft.AgFoodPlatform.FarmChanged"; - - /** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. - */ - public static final String AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED = - "Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */ - public static final String AGRI_FOOD_FARMING_FARMER_CHANGED = "Microsoft.AgFoodPlatform.FarmerChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */ - public static final String AGRI_FOOD_FARMING_FIELD_CHANGED = "Microsoft.AgFoodPlatform.FieldChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */ - public static final String AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED = "Microsoft.AgFoodPlatform.HarvestDataChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */ - public static final String AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED = "Microsoft.AgFoodPlatform.PlantingDataChanged"; - - /** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. - */ - public static final String AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED = - "Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */ - public static final String AGRI_FOOD_FARMING_SEASON_CHANGED = "Microsoft.AgFoodPlatform.SeasonChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */ - public static final String AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED = - "Microsoft.AgFoodPlatform.SeasonalFieldChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */ - public static final String AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED = "Microsoft.AgFoodPlatform.TillageDataChanged"; - - /** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event. - */ - public static final String AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED = - "Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged"; - - private static final Map> SYSTEM_EVENT_MAPPINGS = new HashMap>() { { // AppConfiguration events. @@ -772,31 +695,6 @@ public final class SystemEventNames { put(POLICY_INSIGHTS_POLICY_STATE_CREATED, PolicyInsightsPolicyStateCreatedEventData.class); put(POLICY_INSIGHTS_POLICY_STATE_CHANGED, PolicyInsightsPolicyStateChangedEventData.class); put(POLICY_INSIGHTS_POLICY_STATE_DELETED, PolicyInsightsPolicyStateDeletedEventData.class); - - // Agriculture Food Farming - put( - AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED, - AgriFoodFarmingApplicationDataChangedEventData.class); - put(AGRI_FOOD_FARMING_BOUNDARY_CHANGED, AgriFoodFarmingBoundaryChangedEventData.class); - put(AGRI_FOOD_FARMING_CROP_CHANGED, AgriFoodFarmingCropChangedEventData.class); - put(AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED, AgriFoodFarmingCropVarietyChangedEventData.class); - put(AGRI_FOOD_FARMING_FARM_CHANGED, AgriFoodFarmingFarmChangedEventData.class); - put( - AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED, - AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.class); - put(AGRI_FOOD_FARMING_FARMER_CHANGED, AgriFoodFarmingFarmerChangedEventData.class); - put(AGRI_FOOD_FARMING_FIELD_CHANGED, AgriFoodFarmingFieldChangedEventData.class); - put(AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED, AgriFoodFarmingHarvestDataChangedEventData.class); - put(AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED, AgriFoodFarmingPlantingDataChangedEventData.class); - put( - AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED, - AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.class); - put(AGRI_FOOD_FARMING_SEASON_CHANGED, AgriFoodFarmingSeasonChangedEventData.class); - put(AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED, AgriFoodFarmingSeasonalFieldChangedEventData.class); - put(AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED, AgriFoodFarmingTillageDataChangedEventData.class); - put( - AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED, - AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.class); } }; diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java index f971bb252e0e..3f00883747e1 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java @@ -24,21 +24,6 @@ import com.azure.messaging.eventgrid.systemevents.AcsRecordingFileStatusUpdatedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingApplicationDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingBoundaryChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropVarietyChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmerChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFieldChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingHarvestDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingPlantingDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonalFieldChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingTillageDataChangedEventData; -import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueDeletedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData; import com.azure.messaging.eventgrid.systemevents.ContainerRegistryChartDeletedEventData; @@ -247,65 +232,6 @@ public final class SystemEventMappingNames { /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. */ public static final String ACS_SMS_RECEIVED = "Microsoft.Communication.SMSReceived"; - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */ - public static final String AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED = - "Microsoft.AgFoodPlatform.ApplicationDataChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */ - public static final String AGRI_FOOD_FARMING_BOUNDARY_CHANGED = "Microsoft.AgFoodPlatform.BoundaryChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */ - public static final String AGRI_FOOD_FARMING_CROP_CHANGED = "Microsoft.AgFoodPlatform.CropChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */ - public static final String AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED = "Microsoft.AgFoodPlatform.CropVarietyChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */ - public static final String AGRI_FOOD_FARMING_FARM_CHANGED = "Microsoft.AgFoodPlatform.FarmChanged"; - - /** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. - */ - public static final String AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED = - "Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */ - public static final String AGRI_FOOD_FARMING_FARMER_CHANGED = "Microsoft.AgFoodPlatform.FarmerChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */ - public static final String AGRI_FOOD_FARMING_FIELD_CHANGED = "Microsoft.AgFoodPlatform.FieldChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */ - public static final String AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED = "Microsoft.AgFoodPlatform.HarvestDataChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */ - public static final String AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED = "Microsoft.AgFoodPlatform.PlantingDataChanged"; - - /** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. - */ - public static final String AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED = - "Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */ - public static final String AGRI_FOOD_FARMING_SEASON_CHANGED = "Microsoft.AgFoodPlatform.SeasonChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */ - public static final String AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED = - "Microsoft.AgFoodPlatform.SeasonalFieldChanged"; - - /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */ - public static final String AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED = "Microsoft.AgFoodPlatform.TillageDataChanged"; - - /** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event. - */ - public static final String AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED = - "Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged"; - /** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event. */ public static final String APP_CONFIGURATION_KEY_VALUE_DELETED = "Microsoft.AppConfiguration.KeyValueDeleted"; @@ -772,29 +698,6 @@ public final class SystemEventMappingNames { put(ACS_RECORDING_FILE_STATUS_UPDATED, AcsRecordingFileStatusUpdatedEventData.class); put(ACS_SMS_DELIVERY_REPORT_RECEIVED, AcsSmsDeliveryReportReceivedEventData.class); put(ACS_SMS_RECEIVED, AcsSmsReceivedEventData.class); - put( - AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED, - AgriFoodFarmingApplicationDataChangedEventData.class); - put(AGRI_FOOD_FARMING_BOUNDARY_CHANGED, AgriFoodFarmingBoundaryChangedEventData.class); - put(AGRI_FOOD_FARMING_CROP_CHANGED, AgriFoodFarmingCropChangedEventData.class); - put(AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED, AgriFoodFarmingCropVarietyChangedEventData.class); - put(AGRI_FOOD_FARMING_FARM_CHANGED, AgriFoodFarmingFarmChangedEventData.class); - put( - AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED, - AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.class); - put(AGRI_FOOD_FARMING_FARMER_CHANGED, AgriFoodFarmingFarmerChangedEventData.class); - put(AGRI_FOOD_FARMING_FIELD_CHANGED, AgriFoodFarmingFieldChangedEventData.class); - put(AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED, AgriFoodFarmingHarvestDataChangedEventData.class); - put(AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED, AgriFoodFarmingPlantingDataChangedEventData.class); - put( - AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED, - AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.class); - put(AGRI_FOOD_FARMING_SEASON_CHANGED, AgriFoodFarmingSeasonChangedEventData.class); - put(AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED, AgriFoodFarmingSeasonalFieldChangedEventData.class); - put(AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED, AgriFoodFarmingTillageDataChangedEventData.class); - put( - AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED, - AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.class); put(APP_CONFIGURATION_KEY_VALUE_DELETED, AppConfigurationKeyValueDeletedEventData.class); put(APP_CONFIGURATION_KEY_VALUE_MODIFIED, AppConfigurationKeyValueModifiedEventData.class); put(CONTAINER_REGISTRY_CHART_DELETED, ContainerRegistryChartDeletedEventData.class); @@ -934,5 +837,7 @@ public static Map> getSystemEventMappings() { return Collections.unmodifiableMap(SYSTEM_EVENT_MAPPINGS); } - private SystemEventMappingNames() { } + private SystemEventMappingNames() { + + } } diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingApplicationDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingApplicationDataChangedEventData.java deleted file mode 100644 index adc5fed3e3b3..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingApplicationDataChangedEventData.java +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */ -@Fluent -public final class AgriFoodFarmingApplicationDataChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Source of the farm operation data. - */ - @JsonProperty(value = "source") - private String source; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the source property: Source of the farm operation data. - * - * @return the source value. - */ - public String getSource() { - return this.source; - } - - /** - * Set the source property: Source of the farm operation data. - * - * @param source the source value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setSource(String source) { - this.source = source; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. - */ - public AgriFoodFarmingApplicationDataChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingBoundaryChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingBoundaryChangedEventData.java deleted file mode 100644 index 328031adb257..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingBoundaryChangedEventData.java +++ /dev/null @@ -1,359 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */ -@Fluent -public final class AgriFoodFarmingBoundaryChangedEventData { - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Id of the parent(field or seasonalField) it belongs to. - */ - @JsonProperty(value = "parentId") - private String parentId; - - /* - * Type of the parent it belongs to. - */ - @JsonProperty(value = "parentType") - private String parentType; - - /* - * A boolean flag indicating whether the boundary is primary or not. - */ - @JsonProperty(value = "isPrimary") - private Boolean isPrimary; - - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the parentId property: Id of the parent(field or seasonalField) it belongs to. - * - * @return the parentId value. - */ - public String getParentId() { - return this.parentId; - } - - /** - * Set the parentId property: Id of the parent(field or seasonalField) it belongs to. - * - * @param parentId the parentId value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setParentId(String parentId) { - this.parentId = parentId; - return this; - } - - /** - * Get the parentType property: Type of the parent it belongs to. - * - * @return the parentType value. - */ - public String getParentType() { - return this.parentType; - } - - /** - * Set the parentType property: Type of the parent it belongs to. - * - * @param parentType the parentType value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setParentType(String parentType) { - this.parentType = parentType; - return this; - } - - /** - * Get the isPrimary property: A boolean flag indicating whether the boundary is primary or not. - * - * @return the isPrimary value. - */ - public Boolean isPrimary() { - return this.isPrimary; - } - - /** - * Set the isPrimary property: A boolean flag indicating whether the boundary is primary or not. - * - * @param isPrimary the isPrimary value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setIsPrimary(Boolean isPrimary) { - this.isPrimary = isPrimary; - return this; - } - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingBoundaryChangedEventData object itself. - */ - public AgriFoodFarmingBoundaryChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropChangedEventData.java deleted file mode 100644 index e3d7613f1421..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropChangedEventData.java +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */ -@Fluent -public final class AgriFoodFarmingCropChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingCropChangedEventData object itself. - */ - public AgriFoodFarmingCropChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropVarietyChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropVarietyChangedEventData.java deleted file mode 100644 index 5cab7b0a6323..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropVarietyChangedEventData.java +++ /dev/null @@ -1,281 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */ -@Fluent -public final class AgriFoodFarmingCropVarietyChangedEventData { - /* - * Id of the crop it belongs to. - */ - @JsonProperty(value = "cropId") - private String cropId; - - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the cropId property: Id of the crop it belongs to. - * - * @return the cropId value. - */ - public String getCropId() { - return this.cropId; - } - - /** - * Set the cropId property: Id of the crop it belongs to. - * - * @param cropId the cropId value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setCropId(String cropId) { - this.cropId = cropId; - return this; - } - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. - */ - public AgriFoodFarmingCropVarietyChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmChangedEventData.java deleted file mode 100644 index 41f972ad64d8..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmChangedEventData.java +++ /dev/null @@ -1,281 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */ -@Fluent -public final class AgriFoodFarmingFarmChangedEventData { - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingFarmChangedEventData object itself. - */ - public AgriFoodFarmingFarmChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.java deleted file mode 100644 index 42b79019e228..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.java +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. - */ -@Fluent -public final class AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData { - /* - * Farmer id for which job was created. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status message to capture more details of the job. - */ - @JsonProperty(value = "message") - private String message; - - /* - * Various states a job can be in. - */ - @JsonProperty(value = "status") - private AgriFoodFarmingJobStatus status; - - /* - * Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "lastActionDateTime") - private OffsetDateTime lastActionDateTime; - - /* - * Flag that gets set when job cancellation is requested. - */ - @JsonProperty(value = "isCancellationRequested") - private Boolean isCancellationRequested; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Farmer id for which job was created. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Farmer id for which job was created. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the message property: Status message to capture more details of the job. - * - * @return the message value. - */ - public String getMessage() { - return this.message; - } - - /** - * Set the message property: Status message to capture more details of the job. - * - * @param message the message value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setMessage(String message) { - this.message = message; - return this; - } - - /** - * Get the status property: Various states a job can be in. - * - * @return the status value. - */ - public AgriFoodFarmingJobStatus getStatus() { - return this.status; - } - - /** - * Set the status property: Various states a job can be in. - * - * @param status the status value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setStatus( - AgriFoodFarmingJobStatus status) { - this.status = status; - return this; - } - - /** - * Get the lastActionDateTime property: Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the lastActionDateTime value. - */ - public OffsetDateTime getLastActionDateTime() { - return this.lastActionDateTime; - } - - /** - * Set the lastActionDateTime property: Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param lastActionDateTime the lastActionDateTime value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setLastActionDateTime( - OffsetDateTime lastActionDateTime) { - this.lastActionDateTime = lastActionDateTime; - return this; - } - - /** - * Get the isCancellationRequested property: Flag that gets set when job cancellation is requested. - * - * @return the isCancellationRequested value. - */ - public Boolean isCancellationRequested() { - return this.isCancellationRequested; - } - - /** - * Set the isCancellationRequested property: Flag that gets set when job cancellation is requested. - * - * @param isCancellationRequested the isCancellationRequested value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setIsCancellationRequested( - Boolean isCancellationRequested) { - this.isCancellationRequested = isCancellationRequested; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setCreatedDateTime( - OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setProperties( - Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmerChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmerChangedEventData.java deleted file mode 100644 index fd523025e293..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmerChangedEventData.java +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */ -@Fluent -public final class AgriFoodFarmingFarmerChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingFarmerChangedEventData object itself. - */ - public AgriFoodFarmingFarmerChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFieldChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFieldChangedEventData.java deleted file mode 100644 index c5c0acbcfd34..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFieldChangedEventData.java +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */ -@Fluent -public final class AgriFoodFarmingFieldChangedEventData { - /* - * Farmer Id. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Id of the associated Farm. - */ - @JsonProperty(value = "farmId") - private String farmId; - - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Farmer Id. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Farmer Id. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the farmId property: Id of the associated Farm. - * - * @return the farmId value. - */ - public String getFarmId() { - return this.farmId; - } - - /** - * Set the farmId property: Id of the associated Farm. - * - * @param farmId the farmId value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setFarmId(String farmId) { - this.farmId = farmId; - return this; - } - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingFieldChangedEventData object itself. - */ - public AgriFoodFarmingFieldChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingHarvestDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingHarvestDataChangedEventData.java deleted file mode 100644 index ae903a27b10d..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingHarvestDataChangedEventData.java +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */ -@Fluent -public final class AgriFoodFarmingHarvestDataChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Source of the farm operation data. - */ - @JsonProperty(value = "source") - private String source; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the source property: Source of the farm operation data. - * - * @return the source value. - */ - public String getSource() { - return this.source; - } - - /** - * Set the source property: Source of the farm operation data. - * - * @param source the source value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setSource(String source) { - this.source = source; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. - */ - public AgriFoodFarmingHarvestDataChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingJobStatus.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingJobStatus.java deleted file mode 100644 index ffb5f3773059..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingJobStatus.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for AgriFoodFarmingJobStatus. */ -public final class AgriFoodFarmingJobStatus extends ExpandableStringEnum { - /** Static value Waiting for AgriFoodFarmingJobStatus. */ - public static final AgriFoodFarmingJobStatus WAITING = fromString("Waiting"); - - /** Static value Running for AgriFoodFarmingJobStatus. */ - public static final AgriFoodFarmingJobStatus RUNNING = fromString("Running"); - - /** Static value Succeeded for AgriFoodFarmingJobStatus. */ - public static final AgriFoodFarmingJobStatus SUCCEEDED = fromString("Succeeded"); - - /** Static value Failed for AgriFoodFarmingJobStatus. */ - public static final AgriFoodFarmingJobStatus FAILED = fromString("Failed"); - - /** Static value Cancelled for AgriFoodFarmingJobStatus. */ - public static final AgriFoodFarmingJobStatus CANCELLED = fromString("Cancelled"); - - /** - * Creates or finds a AgriFoodFarmingJobStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding AgriFoodFarmingJobStatus. - */ - @JsonCreator - public static AgriFoodFarmingJobStatus fromString(String name) { - return fromString(name, AgriFoodFarmingJobStatus.class); - } - - /** @return known AgriFoodFarmingJobStatus values. */ - public static Collection values() { - return values(AgriFoodFarmingJobStatus.class); - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingPlantingDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingPlantingDataChangedEventData.java deleted file mode 100644 index 8ecc13b9134d..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingPlantingDataChangedEventData.java +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */ -@Fluent -public final class AgriFoodFarmingPlantingDataChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Source of the farm operation data. - */ - @JsonProperty(value = "source") - private String source; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the source property: Source of the farm operation data. - * - * @return the source value. - */ - public String getSource() { - return this.source; - } - - /** - * Set the source property: Source of the farm operation data. - * - * @param source the source value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setSource(String source) { - this.source = source; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. - */ - public AgriFoodFarmingPlantingDataChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingResourceActionType.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingResourceActionType.java deleted file mode 100644 index 9c32c05ac5a0..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingResourceActionType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.util.ExpandableStringEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; - -/** Defines values for AgriFoodFarmingResourceActionType. */ -public final class AgriFoodFarmingResourceActionType extends ExpandableStringEnum { - /** Static value Created for AgriFoodFarmingResourceActionType. */ - public static final AgriFoodFarmingResourceActionType CREATED = fromString("Created"); - - /** Static value Updated for AgriFoodFarmingResourceActionType. */ - public static final AgriFoodFarmingResourceActionType UPDATED = fromString("Updated"); - - /** Static value Deleted for AgriFoodFarmingResourceActionType. */ - public static final AgriFoodFarmingResourceActionType DELETED = fromString("Deleted"); - - /** - * Creates or finds a AgriFoodFarmingResourceActionType from its string representation. - * - * @param name a name to look for. - * @return the corresponding AgriFoodFarmingResourceActionType. - */ - @JsonCreator - public static AgriFoodFarmingResourceActionType fromString(String name) { - return fromString(name, AgriFoodFarmingResourceActionType.class); - } - - /** @return known AgriFoodFarmingResourceActionType values. */ - public static Collection values() { - return values(AgriFoodFarmingResourceActionType.class); - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.java deleted file mode 100644 index b02d5257be1f..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.java +++ /dev/null @@ -1,288 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** - * Schema of the Data property of an EventGridEvent for a - * Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. - */ -@Fluent -public final class AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData { - /* - * Farmer id for which job was created. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status message to capture more details of the job. - */ - @JsonProperty(value = "message") - private String message; - - /* - * Various states a job can be in. - */ - @JsonProperty(value = "status") - private AgriFoodFarmingJobStatus status; - - /* - * Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "lastActionDateTime") - private OffsetDateTime lastActionDateTime; - - /* - * Flag that gets set when job cancellation is requested. - */ - @JsonProperty(value = "isCancellationRequested") - private Boolean isCancellationRequested; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Farmer id for which job was created. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Farmer id for which job was created. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the message property: Status message to capture more details of the job. - * - * @return the message value. - */ - public String getMessage() { - return this.message; - } - - /** - * Set the message property: Status message to capture more details of the job. - * - * @param message the message value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setMessage(String message) { - this.message = message; - return this; - } - - /** - * Get the status property: Various states a job can be in. - * - * @return the status value. - */ - public AgriFoodFarmingJobStatus getStatus() { - return this.status; - } - - /** - * Set the status property: Various states a job can be in. - * - * @param status the status value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setStatus(AgriFoodFarmingJobStatus status) { - this.status = status; - return this; - } - - /** - * Get the lastActionDateTime property: Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the lastActionDateTime value. - */ - public OffsetDateTime getLastActionDateTime() { - return this.lastActionDateTime; - } - - /** - * Set the lastActionDateTime property: Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param lastActionDateTime the lastActionDateTime value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setLastActionDateTime( - OffsetDateTime lastActionDateTime) { - this.lastActionDateTime = lastActionDateTime; - return this; - } - - /** - * Get the isCancellationRequested property: Flag that gets set when job cancellation is requested. - * - * @return the isCancellationRequested value. - */ - public Boolean isCancellationRequested() { - return this.isCancellationRequested; - } - - /** - * Set the isCancellationRequested property: Flag that gets set when job cancellation is requested. - * - * @param isCancellationRequested the isCancellationRequested value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setIsCancellationRequested( - Boolean isCancellationRequested) { - this.isCancellationRequested = isCancellationRequested; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setCreatedDateTime( - OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setProperties( - Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonChangedEventData.java deleted file mode 100644 index 3b1f73825718..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonChangedEventData.java +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */ -@Fluent -public final class AgriFoodFarmingSeasonChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingSeasonChangedEventData object itself. - */ - public AgriFoodFarmingSeasonChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonalFieldChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonalFieldChangedEventData.java deleted file mode 100644 index 653cf1a78a65..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonalFieldChangedEventData.java +++ /dev/null @@ -1,359 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */ -@Fluent -public final class AgriFoodFarmingSeasonalFieldChangedEventData { - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Id of the season it belongs to. - */ - @JsonProperty(value = "seasonId") - private String seasonId; - - /* - * Id of the field it belongs to. - */ - @JsonProperty(value = "fieldId") - private String fieldId; - - /* - * Id of the associated Farm. - */ - @JsonProperty(value = "farmId") - private String farmId; - - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the seasonId property: Id of the season it belongs to. - * - * @return the seasonId value. - */ - public String getSeasonId() { - return this.seasonId; - } - - /** - * Set the seasonId property: Id of the season it belongs to. - * - * @param seasonId the seasonId value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setSeasonId(String seasonId) { - this.seasonId = seasonId; - return this; - } - - /** - * Get the fieldId property: Id of the field it belongs to. - * - * @return the fieldId value. - */ - public String getFieldId() { - return this.fieldId; - } - - /** - * Set the fieldId property: Id of the field it belongs to. - * - * @param fieldId the fieldId value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setFieldId(String fieldId) { - this.fieldId = fieldId; - return this; - } - - /** - * Get the farmId property: Id of the associated Farm. - * - * @return the farmId value. - */ - public String getFarmId() { - return this.farmId; - } - - /** - * Set the farmId property: Id of the associated Farm. - * - * @param farmId the farmId value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setFarmId(String farmId) { - this.farmId = farmId; - return this; - } - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. - */ - public AgriFoodFarmingSeasonalFieldChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingTillageDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingTillageDataChangedEventData.java deleted file mode 100644 index f5c7fededa91..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingTillageDataChangedEventData.java +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */ -@Fluent -public final class AgriFoodFarmingTillageDataChangedEventData { - /* - * Action occurred on a resource. - */ - @JsonProperty(value = "actionType") - private AgriFoodFarmingResourceActionType actionType; - - /* - * Id of the farmer it belongs to. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status of the resource. - */ - @JsonProperty(value = "status") - private String status; - - /* - * Source of the farm operation data. - */ - @JsonProperty(value = "source") - private String source; - - /* - * Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "modifiedDateTime") - private OffsetDateTime modifiedDateTime; - - /* - * The ETag value to implement optimistic concurrency. - */ - @JsonProperty(value = "eTag") - private String eTag; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the actionType property: Action occurred on a resource. - * - * @return the actionType value. - */ - public AgriFoodFarmingResourceActionType getActionType() { - return this.actionType; - } - - /** - * Set the actionType property: Action occurred on a resource. - * - * @param actionType the actionType value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the farmerId property: Id of the farmer it belongs to. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Id of the farmer it belongs to. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the status property: Status of the resource. - * - * @return the status value. - */ - public String getStatus() { - return this.status; - } - - /** - * Set the status property: Status of the resource. - * - * @param status the status value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setStatus(String status) { - this.status = status; - return this; - } - - /** - * Get the source property: Source of the farm operation data. - * - * @return the source value. - */ - public String getSource() { - return this.source; - } - - /** - * Set the source property: Source of the farm operation data. - * - * @param source the source value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setSource(String source) { - this.source = source; - return this; - } - - /** - * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the modifiedDateTime value. - */ - public OffsetDateTime getModifiedDateTime() { - return this.modifiedDateTime; - } - - /** - * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param modifiedDateTime the modifiedDateTime value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { - this.modifiedDateTime = modifiedDateTime; - return this; - } - - /** - * Get the eTag property: The ETag value to implement optimistic concurrency. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: The ETag value to implement optimistic concurrency. - * - * @param eTag the eTag value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingTillageDataChangedEventData object itself. - */ - public AgriFoodFarmingTillageDataChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.java deleted file mode 100644 index a343a3189178..000000000000 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.java +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.messaging.eventgrid.systemevents; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import java.util.Map; - -/** - * Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged - * event. - */ -@Fluent -public final class AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData { - /* - * Farmer id for which job was created. - */ - @JsonProperty(value = "farmerId") - private String farmerId; - - /* - * Status message to capture more details of the job. - */ - @JsonProperty(value = "message") - private String message; - - /* - * Various states a job can be in. - */ - @JsonProperty(value = "status") - private AgriFoodFarmingJobStatus status; - - /* - * Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "lastActionDateTime") - private OffsetDateTime lastActionDateTime; - - /* - * Flag that gets set when job cancellation is requested. - */ - @JsonProperty(value = "isCancellationRequested") - private Boolean isCancellationRequested; - - /* - * Unique id of resource. - */ - @JsonProperty(value = "id") - private String id; - - /* - * Name to identify resource. - */ - @JsonProperty(value = "name") - private String name; - - /* - * Textual description of resource. - */ - @JsonProperty(value = "description") - private String description; - - /* - * Date-time when resource was created, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - */ - @JsonProperty(value = "createdDateTime") - private OffsetDateTime createdDateTime; - - /* - * A list of key value pairs that describe the resource. - * Only string and numeral values are supported. - */ - @JsonProperty(value = "properties") - private Map properties; - - /** - * Get the farmerId property: Farmer id for which job was created. - * - * @return the farmerId value. - */ - public String getFarmerId() { - return this.farmerId; - } - - /** - * Set the farmerId property: Farmer id for which job was created. - * - * @param farmerId the farmerId value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setFarmerId(String farmerId) { - this.farmerId = farmerId; - return this; - } - - /** - * Get the message property: Status message to capture more details of the job. - * - * @return the message value. - */ - public String getMessage() { - return this.message; - } - - /** - * Set the message property: Status message to capture more details of the job. - * - * @param message the message value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setMessage(String message) { - this.message = message; - return this; - } - - /** - * Get the status property: Various states a job can be in. - * - * @return the status value. - */ - public AgriFoodFarmingJobStatus getStatus() { - return this.status; - } - - /** - * Set the status property: Various states a job can be in. - * - * @param status the status value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setStatus(AgriFoodFarmingJobStatus status) { - this.status = status; - return this; - } - - /** - * Get the lastActionDateTime property: Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @return the lastActionDateTime value. - */ - public OffsetDateTime getLastActionDateTime() { - return this.lastActionDateTime; - } - - /** - * Set the lastActionDateTime property: Date-time when last action was taken on job, sample format: - * yyyy-MM-ddTHH:mm:ssZ. - * - * @param lastActionDateTime the lastActionDateTime value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setLastActionDateTime( - OffsetDateTime lastActionDateTime) { - this.lastActionDateTime = lastActionDateTime; - return this; - } - - /** - * Get the isCancellationRequested property: Flag that gets set when job cancellation is requested. - * - * @return the isCancellationRequested value. - */ - public Boolean isCancellationRequested() { - return this.isCancellationRequested; - } - - /** - * Set the isCancellationRequested property: Flag that gets set when job cancellation is requested. - * - * @param isCancellationRequested the isCancellationRequested value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setIsCancellationRequested( - Boolean isCancellationRequested) { - this.isCancellationRequested = isCancellationRequested; - return this; - } - - /** - * Get the id property: Unique id of resource. - * - * @return the id value. - */ - public String getId() { - return this.id; - } - - /** - * Set the id property: Unique id of resource. - * - * @param id the id value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setId(String id) { - this.id = id; - return this; - } - - /** - * Get the name property: Name to identify resource. - * - * @return the name value. - */ - public String getName() { - return this.name; - } - - /** - * Set the name property: Name to identify resource. - * - * @param name the name value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Textual description of resource. - * - * @return the description value. - */ - public String getDescription() { - return this.description; - } - - /** - * Set the description property: Textual description of resource. - * - * @param description the description value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @return the createdDateTime value. - */ - public OffsetDateTime getCreatedDateTime() { - return this.createdDateTime; - } - - /** - * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. - * - * @param createdDateTime the createdDateTime value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setCreatedDateTime( - OffsetDateTime createdDateTime) { - this.createdDateTime = createdDateTime; - return this; - } - - /** - * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @return the properties value. - */ - public Map getProperties() { - return this.properties; - } - - /** - * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values - * are supported. - * - * @param properties the properties value to set. - * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. - */ - public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setProperties(Map properties) { - this.properties = properties; - return this; - } -} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md b/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md index 38600c35c771..7154dfb07c56 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md +++ b/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md @@ -90,7 +90,6 @@ input-file: - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.AgFoodPlatform/stable/2018-01-01/AzureFarmBeats.json ``` ### Customization