From 6fa607ad6ba93759bf1619488b741a6ed4e081c4 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Tue, 15 Dec 2020 20:13:33 +0000 Subject: [PATCH] Adding support for Change Manager API content (New Service) Amazon Managed Service for Prometheus is a fully managed Prometheus-compatible monitoring service that makes it easy to monitor containerized applications securely and at scale. FileFormatConfiguration enables data store to save data in JSON or Parquet format. S3Paths enables you to specify the S3 objects that save your channel messages when you reprocess the pipeline. AWS IoT Greengrass V2 is a new major version of AWS IoT Greengrass. This release adds several updates such as modular components, continuous deployments, and improved ease of use. AWS IoT for LoRaWAN enables customers to setup a private LoRaWAN network by connecting their LoRaWAN devices and gateways to the AWS cloud without managing a LoRaWAN Network Server. Added support for Apache Kafka as a event source. Added support for TumblingWindowInSeconds for streams event source mappings. Added support for FunctionResponseTypes for streams event source mappings AWS IoT Fleet Hub, a new feature of AWS IoT Device Management that provides a web application for monitoring and managing device fleets connected to AWS IoT at scale. AWS IoT Core Device Advisor is fully managed test capability for IoT devices. Device manufacturers can use Device Advisor to test their IoT devices for reliable and secure connectivity with AWS IoT. AWS IoT Rules Engine adds Kafka Action that allows sending data to Apache Kafka clusters inside a VPC. AWS IoT Device Defender adds custom metrics and machine-learning based anomaly detection. --- aws-cpp-sdk-amp/CMakeLists.txt | 76 + .../include/aws/amp/PrometheusServiceClient.h | 258 ++ .../aws/amp/PrometheusServiceEndpoint.h | 21 + .../amp/PrometheusServiceErrorMarshaller.h | 23 + .../include/aws/amp/PrometheusServiceErrors.h | 74 + .../aws/amp/PrometheusServiceRequest.h | 42 + .../aws/amp/PrometheusService_EXPORTS.h | 29 + .../include/aws/amp/model/ConflictException.h | 177 + .../aws/amp/model/CreateWorkspaceRequest.h | 148 + .../aws/amp/model/CreateWorkspaceResult.h | 150 + .../aws/amp/model/DeleteWorkspaceRequest.h | 146 + .../aws/amp/model/DescribeWorkspaceRequest.h | 87 + .../aws/amp/model/DescribeWorkspaceResult.h | 73 + .../aws/amp/model/InternalServerException.h | 112 + .../aws/amp/model/ListWorkspacesRequest.h | 177 + .../aws/amp/model/ListWorkspacesResult.h | 130 + .../aws/amp/model/ResourceNotFoundException.h | 177 + .../amp/model/ServiceQuotaExceededException.h | 265 ++ .../aws/amp/model/ThrottlingException.h | 200 + .../amp/model/UpdateWorkspaceAliasRequest.h | 184 + .../aws/amp/model/ValidationException.h | 178 + .../aws/amp/model/ValidationExceptionField.h | 133 + .../aws/amp/model/ValidationExceptionReason.h | 33 + .../aws/amp/model/WorkspaceDescription.h | 290 ++ .../include/aws/amp/model/WorkspaceStatus.h | 78 + .../aws/amp/model/WorkspaceStatusCode.h | 34 + .../include/aws/amp/model/WorkspaceSummary.h | 247 ++ .../source/PrometheusServiceClient.cpp | 255 ++ .../source/PrometheusServiceEndpoint.cpp | 64 + .../PrometheusServiceErrorMarshaller.cpp | 22 + .../source/PrometheusServiceErrors.cpp | 90 + .../source/model/ConflictException.cpp | 89 + .../source/model/CreateWorkspaceRequest.cpp | 43 + .../source/model/CreateWorkspaceResult.cpp | 52 + .../source/model/DeleteWorkspaceRequest.cpp | 43 + .../source/model/DescribeWorkspaceRequest.cpp | 27 + .../source/model/DescribeWorkspaceResult.cpp | 40 + .../source/model/InternalServerException.cpp | 64 + .../source/model/ListWorkspacesRequest.cpp | 58 + .../source/model/ListWorkspacesResult.cpp | 49 + .../model/ResourceNotFoundException.cpp | 89 + .../model/ServiceQuotaExceededException.cpp | 119 + .../source/model/ThrottlingException.cpp | 94 + .../model/UpdateWorkspaceAliasRequest.cpp | 44 + .../source/model/ValidationException.cpp | 98 + .../source/model/ValidationExceptionField.cpp | 74 + .../model/ValidationExceptionReason.cpp | 84 + .../source/model/WorkspaceDescription.cpp | 133 + .../source/model/WorkspaceStatus.cpp | 60 + .../source/model/WorkspaceStatusCode.cpp | 91 + .../source/model/WorkspaceSummary.cpp | 118 + .../include/aws/core/VersionConfig.h | 2 +- aws-cpp-sdk-greengrassv2/CMakeLists.txt | 76 + .../aws/greengrassv2/GreengrassV2Client.h | 971 +++++ .../aws/greengrassv2/GreengrassV2Endpoint.h | 21 + .../GreengrassV2ErrorMarshaller.h | 23 + .../aws/greengrassv2/GreengrassV2Errors.h | 74 + .../aws/greengrassv2/GreengrassV2Request.h | 42 + .../aws/greengrassv2/GreengrassV2_EXPORTS.h | 29 + .../model/CancelDeploymentRequest.h | 83 + .../model/CancelDeploymentResult.h | 77 + .../greengrassv2/model/CloudComponentState.h | 34 + .../greengrassv2/model/CloudComponentStatus.h | 241 ++ .../aws/greengrassv2/model/Component.h | 183 + .../greengrassv2/model/ComponentCandidate.h | 242 ++ .../model/ComponentConfigurationUpdate.h | 277 ++ .../model/ComponentDependencyRequirement.h | 158 + .../model/ComponentDependencyType.h | 31 + .../model/ComponentDeploymentSpecification.h | 243 ++ .../model/ComponentLatestVersion.h | 324 ++ .../greengrassv2/model/ComponentPlatform.h | 261 ++ .../aws/greengrassv2/model/ComponentRunWith.h | 125 + .../model/ComponentVersionListItem.h | 193 + .../model/ComponentVisibilityScope.h | 31 + .../greengrassv2/model/ConflictException.h | 162 + .../aws/greengrassv2/model/CoreDevice.h | 190 + .../aws/greengrassv2/model/CoreDeviceStatus.h | 31 + .../model/CreateComponentVersionRequest.h | 242 ++ .../model/CreateComponentVersionResult.h | 235 ++ .../model/CreateDeploymentRequest.h | 461 ++ .../model/CreateDeploymentResult.h | 167 + .../model/DeleteComponentRequest.h | 99 + .../model/DeleteCoreDeviceRequest.h | 83 + .../aws/greengrassv2/model/Deployment.h | 368 ++ .../model/DeploymentComponentUpdatePolicy.h | 194 + .../DeploymentComponentUpdatePolicyAction.h | 31 + .../DeploymentConfigurationValidationPolicy.h | 83 + .../model/DeploymentFailureHandlingPolicy.h | 31 + .../model/DeploymentHistoryFilter.h | 31 + .../model/DeploymentIoTJobConfiguration.h | 167 + .../greengrassv2/model/DeploymentPolicies.h | 179 + .../aws/greengrassv2/model/DeploymentStatus.h | 34 + .../model/DescribeComponentRequest.h | 99 + .../model/DescribeComponentResult.h | 451 ++ .../greengrassv2/model/EffectiveDeployment.h | 533 +++ .../EffectiveDeploymentExecutionStatus.h | 36 + .../greengrassv2/model/GetComponentRequest.h | 140 + .../greengrassv2/model/GetComponentResult.h | 197 + .../GetComponentVersionArtifactRequest.h | 143 + .../model/GetComponentVersionArtifactResult.h | 77 + .../greengrassv2/model/GetCoreDeviceRequest.h | 83 + .../greengrassv2/model/GetCoreDeviceResult.h | 409 ++ .../greengrassv2/model/GetDeploymentRequest.h | 83 + .../greengrassv2/model/GetDeploymentResult.h | 658 +++ .../greengrassv2/model/InstalledComponent.h | 236 ++ .../model/InstalledComponentLifecycleState.h | 37 + .../model/InternalServerException.h | 97 + .../greengrassv2/model/IoTJobAbortAction.h | 30 + .../greengrassv2/model/IoTJobAbortConfig.h | 98 + .../greengrassv2/model/IoTJobAbortCriteria.h | 182 + .../model/IoTJobExecutionFailureType.h | 33 + .../model/IoTJobExecutionsRolloutConfig.h | 108 + .../model/IoTJobExponentialRolloutRate.h | 143 + .../model/IoTJobRateIncreaseCriteria.h | 100 + .../greengrassv2/model/IoTJobTimeoutConfig.h | 83 + .../model/LambdaContainerParams.h | 191 + .../greengrassv2/model/LambdaDeviceMount.h | 158 + .../greengrassv2/model/LambdaEventSource.h | 161 + .../model/LambdaEventSourceType.h | 31 + .../model/LambdaExecutionParameters.h | 515 +++ .../model/LambdaFilesystemPermission.h | 31 + .../model/LambdaFunctionRecipeSource.h | 378 ++ .../model/LambdaInputPayloadEncodingType.h | 31 + .../greengrassv2/model/LambdaIsolationMode.h | 31 + .../model/LambdaLinuxProcessParams.h | 132 + .../greengrassv2/model/LambdaVolumeMount.h | 204 + .../model/ListComponentVersionsRequest.h | 173 + .../model/ListComponentVersionsResult.h | 124 + .../model/ListComponentsRequest.h | 154 + .../greengrassv2/model/ListComponentsResult.h | 124 + .../model/ListCoreDevicesRequest.h | 246 ++ .../model/ListCoreDevicesResult.h | 124 + .../model/ListDeploymentsRequest.h | 232 ++ .../model/ListDeploymentsResult.h | 124 + .../model/ListEffectiveDeploymentsRequest.h | 157 + .../model/ListEffectiveDeploymentsResult.h | 124 + .../model/ListInstalledComponentsRequest.h | 157 + .../model/ListInstalledComponentsResult.h | 124 + .../model/ListTagsForResourceRequest.h | 99 + .../model/ListTagsForResourceResult.h | 139 + .../greengrassv2/model/RecipeOutputFormat.h | 31 + .../model/ResolveComponentCandidatesRequest.h | 119 + .../model/ResolveComponentCandidatesResult.h | 92 + .../model/ResolvedComponentVersion.h | 228 + .../model/ResourceNotFoundException.h | 160 + .../model/ServiceQuotaExceededException.h | 281 ++ .../greengrassv2/model/TagResourceRequest.h | 208 + .../greengrassv2/model/TagResourceResult.h | 36 + .../greengrassv2/model/ThrottlingException.h | 218 + .../greengrassv2/model/UntagResourceRequest.h | 155 + .../greengrassv2/model/UntagResourceResult.h | 36 + .../greengrassv2/model/ValidationException.h | 154 + .../model/ValidationExceptionField.h | 133 + .../model/ValidationExceptionReason.h | 33 + .../source/GreengrassV2Client.cpp | 757 ++++ .../source/GreengrassV2Endpoint.cpp | 64 + .../source/GreengrassV2ErrorMarshaller.cpp | 22 + .../source/GreengrassV2Errors.cpp | 90 + .../source/model/CancelDeploymentRequest.cpp | 27 + .../source/model/CancelDeploymentResult.cpp | 40 + .../source/model/CloudComponentState.cpp | 91 + .../source/model/CloudComponentStatus.cpp | 98 + .../source/model/Component.cpp | 89 + .../source/model/ComponentCandidate.cpp | 97 + .../model/ComponentConfigurationUpdate.cpp | 82 + .../model/ComponentDependencyRequirement.cpp | 75 + .../source/model/ComponentDependencyType.cpp | 70 + .../ComponentDeploymentSpecification.cpp | 89 + .../source/model/ComponentLatestVersion.cpp | 141 + .../source/model/ComponentPlatform.cpp | 82 + .../source/model/ComponentRunWith.cpp | 59 + .../source/model/ComponentVersionListItem.cpp | 89 + .../source/model/ComponentVisibilityScope.cpp | 70 + .../source/model/ConflictException.cpp | 89 + .../source/model/CoreDevice.cpp | 89 + .../source/model/CoreDeviceStatus.cpp | 70 + .../model/CreateComponentVersionRequest.cpp | 54 + .../model/CreateComponentVersionResult.cpp | 64 + .../source/model/CreateDeploymentRequest.cpp | 80 + .../source/model/CreateDeploymentResult.cpp | 52 + .../source/model/DeleteComponentRequest.cpp | 27 + .../source/model/DeleteCoreDeviceRequest.cpp | 27 + .../source/model/Deployment.cpp | 151 + .../model/DeploymentComponentUpdatePolicy.cpp | 77 + .../DeploymentComponentUpdatePolicyAction.cpp | 70 + ...eploymentConfigurationValidationPolicy.cpp | 61 + .../model/DeploymentFailureHandlingPolicy.cpp | 70 + .../source/model/DeploymentHistoryFilter.cpp | 70 + .../model/DeploymentIoTJobConfiguration.cpp | 89 + .../source/model/DeploymentPolicies.cpp | 90 + .../source/model/DeploymentStatus.cpp | 91 + .../source/model/DescribeComponentRequest.cpp | 27 + .../source/model/DescribeComponentResult.cpp | 94 + .../source/model/EffectiveDeployment.cpp | 193 + .../EffectiveDeploymentExecutionStatus.cpp | 105 + .../source/model/GetComponentRequest.cpp | 43 + .../source/model/GetComponentResult.cpp | 57 + .../GetComponentVersionArtifactRequest.cpp | 28 + .../GetComponentVersionArtifactResult.cpp | 40 + .../source/model/GetCoreDeviceRequest.cpp | 27 + .../source/model/GetCoreDeviceResult.cpp | 81 + .../source/model/GetDeploymentRequest.cpp | 27 + .../source/model/GetDeploymentResult.cpp | 122 + .../source/model/InstalledComponent.cpp | 122 + .../InstalledComponentLifecycleState.cpp | 112 + .../source/model/InternalServerException.cpp | 64 + .../source/model/IoTJobAbortAction.cpp | 63 + .../source/model/IoTJobAbortConfig.cpp | 67 + .../source/model/IoTJobAbortCriteria.cpp | 110 + .../model/IoTJobExecutionFailureType.cpp | 84 + .../model/IoTJobExecutionsRolloutConfig.cpp | 76 + .../model/IoTJobExponentialRolloutRate.cpp | 93 + .../model/IoTJobRateIncreaseCriteria.cpp | 78 + .../source/model/IoTJobTimeoutConfig.cpp | 61 + .../source/model/LambdaContainerParams.cpp | 124 + .../source/model/LambdaDeviceMount.cpp | 92 + .../source/model/LambdaEventSource.cpp | 75 + .../source/model/LambdaEventSourceType.cpp | 70 + .../model/LambdaExecutionParameters.cpp | 246 ++ .../model/LambdaFilesystemPermission.cpp | 70 + .../model/LambdaFunctionRecipeSource.cpp | 150 + .../model/LambdaInputPayloadEncodingType.cpp | 70 + .../source/model/LambdaIsolationMode.cpp | 70 + .../source/model/LambdaLinuxProcessParams.cpp | 75 + .../source/model/LambdaVolumeMount.cpp | 107 + .../model/ListComponentVersionsRequest.cpp | 51 + .../model/ListComponentVersionsResult.cpp | 49 + .../source/model/ListComponentsRequest.cpp | 59 + .../source/model/ListComponentsResult.cpp | 49 + .../source/model/ListCoreDevicesRequest.cpp | 67 + .../source/model/ListCoreDevicesResult.cpp | 49 + .../source/model/ListDeploymentsRequest.cpp | 67 + .../source/model/ListDeploymentsResult.cpp | 49 + .../model/ListEffectiveDeploymentsRequest.cpp | 51 + .../model/ListEffectiveDeploymentsResult.cpp | 49 + .../model/ListInstalledComponentsRequest.cpp | 51 + .../model/ListInstalledComponentsResult.cpp | 49 + .../model/ListTagsForResourceRequest.cpp | 27 + .../model/ListTagsForResourceResult.cpp | 43 + .../source/model/RecipeOutputFormat.cpp | 70 + .../ResolveComponentCandidatesRequest.cpp | 47 + .../ResolveComponentCandidatesResult.cpp | 43 + .../source/model/ResolvedComponentVersion.cpp | 103 + .../model/ResourceNotFoundException.cpp | 89 + .../model/ServiceQuotaExceededException.cpp | 119 + .../source/model/TagResourceRequest.cpp | 41 + .../source/model/TagResourceResult.cpp | 34 + .../source/model/ThrottlingException.cpp | 94 + .../source/model/UntagResourceRequest.cpp | 45 + .../source/model/UntagResourceResult.cpp | 34 + .../source/model/ValidationException.cpp | 98 + .../source/model/ValidationExceptionField.cpp | 74 + .../model/ValidationExceptionReason.cpp | 84 + aws-cpp-sdk-iot/include/aws/iot/IoTClient.h | 443 +- .../include/aws/iot/model/Action.h | 41 + .../include/aws/iot/model/ActiveViolation.h | 75 +- .../iot/model/AddThingsToThingGroupParams.h | 30 +- .../include/aws/iot/model/AlertTarget.h | 24 +- .../include/aws/iot/model/Behavior.h | 58 +- .../include/aws/iot/model/BehaviorCriteria.h | 145 +- .../aws/iot/model/BehaviorCriteriaType.h | 32 + .../iot/model/BehaviorModelTrainingSummary.h | 260 ++ ...CancelDetectMitigationActionsTaskRequest.h | 83 + .../CancelDetectMitigationActionsTaskResult.h | 36 + .../aws/iot/model/ComparisonOperator.h | 4 +- .../include/aws/iot/model/ConfidenceLevel.h | 32 + .../aws/iot/model/CreateCustomMetricRequest.h | 321 ++ .../aws/iot/model/CreateCustomMetricResult.h | 129 + .../aws/iot/model/CreateDimensionResult.h | 14 +- .../iot/model/CreateScheduledAuditRequest.h | 156 +- .../iot/model/CreateSecurityProfileRequest.h | 24 +- .../include/aws/iot/model/CustomMetricType.h | 33 + .../aws/iot/model/DeleteCustomMetricRequest.h | 83 + .../aws/iot/model/DeleteCustomMetricResult.h | 36 + .../iot/model/DescribeCustomMetricRequest.h | 83 + .../iot/model/DescribeCustomMetricResult.h | 268 ++ ...scribeDetectMitigationActionsTaskRequest.h | 83 + ...escribeDetectMitigationActionsTaskResult.h | 67 + .../aws/iot/model/DescribeDimensionResult.h | 14 +- .../iot/model/DescribeScheduledAuditResult.h | 104 +- .../model/DetectMitigationActionExecution.h | 413 ++ .../DetectMitigationActionExecutionStatus.h | 33 + .../DetectMitigationActionsTaskStatistics.h | 114 + .../model/DetectMitigationActionsTaskStatus.h | 33 + .../DetectMitigationActionsTaskSummary.h | 397 ++ .../model/DetectMitigationActionsTaskTarget.h | 182 + .../aws/iot/model/EnableIoTLoggingParams.h | 28 +- ...GetBehaviorModelTrainingSummariesRequest.h | 157 + .../GetBehaviorModelTrainingSummariesResult.h | 131 + .../include/aws/iot/model/KafkaAction.h | 291 ++ .../iot/model/ListActiveViolationsRequest.h | 59 + .../aws/iot/model/ListCustomMetricsRequest.h | 113 + .../aws/iot/model/ListCustomMetricsResult.h | 128 + ...DetectMitigationActionsExecutionsRequest.h | 326 ++ ...tDetectMitigationActionsExecutionsResult.h | 124 + .../ListDetectMitigationActionsTasksRequest.h | 194 + .../ListDetectMitigationActionsTasksResult.h | 131 + .../iot/model/ListSecurityProfilesRequest.h | 68 +- .../iot/model/ListViolationEventsRequest.h | 59 + .../model/MachineLearningDetectionConfig.h | 85 + .../include/aws/iot/model/MetricToRetain.h | 12 +- .../include/aws/iot/model/MetricValue.h | 112 + .../aws/iot/model/MitigationActionParams.h | 24 +- .../include/aws/iot/model/ModelStatus.h | 32 + .../aws/iot/model/SecurityProfileIdentifier.h | 16 +- .../StartAuditMitigationActionsTaskRequest.h | 12 +- .../StartDetectMitigationActionsTaskRequest.h | 326 ++ .../StartDetectMitigationActionsTaskResult.h | 77 + .../aws/iot/model/StatisticalThreshold.h | 18 +- .../aws/iot/model/TopicRuleDestination.h | 104 + .../model/TopicRuleDestinationConfiguration.h | 35 + .../iot/model/TopicRuleDestinationStatus.h | 3 +- .../iot/model/TopicRuleDestinationSummary.h | 104 + .../UpdateAccountAuditConfigurationRequest.h | 72 +- .../aws/iot/model/UpdateCACertificateParams.h | 12 +- .../aws/iot/model/UpdateCustomMetricRequest.h | 143 + .../aws/iot/model/UpdateCustomMetricResult.h | 254 ++ .../iot/model/UpdateDeviceCertificateParams.h | 12 +- .../aws/iot/model/UpdateDimensionResult.h | 14 +- .../iot/model/UpdateMitigationActionRequest.h | 48 +- .../iot/model/UpdateScheduledAuditRequest.h | 156 +- .../iot/model/UpdateSecurityProfileRequest.h | 24 +- .../iot/model/UpdateSecurityProfileResult.h | 21 +- .../include/aws/iot/model/ViolationEvent.h | 47 +- .../iot/model/ViolationEventAdditionalInfo.h | 84 + .../iot/model/ViolationEventOccurrenceRange.h | 125 + .../iot/model/VpcDestinationConfiguration.h | 240 ++ .../aws/iot/model/VpcDestinationProperties.h | 240 ++ .../aws/iot/model/VpcDestinationSummary.h | 240 ++ aws-cpp-sdk-iot/source/IoTClient.cpp | 361 ++ aws-cpp-sdk-iot/source/model/Action.cpp | 19 +- .../source/model/ActiveViolation.cpp | 15 + aws-cpp-sdk-iot/source/model/Behavior.cpp | 21 +- .../source/model/BehaviorCriteria.cpp | 19 +- .../source/model/BehaviorCriteriaType.cpp | 77 + .../model/BehaviorModelTrainingSummary.cpp | 135 + ...ncelDetectMitigationActionsTaskRequest.cpp | 27 + ...ancelDetectMitigationActionsTaskResult.cpp | 34 + .../source/model/ComparisonOperator.cpp | 14 + .../source/model/ConfidenceLevel.cpp | 77 + .../model/CreateCustomMetricRequest.cpp | 63 + .../source/model/CreateCustomMetricResult.cpp | 46 + .../source/model/CustomMetricType.cpp | 84 + .../model/DeleteCustomMetricRequest.cpp | 27 + .../source/model/DeleteCustomMetricResult.cpp | 34 + .../model/DescribeCustomMetricRequest.cpp | 27 + .../model/DescribeCustomMetricResult.cpp | 72 + ...ribeDetectMitigationActionsTaskRequest.cpp | 27 + ...cribeDetectMitigationActionsTaskResult.cpp | 40 + .../model/DetectMitigationActionExecution.cpp | 178 + .../DetectMitigationActionExecutionStatus.cpp | 84 + .../DetectMitigationActionsTaskStatistics.cpp | 95 + .../DetectMitigationActionsTaskStatus.cpp | 84 + .../DetectMitigationActionsTaskSummary.cpp | 205 + .../DetectMitigationActionsTaskTarget.cpp | 97 + ...tBehaviorModelTrainingSummariesRequest.cpp | 58 + ...etBehaviorModelTrainingSummariesResult.cpp | 49 + aws-cpp-sdk-iot/source/model/KafkaAction.cpp | 127 + .../model/ListActiveViolationsRequest.cpp | 18 + .../source/model/ListCustomMetricsRequest.cpp | 50 + .../source/model/ListCustomMetricsResult.cpp | 49 + ...tectMitigationActionsExecutionsRequest.cpp | 90 + ...etectMitigationActionsExecutionsResult.cpp | 49 + ...istDetectMitigationActionsTasksRequest.cpp | 66 + ...ListDetectMitigationActionsTasksResult.cpp | 49 + .../model/ListSecurityProfilesRequest.cpp | 10 +- .../model/ListViolationEventsRequest.cpp | 18 + .../model/MachineLearningDetectionConfig.cpp | 60 + aws-cpp-sdk-iot/source/model/MetricValue.cpp | 67 +- aws-cpp-sdk-iot/source/model/ModelStatus.cpp | 77 + ...tartDetectMitigationActionsTaskRequest.cpp | 79 + ...StartDetectMitigationActionsTaskResult.cpp | 40 + .../source/model/TopicRuleDestination.cpp | 47 +- .../TopicRuleDestinationConfiguration.cpp | 19 +- .../model/TopicRuleDestinationStatus.cpp | 7 + .../model/TopicRuleDestinationSummary.cpp | 47 +- .../model/UpdateCustomMetricRequest.cpp | 36 + .../source/model/UpdateCustomMetricResult.cpp | 72 + .../source/model/ViolationEvent.cpp | 15 + .../model/ViolationEventAdditionalInfo.cpp | 60 + .../model/ViolationEventOccurrenceRange.cpp | 72 + .../model/VpcDestinationConfiguration.cpp | 120 + .../source/model/VpcDestinationProperties.cpp | 120 + .../source/model/VpcDestinationSummary.cpp | 120 + .../aws/iotanalytics/model/ChannelMessages.h | 103 + .../include/aws/iotanalytics/model/Column.h | 149 + .../model/CreateDatastoreRequest.h | 59 + .../aws/iotanalytics/model/Datastore.h | 59 + .../aws/iotanalytics/model/DatastoreSummary.h | 35 + .../model/FileFormatConfiguration.h | 117 + .../aws/iotanalytics/model/FileFormatType.h | 31 + .../iotanalytics/model/JsonConfiguration.h | 42 + .../iotanalytics/model/ParquetConfiguration.h | 79 + .../aws/iotanalytics/model/SchemaDefinition.h | 97 + .../model/StartPipelineReprocessingRequest.h | 95 +- .../model/UpdateDatastoreRequest.h | 59 + .../source/model/ChannelMessages.cpp | 67 + .../source/model/Column.cpp | 74 + .../source/model/CreateDatastoreRequest.cpp | 9 +- .../source/model/Datastore.cpp | 19 +- .../source/model/DatastoreSummary.cpp | 20 +- .../source/model/FileFormatConfiguration.cpp | 74 + .../source/model/FileFormatType.cpp | 70 + .../source/model/JsonConfiguration.cpp | 45 + .../source/model/ParquetConfiguration.cpp | 59 + .../source/model/SchemaDefinition.cpp | 67 + .../StartPipelineReprocessingRequest.cpp | 9 +- .../source/model/UpdateDatastoreRequest.cpp | 9 +- aws-cpp-sdk-iotdeviceadvisor/CMakeLists.txt | 76 + .../iotdeviceadvisor/IoTDeviceAdvisorClient.h | 540 +++ .../IoTDeviceAdvisorEndpoint.h | 21 + .../IoTDeviceAdvisorErrorMarshaller.h | 23 + .../iotdeviceadvisor/IoTDeviceAdvisorErrors.h | 73 + .../IoTDeviceAdvisorRequest.h | 42 + .../IoTDeviceAdvisor_EXPORTS.h | 29 + .../model/CreateSuiteDefinitionRequest.h | 144 + .../model/CreateSuiteDefinitionResult.h | 187 + .../model/DeleteSuiteDefinitionRequest.h | 83 + .../model/DeleteSuiteDefinitionResult.h | 36 + .../iotdeviceadvisor/model/DeviceUnderTest.h | 132 + .../model/GetSuiteDefinitionRequest.h | 133 + .../model/GetSuiteDefinitionResult.h | 351 ++ .../model/GetSuiteRunReportRequest.h | 127 + .../model/GetSuiteRunReportResult.h | 77 + .../model/GetSuiteRunRequest.h | 143 + .../model/GetSuiteRunResult.h | 483 +++ .../aws/iotdeviceadvisor/model/GroupResult.h | 178 + .../model/ListSuiteDefinitionsRequest.h | 113 + .../model/ListSuiteDefinitionsResult.h | 117 + .../model/ListSuiteRunsRequest.h | 217 + .../model/ListSuiteRunsResult.h | 117 + .../model/ListTagsForResourceRequest.h | 83 + .../model/ListTagsForResourceResult.h | 103 + .../model/ListTestCasesRequest.h | 137 + .../model/ListTestCasesResult.h | 244 ++ .../model/StartSuiteRunRequest.h | 232 ++ .../model/StartSuiteRunResult.h | 144 + .../aws/iotdeviceadvisor/model/Status.h | 36 + .../model/SuiteDefinitionConfiguration.h | 246 ++ .../model/SuiteDefinitionInformation.h | 237 ++ .../model/SuiteRunConfiguration.h | 163 + .../model/SuiteRunInformation.h | 406 ++ .../iotdeviceadvisor/model/SuiteRunStatus.h | 36 + .../model/TagResourceRequest.h | 153 + .../model/TagResourceResult.h | 36 + .../aws/iotdeviceadvisor/model/TestCase.h | 193 + .../iotdeviceadvisor/model/TestCaseCategory.h | 134 + .../model/TestCaseDefinition.h | 132 + .../aws/iotdeviceadvisor/model/TestCaseRun.h | 412 ++ .../aws/iotdeviceadvisor/model/TestResult.h | 89 + .../model/UntagResourceRequest.h | 139 + .../model/UntagResourceResult.h | 36 + .../model/UpdateSuiteDefinitionRequest.h | 118 + .../model/UpdateSuiteDefinitionResult.h | 258 ++ .../source/IoTDeviceAdvisorClient.cpp | 535 +++ .../source/IoTDeviceAdvisorEndpoint.cpp | 64 + .../IoTDeviceAdvisorErrorMarshaller.cpp | 22 + .../source/IoTDeviceAdvisorErrors.cpp | 42 + .../model/CreateSuiteDefinitionRequest.cpp | 47 + .../model/CreateSuiteDefinitionResult.cpp | 58 + .../model/DeleteSuiteDefinitionRequest.cpp | 27 + .../model/DeleteSuiteDefinitionResult.cpp | 34 + .../source/model/DeviceUnderTest.cpp | 74 + .../model/GetSuiteDefinitionRequest.cpp | 42 + .../source/model/GetSuiteDefinitionResult.cpp | 85 + .../source/model/GetSuiteRunReportRequest.cpp | 28 + .../source/model/GetSuiteRunReportResult.cpp | 40 + .../source/model/GetSuiteRunRequest.cpp | 28 + .../source/model/GetSuiteRunResult.cpp | 105 + .../source/model/GroupResult.cpp | 97 + .../model/ListSuiteDefinitionsRequest.cpp | 50 + .../model/ListSuiteDefinitionsResult.cpp | 49 + .../source/model/ListSuiteRunsRequest.cpp | 66 + .../source/model/ListSuiteRunsResult.cpp | 49 + .../model/ListTagsForResourceRequest.cpp | 27 + .../model/ListTagsForResourceResult.cpp | 43 + .../source/model/ListTestCasesRequest.cpp | 59 + .../source/model/ListTestCasesResult.cpp | 67 + .../source/model/StartSuiteRunRequest.cpp | 55 + .../source/model/StartSuiteRunResult.cpp | 52 + .../source/model/Status.cpp | 105 + .../model/SuiteDefinitionConfiguration.cpp | 129 + .../model/SuiteDefinitionInformation.cpp | 128 + .../source/model/SuiteRunConfiguration.cpp | 97 + .../source/model/SuiteRunInformation.cpp | 196 + .../source/model/SuiteRunStatus.cpp | 105 + .../source/model/TagResourceRequest.cpp | 41 + .../source/model/TagResourceResult.cpp | 34 + .../source/model/TestCase.cpp | 97 + .../source/model/TestCaseCategory.cpp | 82 + .../source/model/TestCaseDefinition.cpp | 74 + .../source/model/TestCaseRun.cpp | 178 + .../source/model/TestResult.cpp | 67 + .../source/model/UntagResourceRequest.cpp | 45 + .../source/model/UntagResourceResult.cpp | 34 + .../model/UpdateSuiteDefinitionRequest.cpp | 36 + .../model/UpdateSuiteDefinitionResult.cpp | 70 + aws-cpp-sdk-iotfleethub/CMakeLists.txt | 76 + .../aws/iotfleethub/IoTFleetHubClient.h | 403 ++ .../aws/iotfleethub/IoTFleetHubEndpoint.h | 21 + .../iotfleethub/IoTFleetHubErrorMarshaller.h | 23 + .../aws/iotfleethub/IoTFleetHubErrors.h | 74 + .../aws/iotfleethub/IoTFleetHubRequest.h | 42 + .../aws/iotfleethub/IoTFleetHub_EXPORTS.h | 29 + .../aws/iotfleethub/model/ApplicationState.h | 34 + .../iotfleethub/model/ApplicationSummary.h | 305 ++ .../model/CreateApplicationRequest.h | 331 ++ .../model/CreateApplicationResult.h | 115 + .../model/DeleteApplicationRequest.h | 150 + .../model/DeleteApplicationResult.h | 36 + .../model/DescribeApplicationRequest.h | 83 + .../model/DescribeApplicationResult.h | 498 +++ .../model/ListApplicationsRequest.h | 89 + .../model/ListApplicationsResult.h | 124 + .../model/ListTagsForResourceRequest.h | 83 + .../model/ListTagsForResourceResult.h | 103 + .../iotfleethub/model/TagResourceRequest.h | 153 + .../aws/iotfleethub/model/TagResourceResult.h | 36 + .../iotfleethub/model/UntagResourceRequest.h | 139 + .../iotfleethub/model/UntagResourceResult.h | 36 + .../model/UpdateApplicationRequest.h | 232 ++ .../model/UpdateApplicationResult.h | 36 + .../source/IoTFleetHubClient.cpp | 361 ++ .../source/IoTFleetHubEndpoint.cpp | 64 + .../source/IoTFleetHubErrorMarshaller.cpp | 22 + .../source/IoTFleetHubErrors.cpp | 47 + .../source/model/ApplicationState.cpp | 91 + .../source/model/ApplicationSummary.cpp | 154 + .../source/model/CreateApplicationRequest.cpp | 69 + .../source/model/CreateApplicationResult.cpp | 46 + .../source/model/DeleteApplicationRequest.cpp | 43 + .../source/model/DeleteApplicationResult.cpp | 34 + .../model/DescribeApplicationRequest.cpp | 27 + .../model/DescribeApplicationResult.cpp | 115 + .../source/model/ListApplicationsRequest.cpp | 41 + .../source/model/ListApplicationsResult.cpp | 49 + .../model/ListTagsForResourceRequest.cpp | 27 + .../model/ListTagsForResourceResult.cpp | 43 + .../source/model/TagResourceRequest.cpp | 41 + .../source/model/TagResourceResult.cpp | 34 + .../source/model/UntagResourceRequest.cpp | 45 + .../source/model/UntagResourceResult.cpp | 34 + .../source/model/UpdateApplicationRequest.cpp | 51 + .../source/model/UpdateApplicationResult.cpp | 34 + aws-cpp-sdk-iotwireless/CMakeLists.txt | 76 + .../aws/iotwireless/IoTWirelessClient.h | 1772 ++++++++ .../aws/iotwireless/IoTWirelessEndpoint.h | 21 + .../iotwireless/IoTWirelessErrorMarshaller.h | 23 + .../aws/iotwireless/IoTWirelessErrors.h | 74 + .../aws/iotwireless/IoTWirelessRequest.h | 42 + .../aws/iotwireless/IoTWireless_EXPORTS.h | 29 + .../include/aws/iotwireless/model/AbpV1_0_x.h | 124 + .../include/aws/iotwireless/model/AbpV1_1.h | 124 + ...ciateAwsAccountWithPartnerAccountRequest.h | 143 + ...ociateAwsAccountWithPartnerAccountResult.h | 67 + .../AssociateWirelessDeviceWithThingRequest.h | 127 + .../AssociateWirelessDeviceWithThingResult.h | 36 + ...ateWirelessGatewayWithCertificateRequest.h | 127 + ...iateWirelessGatewayWithCertificateResult.h | 77 + ...AssociateWirelessGatewayWithThingRequest.h | 127 + .../AssociateWirelessGatewayWithThingResult.h | 36 + .../aws/iotwireless/model/ConflictException.h | 129 + .../model/CreateDestinationRequest.h | 373 ++ .../model/CreateDestinationResult.h | 115 + .../model/CreateDeviceProfileRequest.h | 241 ++ .../model/CreateDeviceProfileResult.h | 115 + .../model/CreateServiceProfileRequest.h | 241 ++ .../model/CreateServiceProfileResult.h | 115 + .../model/CreateWirelessDeviceRequest.h | 316 ++ .../model/CreateWirelessDeviceResult.h | 115 + .../model/CreateWirelessGatewayRequest.h | 291 ++ .../model/CreateWirelessGatewayResult.h | 115 + ...eateWirelessGatewayTaskDefinitionRequest.h | 219 + ...reateWirelessGatewayTaskDefinitionResult.h | 77 + .../model/CreateWirelessGatewayTaskRequest.h | 127 + .../model/CreateWirelessGatewayTaskResult.h | 106 + .../model/DeleteDestinationRequest.h | 83 + .../model/DeleteDestinationResult.h | 36 + .../model/DeleteDeviceProfileRequest.h | 83 + .../model/DeleteDeviceProfileResult.h | 36 + .../model/DeleteServiceProfileRequest.h | 83 + .../model/DeleteServiceProfileResult.h | 36 + .../model/DeleteWirelessDeviceRequest.h | 83 + .../model/DeleteWirelessDeviceResult.h | 36 + .../model/DeleteWirelessGatewayRequest.h | 83 + .../model/DeleteWirelessGatewayResult.h | 36 + ...leteWirelessGatewayTaskDefinitionRequest.h | 83 + ...eleteWirelessGatewayTaskDefinitionResult.h | 36 + .../model/DeleteWirelessGatewayTaskRequest.h | 83 + .../model/DeleteWirelessGatewayTaskResult.h | 36 + .../aws/iotwireless/model/Destinations.h | 299 ++ .../aws/iotwireless/model/DeviceProfile.h | 176 + ...ciateAwsAccountFromPartnerAccountRequest.h | 124 + ...ociateAwsAccountFromPartnerAccountResult.h | 36 + ...sassociateWirelessDeviceFromThingRequest.h | 83 + ...isassociateWirelessDeviceFromThingResult.h | 36 + ...ateWirelessGatewayFromCertificateRequest.h | 83 + ...iateWirelessGatewayFromCertificateResult.h | 36 + ...associateWirelessGatewayFromThingRequest.h | 83 + ...sassociateWirelessGatewayFromThingResult.h | 36 + .../aws/iotwireless/model/ExpressionType.h | 30 + .../iotwireless/model/GetDestinationRequest.h | 83 + .../iotwireless/model/GetDestinationResult.h | 258 ++ .../model/GetDeviceProfileRequest.h | 83 + .../model/GetDeviceProfileResult.h | 182 + .../model/GetPartnerAccountRequest.h | 124 + .../model/GetPartnerAccountResult.h | 90 + .../model/GetServiceEndpointRequest.h | 91 + .../model/GetServiceEndpointResult.h | 144 + .../model/GetServiceProfileRequest.h | 83 + .../model/GetServiceProfileResult.h | 182 + .../model/GetWirelessDeviceRequest.h | 124 + .../model/GetWirelessDeviceResult.h | 363 ++ .../GetWirelessDeviceStatisticsRequest.h | 83 + .../model/GetWirelessDeviceStatisticsResult.h | 144 + .../GetWirelessGatewayCertificateRequest.h | 83 + .../GetWirelessGatewayCertificateResult.h | 77 + ...irelessGatewayFirmwareInformationRequest.h | 83 + ...WirelessGatewayFirmwareInformationResult.h | 67 + .../model/GetWirelessGatewayRequest.h | 124 + .../model/GetWirelessGatewayResult.h | 296 ++ .../GetWirelessGatewayStatisticsRequest.h | 83 + .../GetWirelessGatewayStatisticsResult.h | 115 + .../GetWirelessGatewayTaskDefinitionRequest.h | 83 + .../GetWirelessGatewayTaskDefinitionResult.h | 130 + .../model/GetWirelessGatewayTaskRequest.h | 83 + .../model/GetWirelessGatewayTaskResult.h | 220 + .../model/ListDestinationsRequest.h | 129 + .../model/ListDestinationsResult.h | 124 + .../model/ListDeviceProfilesRequest.h | 129 + .../model/ListDeviceProfilesResult.h | 124 + .../model/ListPartnerAccountsRequest.h | 129 + .../model/ListPartnerAccountsResult.h | 131 + .../model/ListServiceProfilesRequest.h | 129 + .../model/ListServiceProfilesResult.h | 124 + .../model/ListTagsForResourceRequest.h | 89 + .../model/ListTagsForResourceResult.h | 85 + .../model/ListWirelessDevicesRequest.h | 302 ++ .../model/ListWirelessDevicesResult.h | 124 + ...istWirelessGatewayTaskDefinitionsRequest.h | 170 + ...ListWirelessGatewayTaskDefinitionsResult.h | 124 + .../model/ListWirelessGatewaysRequest.h | 129 + .../model/ListWirelessGatewaysResult.h | 124 + .../aws/iotwireless/model/LoRaWANDevice.h | 316 ++ .../iotwireless/model/LoRaWANDeviceMetadata.h | 250 ++ .../iotwireless/model/LoRaWANDeviceProfile.h | 584 +++ .../aws/iotwireless/model/LoRaWANGateway.h | 132 + .../model/LoRaWANGatewayCurrentVersion.h | 78 + .../model/LoRaWANGatewayMetadata.h | 136 + .../iotwireless/model/LoRaWANGatewayVersion.h | 176 + .../model/LoRaWANGetServiceProfileInfo.h | 560 +++ .../aws/iotwireless/model/LoRaWANListDevice.h | 88 + .../model/LoRaWANSendDataToDevice.h | 66 + .../iotwireless/model/LoRaWANServiceProfile.h | 66 + .../iotwireless/model/LoRaWANUpdateDevice.h | 132 + .../model/LoRaWANUpdateGatewayTaskCreate.h | 181 + .../model/LoRaWANUpdateGatewayTaskEntry.h | 112 + .../aws/iotwireless/model/OtaaV1_0_x.h | 132 + .../include/aws/iotwireless/model/OtaaV1_1.h | 176 + .../aws/iotwireless/model/PartnerType.h | 30 + .../model/ResourceNotFoundException.h | 128 + .../model/SendDataToWirelessDeviceRequest.h | 194 + .../model/SendDataToWirelessDeviceResult.h | 77 + .../aws/iotwireless/model/ServiceProfile.h | 176 + .../iotwireless/model/SessionKeysAbpV1_0_x.h | 132 + .../iotwireless/model/SessionKeysAbpV1_1.h | 220 + .../iotwireless/model/SidewalkAccountInfo.h | 132 + .../SidewalkAccountInfoWithFingerprint.h | 132 + .../iotwireless/model/SidewalkListDevice.h | 88 + .../model/SidewalkSendDataToDevice.h | 66 + .../iotwireless/model/SidewalkUpdateAccount.h | 88 + .../include/aws/iotwireless/model/Tag.h | 133 + .../iotwireless/model/TagResourceRequest.h | 143 + .../aws/iotwireless/model/TagResourceResult.h | 36 + .../model/TestWirelessDeviceRequest.h | 83 + .../model/TestWirelessDeviceResult.h | 77 + .../iotwireless/model/TooManyTagsException.h | 101 + .../iotwireless/model/UntagResourceRequest.h | 139 + .../iotwireless/model/UntagResourceResult.h | 36 + .../model/UpdateDestinationRequest.h | 250 ++ .../model/UpdateDestinationResult.h | 36 + .../model/UpdatePartnerAccountRequest.h | 159 + .../model/UpdatePartnerAccountResult.h | 36 + .../model/UpdateWirelessDeviceRequest.h | 250 ++ .../model/UpdateWirelessDeviceResult.h | 36 + .../model/UpdateWirelessGatewayRequest.h | 171 + .../model/UpdateWirelessGatewayResult.h | 36 + .../model/UpdateWirelessGatewayTaskCreate.h | 167 + .../model/UpdateWirelessGatewayTaskEntry.h | 123 + .../iotwireless/model/WirelessDeviceIdType.h | 32 + .../model/WirelessDeviceStatistics.h | 370 ++ .../iotwireless/model/WirelessDeviceType.h | 31 + .../iotwireless/model/WirelessGatewayIdType.h | 32 + .../model/WirelessGatewayServiceType.h | 31 + .../model/WirelessGatewayStatistics.h | 300 ++ .../model/WirelessGatewayTaskDefinitionType.h | 30 + .../model/WirelessGatewayTaskStatus.h | 35 + .../aws/iotwireless/model/WirelessMetadata.h | 113 + .../source/IoTWirelessClient.cpp | 1782 ++++++++ .../source/IoTWirelessEndpoint.cpp | 64 + .../source/IoTWirelessErrorMarshaller.cpp | 22 + .../source/IoTWirelessErrors.cpp | 69 + .../source/model/AbpV1_0_x.cpp | 74 + .../source/model/AbpV1_1.cpp | 74 + ...ateAwsAccountWithPartnerAccountRequest.cpp | 43 + ...iateAwsAccountWithPartnerAccountResult.cpp | 40 + ...ssociateWirelessDeviceWithThingRequest.cpp | 36 + ...AssociateWirelessDeviceWithThingResult.cpp | 34 + ...eWirelessGatewayWithCertificateRequest.cpp | 36 + ...teWirelessGatewayWithCertificateResult.cpp | 40 + ...sociateWirelessGatewayWithThingRequest.cpp | 36 + ...ssociateWirelessGatewayWithThingResult.cpp | 34 + .../source/model/ConflictException.cpp | 89 + .../source/model/CreateDestinationRequest.cpp | 83 + .../source/model/CreateDestinationResult.cpp | 46 + .../model/CreateDeviceProfileRequest.cpp | 62 + .../model/CreateDeviceProfileResult.cpp | 46 + .../model/CreateServiceProfileRequest.cpp | 62 + .../model/CreateServiceProfileResult.cpp | 46 + .../model/CreateWirelessDeviceRequest.cpp | 71 + .../model/CreateWirelessDeviceResult.cpp | 46 + .../model/CreateWirelessGatewayRequest.cpp | 69 + .../model/CreateWirelessGatewayResult.cpp | 46 + ...teWirelessGatewayTaskDefinitionRequest.cpp | 58 + ...ateWirelessGatewayTaskDefinitionResult.cpp | 40 + .../CreateWirelessGatewayTaskRequest.cpp | 36 + .../model/CreateWirelessGatewayTaskResult.cpp | 48 + .../source/model/DeleteDestinationRequest.cpp | 27 + .../source/model/DeleteDestinationResult.cpp | 34 + .../model/DeleteDeviceProfileRequest.cpp | 27 + .../model/DeleteDeviceProfileResult.cpp | 34 + .../model/DeleteServiceProfileRequest.cpp | 27 + .../model/DeleteServiceProfileResult.cpp | 34 + .../model/DeleteWirelessDeviceRequest.cpp | 27 + .../model/DeleteWirelessDeviceResult.cpp | 34 + .../model/DeleteWirelessGatewayRequest.cpp | 27 + .../model/DeleteWirelessGatewayResult.cpp | 34 + ...teWirelessGatewayTaskDefinitionRequest.cpp | 27 + ...eteWirelessGatewayTaskDefinitionResult.cpp | 34 + .../DeleteWirelessGatewayTaskRequest.cpp | 27 + .../model/DeleteWirelessGatewayTaskResult.cpp | 34 + .../source/model/Destinations.cpp | 135 + .../source/model/DeviceProfile.cpp | 89 + ...ateAwsAccountFromPartnerAccountRequest.cpp | 43 + ...iateAwsAccountFromPartnerAccountResult.cpp | 34 + ...ssociateWirelessDeviceFromThingRequest.cpp | 27 + ...associateWirelessDeviceFromThingResult.cpp | 34 + ...eWirelessGatewayFromCertificateRequest.cpp | 27 + ...teWirelessGatewayFromCertificateResult.cpp | 34 + ...sociateWirelessGatewayFromThingRequest.cpp | 27 + ...ssociateWirelessGatewayFromThingResult.cpp | 34 + .../source/model/ExpressionType.cpp | 63 + .../source/model/GetDestinationRequest.cpp | 27 + .../source/model/GetDestinationResult.cpp | 72 + .../source/model/GetDeviceProfileRequest.cpp | 27 + .../source/model/GetDeviceProfileResult.cpp | 58 + .../source/model/GetPartnerAccountRequest.cpp | 43 + .../source/model/GetPartnerAccountResult.cpp | 48 + .../model/GetServiceEndpointRequest.cpp | 42 + .../source/model/GetServiceEndpointResult.cpp | 54 + .../source/model/GetServiceProfileRequest.cpp | 27 + .../source/model/GetServiceProfileResult.cpp | 58 + .../source/model/GetWirelessDeviceRequest.cpp | 43 + .../source/model/GetWirelessDeviceResult.cpp | 90 + .../GetWirelessDeviceStatisticsRequest.cpp | 27 + .../GetWirelessDeviceStatisticsResult.cpp | 52 + .../GetWirelessGatewayCertificateRequest.cpp | 27 + .../GetWirelessGatewayCertificateResult.cpp | 40 + ...elessGatewayFirmwareInformationRequest.cpp | 27 + ...relessGatewayFirmwareInformationResult.cpp | 40 + .../model/GetWirelessGatewayRequest.cpp | 43 + .../source/model/GetWirelessGatewayResult.cpp | 76 + .../GetWirelessGatewayStatisticsRequest.cpp | 27 + .../GetWirelessGatewayStatisticsResult.cpp | 46 + ...etWirelessGatewayTaskDefinitionRequest.cpp | 27 + ...GetWirelessGatewayTaskDefinitionResult.cpp | 54 + .../model/GetWirelessGatewayTaskRequest.cpp | 27 + .../model/GetWirelessGatewayTaskResult.cpp | 66 + .../source/model/ListDestinationsRequest.cpp | 50 + .../source/model/ListDestinationsResult.cpp | 49 + .../model/ListDeviceProfilesRequest.cpp | 50 + .../source/model/ListDeviceProfilesResult.cpp | 49 + .../model/ListPartnerAccountsRequest.cpp | 50 + .../model/ListPartnerAccountsResult.cpp | 49 + .../model/ListServiceProfilesRequest.cpp | 50 + .../model/ListServiceProfilesResult.cpp | 49 + .../model/ListTagsForResourceRequest.cpp | 41 + .../model/ListTagsForResourceResult.cpp | 43 + .../model/ListWirelessDevicesRequest.cpp | 83 + .../model/ListWirelessDevicesResult.cpp | 49 + ...tWirelessGatewayTaskDefinitionsRequest.cpp | 59 + ...stWirelessGatewayTaskDefinitionsResult.cpp | 49 + .../model/ListWirelessGatewaysRequest.cpp | 50 + .../model/ListWirelessGatewaysResult.cpp | 49 + .../source/model/LoRaWANDevice.cpp | 149 + .../source/model/LoRaWANDeviceMetadata.cpp | 148 + .../source/model/LoRaWANDeviceProfile.cpp | 367 ++ .../source/model/LoRaWANGateway.cpp | 74 + .../model/LoRaWANGatewayCurrentVersion.cpp | 59 + .../source/model/LoRaWANGatewayMetadata.cpp | 93 + .../source/model/LoRaWANGatewayVersion.cpp | 89 + .../model/LoRaWANGetServiceProfileInfo.cpp | 361 ++ .../source/model/LoRaWANListDevice.cpp | 59 + .../source/model/LoRaWANSendDataToDevice.cpp | 61 + .../source/model/LoRaWANServiceProfile.cpp | 61 + .../source/model/LoRaWANUpdateDevice.cpp | 74 + .../model/LoRaWANUpdateGatewayTaskCreate.cpp | 106 + .../model/LoRaWANUpdateGatewayTaskEntry.cpp | 74 + .../source/model/OtaaV1_0_x.cpp | 74 + .../source/model/OtaaV1_1.cpp | 89 + .../source/model/PartnerType.cpp | 63 + .../model/ResourceNotFoundException.cpp | 89 + .../model/SendDataToWirelessDeviceRequest.cpp | 51 + .../model/SendDataToWirelessDeviceResult.cpp | 40 + .../source/model/ServiceProfile.cpp | 89 + .../source/model/SessionKeysAbpV1_0_x.cpp | 74 + .../source/model/SessionKeysAbpV1_1.cpp | 104 + .../source/model/SidewalkAccountInfo.cpp | 74 + .../SidewalkAccountInfoWithFingerprint.cpp | 74 + .../source/model/SidewalkListDevice.cpp | 59 + .../source/model/SidewalkSendDataToDevice.cpp | 61 + .../source/model/SidewalkUpdateAccount.cpp | 59 + aws-cpp-sdk-iotwireless/source/model/Tag.cpp | 74 + .../source/model/TagResourceRequest.cpp | 55 + .../source/model/TagResourceResult.cpp | 34 + .../model/TestWirelessDeviceRequest.cpp | 27 + .../source/model/TestWirelessDeviceResult.cpp | 40 + .../source/model/TooManyTagsException.cpp | 74 + .../source/model/UntagResourceRequest.cpp | 52 + .../source/model/UntagResourceResult.cpp | 34 + .../source/model/UpdateDestinationRequest.cpp | 57 + .../source/model/UpdateDestinationResult.cpp | 34 + .../model/UpdatePartnerAccountRequest.cpp | 52 + .../model/UpdatePartnerAccountResult.cpp | 34 + .../model/UpdateWirelessDeviceRequest.cpp | 57 + .../model/UpdateWirelessDeviceResult.cpp | 34 + .../model/UpdateWirelessGatewayRequest.cpp | 43 + .../model/UpdateWirelessGatewayResult.cpp | 34 + .../model/UpdateWirelessGatewayTaskCreate.cpp | 89 + .../model/UpdateWirelessGatewayTaskEntry.cpp | 74 + .../source/model/WirelessDeviceIdType.cpp | 77 + .../source/model/WirelessDeviceStatistics.cpp | 165 + .../source/model/WirelessDeviceType.cpp | 70 + .../source/model/WirelessGatewayIdType.cpp | 77 + .../model/WirelessGatewayServiceType.cpp | 70 + .../model/WirelessGatewayStatistics.cpp | 134 + .../WirelessGatewayTaskDefinitionType.cpp | 63 + .../model/WirelessGatewayTaskStatus.cpp | 98 + .../source/model/WirelessMetadata.cpp | 74 + .../include/aws/lambda/LambdaClient.h | 30 +- .../model/CreateEventSourceMappingRequest.h | 258 +- .../model/CreateEventSourceMappingResult.h | 194 +- .../model/DeleteEventSourceMappingResult.h | 194 +- .../include/aws/lambda/model/EndPointType.h | 30 + .../model/EventSourceMappingConfiguration.h | 230 +- .../aws/lambda/model/FunctionResponseType.h | 30 + .../model/GetEventSourceMappingResult.h | 194 +- .../include/aws/lambda/model/ImageConfig.h | 7 +- .../aws/lambda/model/SelfManagedEventSource.h | 122 + .../lambda/model/SourceAccessConfiguration.h | 165 +- .../aws/lambda/model/SourceAccessType.h | 6 +- .../model/UpdateEventSourceMappingRequest.h | 205 +- .../model/UpdateEventSourceMappingResult.h | 194 +- .../model/CreateEventSourceMappingRequest.cpp | 29 +- .../model/CreateEventSourceMappingResult.cpp | 27 +- .../model/DeleteEventSourceMappingResult.cpp | 27 +- .../source/model/EndPointType.cpp | 63 + .../model/EventSourceMappingConfiguration.cpp | 59 +- .../source/model/FunctionResponseType.cpp | 63 + .../model/GetEventSourceMappingResult.cpp | 27 +- .../source/model/SelfManagedEventSource.cpp | 79 + .../source/model/SourceAccessType.cpp | 28 + .../model/UpdateEventSourceMappingRequest.cpp | 22 +- .../model/UpdateEventSourceMappingResult.cpp | 27 +- aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h | 178 +- aws-cpp-sdk-ssm/include/aws/ssm/SSMErrors.h | 1 + .../aws/ssm/model/AssociationDescription.h | 53 + .../aws/ssm/model/AssociationVersionInfo.h | 53 + .../aws/ssm/model/AutomationExecution.h | 284 ++ .../ssm/model/AutomationExecutionFilterKey.h | 4 +- .../ssm/model/AutomationExecutionMetadata.h | 284 ++ .../aws/ssm/model/AutomationExecutionStatus.h | 12 +- .../include/aws/ssm/model/AutomationSubtype.h | 30 + .../CreateAssociationBatchRequestEntry.h | 53 + .../aws/ssm/model/CreateAssociationRequest.h | 61 + .../model/CreateMaintenanceWindowRequest.h | 56 +- .../aws/ssm/model/CreateOpsItemRequest.h | 225 + .../aws/ssm/model/CreateOpsMetadataRequest.h | 40 +- .../aws/ssm/model/DocumentDescription.h | 220 + .../aws/ssm/model/DocumentIdentifier.h | 79 + .../aws/ssm/model/DocumentMetadataEnum.h | 30 + .../ssm/model/DocumentMetadataResponseInfo.h | 90 + .../aws/ssm/model/DocumentReviewAction.h | 33 + .../ssm/model/DocumentReviewCommentSource.h | 138 + .../aws/ssm/model/DocumentReviewCommentType.h | 30 + .../model/DocumentReviewerResponseSource.h | 289 ++ .../include/aws/ssm/model/DocumentReviews.h | 132 + .../include/aws/ssm/model/DocumentType.h | 3 +- .../aws/ssm/model/DocumentVersionInfo.h | 41 + .../include/aws/ssm/model/GetDocumentResult.h | 54 + .../ssm/model/GetMaintenanceWindowResult.h | 28 +- .../aws/ssm/model/GetOpsMetadataResult.h | 36 +- .../aws/ssm/model/InstanceInformation.h | 18 +- .../ListDocumentMetadataHistoryRequest.h | 254 ++ .../model/ListDocumentMetadataHistoryResult.h | 241 ++ .../aws/ssm/model/ListOpsItemEventsRequest.h | 179 + .../aws/ssm/model/ListOpsItemEventsResult.h | 124 + .../include/aws/ssm/model/MetadataValue.h | 20 +- .../include/aws/ssm/model/OpsItem.h | 224 + .../aws/ssm/model/OpsItemEventFilter.h | 178 + .../aws/ssm/model/OpsItemEventFilterKey.h | 30 + .../ssm/model/OpsItemEventFilterOperator.h | 30 + .../aws/ssm/model/OpsItemEventSummary.h | 334 ++ .../include/aws/ssm/model/OpsItemFilterKey.h | 13 +- .../include/aws/ssm/model/OpsItemIdentity.h | 97 + .../include/aws/ssm/model/OpsItemStatus.h | 17 +- .../include/aws/ssm/model/OpsItemSummary.h | 224 + .../include/aws/ssm/model/OpsMetadata.h | 18 +- ...RegisterTaskWithMaintenanceWindowRequest.h | 16 +- .../include/aws/ssm/model/ReviewInformation.h | 159 + .../include/aws/ssm/model/ReviewStatus.h | 33 + .../include/aws/ssm/model/Runbook.h | 507 +++ .../StartChangeRequestExecutionRequest.h | 542 +++ .../model/StartChangeRequestExecutionResult.h | 84 + .../include/aws/ssm/model/TargetLocation.h | 64 +- .../aws/ssm/model/UpdateAssociationRequest.h | 61 + .../ssm/model/UpdateDocumentMetadataRequest.h | 164 + .../ssm/model/UpdateDocumentMetadataResult.h | 36 + .../model/UpdateMaintenanceWindowRequest.h | 88 +- .../ssm/model/UpdateMaintenanceWindowResult.h | 28 +- .../aws/ssm/model/UpdateOpsItemRequest.h | 173 + aws-cpp-sdk-ssm/source/SSMClient.cpp | 112 + aws-cpp-sdk-ssm/source/SSMErrors.cpp | 5 + .../source/model/AssociationDescription.cpp | 27 +- .../source/model/AssociationVersionInfo.cpp | 27 +- .../source/model/AutomationExecution.cpp | 102 +- .../model/AutomationExecutionFilterKey.cpp | 14 + .../model/AutomationExecutionMetadata.cpp | 102 +- .../model/AutomationExecutionStatus.cpp | 70 + .../source/model/AutomationSubtype.cpp | 63 + .../CreateAssociationBatchRequestEntry.cpp | 27 +- .../source/model/CreateAssociationRequest.cpp | 14 +- .../source/model/CreateOpsItemRequest.cpp | 33 +- .../source/model/DocumentDescription.cpp | 88 +- .../source/model/DocumentIdentifier.cpp | 35 +- .../source/model/DocumentMetadataEnum.cpp | 63 + .../model/DocumentMetadataResponseInfo.cpp | 67 + .../source/model/DocumentReviewAction.cpp | 84 + .../model/DocumentReviewCommentSource.cpp | 75 + .../model/DocumentReviewCommentType.cpp | 63 + .../model/DocumentReviewerResponseSource.cpp | 126 + .../source/model/DocumentReviews.cpp | 83 + aws-cpp-sdk-ssm/source/model/DocumentType.cpp | 7 + .../source/model/DocumentVersionInfo.cpp | 20 +- .../source/model/GetDocumentResult.cpp | 12 +- .../ListDocumentMetadataHistoryRequest.cpp | 72 + .../ListDocumentMetadataHistoryResult.cpp | 64 + .../source/model/ListOpsItemEventsRequest.cpp | 63 + .../source/model/ListOpsItemEventsResult.cpp | 49 + aws-cpp-sdk-ssm/source/model/OpsItem.cpp | 75 +- .../source/model/OpsItemEventFilter.cpp | 99 + .../source/model/OpsItemEventFilterKey.cpp | 63 + .../model/OpsItemEventFilterOperator.cpp | 63 + .../source/model/OpsItemEventSummary.cpp | 148 + .../source/model/OpsItemFilterKey.cpp | 77 + .../source/model/OpsItemIdentity.cpp | 59 + .../source/model/OpsItemStatus.cpp | 105 + .../source/model/OpsItemSummary.cpp | 75 +- .../source/model/ReviewInformation.cpp | 89 + aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp | 84 + aws-cpp-sdk-ssm/source/model/Runbook.cpp | 200 + .../StartChangeRequestExecutionRequest.cpp | 111 + .../StartChangeRequestExecutionResult.cpp | 40 + .../source/model/UpdateAssociationRequest.cpp | 14 +- .../model/UpdateDocumentMetadataRequest.cpp | 57 + .../model/UpdateDocumentMetadataResult.cpp | 34 + .../source/model/UpdateOpsItemRequest.cpp | 26 +- .../amp-2020-08-01.normal.json | 617 +++ .../greengrassv2-2020-11-30.normal.json | 2319 +++++++++++ .../iot-2015-05-28.normal.json | 1257 +++++- .../iotanalytics-2017-11-27.normal.json | 127 +- .../iotdeviceadvisor-2020-09-18.normal.json | 1129 +++++ .../iotfleethub-2020-11-03.normal.json | 597 +++ .../iotwireless-2020-11-22.normal.json | 3703 +++++++++++++++++ .../lambda-2015-03-31.normal.json | 133 +- .../ssm-2014-11-06.normal.json | 835 +++- 986 files changed, 111187 insertions(+), 1548 deletions(-) create mode 100644 aws-cpp-sdk-amp/CMakeLists.txt create mode 100644 aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceClient.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceEndpoint.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrorMarshaller.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrors.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceRequest.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/PrometheusService_EXPORTS.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ConflictException.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ResourceNotFoundException.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionField.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceDescription.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h create mode 100644 aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceSummary.h create mode 100644 aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp create mode 100644 aws-cpp-sdk-amp/source/PrometheusServiceEndpoint.cpp create mode 100644 aws-cpp-sdk-amp/source/PrometheusServiceErrorMarshaller.cpp create mode 100644 aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ConflictException.cpp create mode 100644 aws-cpp-sdk-amp/source/model/CreateWorkspaceRequest.cpp create mode 100644 aws-cpp-sdk-amp/source/model/CreateWorkspaceResult.cpp create mode 100644 aws-cpp-sdk-amp/source/model/DeleteWorkspaceRequest.cpp create mode 100644 aws-cpp-sdk-amp/source/model/DescribeWorkspaceRequest.cpp create mode 100644 aws-cpp-sdk-amp/source/model/DescribeWorkspaceResult.cpp create mode 100644 aws-cpp-sdk-amp/source/model/InternalServerException.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ListWorkspacesRequest.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ListWorkspacesResult.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ResourceNotFoundException.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ServiceQuotaExceededException.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ThrottlingException.cpp create mode 100644 aws-cpp-sdk-amp/source/model/UpdateWorkspaceAliasRequest.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ValidationException.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ValidationExceptionField.cpp create mode 100644 aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp create mode 100644 aws-cpp-sdk-amp/source/model/WorkspaceDescription.cpp create mode 100644 aws-cpp-sdk-amp/source/model/WorkspaceStatus.cpp create mode 100644 aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp create mode 100644 aws-cpp-sdk-amp/source/model/WorkspaceSummary.cpp create mode 100644 aws-cpp-sdk-greengrassv2/CMakeLists.txt create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Client.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Endpoint.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2ErrorMarshaller.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Errors.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Request.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2_EXPORTS.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentState.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentStatus.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Component.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentCandidate.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentConfigurationUpdate.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyRequirement.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyType.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDeploymentSpecification.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentLatestVersion.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentPlatform.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentRunWith.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVersionListItem.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVisibilityScope.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ConflictException.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDevice.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDeviceStatus.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteComponentRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteCoreDeviceRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Deployment.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicy.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicyAction.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentConfigurationValidationPolicy.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentFailureHandlingPolicy.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentHistoryFilter.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentIoTJobConfiguration.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentPolicies.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentStatus.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeployment.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeploymentExecutionStatus.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponent.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponentLifecycleState.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InternalServerException.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortAction.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortConfig.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortCriteria.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionFailureType.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionsRolloutConfig.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExponentialRolloutRate.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobRateIncreaseCriteria.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobTimeoutConfig.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaContainerParams.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaDeviceMount.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSource.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSourceType.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaExecutionParameters.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFilesystemPermission.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFunctionRecipeSource.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaInputPayloadEncodingType.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaIsolationMode.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaLinuxProcessParams.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaVolumeMount.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/RecipeOutputFormat.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolvedComponentVersion.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResourceNotFoundException.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ServiceQuotaExceededException.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ThrottlingException.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceRequest.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceResult.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationException.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionField.h create mode 100644 aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionReason.h create mode 100644 aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/GreengrassV2Endpoint.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/GreengrassV2ErrorMarshaller.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CloudComponentStatus.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/Component.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentCandidate.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentConfigurationUpdate.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyRequirement.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentDeploymentSpecification.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentLatestVersion.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentPlatform.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentRunWith.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentVersionListItem.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ConflictException.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CoreDevice.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeleteComponentRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeleteCoreDeviceRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/Deployment.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicy.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentConfigurationValidationPolicy.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentIoTJobConfiguration.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentPolicies.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DescribeComponentRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/DescribeComponentResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/EffectiveDeployment.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetComponentRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetComponentResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetDeploymentRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/GetDeploymentResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/InstalledComponent.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/InternalServerException.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortConfig.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortCriteria.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionsRolloutConfig.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobExponentialRolloutRate.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobRateIncreaseCriteria.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/IoTJobTimeoutConfig.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaContainerParams.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaEventSource.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaExecutionParameters.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaFunctionRecipeSource.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaLinuxProcessParams.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/LambdaVolumeMount.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListComponentsRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListComponentsResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ResolvedComponentVersion.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ResourceNotFoundException.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ServiceQuotaExceededException.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/TagResourceRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/TagResourceResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ThrottlingException.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/UntagResourceRequest.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/UntagResourceResult.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ValidationException.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionField.cpp create mode 100644 aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteriaType.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/BehaviorModelTrainingSummary.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ConfidenceLevel.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/CustomMetricType.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecution.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecutionStatus.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatistics.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatus.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskSummary.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskTarget.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/KafkaAction.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/MachineLearningDetectionConfig.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ModelStatus.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricRequest.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricResult.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventAdditionalInfo.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventOccurrenceRange.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationConfiguration.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationProperties.h create mode 100644 aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationSummary.h create mode 100644 aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp create mode 100644 aws-cpp-sdk-iot/source/model/BehaviorModelTrainingSummary.cpp create mode 100644 aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp create mode 100644 aws-cpp-sdk-iot/source/model/CreateCustomMetricRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/CreateCustomMetricResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/CustomMetricType.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DeleteCustomMetricRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DeleteCustomMetricResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DescribeCustomMetricRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DescribeCustomMetricResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DetectMitigationActionExecution.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatistics.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskSummary.cpp create mode 100644 aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskTarget.cpp create mode 100644 aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/KafkaAction.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ListCustomMetricsRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ListCustomMetricsResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/MachineLearningDetectionConfig.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ModelStatus.cpp create mode 100644 aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/UpdateCustomMetricRequest.cpp create mode 100644 aws-cpp-sdk-iot/source/model/UpdateCustomMetricResult.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ViolationEventAdditionalInfo.cpp create mode 100644 aws-cpp-sdk-iot/source/model/ViolationEventOccurrenceRange.cpp create mode 100644 aws-cpp-sdk-iot/source/model/VpcDestinationConfiguration.cpp create mode 100644 aws-cpp-sdk-iot/source/model/VpcDestinationProperties.cpp create mode 100644 aws-cpp-sdk-iot/source/model/VpcDestinationSummary.cpp create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ChannelMessages.h create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Column.h create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatConfiguration.h create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatType.h create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/JsonConfiguration.h create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ParquetConfiguration.h create mode 100644 aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/SchemaDefinition.h create mode 100644 aws-cpp-sdk-iotanalytics/source/model/ChannelMessages.cpp create mode 100644 aws-cpp-sdk-iotanalytics/source/model/Column.cpp create mode 100644 aws-cpp-sdk-iotanalytics/source/model/FileFormatConfiguration.cpp create mode 100644 aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp create mode 100644 aws-cpp-sdk-iotanalytics/source/model/JsonConfiguration.cpp create mode 100644 aws-cpp-sdk-iotanalytics/source/model/ParquetConfiguration.cpp create mode 100644 aws-cpp-sdk-iotanalytics/source/model/SchemaDefinition.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/CMakeLists.txt create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorClient.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorEndpoint.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrorMarshaller.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrors.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeviceUnderTest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GroupResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/Status.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionConfiguration.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionInformation.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunConfiguration.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunInformation.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunStatus.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCase.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseCategory.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseDefinition.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseRun.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionResult.h create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorEndpoint.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrorMarshaller.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/DeviceUnderTest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/GroupResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionConfiguration.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionInformation.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunConfiguration.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunInformation.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TestCase.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseCategory.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseDefinition.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseRun.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/TestResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceResult.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/CMakeLists.txt create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubClient.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubEndpoint.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrorMarshaller.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrors.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHub_EXPORTS.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationState.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationSummary.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceResult.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationRequest.h create mode 100644 aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationResult.h create mode 100644 aws-cpp-sdk-iotfleethub/source/IoTFleetHubClient.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/IoTFleetHubEndpoint.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrorMarshaller.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/ApplicationSummary.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/CreateApplicationRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/CreateApplicationResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/ListApplicationsRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/ListApplicationsResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/TagResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/TagResourceResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/UntagResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/UntagResourceResult.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationRequest.cpp create mode 100644 aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/CMakeLists.txt create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessClient.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessEndpoint.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrorMarshaller.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrors.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWireless_EXPORTS.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_0_x.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_1.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ConflictException.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Destinations.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeviceProfile.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ExpressionType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDevice.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceMetadata.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceProfile.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGateway.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayCurrentVersion.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayMetadata.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayVersion.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGetServiceProfileInfo.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANListDevice.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANSendDataToDevice.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANServiceProfile.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateDevice.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskCreate.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskEntry.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_0_x.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_1.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/PartnerType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ResourceNotFoundException.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ServiceProfile.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_0_x.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_1.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfo.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfoWithFingerprint.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkListDevice.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkSendDataToDevice.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkUpdateAccount.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Tag.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TooManyTagsException.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayRequest.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayResult.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskCreate.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskEntry.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceIdType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceStatistics.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayIdType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayServiceType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayStatistics.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskDefinitionType.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskStatus.h create mode 100644 aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessMetadata.h create mode 100644 aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/IoTWirelessEndpoint.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/IoTWirelessErrorMarshaller.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AbpV1_0_x.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AbpV1_1.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ConflictException.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateDestinationRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateDestinationResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteDestinationRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteDestinationResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/Destinations.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DeviceProfile.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetDestinationRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetDestinationResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetServiceProfileRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetServiceProfileResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListDestinationsRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListDestinationsResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANDevice.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceMetadata.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceProfile.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANGateway.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayCurrentVersion.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayMetadata.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayVersion.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANGetServiceProfileInfo.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANListDevice.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANSendDataToDevice.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANServiceProfile.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateDevice.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskCreate.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskEntry.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/OtaaV1_0_x.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/OtaaV1_1.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ResourceNotFoundException.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/ServiceProfile.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_0_x.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_1.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfo.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfoWithFingerprint.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SidewalkListDevice.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SidewalkSendDataToDevice.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/SidewalkUpdateAccount.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/Tag.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/TagResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/TagResourceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/TooManyTagsException.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UntagResourceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UntagResourceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateDestinationRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateDestinationResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayRequest.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayResult.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskCreate.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskEntry.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessDeviceStatistics.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessGatewayStatistics.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp create mode 100644 aws-cpp-sdk-iotwireless/source/model/WirelessMetadata.cpp create mode 100644 aws-cpp-sdk-lambda/include/aws/lambda/model/EndPointType.h create mode 100644 aws-cpp-sdk-lambda/include/aws/lambda/model/FunctionResponseType.h create mode 100644 aws-cpp-sdk-lambda/include/aws/lambda/model/SelfManagedEventSource.h create mode 100644 aws-cpp-sdk-lambda/source/model/EndPointType.cpp create mode 100644 aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp create mode 100644 aws-cpp-sdk-lambda/source/model/SelfManagedEventSource.cpp create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationSubtype.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataEnum.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataResponseInfo.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewAction.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentSource.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentType.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewerResponseSource.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviews.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryRequest.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryResult.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsRequest.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsResult.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilter.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterKey.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterOperator.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventSummary.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemIdentity.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewInformation.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewStatus.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/Runbook.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionRequest.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionResult.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataRequest.h create mode 100644 aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataResult.h create mode 100644 aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentMetadataResponseInfo.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentReviewCommentSource.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentReviewerResponseSource.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/DocumentReviews.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryRequest.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryResult.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/ListOpsItemEventsRequest.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/ListOpsItemEventsResult.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/OpsItemEventFilter.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/OpsItemEventSummary.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/OpsItemIdentity.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/ReviewInformation.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/Runbook.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionRequest.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionResult.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataRequest.cpp create mode 100644 aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataResult.cpp create mode 100644 code-generation/api-descriptions/amp-2020-08-01.normal.json create mode 100644 code-generation/api-descriptions/greengrassv2-2020-11-30.normal.json create mode 100644 code-generation/api-descriptions/iotdeviceadvisor-2020-09-18.normal.json create mode 100644 code-generation/api-descriptions/iotfleethub-2020-11-03.normal.json create mode 100644 code-generation/api-descriptions/iotwireless-2020-11-22.normal.json diff --git a/aws-cpp-sdk-amp/CMakeLists.txt b/aws-cpp-sdk-amp/CMakeLists.txt new file mode 100644 index 00000000000..7c6d66c55a6 --- /dev/null +++ b/aws-cpp-sdk-amp/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-amp "C++ SDK for the AWS amp service" aws-cpp-sdk-core) + +file(GLOB AWS_AMP_HEADERS + "include/aws/amp/*.h" +) + +file(GLOB AWS_AMP_MODEL_HEADERS + "include/aws/amp/model/*.h" +) + +file(GLOB AWS_AMP_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_AMP_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB AMP_UNIFIED_HEADERS + ${AWS_AMP_HEADERS} + ${AWS_AMP_MODEL_HEADERS} +) + +file(GLOB AMP_UNITY_SRC + ${AWS_AMP_SOURCE} + ${AWS_AMP_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("AMP" AMP_UNITY_SRC) +endif() + +file(GLOB AMP_SRC + ${AMP_UNIFIED_HEADERS} + ${AMP_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\amp" FILES ${AWS_AMP_HEADERS}) + source_group("Header Files\\aws\\amp\\model" FILES ${AWS_AMP_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_AMP_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_AMP_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(AMP_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${AMP_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_PROMETHEUSSERVICE_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_AMP_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/amp) +install (FILES ${AWS_AMP_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/amp/model) + +do_packaging() + + diff --git a/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceClient.h b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceClient.h new file mode 100644 index 00000000000..1e06419fcbc --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceClient.h @@ -0,0 +1,258 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ + +namespace Http +{ + class HttpClient; + class HttpClientFactory; +} // namespace Http + +namespace Utils +{ + template< typename R, typename E> class Outcome; +namespace Threading +{ + class Executor; +} // namespace Threading +} // namespace Utils + +namespace Auth +{ + class AWSCredentials; + class AWSCredentialsProvider; +} // namespace Auth + +namespace Client +{ + class RetryStrategy; +} // namespace Client + +namespace PrometheusService +{ + +namespace Model +{ + class CreateWorkspaceRequest; + class DeleteWorkspaceRequest; + class DescribeWorkspaceRequest; + class ListWorkspacesRequest; + class UpdateWorkspaceAliasRequest; + + typedef Aws::Utils::Outcome CreateWorkspaceOutcome; + typedef Aws::Utils::Outcome DeleteWorkspaceOutcome; + typedef Aws::Utils::Outcome DescribeWorkspaceOutcome; + typedef Aws::Utils::Outcome ListWorkspacesOutcome; + typedef Aws::Utils::Outcome UpdateWorkspaceAliasOutcome; + + typedef std::future CreateWorkspaceOutcomeCallable; + typedef std::future DeleteWorkspaceOutcomeCallable; + typedef std::future DescribeWorkspaceOutcomeCallable; + typedef std::future ListWorkspacesOutcomeCallable; + typedef std::future UpdateWorkspaceAliasOutcomeCallable; +} // namespace Model + + class PrometheusServiceClient; + + typedef std::function&) > CreateWorkspaceResponseReceivedHandler; + typedef std::function&) > DeleteWorkspaceResponseReceivedHandler; + typedef std::function&) > DescribeWorkspaceResponseReceivedHandler; + typedef std::function&) > ListWorkspacesResponseReceivedHandler; + typedef std::function&) > UpdateWorkspaceAliasResponseReceivedHandler; + + /** + *

StealFire Service

+ */ + class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : public Aws::Client::AWSJsonClient + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + PrometheusServiceClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + PrometheusServiceClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + PrometheusServiceClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + virtual ~PrometheusServiceClient(); + + + /** + *

Creates a new StealFire workspace.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateWorkspaceOutcome CreateWorkspace(const Model::CreateWorkspaceRequest& request) const; + + /** + *

Creates a new StealFire workspace.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateWorkspaceOutcomeCallable CreateWorkspaceCallable(const Model::CreateWorkspaceRequest& request) const; + + /** + *

Creates a new StealFire workspace.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateWorkspaceAsync(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a StealFire workspace.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteWorkspaceOutcome DeleteWorkspace(const Model::DeleteWorkspaceRequest& request) const; + + /** + *

Deletes a StealFire workspace.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteWorkspaceOutcomeCallable DeleteWorkspaceCallable(const Model::DeleteWorkspaceRequest& request) const; + + /** + *

Deletes a StealFire workspace.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteWorkspaceAsync(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Describes an existing StealFire workspace.

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeWorkspaceOutcome DescribeWorkspace(const Model::DescribeWorkspaceRequest& request) const; + + /** + *

Describes an existing StealFire workspace.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DescribeWorkspaceOutcomeCallable DescribeWorkspaceCallable(const Model::DescribeWorkspaceRequest& request) const; + + /** + *

Describes an existing StealFire workspace.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DescribeWorkspaceAsync(const Model::DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists all StealFire workspaces, including workspaces being created or + * deleted.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListWorkspacesOutcome ListWorkspaces(const Model::ListWorkspacesRequest& request) const; + + /** + *

Lists all StealFire workspaces, including workspaces being created or + * deleted.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListWorkspacesOutcomeCallable ListWorkspacesCallable(const Model::ListWorkspacesRequest& request) const; + + /** + *

Lists all StealFire workspaces, including workspaces being created or + * deleted.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListWorkspacesAsync(const Model::ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates a StealFire workspace alias.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateWorkspaceAliasOutcome UpdateWorkspaceAlias(const Model::UpdateWorkspaceAliasRequest& request) const; + + /** + *

Updates a StealFire workspace alias.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateWorkspaceAliasOutcomeCallable UpdateWorkspaceAliasCallable(const Model::UpdateWorkspaceAliasRequest& request) const; + + /** + *

Updates a StealFire workspace alias.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateWorkspaceAliasAsync(const Model::UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + + void OverrideEndpoint(const Aws::String& endpoint); + private: + void init(const Aws::Client::ClientConfiguration& clientConfiguration); + void CreateWorkspaceAsyncHelper(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteWorkspaceAsyncHelper(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DescribeWorkspaceAsyncHelper(const Model::DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListWorkspacesAsyncHelper(const Model::ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateWorkspaceAliasAsyncHelper(const Model::UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr& context) const; + + Aws::String m_uri; + Aws::String m_configScheme; + std::shared_ptr m_executor; + }; + +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceEndpoint.h b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceEndpoint.h new file mode 100644 index 00000000000..6986365e9b0 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceEndpoint.h @@ -0,0 +1,21 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ + +namespace PrometheusService +{ +namespace PrometheusServiceEndpoint +{ +AWS_PROMETHEUSSERVICE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false); +} // namespace PrometheusServiceEndpoint +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrorMarshaller.h b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrorMarshaller.h new file mode 100644 index 00000000000..5b42a981180 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_PROMETHEUSSERVICE_API PrometheusServiceErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrors.h b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrors.h new file mode 100644 index 00000000000..6dc35e0df5e --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrors.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ +enum class PrometheusServiceErrors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVER, + SERVICE_QUOTA_EXCEEDED +}; + +class AWS_PROMETHEUSSERVICE_API PrometheusServiceError : public Aws::Client::AWSError +{ +public: + PrometheusServiceError() {} + PrometheusServiceError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + PrometheusServiceError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + PrometheusServiceError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + PrometheusServiceError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace PrometheusServiceErrorMapper +{ + AWS_PROMETHEUSSERVICE_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceRequest.h new file mode 100644 index 00000000000..45751941bcf --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceRequest.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ + class AWS_PROMETHEUSSERVICE_API PrometheusServiceRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + virtual ~PrometheusServiceRequest () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-08-01")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/PrometheusService_EXPORTS.h b/aws-cpp-sdk-amp/include/aws/amp/PrometheusService_EXPORTS.h new file mode 100644 index 00000000000..52550044f77 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/PrometheusService_EXPORTS.h @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_PROMETHEUSSERVICE_EXPORTS + #define AWS_PROMETHEUSSERVICE_API __declspec(dllexport) + #else + #define AWS_PROMETHEUSSERVICE_API __declspec(dllimport) + #endif /* AWS_PROMETHEUSSERVICE_EXPORTS */ + #else + #define AWS_PROMETHEUSSERVICE_API + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_PROMETHEUSSERVICE_API +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ConflictException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ConflictException.h new file mode 100644 index 00000000000..462ca302597 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ConflictException.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Updating or deleting a resource can cause an inconsistent + * state.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ConflictException + { + public: + ConflictException(); + ConflictException(Aws::Utils::Json::JsonView jsonValue); + ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Description of the error.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Description of the error.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Description of the error.

+ */ + inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Description of the error.

+ */ + inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Description of the error.

+ */ + inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

Identifier of the resource affected.

+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

Identifier of the resource affected.

+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

Identifier of the resource affected.

+ */ + inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

Identifier of the resource affected.

+ */ + inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

Identifier of the resource affected.

+ */ + inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

Type of the resource affected.

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

Type of the resource affected.

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

Type of the resource affected.

+ */ + inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

Type of the resource affected.

+ */ + inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

Type of the resource affected.

+ */ + inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h new file mode 100644 index 00000000000..bb07676ed53 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the input of a CreateWorkspace operation.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API CreateWorkspaceRequest : public PrometheusServiceRequest + { + public: + CreateWorkspaceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspace"; } + + Aws::String SerializePayload() const override; + + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline CreateWorkspaceRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline CreateWorkspaceRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *

An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.

+ */ + inline CreateWorkspaceRequest& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline CreateWorkspaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline CreateWorkspaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline CreateWorkspaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h new file mode 100644 index 00000000000..6e650c3910a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h @@ -0,0 +1,150 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + /** + *

Represents the output of a CreateWorkspace operation.

See + * Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API CreateWorkspaceResult + { + public: + CreateWorkspaceResult(); + CreateWorkspaceResult(const Aws::AmazonWebServiceResult& result); + CreateWorkspaceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ARN of the workspace that was just created.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN of the workspace that was just created.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The ARN of the workspace that was just created.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The ARN of the workspace that was just created.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The ARN of the workspace that was just created.

+ */ + inline CreateWorkspaceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN of the workspace that was just created.

+ */ + inline CreateWorkspaceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN of the workspace that was just created.

+ */ + inline CreateWorkspaceResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The status of the workspace that was just created (usually CREATING).

+ */ + inline const WorkspaceStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the workspace that was just created (usually CREATING).

+ */ + inline void SetStatus(const WorkspaceStatus& value) { m_status = value; } + + /** + *

The status of the workspace that was just created (usually CREATING).

+ */ + inline void SetStatus(WorkspaceStatus&& value) { m_status = std::move(value); } + + /** + *

The status of the workspace that was just created (usually CREATING).

+ */ + inline CreateWorkspaceResult& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the workspace that was just created (usually CREATING).

+ */ + inline CreateWorkspaceResult& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceId = value; } + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceId = std::move(value); } + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceId.assign(value); } + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline CreateWorkspaceResult& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline CreateWorkspaceResult& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *

The generated ID of the workspace that was just created.

+ */ + inline CreateWorkspaceResult& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_arn; + + WorkspaceStatus m_status; + + Aws::String m_workspaceId; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h new file mode 100644 index 00000000000..80343a1dc04 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h @@ -0,0 +1,146 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the input of a DeleteWorkspace operation.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API DeleteWorkspaceRequest : public PrometheusServiceRequest + { + public: + DeleteWorkspaceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteWorkspace"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline DeleteWorkspaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline DeleteWorkspaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline DeleteWorkspaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

The ID of the workspace to delete.

+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *

The ID of the workspace to delete.

+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *

The ID of the workspace to delete.

+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *

The ID of the workspace to delete.

+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *

The ID of the workspace to delete.

+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *

The ID of the workspace to delete.

+ */ + inline DeleteWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *

The ID of the workspace to delete.

+ */ + inline DeleteWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *

The ID of the workspace to delete.

+ */ + inline DeleteWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h new file mode 100644 index 00000000000..29a42e379ba --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the input of a DescribeWorkspace operation.

See + * Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API DescribeWorkspaceRequest : public PrometheusServiceRequest + { + public: + DescribeWorkspaceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeWorkspace"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the workspace to describe.

+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *

The ID of the workspace to describe.

+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *

The ID of the workspace to describe.

+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *

The ID of the workspace to describe.

+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *

The ID of the workspace to describe.

+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *

The ID of the workspace to describe.

+ */ + inline DescribeWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *

The ID of the workspace to describe.

+ */ + inline DescribeWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *

The ID of the workspace to describe.

+ */ + inline DescribeWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h new file mode 100644 index 00000000000..f27e389b30a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + /** + *

Represents the output of a DescribeWorkspace operation.

See + * Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API DescribeWorkspaceResult + { + public: + DescribeWorkspaceResult(); + DescribeWorkspaceResult(const Aws::AmazonWebServiceResult& result); + DescribeWorkspaceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The properties of the selected workspace.

+ */ + inline const WorkspaceDescription& GetWorkspace() const{ return m_workspace; } + + /** + *

The properties of the selected workspace.

+ */ + inline void SetWorkspace(const WorkspaceDescription& value) { m_workspace = value; } + + /** + *

The properties of the selected workspace.

+ */ + inline void SetWorkspace(WorkspaceDescription&& value) { m_workspace = std::move(value); } + + /** + *

The properties of the selected workspace.

+ */ + inline DescribeWorkspaceResult& WithWorkspace(const WorkspaceDescription& value) { SetWorkspace(value); return *this;} + + /** + *

The properties of the selected workspace.

+ */ + inline DescribeWorkspaceResult& WithWorkspace(WorkspaceDescription&& value) { SetWorkspace(std::move(value)); return *this;} + + private: + + WorkspaceDescription m_workspace; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h b/aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h new file mode 100644 index 00000000000..3f25d9b109c --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Unexpected error during processing of request.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API InternalServerException + { + public: + InternalServerException(); + InternalServerException(Aws::Utils::Json::JsonView jsonValue); + InternalServerException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Description of the error.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Description of the error.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Description of the error.

+ */ + inline InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Description of the error.

+ */ + inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Description of the error.

+ */ + inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline InternalServerException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + int m_retryAfterSeconds; + bool m_retryAfterSecondsHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h new file mode 100644 index 00000000000..a1932d29da4 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the input of a ListWorkspaces operation.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ListWorkspacesRequest : public PrometheusServiceRequest + { + public: + ListWorkspacesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListWorkspaces"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline ListWorkspacesRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline ListWorkspacesRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *

Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.

+ */ + inline ListWorkspacesRequest& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *

Maximum results to return in response (default=100, maximum=1000).

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

Maximum results to return in response (default=100, maximum=1000).

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

Maximum results to return in response (default=100, maximum=1000).

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

Maximum results to return in response (default=100, maximum=1000).

+ */ + inline ListWorkspacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline ListWorkspacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline ListWorkspacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.

+ */ + inline ListWorkspacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h new file mode 100644 index 00000000000..b13df67f821 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h @@ -0,0 +1,130 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + /** + *

Represents the output of a ListWorkspaces operation.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ListWorkspacesResult + { + public: + ListWorkspacesResult(); + ListWorkspacesResult(const Aws::AmazonWebServiceResult& result); + ListWorkspacesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline ListWorkspacesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline ListWorkspacesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Pagination token to use when requesting the next page in this list.

+ */ + inline ListWorkspacesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline const Aws::Vector& GetWorkspaces() const{ return m_workspaces; } + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline void SetWorkspaces(const Aws::Vector& value) { m_workspaces = value; } + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline void SetWorkspaces(Aws::Vector&& value) { m_workspaces = std::move(value); } + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline ListWorkspacesResult& WithWorkspaces(const Aws::Vector& value) { SetWorkspaces(value); return *this;} + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline ListWorkspacesResult& WithWorkspaces(Aws::Vector&& value) { SetWorkspaces(std::move(value)); return *this;} + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline ListWorkspacesResult& AddWorkspaces(const WorkspaceSummary& value) { m_workspaces.push_back(value); return *this; } + + /** + *

The list of existing workspaces, including those undergoing creation or + * deletion.

+ */ + inline ListWorkspacesResult& AddWorkspaces(WorkspaceSummary&& value) { m_workspaces.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_workspaces; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ResourceNotFoundException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ResourceNotFoundException.h new file mode 100644 index 00000000000..3a1792217de --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ResourceNotFoundException.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Request references a resource which does not exist.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ResourceNotFoundException + { + public: + ResourceNotFoundException(); + ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); + ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Description of the error.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Description of the error.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Description of the error.

+ */ + inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Description of the error.

+ */ + inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Description of the error.

+ */ + inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

Identifier of the resource affected.

+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

Identifier of the resource affected.

+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

Identifier of the resource affected.

+ */ + inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

Identifier of the resource affected.

+ */ + inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

Identifier of the resource affected.

+ */ + inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

Type of the resource affected.

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

Type of the resource affected.

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

Type of the resource affected.

+ */ + inline ResourceNotFoundException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

Type of the resource affected.

+ */ + inline ResourceNotFoundException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

Type of the resource affected.

+ */ + inline ResourceNotFoundException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h new file mode 100644 index 00000000000..839fe31d46a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h @@ -0,0 +1,265 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Request would cause a service quota to be exceeded.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ServiceQuotaExceededException + { + public: + ServiceQuotaExceededException(); + ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue); + ServiceQuotaExceededException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Description of the error.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Description of the error.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Description of the error.

+ */ + inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Description of the error.

+ */ + inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Description of the error.

+ */ + inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline ServiceQuotaExceededException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline ServiceQuotaExceededException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline ServiceQuotaExceededException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} + + + /** + *

Identifier of the resource affected.

+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

Identifier of the resource affected.

+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

Identifier of the resource affected.

+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

Identifier of the resource affected.

+ */ + inline ServiceQuotaExceededException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

Identifier of the resource affected.

+ */ + inline ServiceQuotaExceededException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

Identifier of the resource affected.

+ */ + inline ServiceQuotaExceededException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

Type of the resource affected.

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

Type of the resource affected.

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

Type of the resource affected.

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

Type of the resource affected.

+ */ + inline ServiceQuotaExceededException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

Type of the resource affected.

+ */ + inline ServiceQuotaExceededException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

Type of the resource affected.

+ */ + inline ServiceQuotaExceededException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline ServiceQuotaExceededException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline ServiceQuotaExceededException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline ServiceQuotaExceededException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_quotaCode; + bool m_quotaCodeHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + + Aws::String m_serviceCode; + bool m_serviceCodeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h new file mode 100644 index 00000000000..9b48816b1a2 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h @@ -0,0 +1,200 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Request was denied due to request throttling.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ThrottlingException + { + public: + ThrottlingException(); + ThrottlingException(Aws::Utils::Json::JsonView jsonValue); + ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Description of the error.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Description of the error.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Description of the error.

+ */ + inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Description of the error.

+ */ + inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Description of the error.

+ */ + inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} + + /** + *

Service Quotas requirement to identify originating quota.

+ */ + inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} + + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } + + /** + *

Advice to clients on when the call can be safely retried.

+ */ + inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} + + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} + + /** + *

Service Quotas requirement to identify originating service.

+ */ + inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_quotaCode; + bool m_quotaCodeHasBeenSet; + + int m_retryAfterSeconds; + bool m_retryAfterSecondsHasBeenSet; + + Aws::String m_serviceCode; + bool m_serviceCodeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h new file mode 100644 index 00000000000..b71450452e9 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h @@ -0,0 +1,184 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the input of an UpdateWorkspaceAlias operation.

See + * Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API UpdateWorkspaceAliasRequest : public PrometheusServiceRequest + { + public: + UpdateWorkspaceAliasRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkspaceAlias"; } + + Aws::String SerializePayload() const override; + + + /** + *

The new alias of the workspace.

+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *

The new alias of the workspace.

+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *

The new alias of the workspace.

+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *

The new alias of the workspace.

+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *

The new alias of the workspace.

+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *

The new alias of the workspace.

+ */ + inline UpdateWorkspaceAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *

The new alias of the workspace.

+ */ + inline UpdateWorkspaceAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *

The new alias of the workspace.

+ */ + inline UpdateWorkspaceAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline UpdateWorkspaceAliasRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline UpdateWorkspaceAliasRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.

+ */ + inline UpdateWorkspaceAliasRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

The ID of the workspace being updated.

+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *

The ID of the workspace being updated.

+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *

The ID of the workspace being updated.

+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *

The ID of the workspace being updated.

+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *

The ID of the workspace being updated.

+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *

The ID of the workspace being updated.

+ */ + inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *

The ID of the workspace being updated.

+ */ + inline UpdateWorkspaceAliasRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *

The ID of the workspace being updated.

+ */ + inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h new file mode 100644 index 00000000000..f80219cacf2 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

The input fails to satisfy the constraints specified by an AWS + * service.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ValidationException + { + public: + ValidationException(); + ValidationException(Aws::Utils::Json::JsonView jsonValue); + ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline const Aws::Vector& GetFieldList() const{ return m_fieldList; } + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; } + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline void SetFieldList(const Aws::Vector& value) { m_fieldListHasBeenSet = true; m_fieldList = value; } + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline void SetFieldList(Aws::Vector&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); } + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline ValidationException& WithFieldList(const Aws::Vector& value) { SetFieldList(value); return *this;} + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline ValidationException& WithFieldList(Aws::Vector&& value) { SetFieldList(std::move(value)); return *this;} + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; } + + /** + *

The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.

+ */ + inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; } + + + /** + *

Description of the error.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Description of the error.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Description of the error.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Description of the error.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Description of the error.

+ */ + inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Description of the error.

+ */ + inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Description of the error.

+ */ + inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

Reason the request failed validation.

+ */ + inline const ValidationExceptionReason& GetReason() const{ return m_reason; } + + /** + *

Reason the request failed validation.

+ */ + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + + /** + *

Reason the request failed validation.

+ */ + inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } + + /** + *

Reason the request failed validation.

+ */ + inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + + /** + *

Reason the request failed validation.

+ */ + inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} + + /** + *

Reason the request failed validation.

+ */ + inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} + + private: + + Aws::Vector m_fieldList; + bool m_fieldListHasBeenSet; + + Aws::String m_message; + bool m_messageHasBeenSet; + + ValidationExceptionReason m_reason; + bool m_reasonHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionField.h b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionField.h new file mode 100644 index 00000000000..b8ee993dc3a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionField.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Stores information about a field passed inside a request that resulted in an + * exception.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API ValidationExceptionField + { + public: + ValidationExceptionField(); + ValidationExceptionField(Aws::Utils::Json::JsonView jsonValue); + ValidationExceptionField& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Message describing why the field failed validation.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

Message describing why the field failed validation.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

Message describing why the field failed validation.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

Message describing why the field failed validation.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

Message describing why the field failed validation.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

Message describing why the field failed validation.

+ */ + inline ValidationExceptionField& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

Message describing why the field failed validation.

+ */ + inline ValidationExceptionField& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

Message describing why the field failed validation.

+ */ + inline ValidationExceptionField& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The field name.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The field name.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The field name.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The field name.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The field name.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The field name.

+ */ + inline ValidationExceptionField& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The field name.

+ */ + inline ValidationExceptionField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The field name.

+ */ + inline ValidationExceptionField& WithName(const char* value) { SetName(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h new file mode 100644 index 00000000000..fd8e72dcd77 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + enum class ValidationExceptionReason + { + NOT_SET, + UNKNOWN_OPERATION, + CANNOT_PARSE, + FIELD_VALIDATION_FAILED, + OTHER + }; + +namespace ValidationExceptionReasonMapper +{ +AWS_PROMETHEUSSERVICE_API ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name); + +AWS_PROMETHEUSSERVICE_API Aws::String GetNameForValidationExceptionReason(ValidationExceptionReason value); +} // namespace ValidationExceptionReasonMapper +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceDescription.h b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceDescription.h new file mode 100644 index 00000000000..0c5b1514f3a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceDescription.h @@ -0,0 +1,290 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the properties of a workspace.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API WorkspaceDescription + { + public: + WorkspaceDescription(); + WorkspaceDescription(Aws::Utils::Json::JsonView jsonValue); + WorkspaceDescription& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Alias of this workspace.

+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *

Alias of this workspace.

+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *

Alias of this workspace.

+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *

Alias of this workspace.

+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *

Alias of this workspace.

+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *

Alias of this workspace.

+ */ + inline WorkspaceDescription& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *

Alias of this workspace.

+ */ + inline WorkspaceDescription& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *

Alias of this workspace.

+ */ + inline WorkspaceDescription& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline WorkspaceDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline WorkspaceDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) of this workspace.

+ */ + inline WorkspaceDescription& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The time when the workspace was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

The time when the workspace was created.

+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

The time when the workspace was created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

The time when the workspace was created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

The time when the workspace was created.

+ */ + inline WorkspaceDescription& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

The time when the workspace was created.

+ */ + inline WorkspaceDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

Prometheus endpoint URI.

+ */ + inline const Aws::String& GetPrometheusEndpoint() const{ return m_prometheusEndpoint; } + + /** + *

Prometheus endpoint URI.

+ */ + inline bool PrometheusEndpointHasBeenSet() const { return m_prometheusEndpointHasBeenSet; } + + /** + *

Prometheus endpoint URI.

+ */ + inline void SetPrometheusEndpoint(const Aws::String& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = value; } + + /** + *

Prometheus endpoint URI.

+ */ + inline void SetPrometheusEndpoint(Aws::String&& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = std::move(value); } + + /** + *

Prometheus endpoint URI.

+ */ + inline void SetPrometheusEndpoint(const char* value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint.assign(value); } + + /** + *

Prometheus endpoint URI.

+ */ + inline WorkspaceDescription& WithPrometheusEndpoint(const Aws::String& value) { SetPrometheusEndpoint(value); return *this;} + + /** + *

Prometheus endpoint URI.

+ */ + inline WorkspaceDescription& WithPrometheusEndpoint(Aws::String&& value) { SetPrometheusEndpoint(std::move(value)); return *this;} + + /** + *

Prometheus endpoint URI.

+ */ + inline WorkspaceDescription& WithPrometheusEndpoint(const char* value) { SetPrometheusEndpoint(value); return *this;} + + + /** + *

The status of this workspace.

+ */ + inline const WorkspaceStatus& GetStatus() const{ return m_status; } + + /** + *

The status of this workspace.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The status of this workspace.

+ */ + inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The status of this workspace.

+ */ + inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The status of this workspace.

+ */ + inline WorkspaceDescription& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of this workspace.

+ */ + inline WorkspaceDescription& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

Unique string identifying this workspace.

+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *

Unique string identifying this workspace.

+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *

Unique string identifying this workspace.

+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *

Unique string identifying this workspace.

+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *

Unique string identifying this workspace.

+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *

Unique string identifying this workspace.

+ */ + inline WorkspaceDescription& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *

Unique string identifying this workspace.

+ */ + inline WorkspaceDescription& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *

Unique string identifying this workspace.

+ */ + inline WorkspaceDescription& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + Aws::String m_prometheusEndpoint; + bool m_prometheusEndpointHasBeenSet; + + WorkspaceStatus m_status; + bool m_statusHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h new file mode 100644 index 00000000000..46277508301 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents the status of a workspace.

See Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API WorkspaceStatus + { + public: + WorkspaceStatus(); + WorkspaceStatus(Aws::Utils::Json::JsonView jsonValue); + WorkspaceStatus& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Status code of this workspace.

+ */ + inline const WorkspaceStatusCode& GetStatusCode() const{ return m_statusCode; } + + /** + *

Status code of this workspace.

+ */ + inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } + + /** + *

Status code of this workspace.

+ */ + inline void SetStatusCode(const WorkspaceStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } + + /** + *

Status code of this workspace.

+ */ + inline void SetStatusCode(WorkspaceStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } + + /** + *

Status code of this workspace.

+ */ + inline WorkspaceStatus& WithStatusCode(const WorkspaceStatusCode& value) { SetStatusCode(value); return *this;} + + /** + *

Status code of this workspace.

+ */ + inline WorkspaceStatus& WithStatusCode(WorkspaceStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} + + private: + + WorkspaceStatusCode m_statusCode; + bool m_statusCodeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h new file mode 100644 index 00000000000..2cdbbf250c1 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + enum class WorkspaceStatusCode + { + NOT_SET, + CREATING, + ACTIVE, + UPDATING, + DELETING, + CREATION_FAILED + }; + +namespace WorkspaceStatusCodeMapper +{ +AWS_PROMETHEUSSERVICE_API WorkspaceStatusCode GetWorkspaceStatusCodeForName(const Aws::String& name); + +AWS_PROMETHEUSSERVICE_API Aws::String GetNameForWorkspaceStatusCode(WorkspaceStatusCode value); +} // namespace WorkspaceStatusCodeMapper +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceSummary.h b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceSummary.h new file mode 100644 index 00000000000..b2c13b012f6 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceSummary.h @@ -0,0 +1,247 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace PrometheusService +{ +namespace Model +{ + + /** + *

Represents a summary of the properties of a workspace.

See + * Also:

AWS + * API Reference

+ */ + class AWS_PROMETHEUSSERVICE_API WorkspaceSummary + { + public: + WorkspaceSummary(); + WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue); + WorkspaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Alias of this workspace.

+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *

Alias of this workspace.

+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *

Alias of this workspace.

+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *

Alias of this workspace.

+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *

Alias of this workspace.

+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *

Alias of this workspace.

+ */ + inline WorkspaceSummary& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *

Alias of this workspace.

+ */ + inline WorkspaceSummary& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *

Alias of this workspace.

+ */ + inline WorkspaceSummary& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline WorkspaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline WorkspaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The AmazonResourceName of this workspace.

+ */ + inline WorkspaceSummary& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The time when the workspace was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

The time when the workspace was created.

+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

The time when the workspace was created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

The time when the workspace was created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

The time when the workspace was created.

+ */ + inline WorkspaceSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

The time when the workspace was created.

+ */ + inline WorkspaceSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

The status of this workspace.

+ */ + inline const WorkspaceStatus& GetStatus() const{ return m_status; } + + /** + *

The status of this workspace.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The status of this workspace.

+ */ + inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The status of this workspace.

+ */ + inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The status of this workspace.

+ */ + inline WorkspaceSummary& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of this workspace.

+ */ + inline WorkspaceSummary& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

Unique string identifying this workspace.

+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *

Unique string identifying this workspace.

+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *

Unique string identifying this workspace.

+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *

Unique string identifying this workspace.

+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *

Unique string identifying this workspace.

+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *

Unique string identifying this workspace.

+ */ + inline WorkspaceSummary& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *

Unique string identifying this workspace.

+ */ + inline WorkspaceSummary& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *

Unique string identifying this workspace.

+ */ + inline WorkspaceSummary& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + WorkspaceStatus m_status; + bool m_statusHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp b/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp new file mode 100644 index 00000000000..f5227615e8c --- /dev/null +++ b/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp @@ -0,0 +1,255 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::PrometheusService; +using namespace Aws::PrometheusService::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; + +static const char* SERVICE_NAME = "aps"; +static const char* ALLOCATION_TAG = "PrometheusServiceClient"; + + +PrometheusServiceClient::PrometheusServiceClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +PrometheusServiceClient::PrometheusServiceClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +PrometheusServiceClient::PrometheusServiceClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, credentialsProvider, + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +PrometheusServiceClient::~PrometheusServiceClient() +{ +} + +void PrometheusServiceClient::init(const ClientConfiguration& config) +{ + SetServiceClientName("amp"); + m_configScheme = SchemeMapper::ToString(config.scheme); + if (config.endpointOverride.empty()) + { + m_uri = m_configScheme + "://" + PrometheusServiceEndpoint::ForRegion(config.region, config.useDualStack); + } + else + { + OverrideEndpoint(config.endpointOverride); + } +} + +void PrometheusServiceClient::OverrideEndpoint(const Aws::String& endpoint) +{ + if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0) + { + m_uri = endpoint; + } + else + { + m_uri = m_configScheme + "://" + endpoint; + } +} + +CreateWorkspaceOutcome PrometheusServiceClient::CreateWorkspace(const CreateWorkspaceRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/workspaces"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateWorkspaceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateWorkspaceOutcomeCallable PrometheusServiceClient::CreateWorkspaceCallable(const CreateWorkspaceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateWorkspaceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateWorkspace(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void PrometheusServiceClient::CreateWorkspaceAsync(const CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateWorkspaceAsyncHelper( request, handler, context ); } ); +} + +void PrometheusServiceClient::CreateWorkspaceAsyncHelper(const CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateWorkspace(request), context); +} + +DeleteWorkspaceOutcome PrometheusServiceClient::DeleteWorkspace(const DeleteWorkspaceRequest& request) const +{ + if (!request.WorkspaceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteWorkspace", "Required field: WorkspaceId, is not set"); + return DeleteWorkspaceOutcome(Aws::Client::AWSError(PrometheusServiceErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [WorkspaceId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/workspaces/"; + ss << request.GetWorkspaceId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteWorkspaceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteWorkspaceOutcomeCallable PrometheusServiceClient::DeleteWorkspaceCallable(const DeleteWorkspaceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteWorkspaceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteWorkspace(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void PrometheusServiceClient::DeleteWorkspaceAsync(const DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteWorkspaceAsyncHelper( request, handler, context ); } ); +} + +void PrometheusServiceClient::DeleteWorkspaceAsyncHelper(const DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteWorkspace(request), context); +} + +DescribeWorkspaceOutcome PrometheusServiceClient::DescribeWorkspace(const DescribeWorkspaceRequest& request) const +{ + if (!request.WorkspaceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeWorkspace", "Required field: WorkspaceId, is not set"); + return DescribeWorkspaceOutcome(Aws::Client::AWSError(PrometheusServiceErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [WorkspaceId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/workspaces/"; + ss << request.GetWorkspaceId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DescribeWorkspaceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +DescribeWorkspaceOutcomeCallable PrometheusServiceClient::DescribeWorkspaceCallable(const DescribeWorkspaceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DescribeWorkspaceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeWorkspace(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void PrometheusServiceClient::DescribeWorkspaceAsync(const DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DescribeWorkspaceAsyncHelper( request, handler, context ); } ); +} + +void PrometheusServiceClient::DescribeWorkspaceAsyncHelper(const DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DescribeWorkspace(request), context); +} + +ListWorkspacesOutcome PrometheusServiceClient::ListWorkspaces(const ListWorkspacesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/workspaces"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListWorkspacesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListWorkspacesOutcomeCallable PrometheusServiceClient::ListWorkspacesCallable(const ListWorkspacesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListWorkspacesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListWorkspaces(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void PrometheusServiceClient::ListWorkspacesAsync(const ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListWorkspacesAsyncHelper( request, handler, context ); } ); +} + +void PrometheusServiceClient::ListWorkspacesAsyncHelper(const ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListWorkspaces(request), context); +} + +UpdateWorkspaceAliasOutcome PrometheusServiceClient::UpdateWorkspaceAlias(const UpdateWorkspaceAliasRequest& request) const +{ + if (!request.WorkspaceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateWorkspaceAlias", "Required field: WorkspaceId, is not set"); + return UpdateWorkspaceAliasOutcome(Aws::Client::AWSError(PrometheusServiceErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [WorkspaceId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/workspaces/"; + ss << request.GetWorkspaceId(); + ss << "/alias"; + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateWorkspaceAliasOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateWorkspaceAliasOutcomeCallable PrometheusServiceClient::UpdateWorkspaceAliasCallable(const UpdateWorkspaceAliasRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateWorkspaceAliasOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateWorkspaceAlias(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void PrometheusServiceClient::UpdateWorkspaceAliasAsync(const UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateWorkspaceAliasAsyncHelper( request, handler, context ); } ); +} + +void PrometheusServiceClient::UpdateWorkspaceAliasAsyncHelper(const UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateWorkspaceAlias(request), context); +} + diff --git a/aws-cpp-sdk-amp/source/PrometheusServiceEndpoint.cpp b/aws-cpp-sdk-amp/source/PrometheusServiceEndpoint.cpp new file mode 100644 index 00000000000..cd90ab08aa4 --- /dev/null +++ b/aws-cpp-sdk-amp/source/PrometheusServiceEndpoint.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws; +using namespace Aws::PrometheusService; + +namespace Aws +{ +namespace PrometheusService +{ +namespace PrometheusServiceEndpoint +{ + static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1"); + static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1"); + static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1"); + static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1"); + + + Aws::String ForRegion(const Aws::String& regionName, bool useDualStack) + { + // Fallback to us-east-1 if global endpoint does not exists. + Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName; + auto hash = Aws::Utils::HashingUtils::HashString(region.c_str()); + + Aws::StringStream ss; + ss << "aps" << "."; + + if(useDualStack) + { + ss << "dualstack."; + } + + ss << region; + + if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH) + { + ss << ".amazonaws.com.cn"; + } + else if (hash == US_ISO_EAST_1_HASH) + { + ss << ".c2s.ic.gov"; + } + else if (hash == US_ISOB_EAST_1_HASH) + { + ss << ".sc2s.sgov.gov"; + } + else + { + ss << ".amazonaws.com"; + } + + return ss.str(); + } + +} // namespace PrometheusServiceEndpoint +} // namespace PrometheusService +} // namespace Aws + diff --git a/aws-cpp-sdk-amp/source/PrometheusServiceErrorMarshaller.cpp b/aws-cpp-sdk-amp/source/PrometheusServiceErrorMarshaller.cpp new file mode 100644 index 00000000000..cfb63432b42 --- /dev/null +++ b/aws-cpp-sdk-amp/source/PrometheusServiceErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::PrometheusService; + +AWSError PrometheusServiceErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = PrometheusServiceErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp b/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp new file mode 100644 index 00000000000..828fbbae6e7 --- /dev/null +++ b/aws-cpp-sdk-amp/source/PrometheusServiceErrors.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::PrometheusService; +using namespace Aws::PrometheusService::Model; + +namespace Aws +{ +namespace PrometheusService +{ +template<> AWS_PROMETHEUSSERVICE_API ConflictException PrometheusServiceError::GetModeledError() +{ + assert(this->GetErrorType() == PrometheusServiceErrors::CONFLICT); + return ConflictException(this->GetJsonPayload().View()); +} + +template<> AWS_PROMETHEUSSERVICE_API ThrottlingException PrometheusServiceError::GetModeledError() +{ + assert(this->GetErrorType() == PrometheusServiceErrors::THROTTLING); + return ThrottlingException(this->GetJsonPayload().View()); +} + +template<> AWS_PROMETHEUSSERVICE_API ServiceQuotaExceededException PrometheusServiceError::GetModeledError() +{ + assert(this->GetErrorType() == PrometheusServiceErrors::SERVICE_QUOTA_EXCEEDED); + return ServiceQuotaExceededException(this->GetJsonPayload().View()); +} + +template<> AWS_PROMETHEUSSERVICE_API InternalServerException PrometheusServiceError::GetModeledError() +{ + assert(this->GetErrorType() == PrometheusServiceErrors::INTERNAL_SERVER); + return InternalServerException(this->GetJsonPayload().View()); +} + +template<> AWS_PROMETHEUSSERVICE_API ResourceNotFoundException PrometheusServiceError::GetModeledError() +{ + assert(this->GetErrorType() == PrometheusServiceErrors::RESOURCE_NOT_FOUND); + return ResourceNotFoundException(this->GetJsonPayload().View()); +} + +template<> AWS_PROMETHEUSSERVICE_API ValidationException PrometheusServiceError::GetModeledError() +{ + assert(this->GetErrorType() == PrometheusServiceErrors::VALIDATION); + return ValidationException(this->GetJsonPayload().View()); +} + +namespace PrometheusServiceErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); +static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(PrometheusServiceErrors::CONFLICT), false); + } + else if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) + { + return AWSError(static_cast(PrometheusServiceErrors::SERVICE_QUOTA_EXCEEDED), false); + } + else if (hashCode == INTERNAL_SERVER_HASH) + { + return AWSError(static_cast(PrometheusServiceErrors::INTERNAL_SERVER), false); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace PrometheusServiceErrorMapper +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/ConflictException.cpp b/aws-cpp-sdk-amp/source/model/ConflictException.cpp new file mode 100644 index 00000000000..d0836835b7d --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ConflictException.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +ConflictException::ConflictException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ConflictException::ConflictException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ConflictException& ConflictException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ConflictException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/CreateWorkspaceRequest.cpp b/aws-cpp-sdk-amp/source/model/CreateWorkspaceRequest.cpp new file mode 100644 index 00000000000..8562389b4db --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/CreateWorkspaceRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateWorkspaceRequest::CreateWorkspaceRequest() : + m_aliasHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::RandomUUID()), + m_clientTokenHasBeenSet(true) +{ +} + +Aws::String CreateWorkspaceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_aliasHasBeenSet) + { + payload.WithString("alias", m_alias); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-amp/source/model/CreateWorkspaceResult.cpp b/aws-cpp-sdk-amp/source/model/CreateWorkspaceResult.cpp new file mode 100644 index 00000000000..8cec975c056 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/CreateWorkspaceResult.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateWorkspaceResult::CreateWorkspaceResult() +{ +} + +CreateWorkspaceResult::CreateWorkspaceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateWorkspaceResult& CreateWorkspaceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetObject("status"); + + } + + if(jsonValue.ValueExists("workspaceId")) + { + m_workspaceId = jsonValue.GetString("workspaceId"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-amp/source/model/DeleteWorkspaceRequest.cpp b/aws-cpp-sdk-amp/source/model/DeleteWorkspaceRequest.cpp new file mode 100644 index 00000000000..09f2e8b2256 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/DeleteWorkspaceRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteWorkspaceRequest::DeleteWorkspaceRequest() : + m_clientToken(Aws::Utils::UUID::RandomUUID()), + m_clientTokenHasBeenSet(true), + m_workspaceIdHasBeenSet(false) +{ +} + +Aws::String DeleteWorkspaceRequest::SerializePayload() const +{ + return {}; +} + +void DeleteWorkspaceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_clientTokenHasBeenSet) + { + ss << m_clientToken; + uri.AddQueryStringParameter("clientToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-amp/source/model/DescribeWorkspaceRequest.cpp b/aws-cpp-sdk-amp/source/model/DescribeWorkspaceRequest.cpp new file mode 100644 index 00000000000..5979a2c4b39 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/DescribeWorkspaceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeWorkspaceRequest::DescribeWorkspaceRequest() : + m_workspaceIdHasBeenSet(false) +{ +} + +Aws::String DescribeWorkspaceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-amp/source/model/DescribeWorkspaceResult.cpp b/aws-cpp-sdk-amp/source/model/DescribeWorkspaceResult.cpp new file mode 100644 index 00000000000..a2ddb23eaca --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/DescribeWorkspaceResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeWorkspaceResult::DescribeWorkspaceResult() +{ +} + +DescribeWorkspaceResult::DescribeWorkspaceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeWorkspaceResult& DescribeWorkspaceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("workspace")) + { + m_workspace = jsonValue.GetObject("workspace"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-amp/source/model/InternalServerException.cpp b/aws-cpp-sdk-amp/source/model/InternalServerException.cpp new file mode 100644 index 00000000000..306259f4fd4 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/InternalServerException.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +InternalServerException::InternalServerException() : + m_messageHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false) +{ +} + +InternalServerException::InternalServerException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false) +{ + *this = jsonValue; +} + +InternalServerException& InternalServerException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue InternalServerException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/ListWorkspacesRequest.cpp b/aws-cpp-sdk-amp/source/model/ListWorkspacesRequest.cpp new file mode 100644 index 00000000000..5bad3a214ac --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ListWorkspacesRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListWorkspacesRequest::ListWorkspacesRequest() : + m_aliasHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListWorkspacesRequest::SerializePayload() const +{ + return {}; +} + +void ListWorkspacesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_aliasHasBeenSet) + { + ss << m_alias; + uri.AddQueryStringParameter("alias", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-amp/source/model/ListWorkspacesResult.cpp b/aws-cpp-sdk-amp/source/model/ListWorkspacesResult.cpp new file mode 100644 index 00000000000..4177473eb11 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ListWorkspacesResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListWorkspacesResult::ListWorkspacesResult() +{ +} + +ListWorkspacesResult::ListWorkspacesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListWorkspacesResult& ListWorkspacesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("workspaces")) + { + Array workspacesJsonList = jsonValue.GetArray("workspaces"); + for(unsigned workspacesIndex = 0; workspacesIndex < workspacesJsonList.GetLength(); ++workspacesIndex) + { + m_workspaces.push_back(workspacesJsonList[workspacesIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-amp/source/model/ResourceNotFoundException.cpp b/aws-cpp-sdk-amp/source/model/ResourceNotFoundException.cpp new file mode 100644 index 00000000000..6e1fa221f9a --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ResourceNotFoundException.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +ResourceNotFoundException::ResourceNotFoundException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ResourceNotFoundException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/ServiceQuotaExceededException.cpp b/aws-cpp-sdk-amp/source/model/ServiceQuotaExceededException.cpp new file mode 100644 index 00000000000..7e8a3a574b0 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ServiceQuotaExceededException.cpp @@ -0,0 +1,119 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +ServiceQuotaExceededException::ServiceQuotaExceededException() : + m_messageHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_serviceCodeHasBeenSet(false) +{ +} + +ServiceQuotaExceededException::ServiceQuotaExceededException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_serviceCodeHasBeenSet(false) +{ + *this = jsonValue; +} + +ServiceQuotaExceededException& ServiceQuotaExceededException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("quotaCode")) + { + m_quotaCode = jsonValue.GetString("quotaCode"); + + m_quotaCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("serviceCode")) + { + m_serviceCode = jsonValue.GetString("serviceCode"); + + m_serviceCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue ServiceQuotaExceededException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_quotaCodeHasBeenSet) + { + payload.WithString("quotaCode", m_quotaCode); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + if(m_serviceCodeHasBeenSet) + { + payload.WithString("serviceCode", m_serviceCode); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/ThrottlingException.cpp b/aws-cpp-sdk-amp/source/model/ThrottlingException.cpp new file mode 100644 index 00000000000..807fa0e3b52 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ThrottlingException.cpp @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +ThrottlingException::ThrottlingException() : + m_messageHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false), + m_serviceCodeHasBeenSet(false) +{ +} + +ThrottlingException::ThrottlingException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false), + m_serviceCodeHasBeenSet(false) +{ + *this = jsonValue; +} + +ThrottlingException& ThrottlingException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("quotaCode")) + { + m_quotaCode = jsonValue.GetString("quotaCode"); + + m_quotaCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("serviceCode")) + { + m_serviceCode = jsonValue.GetString("serviceCode"); + + m_serviceCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue ThrottlingException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_quotaCodeHasBeenSet) + { + payload.WithString("quotaCode", m_quotaCode); + + } + + if(m_serviceCodeHasBeenSet) + { + payload.WithString("serviceCode", m_serviceCode); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/UpdateWorkspaceAliasRequest.cpp b/aws-cpp-sdk-amp/source/model/UpdateWorkspaceAliasRequest.cpp new file mode 100644 index 00000000000..c73ce5b7581 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/UpdateWorkspaceAliasRequest.cpp @@ -0,0 +1,44 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::PrometheusService::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateWorkspaceAliasRequest::UpdateWorkspaceAliasRequest() : + m_aliasHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::RandomUUID()), + m_clientTokenHasBeenSet(true), + m_workspaceIdHasBeenSet(false) +{ +} + +Aws::String UpdateWorkspaceAliasRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_aliasHasBeenSet) + { + payload.WithString("alias", m_alias); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-amp/source/model/ValidationException.cpp b/aws-cpp-sdk-amp/source/model/ValidationException.cpp new file mode 100644 index 00000000000..45618905cb5 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ValidationException.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +ValidationException::ValidationException() : + m_fieldListHasBeenSet(false), + m_messageHasBeenSet(false), + m_reason(ValidationExceptionReason::NOT_SET), + m_reasonHasBeenSet(false) +{ +} + +ValidationException::ValidationException(JsonView jsonValue) : + m_fieldListHasBeenSet(false), + m_messageHasBeenSet(false), + m_reason(ValidationExceptionReason::NOT_SET), + m_reasonHasBeenSet(false) +{ + *this = jsonValue; +} + +ValidationException& ValidationException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("fieldList")) + { + Array fieldListJsonList = jsonValue.GetArray("fieldList"); + for(unsigned fieldListIndex = 0; fieldListIndex < fieldListJsonList.GetLength(); ++fieldListIndex) + { + m_fieldList.push_back(fieldListJsonList[fieldListIndex].AsObject()); + } + m_fieldListHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("reason")) + { + m_reason = ValidationExceptionReasonMapper::GetValidationExceptionReasonForName(jsonValue.GetString("reason")); + + m_reasonHasBeenSet = true; + } + + return *this; +} + +JsonValue ValidationException::Jsonize() const +{ + JsonValue payload; + + if(m_fieldListHasBeenSet) + { + Array fieldListJsonList(m_fieldList.size()); + for(unsigned fieldListIndex = 0; fieldListIndex < fieldListJsonList.GetLength(); ++fieldListIndex) + { + fieldListJsonList[fieldListIndex].AsObject(m_fieldList[fieldListIndex].Jsonize()); + } + payload.WithArray("fieldList", std::move(fieldListJsonList)); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_reasonHasBeenSet) + { + payload.WithString("reason", ValidationExceptionReasonMapper::GetNameForValidationExceptionReason(m_reason)); + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/ValidationExceptionField.cpp b/aws-cpp-sdk-amp/source/model/ValidationExceptionField.cpp new file mode 100644 index 00000000000..85ddaf88bfc --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ValidationExceptionField.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +ValidationExceptionField::ValidationExceptionField() : + m_messageHasBeenSet(false), + m_nameHasBeenSet(false) +{ +} + +ValidationExceptionField::ValidationExceptionField(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_nameHasBeenSet(false) +{ + *this = jsonValue; +} + +ValidationExceptionField& ValidationExceptionField::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + return *this; +} + +JsonValue ValidationExceptionField::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp b/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp new file mode 100644 index 00000000000..896780cd711 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/ValidationExceptionReason.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PrometheusService + { + namespace Model + { + namespace ValidationExceptionReasonMapper + { + + static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); + static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); + static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + + + ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == UNKNOWN_OPERATION_HASH) + { + return ValidationExceptionReason::UNKNOWN_OPERATION; + } + else if (hashCode == CANNOT_PARSE_HASH) + { + return ValidationExceptionReason::CANNOT_PARSE; + } + else if (hashCode == FIELD_VALIDATION_FAILED_HASH) + { + return ValidationExceptionReason::FIELD_VALIDATION_FAILED; + } + else if (hashCode == OTHER_HASH) + { + return ValidationExceptionReason::OTHER; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ValidationExceptionReason::NOT_SET; + } + + Aws::String GetNameForValidationExceptionReason(ValidationExceptionReason enumValue) + { + switch(enumValue) + { + case ValidationExceptionReason::UNKNOWN_OPERATION: + return "UNKNOWN_OPERATION"; + case ValidationExceptionReason::CANNOT_PARSE: + return "CANNOT_PARSE"; + case ValidationExceptionReason::FIELD_VALIDATION_FAILED: + return "FIELD_VALIDATION_FAILED"; + case ValidationExceptionReason::OTHER: + return "OTHER"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ValidationExceptionReasonMapper + } // namespace Model + } // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/WorkspaceDescription.cpp b/aws-cpp-sdk-amp/source/model/WorkspaceDescription.cpp new file mode 100644 index 00000000000..321ce3ffe92 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/WorkspaceDescription.cpp @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +WorkspaceDescription::WorkspaceDescription() : + m_aliasHasBeenSet(false), + m_arnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_prometheusEndpointHasBeenSet(false), + m_statusHasBeenSet(false), + m_workspaceIdHasBeenSet(false) +{ +} + +WorkspaceDescription::WorkspaceDescription(JsonView jsonValue) : + m_aliasHasBeenSet(false), + m_arnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_prometheusEndpointHasBeenSet(false), + m_statusHasBeenSet(false), + m_workspaceIdHasBeenSet(false) +{ + *this = jsonValue; +} + +WorkspaceDescription& WorkspaceDescription::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("alias")) + { + m_alias = jsonValue.GetString("alias"); + + m_aliasHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("prometheusEndpoint")) + { + m_prometheusEndpoint = jsonValue.GetString("prometheusEndpoint"); + + m_prometheusEndpointHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetObject("status"); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("workspaceId")) + { + m_workspaceId = jsonValue.GetString("workspaceId"); + + m_workspaceIdHasBeenSet = true; + } + + return *this; +} + +JsonValue WorkspaceDescription::Jsonize() const +{ + JsonValue payload; + + if(m_aliasHasBeenSet) + { + payload.WithString("alias", m_alias); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_createdAtHasBeenSet) + { + payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); + } + + if(m_prometheusEndpointHasBeenSet) + { + payload.WithString("prometheusEndpoint", m_prometheusEndpoint); + + } + + if(m_statusHasBeenSet) + { + payload.WithObject("status", m_status.Jsonize()); + + } + + if(m_workspaceIdHasBeenSet) + { + payload.WithString("workspaceId", m_workspaceId); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/WorkspaceStatus.cpp b/aws-cpp-sdk-amp/source/model/WorkspaceStatus.cpp new file mode 100644 index 00000000000..211ffa1a149 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/WorkspaceStatus.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +WorkspaceStatus::WorkspaceStatus() : + m_statusCode(WorkspaceStatusCode::NOT_SET), + m_statusCodeHasBeenSet(false) +{ +} + +WorkspaceStatus::WorkspaceStatus(JsonView jsonValue) : + m_statusCode(WorkspaceStatusCode::NOT_SET), + m_statusCodeHasBeenSet(false) +{ + *this = jsonValue; +} + +WorkspaceStatus& WorkspaceStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("statusCode")) + { + m_statusCode = WorkspaceStatusCodeMapper::GetWorkspaceStatusCodeForName(jsonValue.GetString("statusCode")); + + m_statusCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue WorkspaceStatus::Jsonize() const +{ + JsonValue payload; + + if(m_statusCodeHasBeenSet) + { + payload.WithString("statusCode", WorkspaceStatusCodeMapper::GetNameForWorkspaceStatusCode(m_statusCode)); + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp b/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp new file mode 100644 index 00000000000..d2600420676 --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/WorkspaceStatusCode.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PrometheusService + { + namespace Model + { + namespace WorkspaceStatusCodeMapper + { + + static const int CREATING_HASH = HashingUtils::HashString("CREATING"); + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static const int CREATION_FAILED_HASH = HashingUtils::HashString("CREATION_FAILED"); + + + WorkspaceStatusCode GetWorkspaceStatusCodeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CREATING_HASH) + { + return WorkspaceStatusCode::CREATING; + } + else if (hashCode == ACTIVE_HASH) + { + return WorkspaceStatusCode::ACTIVE; + } + else if (hashCode == UPDATING_HASH) + { + return WorkspaceStatusCode::UPDATING; + } + else if (hashCode == DELETING_HASH) + { + return WorkspaceStatusCode::DELETING; + } + else if (hashCode == CREATION_FAILED_HASH) + { + return WorkspaceStatusCode::CREATION_FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WorkspaceStatusCode::NOT_SET; + } + + Aws::String GetNameForWorkspaceStatusCode(WorkspaceStatusCode enumValue) + { + switch(enumValue) + { + case WorkspaceStatusCode::CREATING: + return "CREATING"; + case WorkspaceStatusCode::ACTIVE: + return "ACTIVE"; + case WorkspaceStatusCode::UPDATING: + return "UPDATING"; + case WorkspaceStatusCode::DELETING: + return "DELETING"; + case WorkspaceStatusCode::CREATION_FAILED: + return "CREATION_FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WorkspaceStatusCodeMapper + } // namespace Model + } // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/model/WorkspaceSummary.cpp b/aws-cpp-sdk-amp/source/model/WorkspaceSummary.cpp new file mode 100644 index 00000000000..3d2da99048a --- /dev/null +++ b/aws-cpp-sdk-amp/source/model/WorkspaceSummary.cpp @@ -0,0 +1,118 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace PrometheusService +{ +namespace Model +{ + +WorkspaceSummary::WorkspaceSummary() : + m_aliasHasBeenSet(false), + m_arnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_statusHasBeenSet(false), + m_workspaceIdHasBeenSet(false) +{ +} + +WorkspaceSummary::WorkspaceSummary(JsonView jsonValue) : + m_aliasHasBeenSet(false), + m_arnHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_statusHasBeenSet(false), + m_workspaceIdHasBeenSet(false) +{ + *this = jsonValue; +} + +WorkspaceSummary& WorkspaceSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("alias")) + { + m_alias = jsonValue.GetString("alias"); + + m_aliasHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetObject("status"); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("workspaceId")) + { + m_workspaceId = jsonValue.GetString("workspaceId"); + + m_workspaceIdHasBeenSet = true; + } + + return *this; +} + +JsonValue WorkspaceSummary::Jsonize() const +{ + JsonValue payload; + + if(m_aliasHasBeenSet) + { + payload.WithString("alias", m_alias); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_createdAtHasBeenSet) + { + payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithObject("status", m_status.Jsonize()); + + } + + if(m_workspaceIdHasBeenSet) + { + payload.WithString("workspaceId", m_workspaceId); + + } + + return payload; +} + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 23f709ca1e2..6c4bbc08ca3 100644 --- a/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -3,4 +3,4 @@ * SPDX-License-Identifier: Apache-2.0. */ -#define AWS_SDK_VERSION_STRING "1.8.106" +#define AWS_SDK_VERSION_STRING "1.8.107" diff --git a/aws-cpp-sdk-greengrassv2/CMakeLists.txt b/aws-cpp-sdk-greengrassv2/CMakeLists.txt new file mode 100644 index 00000000000..295d6f466cb --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-greengrassv2 "C++ SDK for the AWS greengrassv2 service" aws-cpp-sdk-core) + +file(GLOB AWS_GREENGRASSV2_HEADERS + "include/aws/greengrassv2/*.h" +) + +file(GLOB AWS_GREENGRASSV2_MODEL_HEADERS + "include/aws/greengrassv2/model/*.h" +) + +file(GLOB AWS_GREENGRASSV2_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_GREENGRASSV2_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB GREENGRASSV2_UNIFIED_HEADERS + ${AWS_GREENGRASSV2_HEADERS} + ${AWS_GREENGRASSV2_MODEL_HEADERS} +) + +file(GLOB GREENGRASSV2_UNITY_SRC + ${AWS_GREENGRASSV2_SOURCE} + ${AWS_GREENGRASSV2_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("GREENGRASSV2" GREENGRASSV2_UNITY_SRC) +endif() + +file(GLOB GREENGRASSV2_SRC + ${GREENGRASSV2_UNIFIED_HEADERS} + ${GREENGRASSV2_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\greengrassv2" FILES ${AWS_GREENGRASSV2_HEADERS}) + source_group("Header Files\\aws\\greengrassv2\\model" FILES ${AWS_GREENGRASSV2_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_GREENGRASSV2_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_GREENGRASSV2_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(GREENGRASSV2_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${GREENGRASSV2_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_GREENGRASSV2_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_GREENGRASSV2_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/greengrassv2) +install (FILES ${AWS_GREENGRASSV2_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/greengrassv2/model) + +do_packaging() + + diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Client.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Client.h new file mode 100644 index 00000000000..e512971a0a6 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Client.h @@ -0,0 +1,971 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ + +namespace Http +{ + class HttpClient; + class HttpClientFactory; +} // namespace Http + +namespace Utils +{ + template< typename R, typename E> class Outcome; +namespace Threading +{ + class Executor; +} // namespace Threading +} // namespace Utils + +namespace Auth +{ + class AWSCredentials; + class AWSCredentialsProvider; +} // namespace Auth + +namespace Client +{ + class RetryStrategy; +} // namespace Client + +namespace GreengrassV2 +{ + +namespace Model +{ + class CancelDeploymentRequest; + class CreateComponentVersionRequest; + class CreateDeploymentRequest; + class DeleteComponentRequest; + class DeleteCoreDeviceRequest; + class DescribeComponentRequest; + class GetComponentRequest; + class GetComponentVersionArtifactRequest; + class GetCoreDeviceRequest; + class GetDeploymentRequest; + class ListComponentVersionsRequest; + class ListComponentsRequest; + class ListCoreDevicesRequest; + class ListDeploymentsRequest; + class ListEffectiveDeploymentsRequest; + class ListInstalledComponentsRequest; + class ListTagsForResourceRequest; + class ResolveComponentCandidatesRequest; + class TagResourceRequest; + class UntagResourceRequest; + + typedef Aws::Utils::Outcome CancelDeploymentOutcome; + typedef Aws::Utils::Outcome CreateComponentVersionOutcome; + typedef Aws::Utils::Outcome CreateDeploymentOutcome; + typedef Aws::Utils::Outcome DeleteComponentOutcome; + typedef Aws::Utils::Outcome DeleteCoreDeviceOutcome; + typedef Aws::Utils::Outcome DescribeComponentOutcome; + typedef Aws::Utils::Outcome GetComponentOutcome; + typedef Aws::Utils::Outcome GetComponentVersionArtifactOutcome; + typedef Aws::Utils::Outcome GetCoreDeviceOutcome; + typedef Aws::Utils::Outcome GetDeploymentOutcome; + typedef Aws::Utils::Outcome ListComponentVersionsOutcome; + typedef Aws::Utils::Outcome ListComponentsOutcome; + typedef Aws::Utils::Outcome ListCoreDevicesOutcome; + typedef Aws::Utils::Outcome ListDeploymentsOutcome; + typedef Aws::Utils::Outcome ListEffectiveDeploymentsOutcome; + typedef Aws::Utils::Outcome ListInstalledComponentsOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome ResolveComponentCandidatesOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + + typedef std::future CancelDeploymentOutcomeCallable; + typedef std::future CreateComponentVersionOutcomeCallable; + typedef std::future CreateDeploymentOutcomeCallable; + typedef std::future DeleteComponentOutcomeCallable; + typedef std::future DeleteCoreDeviceOutcomeCallable; + typedef std::future DescribeComponentOutcomeCallable; + typedef std::future GetComponentOutcomeCallable; + typedef std::future GetComponentVersionArtifactOutcomeCallable; + typedef std::future GetCoreDeviceOutcomeCallable; + typedef std::future GetDeploymentOutcomeCallable; + typedef std::future ListComponentVersionsOutcomeCallable; + typedef std::future ListComponentsOutcomeCallable; + typedef std::future ListCoreDevicesOutcomeCallable; + typedef std::future ListDeploymentsOutcomeCallable; + typedef std::future ListEffectiveDeploymentsOutcomeCallable; + typedef std::future ListInstalledComponentsOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future ResolveComponentCandidatesOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; +} // namespace Model + + class GreengrassV2Client; + + typedef std::function&) > CancelDeploymentResponseReceivedHandler; + typedef std::function&) > CreateComponentVersionResponseReceivedHandler; + typedef std::function&) > CreateDeploymentResponseReceivedHandler; + typedef std::function&) > DeleteComponentResponseReceivedHandler; + typedef std::function&) > DeleteCoreDeviceResponseReceivedHandler; + typedef std::function&) > DescribeComponentResponseReceivedHandler; + typedef std::function&) > GetComponentResponseReceivedHandler; + typedef std::function&) > GetComponentVersionArtifactResponseReceivedHandler; + typedef std::function&) > GetCoreDeviceResponseReceivedHandler; + typedef std::function&) > GetDeploymentResponseReceivedHandler; + typedef std::function&) > ListComponentVersionsResponseReceivedHandler; + typedef std::function&) > ListComponentsResponseReceivedHandler; + typedef std::function&) > ListCoreDevicesResponseReceivedHandler; + typedef std::function&) > ListDeploymentsResponseReceivedHandler; + typedef std::function&) > ListEffectiveDeploymentsResponseReceivedHandler; + typedef std::function&) > ListInstalledComponentsResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > ResolveComponentCandidatesResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + + /** + *

AWS IoT Greengrass brings local compute, messaging, data management, sync, + * and ML inference capabilities to edge devices. This enables devices to collect + * and analyze data closer to the source of information, react autonomously to + * local events, and communicate securely with each other on local networks. Local + * devices can also communicate securely with AWS IoT Core and export IoT data to + * the AWS Cloud. AWS IoT Greengrass developers can use AWS Lambda functions and + * components to create and deploy applications to fleets of edge devices for local + * operation.

AWS IoT Greengrass Version 2 provides a new major version of + * the AWS IoT Greengrass Core software, new APIs, and a new console. Use this API + * reference to learn how to use the AWS IoT Greengrass V2 API operations to manage + * components, manage deployments, and core devices.

For more information, + * see What + * is AWS IoT Greengrass? in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + class AWS_GREENGRASSV2_API GreengrassV2Client : public Aws::Client::AWSJsonClient + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + GreengrassV2Client(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + GreengrassV2Client(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + GreengrassV2Client(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + virtual ~GreengrassV2Client(); + + + /** + *

Cancels a deployment. This operation cancels the deployment for devices that + * haven't yet received it. If a device already received the deployment, this + * operation doesn't change anything for that device.

See Also:

AWS + * API Reference

+ */ + virtual Model::CancelDeploymentOutcome CancelDeployment(const Model::CancelDeploymentRequest& request) const; + + /** + *

Cancels a deployment. This operation cancels the deployment for devices that + * haven't yet received it. If a device already received the deployment, this + * operation doesn't change anything for that device.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CancelDeploymentOutcomeCallable CancelDeploymentCallable(const Model::CancelDeploymentRequest& request) const; + + /** + *

Cancels a deployment. This operation cancels the deployment for devices that + * haven't yet received it. If a device already received the deployment, this + * operation doesn't change anything for that device.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CancelDeploymentAsync(const Model::CancelDeploymentRequest& request, const CancelDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a component. Components are software that run on AWS IoT Greengrass + * core devices. After you develop and test a component on your core device, you + * can use this operation to upload your component to AWS IoT Greengrass. Then, you + * can deploy the component to other core devices.

You can use this + * operation to do the following:

  • Create components from + * recipes

    Create a component from a recipe, which is a file that + * defines the component's metadata, parameters, dependencies, lifecycle, + * artifacts, and platform capability. For more information, see AWS + * IoT Greengrass component recipe reference in the AWS IoT Greengrass V2 + * Developer Guide.

    To create a component from a recipe, specify + * inlineRecipe when you call this operation.

  • + * Create components from Lambda functions

    Create a component from + * an AWS Lambda function that runs on AWS IoT Greengrass. This creates a recipe + * and artifacts from the Lambda function's deployment package. You can use this + * operation to migrate Lambda functions from AWS IoT Greengrass V1 to AWS IoT + * Greengrass V2.

    This function only accepts Lambda functions that use the + * following runtimes:

    • Python 2.7 – python2.7

      + *
    • Python 3.7 – python3.7

    • Python 3.8 + * – python3.8

    • Java 8 – java8

      + *
    • Node.js 10 – nodejs10.x

    • Node.js 12 + * – nodejs12.x

    To create a component from a + * Lambda function, specify lambdaFunction when you call this + * operation.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateComponentVersionOutcome CreateComponentVersion(const Model::CreateComponentVersionRequest& request) const; + + /** + *

Creates a component. Components are software that run on AWS IoT Greengrass + * core devices. After you develop and test a component on your core device, you + * can use this operation to upload your component to AWS IoT Greengrass. Then, you + * can deploy the component to other core devices.

You can use this + * operation to do the following:

  • Create components from + * recipes

    Create a component from a recipe, which is a file that + * defines the component's metadata, parameters, dependencies, lifecycle, + * artifacts, and platform capability. For more information, see AWS + * IoT Greengrass component recipe reference in the AWS IoT Greengrass V2 + * Developer Guide.

    To create a component from a recipe, specify + * inlineRecipe when you call this operation.

  • + * Create components from Lambda functions

    Create a component from + * an AWS Lambda function that runs on AWS IoT Greengrass. This creates a recipe + * and artifacts from the Lambda function's deployment package. You can use this + * operation to migrate Lambda functions from AWS IoT Greengrass V1 to AWS IoT + * Greengrass V2.

    This function only accepts Lambda functions that use the + * following runtimes:

    • Python 2.7 – python2.7

      + *
    • Python 3.7 – python3.7

    • Python 3.8 + * – python3.8

    • Java 8 – java8

      + *
    • Node.js 10 – nodejs10.x

    • Node.js 12 + * – nodejs12.x

    To create a component from a + * Lambda function, specify lambdaFunction when you call this + * operation.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateComponentVersionOutcomeCallable CreateComponentVersionCallable(const Model::CreateComponentVersionRequest& request) const; + + /** + *

Creates a component. Components are software that run on AWS IoT Greengrass + * core devices. After you develop and test a component on your core device, you + * can use this operation to upload your component to AWS IoT Greengrass. Then, you + * can deploy the component to other core devices.

You can use this + * operation to do the following:

  • Create components from + * recipes

    Create a component from a recipe, which is a file that + * defines the component's metadata, parameters, dependencies, lifecycle, + * artifacts, and platform capability. For more information, see AWS + * IoT Greengrass component recipe reference in the AWS IoT Greengrass V2 + * Developer Guide.

    To create a component from a recipe, specify + * inlineRecipe when you call this operation.

  • + * Create components from Lambda functions

    Create a component from + * an AWS Lambda function that runs on AWS IoT Greengrass. This creates a recipe + * and artifacts from the Lambda function's deployment package. You can use this + * operation to migrate Lambda functions from AWS IoT Greengrass V1 to AWS IoT + * Greengrass V2.

    This function only accepts Lambda functions that use the + * following runtimes:

    • Python 2.7 – python2.7

      + *
    • Python 3.7 – python3.7

    • Python 3.8 + * – python3.8

    • Java 8 – java8

      + *
    • Node.js 10 – nodejs10.x

    • Node.js 12 + * – nodejs12.x

    To create a component from a + * Lambda function, specify lambdaFunction when you call this + * operation.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateComponentVersionAsync(const Model::CreateComponentVersionRequest& request, const CreateComponentVersionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a continuous deployment for a target, which is a AWS IoT Greengrass + * core device or group of core devices. When you add a new core device to a group + * of core devices that has a deployment, AWS IoT Greengrass deploys that group's + * deployment to the new device.

You can define one deployment for each + * target. When you create a new deployment for a target that has an existing + * deployment, you replace the previous deployment. AWS IoT Greengrass applies the + * new deployment to the target devices.

Every deployment has a revision + * number that indicates how many deployment revisions you define for a target. Use + * this operation to create a new revision of an existing deployment. This + * operation returns the revision number of the new deployment when you create + * it.

For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer + * Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateDeploymentOutcome CreateDeployment(const Model::CreateDeploymentRequest& request) const; + + /** + *

Creates a continuous deployment for a target, which is a AWS IoT Greengrass + * core device or group of core devices. When you add a new core device to a group + * of core devices that has a deployment, AWS IoT Greengrass deploys that group's + * deployment to the new device.

You can define one deployment for each + * target. When you create a new deployment for a target that has an existing + * deployment, you replace the previous deployment. AWS IoT Greengrass applies the + * new deployment to the target devices.

Every deployment has a revision + * number that indicates how many deployment revisions you define for a target. Use + * this operation to create a new revision of an existing deployment. This + * operation returns the revision number of the new deployment when you create + * it.

For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer + * Guide.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateDeploymentOutcomeCallable CreateDeploymentCallable(const Model::CreateDeploymentRequest& request) const; + + /** + *

Creates a continuous deployment for a target, which is a AWS IoT Greengrass + * core device or group of core devices. When you add a new core device to a group + * of core devices that has a deployment, AWS IoT Greengrass deploys that group's + * deployment to the new device.

You can define one deployment for each + * target. When you create a new deployment for a target that has an existing + * deployment, you replace the previous deployment. AWS IoT Greengrass applies the + * new deployment to the target devices.

Every deployment has a revision + * number that indicates how many deployment revisions you define for a target. Use + * this operation to create a new revision of an existing deployment. This + * operation returns the revision number of the new deployment when you create + * it.

For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer + * Guide.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateDeploymentAsync(const Model::CreateDeploymentRequest& request, const CreateDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a version of a component from AWS IoT Greengrass.

This + * operation deletes the component's recipe and artifacts. As a result, deployments + * that refer to this component version will fail. If you have deployments that use + * this component version, you can remove the component from the deployment or + * update the deployment to use a valid version.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::DeleteComponentOutcome DeleteComponent(const Model::DeleteComponentRequest& request) const; + + /** + *

Deletes a version of a component from AWS IoT Greengrass.

This + * operation deletes the component's recipe and artifacts. As a result, deployments + * that refer to this component version will fail. If you have deployments that use + * this component version, you can remove the component from the deployment or + * update the deployment to use a valid version.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteComponentOutcomeCallable DeleteComponentCallable(const Model::DeleteComponentRequest& request) const; + + /** + *

Deletes a version of a component from AWS IoT Greengrass.

This + * operation deletes the component's recipe and artifacts. As a result, deployments + * that refer to this component version will fail. If you have deployments that use + * this component version, you can remove the component from the deployment or + * update the deployment to use a valid version.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteComponentAsync(const Model::DeleteComponentRequest& request, const DeleteComponentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This + * operation removes the core device from the list of core devices. This operation + * doesn't delete the AWS IoT thing. For more information about how to delete the + * AWS IoT thing, see DeleteThing + * in the AWS IoT API Reference.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteCoreDeviceOutcome DeleteCoreDevice(const Model::DeleteCoreDeviceRequest& request) const; + + /** + *

Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This + * operation removes the core device from the list of core devices. This operation + * doesn't delete the AWS IoT thing. For more information about how to delete the + * AWS IoT thing, see DeleteThing + * in the AWS IoT API Reference.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteCoreDeviceOutcomeCallable DeleteCoreDeviceCallable(const Model::DeleteCoreDeviceRequest& request) const; + + /** + *

Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This + * operation removes the core device from the list of core devices. This operation + * doesn't delete the AWS IoT thing. For more information about how to delete the + * AWS IoT thing, see DeleteThing + * in the AWS IoT API Reference.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteCoreDeviceAsync(const Model::DeleteCoreDeviceRequest& request, const DeleteCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves metadata for a version of a component.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::DescribeComponentOutcome DescribeComponent(const Model::DescribeComponentRequest& request) const; + + /** + *

Retrieves metadata for a version of a component.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DescribeComponentOutcomeCallable DescribeComponentCallable(const Model::DescribeComponentRequest& request) const; + + /** + *

Retrieves metadata for a version of a component.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DescribeComponentAsync(const Model::DescribeComponentRequest& request, const DescribeComponentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets the recipe for a version of a component. Core devices can call this + * operation to identify the artifacts and requirements to install a + * component.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetComponentOutcome GetComponent(const Model::GetComponentRequest& request) const; + + /** + *

Gets the recipe for a version of a component. Core devices can call this + * operation to identify the artifacts and requirements to install a + * component.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetComponentOutcomeCallable GetComponentCallable(const Model::GetComponentRequest& request) const; + + /** + *

Gets the recipe for a version of a component. Core devices can call this + * operation to identify the artifacts and requirements to install a + * component.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetComponentAsync(const Model::GetComponentRequest& request, const GetComponentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets the pre-signed URL to a component artifact in an S3 bucket. Core devices + * can call this operation to identify the URL that they can use to download an + * artifact to install.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetComponentVersionArtifactOutcome GetComponentVersionArtifact(const Model::GetComponentVersionArtifactRequest& request) const; + + /** + *

Gets the pre-signed URL to a component artifact in an S3 bucket. Core devices + * can call this operation to identify the URL that they can use to download an + * artifact to install.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetComponentVersionArtifactOutcomeCallable GetComponentVersionArtifactCallable(const Model::GetComponentVersionArtifactRequest& request) const; + + /** + *

Gets the pre-signed URL to a component artifact in an S3 bucket. Core devices + * can call this operation to identify the URL that they can use to download an + * artifact to install.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetComponentVersionArtifactAsync(const Model::GetComponentVersionArtifactRequest& request, const GetComponentVersionArtifactResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves metadata for a AWS IoT Greengrass core device.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::GetCoreDeviceOutcome GetCoreDevice(const Model::GetCoreDeviceRequest& request) const; + + /** + *

Retrieves metadata for a AWS IoT Greengrass core device.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetCoreDeviceOutcomeCallable GetCoreDeviceCallable(const Model::GetCoreDeviceRequest& request) const; + + /** + *

Retrieves metadata for a AWS IoT Greengrass core device.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetCoreDeviceAsync(const Model::GetCoreDeviceRequest& request, const GetCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets a deployment. Deployments define the components that run on AWS IoT + * Greengrass core devices.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetDeploymentOutcome GetDeployment(const Model::GetDeploymentRequest& request) const; + + /** + *

Gets a deployment. Deployments define the components that run on AWS IoT + * Greengrass core devices.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetDeploymentOutcomeCallable GetDeploymentCallable(const Model::GetDeploymentRequest& request) const; + + /** + *

Gets a deployment. Deployments define the components that run on AWS IoT + * Greengrass core devices.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetDeploymentAsync(const Model::GetDeploymentRequest& request, const GetDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a paginated list of all versions for a component.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListComponentVersionsOutcome ListComponentVersions(const Model::ListComponentVersionsRequest& request) const; + + /** + *

Retrieves a paginated list of all versions for a component.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListComponentVersionsOutcomeCallable ListComponentVersionsCallable(const Model::ListComponentVersionsRequest& request) const; + + /** + *

Retrieves a paginated list of all versions for a component.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListComponentVersionsAsync(const Model::ListComponentVersionsRequest& request, const ListComponentVersionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a paginated list of component summaries. This list includes + * components that you have permission to view.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListComponentsOutcome ListComponents(const Model::ListComponentsRequest& request) const; + + /** + *

Retrieves a paginated list of component summaries. This list includes + * components that you have permission to view.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListComponentsOutcomeCallable ListComponentsCallable(const Model::ListComponentsRequest& request) const; + + /** + *

Retrieves a paginated list of component summaries. This list includes + * components that you have permission to view.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListComponentsAsync(const Model::ListComponentsRequest& request, const ListComponentsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a paginated list of AWS IoT Greengrass core devices.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListCoreDevicesOutcome ListCoreDevices(const Model::ListCoreDevicesRequest& request) const; + + /** + *

Retrieves a paginated list of AWS IoT Greengrass core devices.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListCoreDevicesOutcomeCallable ListCoreDevicesCallable(const Model::ListCoreDevicesRequest& request) const; + + /** + *

Retrieves a paginated list of AWS IoT Greengrass core devices.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListCoreDevicesAsync(const Model::ListCoreDevicesRequest& request, const ListCoreDevicesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a paginated list of deployments.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListDeploymentsOutcome ListDeployments(const Model::ListDeploymentsRequest& request) const; + + /** + *

Retrieves a paginated list of deployments.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListDeploymentsOutcomeCallable ListDeploymentsCallable(const Model::ListDeploymentsRequest& request) const; + + /** + *

Retrieves a paginated list of deployments.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListDeploymentsAsync(const Model::ListDeploymentsRequest& request, const ListDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends + * to AWS IoT Greengrass core devices.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListEffectiveDeploymentsOutcome ListEffectiveDeployments(const Model::ListEffectiveDeploymentsRequest& request) const; + + /** + *

Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends + * to AWS IoT Greengrass core devices.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListEffectiveDeploymentsOutcomeCallable ListEffectiveDeploymentsCallable(const Model::ListEffectiveDeploymentsRequest& request) const; + + /** + *

Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends + * to AWS IoT Greengrass core devices.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListEffectiveDeploymentsAsync(const Model::ListEffectiveDeploymentsRequest& request, const ListEffectiveDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a paginated list of the components that a AWS IoT Greengrass core + * device runs.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListInstalledComponentsOutcome ListInstalledComponents(const Model::ListInstalledComponentsRequest& request) const; + + /** + *

Retrieves a paginated list of the components that a AWS IoT Greengrass core + * device runs.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListInstalledComponentsOutcomeCallable ListInstalledComponentsCallable(const Model::ListInstalledComponentsRequest& request) const; + + /** + *

Retrieves a paginated list of the components that a AWS IoT Greengrass core + * device runs.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListInstalledComponentsAsync(const Model::ListInstalledComponentsRequest& request, const ListInstalledComponentsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves the list of tags for an AWS IoT Greengrass resource.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Retrieves the list of tags for an AWS IoT Greengrass resource.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Retrieves the list of tags for an AWS IoT Greengrass resource.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Retrieves a list of components that meet the component, version, and platform + * requirements of a deployment. AWS IoT Greengrass core devices call this + * operation when they receive a deployment to identify the components to + * install.

This operation identifies components that meet all dependency + * requirements for a deployment. If the requirements conflict, then this operation + * returns an error and the deployment fails. For example, this occurs if component + * A requires version >2.0.0 and component + * B requires version <2.0.0 of a component + * dependency.

When you specify the component candidates to resolve, AWS IoT + * Greengrass compares each component's digest from the core device with the + * component's digest in the AWS Cloud. If the digests don't match, then AWS IoT + * Greengrass specifies to use the version from the AWS Cloud.

+ *

To use this operation, you must use the data plane API endpoint and + * authenticate with an AWS IoT device certificate. For more information, see AWS + * IoT Greengrass endpoints and quotas.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::ResolveComponentCandidatesOutcome ResolveComponentCandidates(const Model::ResolveComponentCandidatesRequest& request) const; + + /** + *

Retrieves a list of components that meet the component, version, and platform + * requirements of a deployment. AWS IoT Greengrass core devices call this + * operation when they receive a deployment to identify the components to + * install.

This operation identifies components that meet all dependency + * requirements for a deployment. If the requirements conflict, then this operation + * returns an error and the deployment fails. For example, this occurs if component + * A requires version >2.0.0 and component + * B requires version <2.0.0 of a component + * dependency.

When you specify the component candidates to resolve, AWS IoT + * Greengrass compares each component's digest from the core device with the + * component's digest in the AWS Cloud. If the digests don't match, then AWS IoT + * Greengrass specifies to use the version from the AWS Cloud.

+ *

To use this operation, you must use the data plane API endpoint and + * authenticate with an AWS IoT device certificate. For more information, see AWS + * IoT Greengrass endpoints and quotas.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ResolveComponentCandidatesOutcomeCallable ResolveComponentCandidatesCallable(const Model::ResolveComponentCandidatesRequest& request) const; + + /** + *

Retrieves a list of components that meet the component, version, and platform + * requirements of a deployment. AWS IoT Greengrass core devices call this + * operation when they receive a deployment to identify the components to + * install.

This operation identifies components that meet all dependency + * requirements for a deployment. If the requirements conflict, then this operation + * returns an error and the deployment fails. For example, this occurs if component + * A requires version >2.0.0 and component + * B requires version <2.0.0 of a component + * dependency.

When you specify the component candidates to resolve, AWS IoT + * Greengrass compares each component's digest from the core device with the + * component's digest in the AWS Cloud. If the digests don't match, then AWS IoT + * Greengrass specifies to use the version from the AWS Cloud.

+ *

To use this operation, you must use the data plane API endpoint and + * authenticate with an AWS IoT device certificate. For more information, see AWS + * IoT Greengrass endpoints and quotas.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ResolveComponentCandidatesAsync(const Model::ResolveComponentCandidatesRequest& request, const ResolveComponentCandidatesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the + * resource, this operation updates the tag's value.

See Also:

AWS + * API Reference

+ */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + *

Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the + * resource, this operation updates the tag's value.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const; + + /** + *

Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the + * resource, this operation updates the tag's value.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Removes a tag from an AWS IoT Greengrass resource.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + *

Removes a tag from an AWS IoT Greengrass resource.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const; + + /** + *

Removes a tag from an AWS IoT Greengrass resource.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + + void OverrideEndpoint(const Aws::String& endpoint); + private: + void init(const Aws::Client::ClientConfiguration& clientConfiguration); + void CancelDeploymentAsyncHelper(const Model::CancelDeploymentRequest& request, const CancelDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateComponentVersionAsyncHelper(const Model::CreateComponentVersionRequest& request, const CreateComponentVersionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateDeploymentAsyncHelper(const Model::CreateDeploymentRequest& request, const CreateDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteComponentAsyncHelper(const Model::DeleteComponentRequest& request, const DeleteComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteCoreDeviceAsyncHelper(const Model::DeleteCoreDeviceRequest& request, const DeleteCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DescribeComponentAsyncHelper(const Model::DescribeComponentRequest& request, const DescribeComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetComponentAsyncHelper(const Model::GetComponentRequest& request, const GetComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetComponentVersionArtifactAsyncHelper(const Model::GetComponentVersionArtifactRequest& request, const GetComponentVersionArtifactResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetCoreDeviceAsyncHelper(const Model::GetCoreDeviceRequest& request, const GetCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetDeploymentAsyncHelper(const Model::GetDeploymentRequest& request, const GetDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListComponentVersionsAsyncHelper(const Model::ListComponentVersionsRequest& request, const ListComponentVersionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListComponentsAsyncHelper(const Model::ListComponentsRequest& request, const ListComponentsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListCoreDevicesAsyncHelper(const Model::ListCoreDevicesRequest& request, const ListCoreDevicesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListDeploymentsAsyncHelper(const Model::ListDeploymentsRequest& request, const ListDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListEffectiveDeploymentsAsyncHelper(const Model::ListEffectiveDeploymentsRequest& request, const ListEffectiveDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListInstalledComponentsAsyncHelper(const Model::ListInstalledComponentsRequest& request, const ListInstalledComponentsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ResolveComponentCandidatesAsyncHelper(const Model::ResolveComponentCandidatesRequest& request, const ResolveComponentCandidatesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + + Aws::String m_uri; + Aws::String m_configScheme; + std::shared_ptr m_executor; + }; + +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Endpoint.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Endpoint.h new file mode 100644 index 00000000000..5a859847a4f --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Endpoint.h @@ -0,0 +1,21 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ + +namespace GreengrassV2 +{ +namespace GreengrassV2Endpoint +{ +AWS_GREENGRASSV2_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false); +} // namespace GreengrassV2Endpoint +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2ErrorMarshaller.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2ErrorMarshaller.h new file mode 100644 index 00000000000..2bea0dd8323 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2ErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_GREENGRASSV2_API GreengrassV2ErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Errors.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Errors.h new file mode 100644 index 00000000000..b359975200d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Errors.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +enum class GreengrassV2Errors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVER, + SERVICE_QUOTA_EXCEEDED +}; + +class AWS_GREENGRASSV2_API GreengrassV2Error : public Aws::Client::AWSError +{ +public: + GreengrassV2Error() {} + GreengrassV2Error(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + GreengrassV2Error(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + GreengrassV2Error(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + GreengrassV2Error(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace GreengrassV2ErrorMapper +{ + AWS_GREENGRASSV2_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Request.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Request.h new file mode 100644 index 00000000000..70f17082711 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2Request.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ + class AWS_GREENGRASSV2_API GreengrassV2Request : public Aws::AmazonSerializableWebServiceRequest + { + public: + virtual ~GreengrassV2Request () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-11-30")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2_EXPORTS.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2_EXPORTS.h new file mode 100644 index 00000000000..ac0ebff763e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/GreengrassV2_EXPORTS.h @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_GREENGRASSV2_EXPORTS + #define AWS_GREENGRASSV2_API __declspec(dllexport) + #else + #define AWS_GREENGRASSV2_API __declspec(dllimport) + #endif /* AWS_GREENGRASSV2_EXPORTS */ + #else + #define AWS_GREENGRASSV2_API + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_GREENGRASSV2_API +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentRequest.h new file mode 100644 index 00000000000..fb9d16c0a45 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API CancelDeploymentRequest : public GreengrassV2Request + { + public: + CancelDeploymentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CancelDeployment"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the deployment.

+ */ + inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } + + /** + *

The ID of the deployment.

+ */ + inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } + + /** + *

The ID of the deployment.

+ */ + inline CancelDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline CancelDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline CancelDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} + + private: + + Aws::String m_deploymentId; + bool m_deploymentIdHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentResult.h new file mode 100644 index 00000000000..221869c3248 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CancelDeploymentResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API CancelDeploymentResult + { + public: + CancelDeploymentResult(); + CancelDeploymentResult(const Aws::AmazonWebServiceResult& result); + CancelDeploymentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline void SetMessage(const Aws::String& value) { m_message = value; } + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline void SetMessage(Aws::String&& value) { m_message = std::move(value); } + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline void SetMessage(const char* value) { m_message.assign(value); } + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline CancelDeploymentResult& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline CancelDeploymentResult& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

A message that communicates if the cancel was successful.

+ */ + inline CancelDeploymentResult& WithMessage(const char* value) { SetMessage(value); return *this;} + + private: + + Aws::String m_message; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentState.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentState.h new file mode 100644 index 00000000000..0d3bd69c864 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentState.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class CloudComponentState + { + NOT_SET, + REQUESTED, + INITIATED, + DEPLOYABLE, + FAILED, + DEPRECATED + }; + +namespace CloudComponentStateMapper +{ +AWS_GREENGRASSV2_API CloudComponentState GetCloudComponentStateForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForCloudComponentState(CloudComponentState value); +} // namespace CloudComponentStateMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentStatus.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentStatus.h new file mode 100644 index 00000000000..7babce1d07e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CloudComponentStatus.h @@ -0,0 +1,241 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains the status of a component in the AWS IoT Greengrass + * service.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API CloudComponentStatus + { + public: + CloudComponentStatus(); + CloudComponentStatus(Aws::Utils::Json::JsonView jsonValue); + CloudComponentStatus& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The state of the component.

+ */ + inline const CloudComponentState& GetComponentState() const{ return m_componentState; } + + /** + *

The state of the component.

+ */ + inline bool ComponentStateHasBeenSet() const { return m_componentStateHasBeenSet; } + + /** + *

The state of the component.

+ */ + inline void SetComponentState(const CloudComponentState& value) { m_componentStateHasBeenSet = true; m_componentState = value; } + + /** + *

The state of the component.

+ */ + inline void SetComponentState(CloudComponentState&& value) { m_componentStateHasBeenSet = true; m_componentState = std::move(value); } + + /** + *

The state of the component.

+ */ + inline CloudComponentStatus& WithComponentState(const CloudComponentState& value) { SetComponentState(value); return *this;} + + /** + *

The state of the component.

+ */ + inline CloudComponentStatus& WithComponentState(CloudComponentState&& value) { SetComponentState(std::move(value)); return *this;} + + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline CloudComponentStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline CloudComponentStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

A message that communicates details, such as errors, about the status of the + * component.

+ */ + inline CloudComponentStatus& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline const Aws::Map& GetErrors() const{ return m_errors; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline void SetErrors(const Aws::Map& value) { m_errorsHasBeenSet = true; m_errors = value; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline void SetErrors(Aws::Map&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& WithErrors(const Aws::Map& value) { SetErrors(value); return *this;} + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& WithErrors(Aws::Map&& value) { SetErrors(std::move(value)); return *this;} + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(const Aws::String& key, const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, value); return *this; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(Aws::String&& key, const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), value); return *this; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(const Aws::String& key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, std::move(value)); return *this; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(Aws::String&& key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(const char* key, Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.emplace(key, std::move(value)); return *this; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(Aws::String&& key, const char* value) { m_errorsHasBeenSet = true; m_errors.emplace(std::move(key), value); return *this; } + + /** + *

A dictionary of errors that communicate why the component is in an error + * state. For example, if AWS IoT Greengrass can't access an artifact for the + * component, then errors contains the artifact's URI as a key, and + * the error message as the value for that key.

+ */ + inline CloudComponentStatus& AddErrors(const char* key, const char* value) { m_errorsHasBeenSet = true; m_errors.emplace(key, value); return *this; } + + private: + + CloudComponentState m_componentState; + bool m_componentStateHasBeenSet; + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::Map m_errors; + bool m_errorsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Component.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Component.h new file mode 100644 index 00000000000..99eae32996f --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Component.h @@ -0,0 +1,183 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API Component + { + public: + Component(); + Component(Aws::Utils::Json::JsonView jsonValue); + Component& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline Component& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline Component& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline Component& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline Component& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline Component& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline Component& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The latest version of the component and its details.

+ */ + inline const ComponentLatestVersion& GetLatestVersion() const{ return m_latestVersion; } + + /** + *

The latest version of the component and its details.

+ */ + inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; } + + /** + *

The latest version of the component and its details.

+ */ + inline void SetLatestVersion(const ComponentLatestVersion& value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; } + + /** + *

The latest version of the component and its details.

+ */ + inline void SetLatestVersion(ComponentLatestVersion&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::move(value); } + + /** + *

The latest version of the component and its details.

+ */ + inline Component& WithLatestVersion(const ComponentLatestVersion& value) { SetLatestVersion(value); return *this;} + + /** + *

The latest version of the component and its details.

+ */ + inline Component& WithLatestVersion(ComponentLatestVersion&& value) { SetLatestVersion(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_componentName; + bool m_componentNameHasBeenSet; + + ComponentLatestVersion m_latestVersion; + bool m_latestVersionHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentCandidate.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentCandidate.h new file mode 100644 index 00000000000..be114a859cf --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentCandidate.h @@ -0,0 +1,242 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component that is a candidate to deploy to a AWS + * IoT Greengrass core device.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentCandidate + { + public: + ComponentCandidate(); + ComponentCandidate(Aws::Utils::Json::JsonView jsonValue); + ComponentCandidate& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline ComponentCandidate& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline ComponentCandidate& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline ComponentCandidate& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline ComponentCandidate& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentCandidate& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentCandidate& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline const Aws::Map& GetVersionRequirements() const{ return m_versionRequirements; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline bool VersionRequirementsHasBeenSet() const { return m_versionRequirementsHasBeenSet; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline void SetVersionRequirements(const Aws::Map& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = value; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline void SetVersionRequirements(Aws::Map&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements = std::move(value); } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& WithVersionRequirements(const Aws::Map& value) { SetVersionRequirements(value); return *this;} + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& WithVersionRequirements(Aws::Map&& value) { SetVersionRequirements(std::move(value)); return *this;} + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(const Aws::String& key, const Aws::String& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, value); return *this; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, const Aws::String& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), value); return *this; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(const Aws::String& key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, std::move(value)); return *this; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(const char* key, Aws::String&& value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, std::move(value)); return *this; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(Aws::String&& key, const char* value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(std::move(key), value); return *this; } + + /** + *

The version requirements for the component's dependencies. AWS IoT Greengrass + * core devices get the version requirements from component recipes.

AWS IoT + * Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

+ */ + inline ComponentCandidate& AddVersionRequirements(const char* key, const char* value) { m_versionRequirementsHasBeenSet = true; m_versionRequirements.emplace(key, value); return *this; } + + private: + + Aws::String m_componentName; + bool m_componentNameHasBeenSet; + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + Aws::Map m_versionRequirements; + bool m_versionRequirementsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentConfigurationUpdate.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentConfigurationUpdate.h new file mode 100644 index 00000000000..b9b15c03837 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentConfigurationUpdate.h @@ -0,0 +1,277 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a deployment's update to a component's + * configuration on Greengrass core devices. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentConfigurationUpdate + { + public: + ComponentConfigurationUpdate(); + ComponentConfigurationUpdate(Aws::Utils::Json::JsonView jsonValue); + ComponentConfigurationUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline const Aws::String& GetMerge() const{ return m_merge; } + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline bool MergeHasBeenSet() const { return m_mergeHasBeenSet; } + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetMerge(const Aws::String& value) { m_mergeHasBeenSet = true; m_merge = value; } + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetMerge(Aws::String&& value) { m_mergeHasBeenSet = true; m_merge = std::move(value); } + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetMerge(const char* value) { m_mergeHasBeenSet = true; m_merge.assign(value); } + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& WithMerge(const Aws::String& value) { SetMerge(value); return *this;} + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& WithMerge(Aws::String&& value) { SetMerge(std::move(value)); return *this;} + + /** + *

A serialized JSON string that contains the configuration object to merge to + * target devices. The core device merges this configuration with the component's + * existing configuration. If this is the first time a component deploys on a + * device, the core device merges this configuration with the component's default + * configuration. This means that the core device keeps it's existing configuration + * for keys and values that you don't specify in this object. For more information, + * see Merge + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& WithMerge(const char* value) { SetMerge(value); return *this;} + + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline const Aws::Vector& GetReset() const{ return m_reset; } + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline bool ResetHasBeenSet() const { return m_resetHasBeenSet; } + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetReset(const Aws::Vector& value) { m_resetHasBeenSet = true; m_reset = value; } + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetReset(Aws::Vector&& value) { m_resetHasBeenSet = true; m_reset = std::move(value); } + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& WithReset(const Aws::Vector& value) { SetReset(value); return *this;} + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& WithReset(Aws::Vector&& value) { SetReset(std::move(value)); return *this;} + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& AddReset(const Aws::String& value) { m_resetHasBeenSet = true; m_reset.push_back(value); return *this; } + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& AddReset(Aws::String&& value) { m_resetHasBeenSet = true; m_reset.push_back(std::move(value)); return *this; } + + /** + *

The list of configuration nodes to reset to default values on target devices. + * Use JSON pointers to specify each node to reset. JSON pointers start with a + * forward slash (/) and use forward slashes to separate the key for + * each level in the object. For more information, see the JSON pointer specification and Reset + * configuration updates in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentConfigurationUpdate& AddReset(const char* value) { m_resetHasBeenSet = true; m_reset.push_back(value); return *this; } + + private: + + Aws::String m_merge; + bool m_mergeHasBeenSet; + + Aws::Vector m_reset; + bool m_resetHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyRequirement.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyRequirement.h new file mode 100644 index 00000000000..34e45ec6e81 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyRequirement.h @@ -0,0 +1,158 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component dependency for a Lambda function + * component.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentDependencyRequirement + { + public: + ComponentDependencyRequirement(); + ComponentDependencyRequirement(Aws::Utils::Json::JsonView jsonValue); + ComponentDependencyRequirement& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline const Aws::String& GetVersionRequirement() const{ return m_versionRequirement; } + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline bool VersionRequirementHasBeenSet() const { return m_versionRequirementHasBeenSet; } + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline void SetVersionRequirement(const Aws::String& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = value; } + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline void SetVersionRequirement(Aws::String&& value) { m_versionRequirementHasBeenSet = true; m_versionRequirement = std::move(value); } + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline void SetVersionRequirement(const char* value) { m_versionRequirementHasBeenSet = true; m_versionRequirement.assign(value); } + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline ComponentDependencyRequirement& WithVersionRequirement(const Aws::String& value) { SetVersionRequirement(value); return *this;} + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline ComponentDependencyRequirement& WithVersionRequirement(Aws::String&& value) { SetVersionRequirement(std::move(value)); return *this;} + + /** + *

The component version requirement for the component dependency.

AWS + * IoT Greengrass V2 uses semantic version constraints. For more information, see + * Semantic Versioning.

+ */ + inline ComponentDependencyRequirement& WithVersionRequirement(const char* value) { SetVersionRequirement(value); return *this;} + + + /** + *

The type of this dependency. Choose from the following options:

  • + *

    SOFT – The component doesn't restart if the dependency changes + * state.

  • HARD – The component restarts if the + * dependency changes state.

Default: HARD

+ */ + inline const ComponentDependencyType& GetDependencyType() const{ return m_dependencyType; } + + /** + *

The type of this dependency. Choose from the following options:

  • + *

    SOFT – The component doesn't restart if the dependency changes + * state.

  • HARD – The component restarts if the + * dependency changes state.

Default: HARD

+ */ + inline bool DependencyTypeHasBeenSet() const { return m_dependencyTypeHasBeenSet; } + + /** + *

The type of this dependency. Choose from the following options:

  • + *

    SOFT – The component doesn't restart if the dependency changes + * state.

  • HARD – The component restarts if the + * dependency changes state.

Default: HARD

+ */ + inline void SetDependencyType(const ComponentDependencyType& value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = value; } + + /** + *

The type of this dependency. Choose from the following options:

  • + *

    SOFT – The component doesn't restart if the dependency changes + * state.

  • HARD – The component restarts if the + * dependency changes state.

Default: HARD

+ */ + inline void SetDependencyType(ComponentDependencyType&& value) { m_dependencyTypeHasBeenSet = true; m_dependencyType = std::move(value); } + + /** + *

The type of this dependency. Choose from the following options:

  • + *

    SOFT – The component doesn't restart if the dependency changes + * state.

  • HARD – The component restarts if the + * dependency changes state.

Default: HARD

+ */ + inline ComponentDependencyRequirement& WithDependencyType(const ComponentDependencyType& value) { SetDependencyType(value); return *this;} + + /** + *

The type of this dependency. Choose from the following options:

  • + *

    SOFT – The component doesn't restart if the dependency changes + * state.

  • HARD – The component restarts if the + * dependency changes state.

Default: HARD

+ */ + inline ComponentDependencyRequirement& WithDependencyType(ComponentDependencyType&& value) { SetDependencyType(std::move(value)); return *this;} + + private: + + Aws::String m_versionRequirement; + bool m_versionRequirementHasBeenSet; + + ComponentDependencyType m_dependencyType; + bool m_dependencyTypeHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyType.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyType.h new file mode 100644 index 00000000000..d85cd2312ae --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDependencyType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class ComponentDependencyType + { + NOT_SET, + HARD, + SOFT + }; + +namespace ComponentDependencyTypeMapper +{ +AWS_GREENGRASSV2_API ComponentDependencyType GetComponentDependencyTypeForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForComponentDependencyType(ComponentDependencyType value); +} // namespace ComponentDependencyTypeMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDeploymentSpecification.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDeploymentSpecification.h new file mode 100644 index 00000000000..475b6751d2a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentDeploymentSpecification.h @@ -0,0 +1,243 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component to deploy.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentDeploymentSpecification + { + public: + ComponentDeploymentSpecification(); + ComponentDeploymentSpecification(Aws::Utils::Json::JsonView jsonValue); + ComponentDeploymentSpecification& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline ComponentDeploymentSpecification& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentDeploymentSpecification& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentDeploymentSpecification& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The configuration updates to deploy for the component. You can define + * reset updates and merge updates. A reset updates the keys that you + * specify to the default configuration for the component. A merge updates the core + * device's component configuration with the keys and values that you specify. The + * AWS IoT Greengrass Core software applies reset updates before it applies merge + * updates. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline const ComponentConfigurationUpdate& GetConfigurationUpdate() const{ return m_configurationUpdate; } + + /** + *

The configuration updates to deploy for the component. You can define + * reset updates and merge updates. A reset updates the keys that you + * specify to the default configuration for the component. A merge updates the core + * device's component configuration with the keys and values that you specify. The + * AWS IoT Greengrass Core software applies reset updates before it applies merge + * updates. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline bool ConfigurationUpdateHasBeenSet() const { return m_configurationUpdateHasBeenSet; } + + /** + *

The configuration updates to deploy for the component. You can define + * reset updates and merge updates. A reset updates the keys that you + * specify to the default configuration for the component. A merge updates the core + * device's component configuration with the keys and values that you specify. The + * AWS IoT Greengrass Core software applies reset updates before it applies merge + * updates. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetConfigurationUpdate(const ComponentConfigurationUpdate& value) { m_configurationUpdateHasBeenSet = true; m_configurationUpdate = value; } + + /** + *

The configuration updates to deploy for the component. You can define + * reset updates and merge updates. A reset updates the keys that you + * specify to the default configuration for the component. A merge updates the core + * device's component configuration with the keys and values that you specify. The + * AWS IoT Greengrass Core software applies reset updates before it applies merge + * updates. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetConfigurationUpdate(ComponentConfigurationUpdate&& value) { m_configurationUpdateHasBeenSet = true; m_configurationUpdate = std::move(value); } + + /** + *

The configuration updates to deploy for the component. You can define + * reset updates and merge updates. A reset updates the keys that you + * specify to the default configuration for the component. A merge updates the core + * device's component configuration with the keys and values that you specify. The + * AWS IoT Greengrass Core software applies reset updates before it applies merge + * updates. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentDeploymentSpecification& WithConfigurationUpdate(const ComponentConfigurationUpdate& value) { SetConfigurationUpdate(value); return *this;} + + /** + *

The configuration updates to deploy for the component. You can define + * reset updates and merge updates. A reset updates the keys that you + * specify to the default configuration for the component. A merge updates the core + * device's component configuration with the keys and values that you specify. The + * AWS IoT Greengrass Core software applies reset updates before it applies merge + * updates. For more information, see Update + * component configurations in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentDeploymentSpecification& WithConfigurationUpdate(ComponentConfigurationUpdate&& value) { SetConfigurationUpdate(std::move(value)); return *this;} + + + /** + *

The system user and group that the AWS IoT Greengrass Core software uses to + * run component processes on the core device. If you omit this parameter, the AWS + * IoT Greengrass Core software uses the system user and group that you configure + * for the core device. For more information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

+ */ + inline const ComponentRunWith& GetRunWith() const{ return m_runWith; } + + /** + *

The system user and group that the AWS IoT Greengrass Core software uses to + * run component processes on the core device. If you omit this parameter, the AWS + * IoT Greengrass Core software uses the system user and group that you configure + * for the core device. For more information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

+ */ + inline bool RunWithHasBeenSet() const { return m_runWithHasBeenSet; } + + /** + *

The system user and group that the AWS IoT Greengrass Core software uses to + * run component processes on the core device. If you omit this parameter, the AWS + * IoT Greengrass Core software uses the system user and group that you configure + * for the core device. For more information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

+ */ + inline void SetRunWith(const ComponentRunWith& value) { m_runWithHasBeenSet = true; m_runWith = value; } + + /** + *

The system user and group that the AWS IoT Greengrass Core software uses to + * run component processes on the core device. If you omit this parameter, the AWS + * IoT Greengrass Core software uses the system user and group that you configure + * for the core device. For more information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

+ */ + inline void SetRunWith(ComponentRunWith&& value) { m_runWithHasBeenSet = true; m_runWith = std::move(value); } + + /** + *

The system user and group that the AWS IoT Greengrass Core software uses to + * run component processes on the core device. If you omit this parameter, the AWS + * IoT Greengrass Core software uses the system user and group that you configure + * for the core device. For more information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

+ */ + inline ComponentDeploymentSpecification& WithRunWith(const ComponentRunWith& value) { SetRunWith(value); return *this;} + + /** + *

The system user and group that the AWS IoT Greengrass Core software uses to + * run component processes on the core device. If you omit this parameter, the AWS + * IoT Greengrass Core software uses the system user and group that you configure + * for the core device. For more information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

+ */ + inline ComponentDeploymentSpecification& WithRunWith(ComponentRunWith&& value) { SetRunWith(std::move(value)); return *this;} + + private: + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + ComponentConfigurationUpdate m_configurationUpdate; + bool m_configurationUpdateHasBeenSet; + + ComponentRunWith m_runWith; + bool m_runWithHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentLatestVersion.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentLatestVersion.h new file mode 100644 index 00000000000..d11187f75b8 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentLatestVersion.h @@ -0,0 +1,324 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about the latest version of a component.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentLatestVersion + { + public: + ComponentLatestVersion(); + ComponentLatestVersion(Aws::Utils::Json::JsonView jsonValue); + ComponentLatestVersion& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline ComponentLatestVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ComponentLatestVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ComponentLatestVersion& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline ComponentLatestVersion& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentLatestVersion& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentLatestVersion& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline ComponentLatestVersion& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline ComponentLatestVersion& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} + + + /** + *

The description of the component version.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the component version.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the component version.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the component version.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the component version.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the component version.

+ */ + inline ComponentLatestVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the component version.

+ */ + inline ComponentLatestVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the component version.

+ */ + inline ComponentLatestVersion& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The publisher of the component version.

+ */ + inline const Aws::String& GetPublisher() const{ return m_publisher; } + + /** + *

The publisher of the component version.

+ */ + inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; } + + /** + *

The publisher of the component version.

+ */ + inline void SetPublisher(const Aws::String& value) { m_publisherHasBeenSet = true; m_publisher = value; } + + /** + *

The publisher of the component version.

+ */ + inline void SetPublisher(Aws::String&& value) { m_publisherHasBeenSet = true; m_publisher = std::move(value); } + + /** + *

The publisher of the component version.

+ */ + inline void SetPublisher(const char* value) { m_publisherHasBeenSet = true; m_publisher.assign(value); } + + /** + *

The publisher of the component version.

+ */ + inline ComponentLatestVersion& WithPublisher(const Aws::String& value) { SetPublisher(value); return *this;} + + /** + *

The publisher of the component version.

+ */ + inline ComponentLatestVersion& WithPublisher(Aws::String&& value) { SetPublisher(std::move(value)); return *this;} + + /** + *

The publisher of the component version.

+ */ + inline ComponentLatestVersion& WithPublisher(const char* value) { SetPublisher(value); return *this;} + + + /** + *

The platforms that the component version supports.

+ */ + inline const Aws::Vector& GetPlatforms() const{ return m_platforms; } + + /** + *

The platforms that the component version supports.

+ */ + inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; } + + /** + *

The platforms that the component version supports.

+ */ + inline void SetPlatforms(const Aws::Vector& value) { m_platformsHasBeenSet = true; m_platforms = value; } + + /** + *

The platforms that the component version supports.

+ */ + inline void SetPlatforms(Aws::Vector&& value) { m_platformsHasBeenSet = true; m_platforms = std::move(value); } + + /** + *

The platforms that the component version supports.

+ */ + inline ComponentLatestVersion& WithPlatforms(const Aws::Vector& value) { SetPlatforms(value); return *this;} + + /** + *

The platforms that the component version supports.

+ */ + inline ComponentLatestVersion& WithPlatforms(Aws::Vector&& value) { SetPlatforms(std::move(value)); return *this;} + + /** + *

The platforms that the component version supports.

+ */ + inline ComponentLatestVersion& AddPlatforms(const ComponentPlatform& value) { m_platformsHasBeenSet = true; m_platforms.push_back(value); return *this; } + + /** + *

The platforms that the component version supports.

+ */ + inline ComponentLatestVersion& AddPlatforms(ComponentPlatform&& value) { m_platformsHasBeenSet = true; m_platforms.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + Aws::Utils::DateTime m_creationTimestamp; + bool m_creationTimestampHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + Aws::String m_publisher; + bool m_publisherHasBeenSet; + + Aws::Vector m_platforms; + bool m_platformsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentPlatform.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentPlatform.h new file mode 100644 index 00000000000..6a3437a63e9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentPlatform.h @@ -0,0 +1,261 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a platform that a component + * supports.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentPlatform + { + public: + ComponentPlatform(); + ComponentPlatform(Aws::Utils::Json::JsonView jsonValue); + ComponentPlatform& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline ComponentPlatform& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline ComponentPlatform& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The friendly name of the platform. This name helps you identify the + * platform.

If you omit this parameter, AWS IoT Greengrass creates a + * friendly name from the os and architecture of the + * platform.

+ */ + inline ComponentPlatform& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline const Aws::Map& GetAttributes() const{ return m_attributes; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } + + /** + *

A dictionary of attributes for the platform. The AWS IoT Greengrass Core + * software defines the os and platform by default. You + * can specify additional platform attributes for a core device when you deploy the + * AWS IoT Greengrass nucleus component. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline ComponentPlatform& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::Map m_attributes; + bool m_attributesHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentRunWith.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentRunWith.h new file mode 100644 index 00000000000..6792a430c23 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentRunWith.h @@ -0,0 +1,125 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information system user and group that the AWS IoT Greengrass Core + * software uses to run component processes on the core device. For more + * information, see Configure + * the user and group that run components in the AWS IoT Greengrass V2 + * Developer Guide.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentRunWith + { + public: + ComponentRunWith(); + ComponentRunWith(Aws::Utils::Json::JsonView jsonValue); + ComponentRunWith& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline const Aws::String& GetPosixUser() const{ return m_posixUser; } + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline bool PosixUserHasBeenSet() const { return m_posixUserHasBeenSet; } + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline void SetPosixUser(const Aws::String& value) { m_posixUserHasBeenSet = true; m_posixUser = value; } + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline void SetPosixUser(Aws::String&& value) { m_posixUserHasBeenSet = true; m_posixUser = std::move(value); } + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline void SetPosixUser(const char* value) { m_posixUserHasBeenSet = true; m_posixUser.assign(value); } + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline ComponentRunWith& WithPosixUser(const Aws::String& value) { SetPosixUser(value); return *this;} + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline ComponentRunWith& WithPosixUser(Aws::String&& value) { SetPosixUser(std::move(value)); return *this;} + + /** + *

The POSIX system user and (optional) group to use to run this component. + * Specify the user and group separated by a colon (:) in the + * following format: user:group. The group is optional. If you don't + * specify a group, the AWS IoT Greengrass Core software uses the primary user for + * the group.

+ */ + inline ComponentRunWith& WithPosixUser(const char* value) { SetPosixUser(value); return *this;} + + private: + + Aws::String m_posixUser; + bool m_posixUserHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVersionListItem.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVersionListItem.h new file mode 100644 index 00000000000..d37687dfa34 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVersionListItem.h @@ -0,0 +1,193 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component version in a list.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ComponentVersionListItem + { + public: + ComponentVersionListItem(); + ComponentVersionListItem(Aws::Utils::Json::JsonView jsonValue); + ComponentVersionListItem& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline ComponentVersionListItem& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline ComponentVersionListItem& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline ComponentVersionListItem& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline ComponentVersionListItem& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentVersionListItem& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline ComponentVersionListItem& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline ComponentVersionListItem& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ComponentVersionListItem& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ComponentVersionListItem& WithArn(const char* value) { SetArn(value); return *this;} + + private: + + Aws::String m_componentName; + bool m_componentNameHasBeenSet; + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + Aws::String m_arn; + bool m_arnHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVisibilityScope.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVisibilityScope.h new file mode 100644 index 00000000000..db966b5c838 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ComponentVisibilityScope.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class ComponentVisibilityScope + { + NOT_SET, + PRIVATE_, + PUBLIC_ + }; + +namespace ComponentVisibilityScopeMapper +{ +AWS_GREENGRASSV2_API ComponentVisibilityScope GetComponentVisibilityScopeForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForComponentVisibilityScope(ComponentVisibilityScope value); +} // namespace ComponentVisibilityScopeMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ConflictException.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ConflictException.h new file mode 100644 index 00000000000..11f9e2d173b --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ConflictException.h @@ -0,0 +1,162 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Your request has conflicting operations. This can occur if you're trying to + * perform more than one operation on the same resource at the same + * time.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ConflictException + { + public: + ConflictException(); + ConflictException(Aws::Utils::Json::JsonView jsonValue); + ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

The ID of the resource that conflicts with the request.

+ */ + inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource that conflicts with the request.

+ */ + inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDevice.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDevice.h new file mode 100644 index 00000000000..9ddf0ddaaa9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDevice.h @@ -0,0 +1,190 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a AWS IoT Greengrass core device, which is an AWS + * IoT thing that runs the AWS IoT Greengrass Core software.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API CoreDevice + { + public: + CoreDevice(); + CoreDevice(Aws::Utils::Json::JsonView jsonValue); + CoreDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline CoreDevice& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline CoreDevice& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline CoreDevice& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} + + + /** + *

The status of the core device. Core devices can have the following + * statuses:

  • HEALTHY – The AWS IoT Greengrass Core + * software and all components run on the core device without issue.

  • + *

    UNHEALTHY – The AWS IoT Greengrass Core software or a component + * is in a failed state on the core device.

+ */ + inline const CoreDeviceStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the core device. Core devices can have the following + * statuses:

  • HEALTHY – The AWS IoT Greengrass Core + * software and all components run on the core device without issue.

  • + *

    UNHEALTHY – The AWS IoT Greengrass Core software or a component + * is in a failed state on the core device.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The status of the core device. Core devices can have the following + * statuses:

  • HEALTHY – The AWS IoT Greengrass Core + * software and all components run on the core device without issue.

  • + *

    UNHEALTHY – The AWS IoT Greengrass Core software or a component + * is in a failed state on the core device.

+ */ + inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The status of the core device. Core devices can have the following + * statuses:

  • HEALTHY – The AWS IoT Greengrass Core + * software and all components run on the core device without issue.

  • + *

    UNHEALTHY – The AWS IoT Greengrass Core software or a component + * is in a failed state on the core device.

+ */ + inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The status of the core device. Core devices can have the following + * statuses:

  • HEALTHY – The AWS IoT Greengrass Core + * software and all components run on the core device without issue.

  • + *

    UNHEALTHY – The AWS IoT Greengrass Core software or a component + * is in a failed state on the core device.

+ */ + inline CoreDevice& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the core device. Core devices can have the following + * statuses:

  • HEALTHY – The AWS IoT Greengrass Core + * software and all components run on the core device without issue.

  • + *

    UNHEALTHY – The AWS IoT Greengrass Core software or a component + * is in a failed state on the core device.

+ */ + inline CoreDevice& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const{ return m_lastStatusUpdateTimestamp; } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline bool LastStatusUpdateTimestampHasBeenSet() const { return m_lastStatusUpdateTimestampHasBeenSet; } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = value; } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastStatusUpdateTimestampHasBeenSet = true; m_lastStatusUpdateTimestamp = std::move(value); } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline CoreDevice& WithLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { SetLastStatusUpdateTimestamp(value); return *this;} + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline CoreDevice& WithLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { SetLastStatusUpdateTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_coreDeviceThingName; + bool m_coreDeviceThingNameHasBeenSet; + + CoreDeviceStatus m_status; + bool m_statusHasBeenSet; + + Aws::Utils::DateTime m_lastStatusUpdateTimestamp; + bool m_lastStatusUpdateTimestampHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDeviceStatus.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDeviceStatus.h new file mode 100644 index 00000000000..4458f1633be --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CoreDeviceStatus.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class CoreDeviceStatus + { + NOT_SET, + HEALTHY, + UNHEALTHY + }; + +namespace CoreDeviceStatusMapper +{ +AWS_GREENGRASSV2_API CoreDeviceStatus GetCoreDeviceStatusForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForCoreDeviceStatus(CoreDeviceStatus value); +} // namespace CoreDeviceStatusMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionRequest.h new file mode 100644 index 00000000000..b2869edd980 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionRequest.h @@ -0,0 +1,242 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API CreateComponentVersionRequest : public GreengrassV2Request + { + public: + CreateComponentVersionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateComponentVersion"; } + + Aws::String SerializePayload() const override; + + + /** + *

The recipe to use to create the component. The recipe defines the component's + * metadata, parameters, dependencies, lifecycle, artifacts, and platform + * compatibility.

You must specify either inlineRecipe or + * lambdaFunction.

+ */ + inline const Aws::Utils::ByteBuffer& GetInlineRecipe() const{ return m_inlineRecipe; } + + /** + *

The recipe to use to create the component. The recipe defines the component's + * metadata, parameters, dependencies, lifecycle, artifacts, and platform + * compatibility.

You must specify either inlineRecipe or + * lambdaFunction.

+ */ + inline bool InlineRecipeHasBeenSet() const { return m_inlineRecipeHasBeenSet; } + + /** + *

The recipe to use to create the component. The recipe defines the component's + * metadata, parameters, dependencies, lifecycle, artifacts, and platform + * compatibility.

You must specify either inlineRecipe or + * lambdaFunction.

+ */ + inline void SetInlineRecipe(const Aws::Utils::ByteBuffer& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = value; } + + /** + *

The recipe to use to create the component. The recipe defines the component's + * metadata, parameters, dependencies, lifecycle, artifacts, and platform + * compatibility.

You must specify either inlineRecipe or + * lambdaFunction.

+ */ + inline void SetInlineRecipe(Aws::Utils::ByteBuffer&& value) { m_inlineRecipeHasBeenSet = true; m_inlineRecipe = std::move(value); } + + /** + *

The recipe to use to create the component. The recipe defines the component's + * metadata, parameters, dependencies, lifecycle, artifacts, and platform + * compatibility.

You must specify either inlineRecipe or + * lambdaFunction.

+ */ + inline CreateComponentVersionRequest& WithInlineRecipe(const Aws::Utils::ByteBuffer& value) { SetInlineRecipe(value); return *this;} + + /** + *

The recipe to use to create the component. The recipe defines the component's + * metadata, parameters, dependencies, lifecycle, artifacts, and platform + * compatibility.

You must specify either inlineRecipe or + * lambdaFunction.

+ */ + inline CreateComponentVersionRequest& WithInlineRecipe(Aws::Utils::ByteBuffer&& value) { SetInlineRecipe(std::move(value)); return *this;} + + + /** + *

The parameters to create a component from a Lambda function.

You must + * specify either inlineRecipe or lambdaFunction.

+ */ + inline const LambdaFunctionRecipeSource& GetLambdaFunction() const{ return m_lambdaFunction; } + + /** + *

The parameters to create a component from a Lambda function.

You must + * specify either inlineRecipe or lambdaFunction.

+ */ + inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; } + + /** + *

The parameters to create a component from a Lambda function.

You must + * specify either inlineRecipe or lambdaFunction.

+ */ + inline void SetLambdaFunction(const LambdaFunctionRecipeSource& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = value; } + + /** + *

The parameters to create a component from a Lambda function.

You must + * specify either inlineRecipe or lambdaFunction.

+ */ + inline void SetLambdaFunction(LambdaFunctionRecipeSource&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::move(value); } + + /** + *

The parameters to create a component from a Lambda function.

You must + * specify either inlineRecipe or lambdaFunction.

+ */ + inline CreateComponentVersionRequest& WithLambdaFunction(const LambdaFunctionRecipeSource& value) { SetLambdaFunction(value); return *this;} + + /** + *

The parameters to create a component from a Lambda function.

You must + * specify either inlineRecipe or lambdaFunction.

+ */ + inline CreateComponentVersionRequest& WithLambdaFunction(LambdaFunctionRecipeSource&& value) { SetLambdaFunction(std::move(value)); return *this;} + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateComponentVersionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::Utils::ByteBuffer m_inlineRecipe; + bool m_inlineRecipeHasBeenSet; + + LambdaFunctionRecipeSource m_lambdaFunction; + bool m_lambdaFunctionHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionResult.h new file mode 100644 index 00000000000..4d1424c9b66 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateComponentVersionResult.h @@ -0,0 +1,235 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API CreateComponentVersionResult + { + public: + CreateComponentVersionResult(); + CreateComponentVersionResult(const Aws::AmazonWebServiceResult& result); + CreateComponentVersionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline CreateComponentVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline CreateComponentVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline CreateComponentVersionResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline CreateComponentVersionResult& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline CreateComponentVersionResult& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline CreateComponentVersionResult& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline CreateComponentVersionResult& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline CreateComponentVersionResult& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline CreateComponentVersionResult& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestamp = value; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestamp = std::move(value); } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline CreateComponentVersionResult& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline CreateComponentVersionResult& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} + + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline const CloudComponentStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline void SetStatus(const CloudComponentStatus& value) { m_status = value; } + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline void SetStatus(CloudComponentStatus&& value) { m_status = std::move(value); } + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline CreateComponentVersionResult& WithStatus(const CloudComponentStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline CreateComponentVersionResult& WithStatus(CloudComponentStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_componentName; + + Aws::String m_componentVersion; + + Aws::Utils::DateTime m_creationTimestamp; + + CloudComponentStatus m_status; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentRequest.h new file mode 100644 index 00000000000..592c4cc7c26 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentRequest.h @@ -0,0 +1,461 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API CreateDeploymentRequest : public GreengrassV2Request + { + public: + CreateDeploymentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline const Aws::String& GetTargetArn() const{ return m_targetArn; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline CreateDeploymentRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline CreateDeploymentRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline CreateDeploymentRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} + + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline CreateDeploymentRequest& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline CreateDeploymentRequest& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline CreateDeploymentRequest& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;} + + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline const Aws::Map& GetComponents() const{ return m_components; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline void SetComponents(const Aws::Map& value) { m_componentsHasBeenSet = true; m_components = value; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline void SetComponents(Aws::Map&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& WithComponents(const Aws::Map& value) { SetComponents(value); return *this;} + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& WithComponents(Aws::Map&& value) { SetComponents(std::move(value)); return *this;} + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& AddComponents(const Aws::String& key, const ComponentDeploymentSpecification& value) { m_componentsHasBeenSet = true; m_components.emplace(key, value); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& AddComponents(Aws::String&& key, const ComponentDeploymentSpecification& value) { m_componentsHasBeenSet = true; m_components.emplace(std::move(key), value); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& AddComponents(const Aws::String& key, ComponentDeploymentSpecification&& value) { m_componentsHasBeenSet = true; m_components.emplace(key, std::move(value)); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& AddComponents(Aws::String&& key, ComponentDeploymentSpecification&& value) { m_componentsHasBeenSet = true; m_components.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& AddComponents(const char* key, ComponentDeploymentSpecification&& value) { m_componentsHasBeenSet = true; m_components.emplace(key, std::move(value)); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline CreateDeploymentRequest& AddComponents(const char* key, const ComponentDeploymentSpecification& value) { m_componentsHasBeenSet = true; m_components.emplace(key, value); return *this; } + + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const{ return m_iotJobConfiguration; } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline bool IotJobConfigurationHasBeenSet() const { return m_iotJobConfigurationHasBeenSet; } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline void SetIotJobConfiguration(const DeploymentIoTJobConfiguration& value) { m_iotJobConfigurationHasBeenSet = true; m_iotJobConfiguration = value; } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline void SetIotJobConfiguration(DeploymentIoTJobConfiguration&& value) { m_iotJobConfigurationHasBeenSet = true; m_iotJobConfiguration = std::move(value); } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline CreateDeploymentRequest& WithIotJobConfiguration(const DeploymentIoTJobConfiguration& value) { SetIotJobConfiguration(value); return *this;} + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline CreateDeploymentRequest& WithIotJobConfiguration(DeploymentIoTJobConfiguration&& value) { SetIotJobConfiguration(std::move(value)); return *this;} + + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline const DeploymentPolicies& GetDeploymentPolicies() const{ return m_deploymentPolicies; } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline bool DeploymentPoliciesHasBeenSet() const { return m_deploymentPoliciesHasBeenSet; } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline void SetDeploymentPolicies(const DeploymentPolicies& value) { m_deploymentPoliciesHasBeenSet = true; m_deploymentPolicies = value; } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline void SetDeploymentPolicies(DeploymentPolicies&& value) { m_deploymentPoliciesHasBeenSet = true; m_deploymentPolicies = std::move(value); } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline CreateDeploymentRequest& WithDeploymentPolicies(const DeploymentPolicies& value) { SetDeploymentPolicies(value); return *this;} + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline CreateDeploymentRequest& WithDeploymentPolicies(DeploymentPolicies&& value) { SetDeploymentPolicies(std::move(value)); return *this;} + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline CreateDeploymentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_targetArn; + bool m_targetArnHasBeenSet; + + Aws::String m_deploymentName; + bool m_deploymentNameHasBeenSet; + + Aws::Map m_components; + bool m_componentsHasBeenSet; + + DeploymentIoTJobConfiguration m_iotJobConfiguration; + bool m_iotJobConfigurationHasBeenSet; + + DeploymentPolicies m_deploymentPolicies; + bool m_deploymentPoliciesHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentResult.h new file mode 100644 index 00000000000..cf59bbca8e5 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/CreateDeploymentResult.h @@ -0,0 +1,167 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API CreateDeploymentResult + { + public: + CreateDeploymentResult(); + CreateDeploymentResult(const Aws::AmazonWebServiceResult& result); + CreateDeploymentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the deployment.

+ */ + inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const Aws::String& value) { m_deploymentId = value; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(Aws::String&& value) { m_deploymentId = std::move(value); } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const char* value) { m_deploymentId.assign(value); } + + /** + *

The ID of the deployment.

+ */ + inline CreateDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline CreateDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline CreateDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} + + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline const Aws::String& GetIotJobId() const{ return m_iotJobId; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(const Aws::String& value) { m_iotJobId = value; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(Aws::String&& value) { m_iotJobId = std::move(value); } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(const char* value) { m_iotJobId.assign(value); } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline CreateDeploymentResult& WithIotJobId(const Aws::String& value) { SetIotJobId(value); return *this;} + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline CreateDeploymentResult& WithIotJobId(Aws::String&& value) { SetIotJobId(std::move(value)); return *this;} + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline CreateDeploymentResult& WithIotJobId(const char* value) { SetIotJobId(value); return *this;} + + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline const Aws::String& GetIotJobArn() const{ return m_iotJobArn; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(const Aws::String& value) { m_iotJobArn = value; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(Aws::String&& value) { m_iotJobArn = std::move(value); } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(const char* value) { m_iotJobArn.assign(value); } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline CreateDeploymentResult& WithIotJobArn(const Aws::String& value) { SetIotJobArn(value); return *this;} + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline CreateDeploymentResult& WithIotJobArn(Aws::String&& value) { SetIotJobArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline CreateDeploymentResult& WithIotJobArn(const char* value) { SetIotJobArn(value); return *this;} + + private: + + Aws::String m_deploymentId; + + Aws::String m_iotJobId; + + Aws::String m_iotJobArn; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteComponentRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteComponentRequest.h new file mode 100644 index 00000000000..ab9317ed01e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteComponentRequest.h @@ -0,0 +1,99 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API DeleteComponentRequest : public GreengrassV2Request + { + public: + DeleteComponentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteComponent"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline DeleteComponentRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline DeleteComponentRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline DeleteComponentRequest& WithArn(const char* value) { SetArn(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteCoreDeviceRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteCoreDeviceRequest.h new file mode 100644 index 00000000000..213ab0dca11 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeleteCoreDeviceRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API DeleteCoreDeviceRequest : public GreengrassV2Request + { + public: + DeleteCoreDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteCoreDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline DeleteCoreDeviceRequest& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline DeleteCoreDeviceRequest& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline DeleteCoreDeviceRequest& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} + + private: + + Aws::String m_coreDeviceThingName; + bool m_coreDeviceThingNameHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Deployment.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Deployment.h new file mode 100644 index 00000000000..b42e31c58fe --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/Deployment.h @@ -0,0 +1,368 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a deployment.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API Deployment + { + public: + Deployment(); + Deployment(Aws::Utils::Json::JsonView jsonValue); + Deployment& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline const Aws::String& GetTargetArn() const{ return m_targetArn; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline Deployment& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline Deployment& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline Deployment& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} + + + /** + *

The revision number of the deployment.

+ */ + inline const Aws::String& GetRevisionId() const{ return m_revisionId; } + + /** + *

The revision number of the deployment.

+ */ + inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } + + /** + *

The revision number of the deployment.

+ */ + inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } + + /** + *

The revision number of the deployment.

+ */ + inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } + + /** + *

The revision number of the deployment.

+ */ + inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } + + /** + *

The revision number of the deployment.

+ */ + inline Deployment& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} + + /** + *

The revision number of the deployment.

+ */ + inline Deployment& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} + + /** + *

The revision number of the deployment.

+ */ + inline Deployment& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} + + + /** + *

The ID of the deployment.

+ */ + inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } + + /** + *

The ID of the deployment.

+ */ + inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } + + /** + *

The ID of the deployment.

+ */ + inline Deployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline Deployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline Deployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} + + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline Deployment& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline Deployment& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline Deployment& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;} + + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline Deployment& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline Deployment& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} + + + /** + *

The status of the deployment.

+ */ + inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; } + + /** + *

The status of the deployment.

+ */ + inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; } + + /** + *

The status of the deployment.

+ */ + inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; } + + /** + *

The status of the deployment.

+ */ + inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = std::move(value); } + + /** + *

The status of the deployment.

+ */ + inline Deployment& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;} + + /** + *

The status of the deployment.

+ */ + inline Deployment& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;} + + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline bool GetIsLatestForTarget() const{ return m_isLatestForTarget; } + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline bool IsLatestForTargetHasBeenSet() const { return m_isLatestForTargetHasBeenSet; } + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline void SetIsLatestForTarget(bool value) { m_isLatestForTargetHasBeenSet = true; m_isLatestForTarget = value; } + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline Deployment& WithIsLatestForTarget(bool value) { SetIsLatestForTarget(value); return *this;} + + private: + + Aws::String m_targetArn; + bool m_targetArnHasBeenSet; + + Aws::String m_revisionId; + bool m_revisionIdHasBeenSet; + + Aws::String m_deploymentId; + bool m_deploymentIdHasBeenSet; + + Aws::String m_deploymentName; + bool m_deploymentNameHasBeenSet; + + Aws::Utils::DateTime m_creationTimestamp; + bool m_creationTimestampHasBeenSet; + + DeploymentStatus m_deploymentStatus; + bool m_deploymentStatusHasBeenSet; + + bool m_isLatestForTarget; + bool m_isLatestForTargetHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicy.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicy.h new file mode 100644 index 00000000000..3561b59257d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicy.h @@ -0,0 +1,194 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a deployment's policy that defines when components + * are safe to update.

Each component on a device can report whether or not + * it's ready to update. After a component and its dependencies are ready, they can + * apply the update in the deployment. You can configure whether or not the + * deployment notifies components of an update and waits for a response. You + * specify the amount of time each component has to respond to the update + * notification.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API DeploymentComponentUpdatePolicy + { + public: + DeploymentComponentUpdatePolicy(); + DeploymentComponentUpdatePolicy(Aws::Utils::Json::JsonView jsonValue); + DeploymentComponentUpdatePolicy& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The amount of time in seconds that each component on a device has to report + * that it's safe to update. If the component waits for longer than this timeout, + * then the deployment proceeds on the device.

Default: 60

+ */ + inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; } + + /** + *

The amount of time in seconds that each component on a device has to report + * that it's safe to update. If the component waits for longer than this timeout, + * then the deployment proceeds on the device.

Default: 60

+ */ + inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; } + + /** + *

The amount of time in seconds that each component on a device has to report + * that it's safe to update. If the component waits for longer than this timeout, + * then the deployment proceeds on the device.

Default: 60

+ */ + inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; } + + /** + *

The amount of time in seconds that each component on a device has to report + * that it's safe to update. If the component waits for longer than this timeout, + * then the deployment proceeds on the device.

Default: 60

+ */ + inline DeploymentComponentUpdatePolicy& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;} + + + /** + *

Whether or not to notify components and wait for components to become safe to + * update. Choose from the following options:

  • + * NOTIFY_COMPONENTS – The deployment notifies each component before + * it stops and updates that component. Components can use the SubscribeToComponentUpdates + * IPC operation to receive these notifications. Then, components can respond with + * the DeferComponentUpdate + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer Guide.

  • + *
  • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify + * components or wait for them to be safe to update.

Default: + * NOTIFY_COMPONENTS

+ */ + inline const DeploymentComponentUpdatePolicyAction& GetAction() const{ return m_action; } + + /** + *

Whether or not to notify components and wait for components to become safe to + * update. Choose from the following options:

  • + * NOTIFY_COMPONENTS – The deployment notifies each component before + * it stops and updates that component. Components can use the SubscribeToComponentUpdates + * IPC operation to receive these notifications. Then, components can respond with + * the DeferComponentUpdate + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer Guide.

  • + *
  • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify + * components or wait for them to be safe to update.

Default: + * NOTIFY_COMPONENTS

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

Whether or not to notify components and wait for components to become safe to + * update. Choose from the following options:

  • + * NOTIFY_COMPONENTS – The deployment notifies each component before + * it stops and updates that component. Components can use the SubscribeToComponentUpdates + * IPC operation to receive these notifications. Then, components can respond with + * the DeferComponentUpdate + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer Guide.

  • + *
  • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify + * components or wait for them to be safe to update.

Default: + * NOTIFY_COMPONENTS

+ */ + inline void SetAction(const DeploymentComponentUpdatePolicyAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

Whether or not to notify components and wait for components to become safe to + * update. Choose from the following options:

  • + * NOTIFY_COMPONENTS – The deployment notifies each component before + * it stops and updates that component. Components can use the SubscribeToComponentUpdates + * IPC operation to receive these notifications. Then, components can respond with + * the DeferComponentUpdate + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer Guide.

  • + *
  • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify + * components or wait for them to be safe to update.

Default: + * NOTIFY_COMPONENTS

+ */ + inline void SetAction(DeploymentComponentUpdatePolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

Whether or not to notify components and wait for components to become safe to + * update. Choose from the following options:

  • + * NOTIFY_COMPONENTS – The deployment notifies each component before + * it stops and updates that component. Components can use the SubscribeToComponentUpdates + * IPC operation to receive these notifications. Then, components can respond with + * the DeferComponentUpdate + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer Guide.

  • + *
  • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify + * components or wait for them to be safe to update.

Default: + * NOTIFY_COMPONENTS

+ */ + inline DeploymentComponentUpdatePolicy& WithAction(const DeploymentComponentUpdatePolicyAction& value) { SetAction(value); return *this;} + + /** + *

Whether or not to notify components and wait for components to become safe to + * update. Choose from the following options:

  • + * NOTIFY_COMPONENTS – The deployment notifies each component before + * it stops and updates that component. Components can use the SubscribeToComponentUpdates + * IPC operation to receive these notifications. Then, components can respond with + * the DeferComponentUpdate + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer Guide.

  • + *
  • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify + * components or wait for them to be safe to update.

Default: + * NOTIFY_COMPONENTS

+ */ + inline DeploymentComponentUpdatePolicy& WithAction(DeploymentComponentUpdatePolicyAction&& value) { SetAction(std::move(value)); return *this;} + + private: + + int m_timeoutInSeconds; + bool m_timeoutInSecondsHasBeenSet; + + DeploymentComponentUpdatePolicyAction m_action; + bool m_actionHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicyAction.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicyAction.h new file mode 100644 index 00000000000..53e233e0fb8 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentComponentUpdatePolicyAction.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class DeploymentComponentUpdatePolicyAction + { + NOT_SET, + NOTIFY_COMPONENTS, + SKIP_NOTIFY_COMPONENTS + }; + +namespace DeploymentComponentUpdatePolicyActionMapper +{ +AWS_GREENGRASSV2_API DeploymentComponentUpdatePolicyAction GetDeploymentComponentUpdatePolicyActionForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForDeploymentComponentUpdatePolicyAction(DeploymentComponentUpdatePolicyAction value); +} // namespace DeploymentComponentUpdatePolicyActionMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentConfigurationValidationPolicy.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentConfigurationValidationPolicy.h new file mode 100644 index 00000000000..ab7601c856f --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentConfigurationValidationPolicy.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about how long a component on a core device can validate + * its configuration updates before it times out. Components can use the SubscribeToValidateConfigurationUpdates + * IPC operation to receive notifications when a deployment specifies a + * configuration update. Then, components can respond with the SendConfigurationValidityReport + * IPC operation. For more information, see the Create + * deployments in the AWS IoT Greengrass V2 Developer + * Guide.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API DeploymentConfigurationValidationPolicy + { + public: + DeploymentConfigurationValidationPolicy(); + DeploymentConfigurationValidationPolicy(Aws::Utils::Json::JsonView jsonValue); + DeploymentConfigurationValidationPolicy& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The amount of time in seconds that a component can validate its configuration + * updates. If the validation time exceeds this timeout, then the deployment + * proceeds for the device.

Default: 30

+ */ + inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; } + + /** + *

The amount of time in seconds that a component can validate its configuration + * updates. If the validation time exceeds this timeout, then the deployment + * proceeds for the device.

Default: 30

+ */ + inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; } + + /** + *

The amount of time in seconds that a component can validate its configuration + * updates. If the validation time exceeds this timeout, then the deployment + * proceeds for the device.

Default: 30

+ */ + inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; } + + /** + *

The amount of time in seconds that a component can validate its configuration + * updates. If the validation time exceeds this timeout, then the deployment + * proceeds for the device.

Default: 30

+ */ + inline DeploymentConfigurationValidationPolicy& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;} + + private: + + int m_timeoutInSeconds; + bool m_timeoutInSecondsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentFailureHandlingPolicy.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentFailureHandlingPolicy.h new file mode 100644 index 00000000000..97213c20da4 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentFailureHandlingPolicy.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class DeploymentFailureHandlingPolicy + { + NOT_SET, + ROLLBACK, + DO_NOTHING + }; + +namespace DeploymentFailureHandlingPolicyMapper +{ +AWS_GREENGRASSV2_API DeploymentFailureHandlingPolicy GetDeploymentFailureHandlingPolicyForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForDeploymentFailureHandlingPolicy(DeploymentFailureHandlingPolicy value); +} // namespace DeploymentFailureHandlingPolicyMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentHistoryFilter.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentHistoryFilter.h new file mode 100644 index 00000000000..9498445180a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentHistoryFilter.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class DeploymentHistoryFilter + { + NOT_SET, + ALL, + LATEST_ONLY + }; + +namespace DeploymentHistoryFilterMapper +{ +AWS_GREENGRASSV2_API DeploymentHistoryFilter GetDeploymentHistoryFilterForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForDeploymentHistoryFilter(DeploymentHistoryFilter value); +} // namespace DeploymentHistoryFilterMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentIoTJobConfiguration.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentIoTJobConfiguration.h new file mode 100644 index 00000000000..cfed1085599 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentIoTJobConfiguration.h @@ -0,0 +1,167 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about an AWS IoT job configuration.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API DeploymentIoTJobConfiguration + { + public: + DeploymentIoTJobConfiguration(); + DeploymentIoTJobConfiguration(Aws::Utils::Json::JsonView jsonValue); + DeploymentIoTJobConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The rollout configuration for the job. This configuration defines the rate at + * which the job rolls out to the fleet of target devices.

+ */ + inline const IoTJobExecutionsRolloutConfig& GetJobExecutionsRolloutConfig() const{ return m_jobExecutionsRolloutConfig; } + + /** + *

The rollout configuration for the job. This configuration defines the rate at + * which the job rolls out to the fleet of target devices.

+ */ + inline bool JobExecutionsRolloutConfigHasBeenSet() const { return m_jobExecutionsRolloutConfigHasBeenSet; } + + /** + *

The rollout configuration for the job. This configuration defines the rate at + * which the job rolls out to the fleet of target devices.

+ */ + inline void SetJobExecutionsRolloutConfig(const IoTJobExecutionsRolloutConfig& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = value; } + + /** + *

The rollout configuration for the job. This configuration defines the rate at + * which the job rolls out to the fleet of target devices.

+ */ + inline void SetJobExecutionsRolloutConfig(IoTJobExecutionsRolloutConfig&& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = std::move(value); } + + /** + *

The rollout configuration for the job. This configuration defines the rate at + * which the job rolls out to the fleet of target devices.

+ */ + inline DeploymentIoTJobConfiguration& WithJobExecutionsRolloutConfig(const IoTJobExecutionsRolloutConfig& value) { SetJobExecutionsRolloutConfig(value); return *this;} + + /** + *

The rollout configuration for the job. This configuration defines the rate at + * which the job rolls out to the fleet of target devices.

+ */ + inline DeploymentIoTJobConfiguration& WithJobExecutionsRolloutConfig(IoTJobExecutionsRolloutConfig&& value) { SetJobExecutionsRolloutConfig(std::move(value)); return *this;} + + + /** + *

The stop configuration for the job. This configuration defines when and how + * to stop a job rollout.

+ */ + inline const IoTJobAbortConfig& GetAbortConfig() const{ return m_abortConfig; } + + /** + *

The stop configuration for the job. This configuration defines when and how + * to stop a job rollout.

+ */ + inline bool AbortConfigHasBeenSet() const { return m_abortConfigHasBeenSet; } + + /** + *

The stop configuration for the job. This configuration defines when and how + * to stop a job rollout.

+ */ + inline void SetAbortConfig(const IoTJobAbortConfig& value) { m_abortConfigHasBeenSet = true; m_abortConfig = value; } + + /** + *

The stop configuration for the job. This configuration defines when and how + * to stop a job rollout.

+ */ + inline void SetAbortConfig(IoTJobAbortConfig&& value) { m_abortConfigHasBeenSet = true; m_abortConfig = std::move(value); } + + /** + *

The stop configuration for the job. This configuration defines when and how + * to stop a job rollout.

+ */ + inline DeploymentIoTJobConfiguration& WithAbortConfig(const IoTJobAbortConfig& value) { SetAbortConfig(value); return *this;} + + /** + *

The stop configuration for the job. This configuration defines when and how + * to stop a job rollout.

+ */ + inline DeploymentIoTJobConfiguration& WithAbortConfig(IoTJobAbortConfig&& value) { SetAbortConfig(std::move(value)); return *this;} + + + /** + *

The timeout configuration for the job. This configuration defines the amount + * of time each device has to complete the job.

+ */ + inline const IoTJobTimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; } + + /** + *

The timeout configuration for the job. This configuration defines the amount + * of time each device has to complete the job.

+ */ + inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; } + + /** + *

The timeout configuration for the job. This configuration defines the amount + * of time each device has to complete the job.

+ */ + inline void SetTimeoutConfig(const IoTJobTimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; } + + /** + *

The timeout configuration for the job. This configuration defines the amount + * of time each device has to complete the job.

+ */ + inline void SetTimeoutConfig(IoTJobTimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); } + + /** + *

The timeout configuration for the job. This configuration defines the amount + * of time each device has to complete the job.

+ */ + inline DeploymentIoTJobConfiguration& WithTimeoutConfig(const IoTJobTimeoutConfig& value) { SetTimeoutConfig(value); return *this;} + + /** + *

The timeout configuration for the job. This configuration defines the amount + * of time each device has to complete the job.

+ */ + inline DeploymentIoTJobConfiguration& WithTimeoutConfig(IoTJobTimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;} + + private: + + IoTJobExecutionsRolloutConfig m_jobExecutionsRolloutConfig; + bool m_jobExecutionsRolloutConfigHasBeenSet; + + IoTJobAbortConfig m_abortConfig; + bool m_abortConfigHasBeenSet; + + IoTJobTimeoutConfig m_timeoutConfig; + bool m_timeoutConfigHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentPolicies.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentPolicies.h new file mode 100644 index 00000000000..77e4ee5696d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentPolicies.h @@ -0,0 +1,179 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about policies that define how a deployment updates + * components and handles failure.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API DeploymentPolicies + { + public: + DeploymentPolicies(); + DeploymentPolicies(Aws::Utils::Json::JsonView jsonValue); + DeploymentPolicies& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The failure handling policy for the configuration deployment. This policy + * defines what to do if the deployment fails.

Default: + * ROLLBACK

+ */ + inline const DeploymentFailureHandlingPolicy& GetFailureHandlingPolicy() const{ return m_failureHandlingPolicy; } + + /** + *

The failure handling policy for the configuration deployment. This policy + * defines what to do if the deployment fails.

Default: + * ROLLBACK

+ */ + inline bool FailureHandlingPolicyHasBeenSet() const { return m_failureHandlingPolicyHasBeenSet; } + + /** + *

The failure handling policy for the configuration deployment. This policy + * defines what to do if the deployment fails.

Default: + * ROLLBACK

+ */ + inline void SetFailureHandlingPolicy(const DeploymentFailureHandlingPolicy& value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = value; } + + /** + *

The failure handling policy for the configuration deployment. This policy + * defines what to do if the deployment fails.

Default: + * ROLLBACK

+ */ + inline void SetFailureHandlingPolicy(DeploymentFailureHandlingPolicy&& value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = std::move(value); } + + /** + *

The failure handling policy for the configuration deployment. This policy + * defines what to do if the deployment fails.

Default: + * ROLLBACK

+ */ + inline DeploymentPolicies& WithFailureHandlingPolicy(const DeploymentFailureHandlingPolicy& value) { SetFailureHandlingPolicy(value); return *this;} + + /** + *

The failure handling policy for the configuration deployment. This policy + * defines what to do if the deployment fails.

Default: + * ROLLBACK

+ */ + inline DeploymentPolicies& WithFailureHandlingPolicy(DeploymentFailureHandlingPolicy&& value) { SetFailureHandlingPolicy(std::move(value)); return *this;} + + + /** + *

The component update policy for the configuration deployment. This policy + * defines when it's safe to deploy the configuration to devices.

+ */ + inline const DeploymentComponentUpdatePolicy& GetComponentUpdatePolicy() const{ return m_componentUpdatePolicy; } + + /** + *

The component update policy for the configuration deployment. This policy + * defines when it's safe to deploy the configuration to devices.

+ */ + inline bool ComponentUpdatePolicyHasBeenSet() const { return m_componentUpdatePolicyHasBeenSet; } + + /** + *

The component update policy for the configuration deployment. This policy + * defines when it's safe to deploy the configuration to devices.

+ */ + inline void SetComponentUpdatePolicy(const DeploymentComponentUpdatePolicy& value) { m_componentUpdatePolicyHasBeenSet = true; m_componentUpdatePolicy = value; } + + /** + *

The component update policy for the configuration deployment. This policy + * defines when it's safe to deploy the configuration to devices.

+ */ + inline void SetComponentUpdatePolicy(DeploymentComponentUpdatePolicy&& value) { m_componentUpdatePolicyHasBeenSet = true; m_componentUpdatePolicy = std::move(value); } + + /** + *

The component update policy for the configuration deployment. This policy + * defines when it's safe to deploy the configuration to devices.

+ */ + inline DeploymentPolicies& WithComponentUpdatePolicy(const DeploymentComponentUpdatePolicy& value) { SetComponentUpdatePolicy(value); return *this;} + + /** + *

The component update policy for the configuration deployment. This policy + * defines when it's safe to deploy the configuration to devices.

+ */ + inline DeploymentPolicies& WithComponentUpdatePolicy(DeploymentComponentUpdatePolicy&& value) { SetComponentUpdatePolicy(std::move(value)); return *this;} + + + /** + *

The configuration validation policy for the configuration deployment. This + * policy defines how long each component has to validate its configure + * updates.

+ */ + inline const DeploymentConfigurationValidationPolicy& GetConfigurationValidationPolicy() const{ return m_configurationValidationPolicy; } + + /** + *

The configuration validation policy for the configuration deployment. This + * policy defines how long each component has to validate its configure + * updates.

+ */ + inline bool ConfigurationValidationPolicyHasBeenSet() const { return m_configurationValidationPolicyHasBeenSet; } + + /** + *

The configuration validation policy for the configuration deployment. This + * policy defines how long each component has to validate its configure + * updates.

+ */ + inline void SetConfigurationValidationPolicy(const DeploymentConfigurationValidationPolicy& value) { m_configurationValidationPolicyHasBeenSet = true; m_configurationValidationPolicy = value; } + + /** + *

The configuration validation policy for the configuration deployment. This + * policy defines how long each component has to validate its configure + * updates.

+ */ + inline void SetConfigurationValidationPolicy(DeploymentConfigurationValidationPolicy&& value) { m_configurationValidationPolicyHasBeenSet = true; m_configurationValidationPolicy = std::move(value); } + + /** + *

The configuration validation policy for the configuration deployment. This + * policy defines how long each component has to validate its configure + * updates.

+ */ + inline DeploymentPolicies& WithConfigurationValidationPolicy(const DeploymentConfigurationValidationPolicy& value) { SetConfigurationValidationPolicy(value); return *this;} + + /** + *

The configuration validation policy for the configuration deployment. This + * policy defines how long each component has to validate its configure + * updates.

+ */ + inline DeploymentPolicies& WithConfigurationValidationPolicy(DeploymentConfigurationValidationPolicy&& value) { SetConfigurationValidationPolicy(std::move(value)); return *this;} + + private: + + DeploymentFailureHandlingPolicy m_failureHandlingPolicy; + bool m_failureHandlingPolicyHasBeenSet; + + DeploymentComponentUpdatePolicy m_componentUpdatePolicy; + bool m_componentUpdatePolicyHasBeenSet; + + DeploymentConfigurationValidationPolicy m_configurationValidationPolicy; + bool m_configurationValidationPolicyHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentStatus.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentStatus.h new file mode 100644 index 00000000000..0926c6742db --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DeploymentStatus.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class DeploymentStatus + { + NOT_SET, + ACTIVE, + COMPLETED, + CANCELED, + FAILED, + INACTIVE + }; + +namespace DeploymentStatusMapper +{ +AWS_GREENGRASSV2_API DeploymentStatus GetDeploymentStatusForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForDeploymentStatus(DeploymentStatus value); +} // namespace DeploymentStatusMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentRequest.h new file mode 100644 index 00000000000..3f7fc9c1bfe --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentRequest.h @@ -0,0 +1,99 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API DescribeComponentRequest : public GreengrassV2Request + { + public: + DescribeComponentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeComponent"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline DescribeComponentRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline DescribeComponentRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline DescribeComponentRequest& WithArn(const char* value) { SetArn(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentResult.h new file mode 100644 index 00000000000..88e5decd924 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/DescribeComponentResult.h @@ -0,0 +1,451 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API DescribeComponentResult + { + public: + DescribeComponentResult(); + DescribeComponentResult(const Aws::AmazonWebServiceResult& result); + DescribeComponentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline DescribeComponentResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline DescribeComponentResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline DescribeComponentResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline DescribeComponentResult& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline DescribeComponentResult& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline DescribeComponentResult& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline DescribeComponentResult& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline DescribeComponentResult& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline DescribeComponentResult& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestamp = value; } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestamp = std::move(value); } + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline DescribeComponentResult& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} + + /** + *

The time at which the component was created, expressed in ISO 8601 + * format.

+ */ + inline DescribeComponentResult& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} + + + /** + *

The publisher of the component version.

+ */ + inline const Aws::String& GetPublisher() const{ return m_publisher; } + + /** + *

The publisher of the component version.

+ */ + inline void SetPublisher(const Aws::String& value) { m_publisher = value; } + + /** + *

The publisher of the component version.

+ */ + inline void SetPublisher(Aws::String&& value) { m_publisher = std::move(value); } + + /** + *

The publisher of the component version.

+ */ + inline void SetPublisher(const char* value) { m_publisher.assign(value); } + + /** + *

The publisher of the component version.

+ */ + inline DescribeComponentResult& WithPublisher(const Aws::String& value) { SetPublisher(value); return *this;} + + /** + *

The publisher of the component version.

+ */ + inline DescribeComponentResult& WithPublisher(Aws::String&& value) { SetPublisher(std::move(value)); return *this;} + + /** + *

The publisher of the component version.

+ */ + inline DescribeComponentResult& WithPublisher(const char* value) { SetPublisher(value); return *this;} + + + /** + *

The description of the component version.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the component version.

+ */ + inline void SetDescription(const Aws::String& value) { m_description = value; } + + /** + *

The description of the component version.

+ */ + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + + /** + *

The description of the component version.

+ */ + inline void SetDescription(const char* value) { m_description.assign(value); } + + /** + *

The description of the component version.

+ */ + inline DescribeComponentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the component version.

+ */ + inline DescribeComponentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the component version.

+ */ + inline DescribeComponentResult& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline const CloudComponentStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline void SetStatus(const CloudComponentStatus& value) { m_status = value; } + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline void SetStatus(CloudComponentStatus&& value) { m_status = std::move(value); } + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline DescribeComponentResult& WithStatus(const CloudComponentStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the component version in AWS IoT Greengrass V2. This status is + * different from the status of the component on a core device.

+ */ + inline DescribeComponentResult& WithStatus(CloudComponentStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The platforms that the component version supports.

+ */ + inline const Aws::Vector& GetPlatforms() const{ return m_platforms; } + + /** + *

The platforms that the component version supports.

+ */ + inline void SetPlatforms(const Aws::Vector& value) { m_platforms = value; } + + /** + *

The platforms that the component version supports.

+ */ + inline void SetPlatforms(Aws::Vector&& value) { m_platforms = std::move(value); } + + /** + *

The platforms that the component version supports.

+ */ + inline DescribeComponentResult& WithPlatforms(const Aws::Vector& value) { SetPlatforms(value); return *this;} + + /** + *

The platforms that the component version supports.

+ */ + inline DescribeComponentResult& WithPlatforms(Aws::Vector&& value) { SetPlatforms(std::move(value)); return *this;} + + /** + *

The platforms that the component version supports.

+ */ + inline DescribeComponentResult& AddPlatforms(const ComponentPlatform& value) { m_platforms.push_back(value); return *this; } + + /** + *

The platforms that the component version supports.

+ */ + inline DescribeComponentResult& AddPlatforms(ComponentPlatform&& value) { m_platforms.push_back(std::move(value)); return *this; } + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline DescribeComponentResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_arn; + + Aws::String m_componentName; + + Aws::String m_componentVersion; + + Aws::Utils::DateTime m_creationTimestamp; + + Aws::String m_publisher; + + Aws::String m_description; + + CloudComponentStatus m_status; + + Aws::Vector m_platforms; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeployment.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeployment.h new file mode 100644 index 00000000000..99dab5f9087 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeployment.h @@ -0,0 +1,533 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a deployment job that AWS IoT Greengrass sends to + * a AWS IoT Greengrass core device.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API EffectiveDeployment + { + public: + EffectiveDeployment(); + EffectiveDeployment(Aws::Utils::Json::JsonView jsonValue); + EffectiveDeployment& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ID of the deployment.

+ */ + inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } + + /** + *

The ID of the deployment.

+ */ + inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } + + /** + *

The ID of the deployment.

+ */ + inline EffectiveDeployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline EffectiveDeployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline EffectiveDeployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} + + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline EffectiveDeployment& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline EffectiveDeployment& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline EffectiveDeployment& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;} + + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline const Aws::String& GetIotJobId() const{ return m_iotJobId; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline bool IotJobIdHasBeenSet() const { return m_iotJobIdHasBeenSet; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(const Aws::String& value) { m_iotJobIdHasBeenSet = true; m_iotJobId = value; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(Aws::String&& value) { m_iotJobIdHasBeenSet = true; m_iotJobId = std::move(value); } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(const char* value) { m_iotJobIdHasBeenSet = true; m_iotJobId.assign(value); } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline EffectiveDeployment& WithIotJobId(const Aws::String& value) { SetIotJobId(value); return *this;} + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline EffectiveDeployment& WithIotJobId(Aws::String&& value) { SetIotJobId(std::move(value)); return *this;} + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline EffectiveDeployment& WithIotJobId(const char* value) { SetIotJobId(value); return *this;} + + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline const Aws::String& GetIotJobArn() const{ return m_iotJobArn; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline bool IotJobArnHasBeenSet() const { return m_iotJobArnHasBeenSet; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(const Aws::String& value) { m_iotJobArnHasBeenSet = true; m_iotJobArn = value; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(Aws::String&& value) { m_iotJobArnHasBeenSet = true; m_iotJobArn = std::move(value); } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(const char* value) { m_iotJobArnHasBeenSet = true; m_iotJobArn.assign(value); } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline EffectiveDeployment& WithIotJobArn(const Aws::String& value) { SetIotJobArn(value); return *this;} + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline EffectiveDeployment& WithIotJobArn(Aws::String&& value) { SetIotJobArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline EffectiveDeployment& WithIotJobArn(const char* value) { SetIotJobArn(value); return *this;} + + + /** + *

The description of the deployment job.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the deployment job.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the deployment job.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the deployment job.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the deployment job.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the deployment job.

+ */ + inline EffectiveDeployment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the deployment job.

+ */ + inline EffectiveDeployment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the deployment job.

+ */ + inline EffectiveDeployment& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline const Aws::String& GetTargetArn() const{ return m_targetArn; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline EffectiveDeployment& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline EffectiveDeployment& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline EffectiveDeployment& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} + + + /** + *

The status of the deployment job on the AWS IoT Greengrass core device.

+ */ + inline const EffectiveDeploymentExecutionStatus& GetCoreDeviceExecutionStatus() const{ return m_coreDeviceExecutionStatus; } + + /** + *

The status of the deployment job on the AWS IoT Greengrass core device.

+ */ + inline bool CoreDeviceExecutionStatusHasBeenSet() const { return m_coreDeviceExecutionStatusHasBeenSet; } + + /** + *

The status of the deployment job on the AWS IoT Greengrass core device.

+ */ + inline void SetCoreDeviceExecutionStatus(const EffectiveDeploymentExecutionStatus& value) { m_coreDeviceExecutionStatusHasBeenSet = true; m_coreDeviceExecutionStatus = value; } + + /** + *

The status of the deployment job on the AWS IoT Greengrass core device.

+ */ + inline void SetCoreDeviceExecutionStatus(EffectiveDeploymentExecutionStatus&& value) { m_coreDeviceExecutionStatusHasBeenSet = true; m_coreDeviceExecutionStatus = std::move(value); } + + /** + *

The status of the deployment job on the AWS IoT Greengrass core device.

+ */ + inline EffectiveDeployment& WithCoreDeviceExecutionStatus(const EffectiveDeploymentExecutionStatus& value) { SetCoreDeviceExecutionStatus(value); return *this;} + + /** + *

The status of the deployment job on the AWS IoT Greengrass core device.

+ */ + inline EffectiveDeployment& WithCoreDeviceExecutionStatus(EffectiveDeploymentExecutionStatus&& value) { SetCoreDeviceExecutionStatus(std::move(value)); return *this;} + + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline const Aws::String& GetReason() const{ return m_reason; } + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline EffectiveDeployment& WithReason(const Aws::String& value) { SetReason(value); return *this;} + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline EffectiveDeployment& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} + + /** + *

The reason code for the update, if the job was updated.

+ */ + inline EffectiveDeployment& WithReason(const char* value) { SetReason(value); return *this;} + + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline EffectiveDeployment& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline EffectiveDeployment& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} + + + /** + *

The time at which the deployment job was last modified, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; } + + /** + *

The time at which the deployment job was last modified, expressed in ISO 8601 + * format.

+ */ + inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; } + + /** + *

The time at which the deployment job was last modified, expressed in ISO 8601 + * format.

+ */ + inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; } + + /** + *

The time at which the deployment job was last modified, expressed in ISO 8601 + * format.

+ */ + inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); } + + /** + *

The time at which the deployment job was last modified, expressed in ISO 8601 + * format.

+ */ + inline EffectiveDeployment& WithModifiedTimestamp(const Aws::Utils::DateTime& value) { SetModifiedTimestamp(value); return *this;} + + /** + *

The time at which the deployment job was last modified, expressed in ISO 8601 + * format.

+ */ + inline EffectiveDeployment& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_deploymentId; + bool m_deploymentIdHasBeenSet; + + Aws::String m_deploymentName; + bool m_deploymentNameHasBeenSet; + + Aws::String m_iotJobId; + bool m_iotJobIdHasBeenSet; + + Aws::String m_iotJobArn; + bool m_iotJobArnHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + Aws::String m_targetArn; + bool m_targetArnHasBeenSet; + + EffectiveDeploymentExecutionStatus m_coreDeviceExecutionStatus; + bool m_coreDeviceExecutionStatusHasBeenSet; + + Aws::String m_reason; + bool m_reasonHasBeenSet; + + Aws::Utils::DateTime m_creationTimestamp; + bool m_creationTimestampHasBeenSet; + + Aws::Utils::DateTime m_modifiedTimestamp; + bool m_modifiedTimestampHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeploymentExecutionStatus.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeploymentExecutionStatus.h new file mode 100644 index 00000000000..95c5a0be75b --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/EffectiveDeploymentExecutionStatus.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class EffectiveDeploymentExecutionStatus + { + NOT_SET, + IN_PROGRESS, + QUEUED, + FAILED, + COMPLETED, + TIMED_OUT, + CANCELED, + REJECTED + }; + +namespace EffectiveDeploymentExecutionStatusMapper +{ +AWS_GREENGRASSV2_API EffectiveDeploymentExecutionStatus GetEffectiveDeploymentExecutionStatusForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForEffectiveDeploymentExecutionStatus(EffectiveDeploymentExecutionStatus value); +} // namespace EffectiveDeploymentExecutionStatusMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentRequest.h new file mode 100644 index 00000000000..32dd3cc6c87 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentRequest.h @@ -0,0 +1,140 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API GetComponentRequest : public GreengrassV2Request + { + public: + GetComponentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetComponent"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The format of the recipe.

+ */ + inline const RecipeOutputFormat& GetRecipeOutputFormat() const{ return m_recipeOutputFormat; } + + /** + *

The format of the recipe.

+ */ + inline bool RecipeOutputFormatHasBeenSet() const { return m_recipeOutputFormatHasBeenSet; } + + /** + *

The format of the recipe.

+ */ + inline void SetRecipeOutputFormat(const RecipeOutputFormat& value) { m_recipeOutputFormatHasBeenSet = true; m_recipeOutputFormat = value; } + + /** + *

The format of the recipe.

+ */ + inline void SetRecipeOutputFormat(RecipeOutputFormat&& value) { m_recipeOutputFormatHasBeenSet = true; m_recipeOutputFormat = std::move(value); } + + /** + *

The format of the recipe.

+ */ + inline GetComponentRequest& WithRecipeOutputFormat(const RecipeOutputFormat& value) { SetRecipeOutputFormat(value); return *this;} + + /** + *

The format of the recipe.

+ */ + inline GetComponentRequest& WithRecipeOutputFormat(RecipeOutputFormat&& value) { SetRecipeOutputFormat(std::move(value)); return *this;} + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline GetComponentRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline GetComponentRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline GetComponentRequest& WithArn(const char* value) { SetArn(value); return *this;} + + private: + + RecipeOutputFormat m_recipeOutputFormat; + bool m_recipeOutputFormatHasBeenSet; + + Aws::String m_arn; + bool m_arnHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentResult.h new file mode 100644 index 00000000000..c5cf367a76f --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentResult.h @@ -0,0 +1,197 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API GetComponentResult + { + public: + GetComponentResult(); + GetComponentResult(const Aws::AmazonWebServiceResult& result); + GetComponentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The format of the recipe.

+ */ + inline const RecipeOutputFormat& GetRecipeOutputFormat() const{ return m_recipeOutputFormat; } + + /** + *

The format of the recipe.

+ */ + inline void SetRecipeOutputFormat(const RecipeOutputFormat& value) { m_recipeOutputFormat = value; } + + /** + *

The format of the recipe.

+ */ + inline void SetRecipeOutputFormat(RecipeOutputFormat&& value) { m_recipeOutputFormat = std::move(value); } + + /** + *

The format of the recipe.

+ */ + inline GetComponentResult& WithRecipeOutputFormat(const RecipeOutputFormat& value) { SetRecipeOutputFormat(value); return *this;} + + /** + *

The format of the recipe.

+ */ + inline GetComponentResult& WithRecipeOutputFormat(RecipeOutputFormat&& value) { SetRecipeOutputFormat(std::move(value)); return *this;} + + + /** + *

The recipe of the component version.

+ */ + inline const Aws::Utils::ByteBuffer& GetRecipe() const{ return m_recipe; } + + /** + *

The recipe of the component version.

+ */ + inline void SetRecipe(const Aws::Utils::ByteBuffer& value) { m_recipe = value; } + + /** + *

The recipe of the component version.

+ */ + inline void SetRecipe(Aws::Utils::ByteBuffer&& value) { m_recipe = std::move(value); } + + /** + *

The recipe of the component version.

+ */ + inline GetComponentResult& WithRecipe(const Aws::Utils::ByteBuffer& value) { SetRecipe(value); return *this;} + + /** + *

The recipe of the component version.

+ */ + inline GetComponentResult& WithRecipe(Aws::Utils::ByteBuffer&& value) { SetRecipe(std::move(value)); return *this;} + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetComponentResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + RecipeOutputFormat m_recipeOutputFormat; + + Aws::Utils::ByteBuffer m_recipe; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactRequest.h new file mode 100644 index 00000000000..aa8a45e12a6 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactRequest.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API GetComponentVersionArtifactRequest : public GreengrassV2Request + { + public: + GetComponentVersionArtifactRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetComponentVersionArtifact"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline GetComponentVersionArtifactRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline GetComponentVersionArtifactRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline GetComponentVersionArtifactRequest& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the artifact.

+ */ + inline const Aws::String& GetArtifactName() const{ return m_artifactName; } + + /** + *

The name of the artifact.

+ */ + inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; } + + /** + *

The name of the artifact.

+ */ + inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; } + + /** + *

The name of the artifact.

+ */ + inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); } + + /** + *

The name of the artifact.

+ */ + inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); } + + /** + *

The name of the artifact.

+ */ + inline GetComponentVersionArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;} + + /** + *

The name of the artifact.

+ */ + inline GetComponentVersionArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;} + + /** + *

The name of the artifact.

+ */ + inline GetComponentVersionArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_artifactName; + bool m_artifactNameHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactResult.h new file mode 100644 index 00000000000..930c961e62a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetComponentVersionArtifactResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API GetComponentVersionArtifactResult + { + public: + GetComponentVersionArtifactResult(); + GetComponentVersionArtifactResult(const Aws::AmazonWebServiceResult& result); + GetComponentVersionArtifactResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The URL to the artifact.

+ */ + inline const Aws::String& GetPreSignedUrl() const{ return m_preSignedUrl; } + + /** + *

The URL to the artifact.

+ */ + inline void SetPreSignedUrl(const Aws::String& value) { m_preSignedUrl = value; } + + /** + *

The URL to the artifact.

+ */ + inline void SetPreSignedUrl(Aws::String&& value) { m_preSignedUrl = std::move(value); } + + /** + *

The URL to the artifact.

+ */ + inline void SetPreSignedUrl(const char* value) { m_preSignedUrl.assign(value); } + + /** + *

The URL to the artifact.

+ */ + inline GetComponentVersionArtifactResult& WithPreSignedUrl(const Aws::String& value) { SetPreSignedUrl(value); return *this;} + + /** + *

The URL to the artifact.

+ */ + inline GetComponentVersionArtifactResult& WithPreSignedUrl(Aws::String&& value) { SetPreSignedUrl(std::move(value)); return *this;} + + /** + *

The URL to the artifact.

+ */ + inline GetComponentVersionArtifactResult& WithPreSignedUrl(const char* value) { SetPreSignedUrl(value); return *this;} + + private: + + Aws::String m_preSignedUrl; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceRequest.h new file mode 100644 index 00000000000..fa6fcb6ca54 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API GetCoreDeviceRequest : public GreengrassV2Request + { + public: + GetCoreDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetCoreDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline GetCoreDeviceRequest& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline GetCoreDeviceRequest& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline GetCoreDeviceRequest& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} + + private: + + Aws::String m_coreDeviceThingName; + bool m_coreDeviceThingNameHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceResult.h new file mode 100644 index 00000000000..d7887b07293 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetCoreDeviceResult.h @@ -0,0 +1,409 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API GetCoreDeviceResult + { + public: + GetCoreDeviceResult(); + GetCoreDeviceResult(const Aws::AmazonWebServiceResult& result); + GetCoreDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingName = value; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingName = std::move(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingName.assign(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline GetCoreDeviceResult& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline GetCoreDeviceResult& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline GetCoreDeviceResult& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} + + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline const Aws::String& GetCoreVersion() const{ return m_coreVersion; } + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetCoreVersion(const Aws::String& value) { m_coreVersion = value; } + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetCoreVersion(Aws::String&& value) { m_coreVersion = std::move(value); } + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline void SetCoreVersion(const char* value) { m_coreVersion.assign(value); } + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline GetCoreDeviceResult& WithCoreVersion(const Aws::String& value) { SetCoreVersion(value); return *this;} + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline GetCoreDeviceResult& WithCoreVersion(Aws::String&& value) { SetCoreVersion(std::move(value)); return *this;} + + /** + *

The version of the AWS IoT Greengrass Core software that the core device + * runs. This version is equivalent to the version of the AWS IoT Greengrass + * nucleus component that runs on the core device. For more information, see the AWS + * IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer + * Guide.

+ */ + inline GetCoreDeviceResult& WithCoreVersion(const char* value) { SetCoreVersion(value); return *this;} + + + /** + *

The operating system platform that the core device runs.

+ */ + inline const Aws::String& GetPlatform() const{ return m_platform; } + + /** + *

The operating system platform that the core device runs.

+ */ + inline void SetPlatform(const Aws::String& value) { m_platform = value; } + + /** + *

The operating system platform that the core device runs.

+ */ + inline void SetPlatform(Aws::String&& value) { m_platform = std::move(value); } + + /** + *

The operating system platform that the core device runs.

+ */ + inline void SetPlatform(const char* value) { m_platform.assign(value); } + + /** + *

The operating system platform that the core device runs.

+ */ + inline GetCoreDeviceResult& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} + + /** + *

The operating system platform that the core device runs.

+ */ + inline GetCoreDeviceResult& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} + + /** + *

The operating system platform that the core device runs.

+ */ + inline GetCoreDeviceResult& WithPlatform(const char* value) { SetPlatform(value); return *this;} + + + /** + *

The computer architecture of the core device.

+ */ + inline const Aws::String& GetArchitecture() const{ return m_architecture; } + + /** + *

The computer architecture of the core device.

+ */ + inline void SetArchitecture(const Aws::String& value) { m_architecture = value; } + + /** + *

The computer architecture of the core device.

+ */ + inline void SetArchitecture(Aws::String&& value) { m_architecture = std::move(value); } + + /** + *

The computer architecture of the core device.

+ */ + inline void SetArchitecture(const char* value) { m_architecture.assign(value); } + + /** + *

The computer architecture of the core device.

+ */ + inline GetCoreDeviceResult& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;} + + /** + *

The computer architecture of the core device.

+ */ + inline GetCoreDeviceResult& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;} + + /** + *

The computer architecture of the core device.

+ */ + inline GetCoreDeviceResult& WithArchitecture(const char* value) { SetArchitecture(value); return *this;} + + + /** + *

The status of the core device. The core device status can be:

  • + *

    HEALTHY – The AWS IoT Greengrass Core software and all + * components run on the core device without issue.

  • + * UNHEALTHY – The AWS IoT Greengrass Core software or a component is + * in a failed state on the core device.

+ */ + inline const CoreDeviceStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the core device. The core device status can be:

  • + *

    HEALTHY – The AWS IoT Greengrass Core software and all + * components run on the core device without issue.

  • + * UNHEALTHY – The AWS IoT Greengrass Core software or a component is + * in a failed state on the core device.

+ */ + inline void SetStatus(const CoreDeviceStatus& value) { m_status = value; } + + /** + *

The status of the core device. The core device status can be:

  • + *

    HEALTHY – The AWS IoT Greengrass Core software and all + * components run on the core device without issue.

  • + * UNHEALTHY – The AWS IoT Greengrass Core software or a component is + * in a failed state on the core device.

+ */ + inline void SetStatus(CoreDeviceStatus&& value) { m_status = std::move(value); } + + /** + *

The status of the core device. The core device status can be:

  • + *

    HEALTHY – The AWS IoT Greengrass Core software and all + * components run on the core device without issue.

  • + * UNHEALTHY – The AWS IoT Greengrass Core software or a component is + * in a failed state on the core device.

+ */ + inline GetCoreDeviceResult& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the core device. The core device status can be:

  • + *

    HEALTHY – The AWS IoT Greengrass Core software and all + * components run on the core device without issue.

  • + * UNHEALTHY – The AWS IoT Greengrass Core software or a component is + * in a failed state on the core device.

+ */ + inline GetCoreDeviceResult& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline const Aws::Utils::DateTime& GetLastStatusUpdateTimestamp() const{ return m_lastStatusUpdateTimestamp; } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline void SetLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastStatusUpdateTimestamp = value; } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline void SetLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastStatusUpdateTimestamp = std::move(value); } + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline GetCoreDeviceResult& WithLastStatusUpdateTimestamp(const Aws::Utils::DateTime& value) { SetLastStatusUpdateTimestamp(value); return *this;} + + /** + *

The time at which the core device's status last updated, expressed in ISO + * 8601 format.

+ */ + inline GetCoreDeviceResult& WithLastStatusUpdateTimestamp(Aws::Utils::DateTime&& value) { SetLastStatusUpdateTimestamp(std::move(value)); return *this;} + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetCoreDeviceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_coreDeviceThingName; + + Aws::String m_coreVersion; + + Aws::String m_platform; + + Aws::String m_architecture; + + CoreDeviceStatus m_status; + + Aws::Utils::DateTime m_lastStatusUpdateTimestamp; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentRequest.h new file mode 100644 index 00000000000..0137e388257 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API GetDeploymentRequest : public GreengrassV2Request + { + public: + GetDeploymentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetDeployment"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the deployment.

+ */ + inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } + + /** + *

The ID of the deployment.

+ */ + inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } + + /** + *

The ID of the deployment.

+ */ + inline GetDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline GetDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline GetDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} + + private: + + Aws::String m_deploymentId; + bool m_deploymentIdHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentResult.h new file mode 100644 index 00000000000..f3b2ce21517 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/GetDeploymentResult.h @@ -0,0 +1,658 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API GetDeploymentResult + { + public: + GetDeploymentResult(); + GetDeploymentResult(const Aws::AmazonWebServiceResult& result); + GetDeploymentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline const Aws::String& GetTargetArn() const{ return m_targetArn; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const Aws::String& value) { m_targetArn = value; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(Aws::String&& value) { m_targetArn = std::move(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const char* value) { m_targetArn.assign(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline GetDeploymentResult& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline GetDeploymentResult& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline GetDeploymentResult& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} + + + /** + *

The revision number of the deployment.

+ */ + inline const Aws::String& GetRevisionId() const{ return m_revisionId; } + + /** + *

The revision number of the deployment.

+ */ + inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } + + /** + *

The revision number of the deployment.

+ */ + inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } + + /** + *

The revision number of the deployment.

+ */ + inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } + + /** + *

The revision number of the deployment.

+ */ + inline GetDeploymentResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} + + /** + *

The revision number of the deployment.

+ */ + inline GetDeploymentResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} + + /** + *

The revision number of the deployment.

+ */ + inline GetDeploymentResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} + + + /** + *

The ID of the deployment.

+ */ + inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const Aws::String& value) { m_deploymentId = value; } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(Aws::String&& value) { m_deploymentId = std::move(value); } + + /** + *

The ID of the deployment.

+ */ + inline void SetDeploymentId(const char* value) { m_deploymentId.assign(value); } + + /** + *

The ID of the deployment.

+ */ + inline GetDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline GetDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} + + /** + *

The ID of the deployment.

+ */ + inline GetDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} + + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline const Aws::String& GetDeploymentName() const{ return m_deploymentName; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const Aws::String& value) { m_deploymentName = value; } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(Aws::String&& value) { m_deploymentName = std::move(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline void SetDeploymentName(const char* value) { m_deploymentName.assign(value); } + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline GetDeploymentResult& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline GetDeploymentResult& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;} + + /** + *

The name of the deployment.

You can create deployments without names. + * If you create a deployment without a name, the AWS IoT Greengrass V2 console + * shows the deployment name as <targetType>:<targetName>, + * where targetType and targetName are the type and name + * of the deployment target.

+ */ + inline GetDeploymentResult& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;} + + + /** + *

The status of the deployment.

+ */ + inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; } + + /** + *

The status of the deployment.

+ */ + inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatus = value; } + + /** + *

The status of the deployment.

+ */ + inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatus = std::move(value); } + + /** + *

The status of the deployment.

+ */ + inline GetDeploymentResult& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;} + + /** + *

The status of the deployment.

+ */ + inline GetDeploymentResult& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;} + + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline const Aws::String& GetIotJobId() const{ return m_iotJobId; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(const Aws::String& value) { m_iotJobId = value; } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(Aws::String&& value) { m_iotJobId = std::move(value); } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobId(const char* value) { m_iotJobId.assign(value); } + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline GetDeploymentResult& WithIotJobId(const Aws::String& value) { SetIotJobId(value); return *this;} + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline GetDeploymentResult& WithIotJobId(Aws::String&& value) { SetIotJobId(std::move(value)); return *this;} + + /** + *

The ID of the AWS IoT job that applies the deployment to target devices.

+ */ + inline GetDeploymentResult& WithIotJobId(const char* value) { SetIotJobId(value); return *this;} + + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline const Aws::String& GetIotJobArn() const{ return m_iotJobArn; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(const Aws::String& value) { m_iotJobArn = value; } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(Aws::String&& value) { m_iotJobArn = std::move(value); } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline void SetIotJobArn(const char* value) { m_iotJobArn.assign(value); } + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline GetDeploymentResult& WithIotJobArn(const Aws::String& value) { SetIotJobArn(value); return *this;} + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline GetDeploymentResult& WithIotJobArn(Aws::String&& value) { SetIotJobArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the AWS IoT job that applies the deployment to target devices.

+ */ + inline GetDeploymentResult& WithIotJobArn(const char* value) { SetIotJobArn(value); return *this;} + + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline const Aws::Map& GetComponents() const{ return m_components; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline void SetComponents(const Aws::Map& value) { m_components = value; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline void SetComponents(Aws::Map&& value) { m_components = std::move(value); } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& WithComponents(const Aws::Map& value) { SetComponents(value); return *this;} + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& WithComponents(Aws::Map&& value) { SetComponents(std::move(value)); return *this;} + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& AddComponents(const Aws::String& key, const ComponentDeploymentSpecification& value) { m_components.emplace(key, value); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& AddComponents(Aws::String&& key, const ComponentDeploymentSpecification& value) { m_components.emplace(std::move(key), value); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& AddComponents(const Aws::String& key, ComponentDeploymentSpecification&& value) { m_components.emplace(key, std::move(value)); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& AddComponents(Aws::String&& key, ComponentDeploymentSpecification&& value) { m_components.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& AddComponents(const char* key, ComponentDeploymentSpecification&& value) { m_components.emplace(key, std::move(value)); return *this; } + + /** + *

The components to deploy. This is a dictionary, where each key is the name of + * a component, and each key's value is the version and configuration to deploy for + * that component.

+ */ + inline GetDeploymentResult& AddComponents(const char* key, const ComponentDeploymentSpecification& value) { m_components.emplace(key, value); return *this; } + + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline const DeploymentPolicies& GetDeploymentPolicies() const{ return m_deploymentPolicies; } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline void SetDeploymentPolicies(const DeploymentPolicies& value) { m_deploymentPolicies = value; } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline void SetDeploymentPolicies(DeploymentPolicies&& value) { m_deploymentPolicies = std::move(value); } + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline GetDeploymentResult& WithDeploymentPolicies(const DeploymentPolicies& value) { SetDeploymentPolicies(value); return *this;} + + /** + *

The deployment policies for the deployment. These policies define how the + * deployment updates components and handles failure.

+ */ + inline GetDeploymentResult& WithDeploymentPolicies(DeploymentPolicies&& value) { SetDeploymentPolicies(std::move(value)); return *this;} + + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const{ return m_iotJobConfiguration; } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline void SetIotJobConfiguration(const DeploymentIoTJobConfiguration& value) { m_iotJobConfiguration = value; } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline void SetIotJobConfiguration(DeploymentIoTJobConfiguration&& value) { m_iotJobConfiguration = std::move(value); } + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline GetDeploymentResult& WithIotJobConfiguration(const DeploymentIoTJobConfiguration& value) { SetIotJobConfiguration(value); return *this;} + + /** + *

The job configuration for the deployment configuration. The job configuration + * specifies the rollout, timeout, and stop configurations for the deployment + * configuration.

+ */ + inline GetDeploymentResult& WithIotJobConfiguration(DeploymentIoTJobConfiguration&& value) { SetIotJobConfiguration(std::move(value)); return *this;} + + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestamp = value; } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestamp = std::move(value); } + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline GetDeploymentResult& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} + + /** + *

The time at which the deployment was created, expressed in ISO 8601 + * format.

+ */ + inline GetDeploymentResult& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} + + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline bool GetIsLatestForTarget() const{ return m_isLatestForTarget; } + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline void SetIsLatestForTarget(bool value) { m_isLatestForTarget = value; } + + /** + *

Whether or not the deployment is the latest revision for its target.

+ */ + inline GetDeploymentResult& WithIsLatestForTarget(bool value) { SetIsLatestForTarget(value); return *this;} + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline GetDeploymentResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_targetArn; + + Aws::String m_revisionId; + + Aws::String m_deploymentId; + + Aws::String m_deploymentName; + + DeploymentStatus m_deploymentStatus; + + Aws::String m_iotJobId; + + Aws::String m_iotJobArn; + + Aws::Map m_components; + + DeploymentPolicies m_deploymentPolicies; + + DeploymentIoTJobConfiguration m_iotJobConfiguration; + + Aws::Utils::DateTime m_creationTimestamp; + + bool m_isLatestForTarget; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponent.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponent.h new file mode 100644 index 00000000000..e653445a1e6 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponent.h @@ -0,0 +1,236 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component on a AWS IoT Greengrass core + * device.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API InstalledComponent + { + public: + InstalledComponent(); + InstalledComponent(Aws::Utils::Json::JsonView jsonValue); + InstalledComponent& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline InstalledComponent& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline InstalledComponent& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline InstalledComponent& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline InstalledComponent& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline InstalledComponent& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline InstalledComponent& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The lifecycle state of the component.

+ */ + inline const InstalledComponentLifecycleState& GetLifecycleState() const{ return m_lifecycleState; } + + /** + *

The lifecycle state of the component.

+ */ + inline bool LifecycleStateHasBeenSet() const { return m_lifecycleStateHasBeenSet; } + + /** + *

The lifecycle state of the component.

+ */ + inline void SetLifecycleState(const InstalledComponentLifecycleState& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = value; } + + /** + *

The lifecycle state of the component.

+ */ + inline void SetLifecycleState(InstalledComponentLifecycleState&& value) { m_lifecycleStateHasBeenSet = true; m_lifecycleState = std::move(value); } + + /** + *

The lifecycle state of the component.

+ */ + inline InstalledComponent& WithLifecycleState(const InstalledComponentLifecycleState& value) { SetLifecycleState(value); return *this;} + + /** + *

The lifecycle state of the component.

+ */ + inline InstalledComponent& WithLifecycleState(InstalledComponentLifecycleState&& value) { SetLifecycleState(std::move(value)); return *this;} + + + /** + *

The details about the lifecycle state of the component.

+ */ + inline const Aws::String& GetLifecycleStateDetails() const{ return m_lifecycleStateDetails; } + + /** + *

The details about the lifecycle state of the component.

+ */ + inline bool LifecycleStateDetailsHasBeenSet() const { return m_lifecycleStateDetailsHasBeenSet; } + + /** + *

The details about the lifecycle state of the component.

+ */ + inline void SetLifecycleStateDetails(const Aws::String& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = value; } + + /** + *

The details about the lifecycle state of the component.

+ */ + inline void SetLifecycleStateDetails(Aws::String&& value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails = std::move(value); } + + /** + *

The details about the lifecycle state of the component.

+ */ + inline void SetLifecycleStateDetails(const char* value) { m_lifecycleStateDetailsHasBeenSet = true; m_lifecycleStateDetails.assign(value); } + + /** + *

The details about the lifecycle state of the component.

+ */ + inline InstalledComponent& WithLifecycleStateDetails(const Aws::String& value) { SetLifecycleStateDetails(value); return *this;} + + /** + *

The details about the lifecycle state of the component.

+ */ + inline InstalledComponent& WithLifecycleStateDetails(Aws::String&& value) { SetLifecycleStateDetails(std::move(value)); return *this;} + + /** + *

The details about the lifecycle state of the component.

+ */ + inline InstalledComponent& WithLifecycleStateDetails(const char* value) { SetLifecycleStateDetails(value); return *this;} + + + /** + *

Whether or not the component is a root component.

+ */ + inline bool GetIsRoot() const{ return m_isRoot; } + + /** + *

Whether or not the component is a root component.

+ */ + inline bool IsRootHasBeenSet() const { return m_isRootHasBeenSet; } + + /** + *

Whether or not the component is a root component.

+ */ + inline void SetIsRoot(bool value) { m_isRootHasBeenSet = true; m_isRoot = value; } + + /** + *

Whether or not the component is a root component.

+ */ + inline InstalledComponent& WithIsRoot(bool value) { SetIsRoot(value); return *this;} + + private: + + Aws::String m_componentName; + bool m_componentNameHasBeenSet; + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + InstalledComponentLifecycleState m_lifecycleState; + bool m_lifecycleStateHasBeenSet; + + Aws::String m_lifecycleStateDetails; + bool m_lifecycleStateDetailsHasBeenSet; + + bool m_isRoot; + bool m_isRootHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponentLifecycleState.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponentLifecycleState.h new file mode 100644 index 00000000000..eb64ad0ba46 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InstalledComponentLifecycleState.h @@ -0,0 +1,37 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class InstalledComponentLifecycleState + { + NOT_SET, + NEW_, + INSTALLED, + STARTING, + RUNNING, + STOPPING, + ERRORED, + BROKEN, + FINISHED + }; + +namespace InstalledComponentLifecycleStateMapper +{ +AWS_GREENGRASSV2_API InstalledComponentLifecycleState GetInstalledComponentLifecycleStateForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForInstalledComponentLifecycleState(InstalledComponentLifecycleState value); +} // namespace InstalledComponentLifecycleStateMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InternalServerException.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InternalServerException.h new file mode 100644 index 00000000000..3333afeda03 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/InternalServerException.h @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

AWS IoT Greengrass can't process your request right now. Try again + * later.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API InternalServerException + { + public: + InternalServerException(); + InternalServerException(Aws::Utils::Json::JsonView jsonValue); + InternalServerException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline InternalServerException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + int m_retryAfterSeconds; + bool m_retryAfterSecondsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortAction.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortAction.h new file mode 100644 index 00000000000..c3bf546c52e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortAction.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class IoTJobAbortAction + { + NOT_SET, + CANCEL + }; + +namespace IoTJobAbortActionMapper +{ +AWS_GREENGRASSV2_API IoTJobAbortAction GetIoTJobAbortActionForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForIoTJobAbortAction(IoTJobAbortAction value); +} // namespace IoTJobAbortActionMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortConfig.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortConfig.h new file mode 100644 index 00000000000..ce5cec10b8e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortConfig.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains a list of criteria that define when and how to cancel a + * configuration deployment.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API IoTJobAbortConfig + { + public: + IoTJobAbortConfig(); + IoTJobAbortConfig(Aws::Utils::Json::JsonView jsonValue); + IoTJobAbortConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline const Aws::Vector& GetCriteriaList() const{ return m_criteriaList; } + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline bool CriteriaListHasBeenSet() const { return m_criteriaListHasBeenSet; } + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline void SetCriteriaList(const Aws::Vector& value) { m_criteriaListHasBeenSet = true; m_criteriaList = value; } + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline void SetCriteriaList(Aws::Vector&& value) { m_criteriaListHasBeenSet = true; m_criteriaList = std::move(value); } + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline IoTJobAbortConfig& WithCriteriaList(const Aws::Vector& value) { SetCriteriaList(value); return *this;} + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline IoTJobAbortConfig& WithCriteriaList(Aws::Vector&& value) { SetCriteriaList(std::move(value)); return *this;} + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline IoTJobAbortConfig& AddCriteriaList(const IoTJobAbortCriteria& value) { m_criteriaListHasBeenSet = true; m_criteriaList.push_back(value); return *this; } + + /** + *

The list of criteria that define when and how to cancel the configuration + * deployment.

+ */ + inline IoTJobAbortConfig& AddCriteriaList(IoTJobAbortCriteria&& value) { m_criteriaListHasBeenSet = true; m_criteriaList.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_criteriaList; + bool m_criteriaListHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortCriteria.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortCriteria.h new file mode 100644 index 00000000000..2c94c6f2cdc --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobAbortCriteria.h @@ -0,0 +1,182 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains criteria that define when and how to cancel a job.

The + * deployment stops if the following conditions are true:

  1. The + * number of things that receive the deployment exceeds the + * minNumberOfExecutedThings.

  2. The percentage of + * failures with type failureType exceeds the + * thresholdPercentage.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API IoTJobAbortCriteria + { + public: + IoTJobAbortCriteria(); + IoTJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue); + IoTJobAbortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The type of job deployment failure that can cancel a job.

+ */ + inline const IoTJobExecutionFailureType& GetFailureType() const{ return m_failureType; } + + /** + *

The type of job deployment failure that can cancel a job.

+ */ + inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; } + + /** + *

The type of job deployment failure that can cancel a job.

+ */ + inline void SetFailureType(const IoTJobExecutionFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; } + + /** + *

The type of job deployment failure that can cancel a job.

+ */ + inline void SetFailureType(IoTJobExecutionFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); } + + /** + *

The type of job deployment failure that can cancel a job.

+ */ + inline IoTJobAbortCriteria& WithFailureType(const IoTJobExecutionFailureType& value) { SetFailureType(value); return *this;} + + /** + *

The type of job deployment failure that can cancel a job.

+ */ + inline IoTJobAbortCriteria& WithFailureType(IoTJobExecutionFailureType&& value) { SetFailureType(std::move(value)); return *this;} + + + /** + *

The action to perform when the criteria are met.

+ */ + inline const IoTJobAbortAction& GetAction() const{ return m_action; } + + /** + *

The action to perform when the criteria are met.

+ */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

The action to perform when the criteria are met.

+ */ + inline void SetAction(const IoTJobAbortAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

The action to perform when the criteria are met.

+ */ + inline void SetAction(IoTJobAbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

The action to perform when the criteria are met.

+ */ + inline IoTJobAbortCriteria& WithAction(const IoTJobAbortAction& value) { SetAction(value); return *this;} + + /** + *

The action to perform when the criteria are met.

+ */ + inline IoTJobAbortCriteria& WithAction(IoTJobAbortAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

The minimum percentage of failureType failures that occur before + * the job can cancel.

This parameter supports up to two digits after the + * decimal (for example, you can specify 10.9 or 10.99, + * but not 10.999).

+ */ + inline double GetThresholdPercentage() const{ return m_thresholdPercentage; } + + /** + *

The minimum percentage of failureType failures that occur before + * the job can cancel.

This parameter supports up to two digits after the + * decimal (for example, you can specify 10.9 or 10.99, + * but not 10.999).

+ */ + inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; } + + /** + *

The minimum percentage of failureType failures that occur before + * the job can cancel.

This parameter supports up to two digits after the + * decimal (for example, you can specify 10.9 or 10.99, + * but not 10.999).

+ */ + inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; } + + /** + *

The minimum percentage of failureType failures that occur before + * the job can cancel.

This parameter supports up to two digits after the + * decimal (for example, you can specify 10.9 or 10.99, + * but not 10.999).

+ */ + inline IoTJobAbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;} + + + /** + *

The minimum number of things that receive the configuration before the job + * can cancel.

+ */ + inline int GetMinNumberOfExecutedThings() const{ return m_minNumberOfExecutedThings; } + + /** + *

The minimum number of things that receive the configuration before the job + * can cancel.

+ */ + inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; } + + /** + *

The minimum number of things that receive the configuration before the job + * can cancel.

+ */ + inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; } + + /** + *

The minimum number of things that receive the configuration before the job + * can cancel.

+ */ + inline IoTJobAbortCriteria& WithMinNumberOfExecutedThings(int value) { SetMinNumberOfExecutedThings(value); return *this;} + + private: + + IoTJobExecutionFailureType m_failureType; + bool m_failureTypeHasBeenSet; + + IoTJobAbortAction m_action; + bool m_actionHasBeenSet; + + double m_thresholdPercentage; + bool m_thresholdPercentageHasBeenSet; + + int m_minNumberOfExecutedThings; + bool m_minNumberOfExecutedThingsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionFailureType.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionFailureType.h new file mode 100644 index 00000000000..c0b824db8fa --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionFailureType.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class IoTJobExecutionFailureType + { + NOT_SET, + FAILED, + REJECTED, + TIMED_OUT, + ALL + }; + +namespace IoTJobExecutionFailureTypeMapper +{ +AWS_GREENGRASSV2_API IoTJobExecutionFailureType GetIoTJobExecutionFailureTypeForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForIoTJobExecutionFailureType(IoTJobExecutionFailureType value); +} // namespace IoTJobExecutionFailureTypeMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionsRolloutConfig.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionsRolloutConfig.h new file mode 100644 index 00000000000..96223798041 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExecutionsRolloutConfig.h @@ -0,0 +1,108 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about the rollout configuration for a job. This + * configuration defines the rate at which the job deploys a configuration to a + * fleet of target devices.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API IoTJobExecutionsRolloutConfig + { + public: + IoTJobExecutionsRolloutConfig(); + IoTJobExecutionsRolloutConfig(Aws::Utils::Json::JsonView jsonValue); + IoTJobExecutionsRolloutConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The exponential rate to increase the job rollout rate.

+ */ + inline const IoTJobExponentialRolloutRate& GetExponentialRate() const{ return m_exponentialRate; } + + /** + *

The exponential rate to increase the job rollout rate.

+ */ + inline bool ExponentialRateHasBeenSet() const { return m_exponentialRateHasBeenSet; } + + /** + *

The exponential rate to increase the job rollout rate.

+ */ + inline void SetExponentialRate(const IoTJobExponentialRolloutRate& value) { m_exponentialRateHasBeenSet = true; m_exponentialRate = value; } + + /** + *

The exponential rate to increase the job rollout rate.

+ */ + inline void SetExponentialRate(IoTJobExponentialRolloutRate&& value) { m_exponentialRateHasBeenSet = true; m_exponentialRate = std::move(value); } + + /** + *

The exponential rate to increase the job rollout rate.

+ */ + inline IoTJobExecutionsRolloutConfig& WithExponentialRate(const IoTJobExponentialRolloutRate& value) { SetExponentialRate(value); return *this;} + + /** + *

The exponential rate to increase the job rollout rate.

+ */ + inline IoTJobExecutionsRolloutConfig& WithExponentialRate(IoTJobExponentialRolloutRate&& value) { SetExponentialRate(std::move(value)); return *this;} + + + /** + *

The maximum number of devices that receive a pending job notification, per + * minute.

+ */ + inline int GetMaximumPerMinute() const{ return m_maximumPerMinute; } + + /** + *

The maximum number of devices that receive a pending job notification, per + * minute.

+ */ + inline bool MaximumPerMinuteHasBeenSet() const { return m_maximumPerMinuteHasBeenSet; } + + /** + *

The maximum number of devices that receive a pending job notification, per + * minute.

+ */ + inline void SetMaximumPerMinute(int value) { m_maximumPerMinuteHasBeenSet = true; m_maximumPerMinute = value; } + + /** + *

The maximum number of devices that receive a pending job notification, per + * minute.

+ */ + inline IoTJobExecutionsRolloutConfig& WithMaximumPerMinute(int value) { SetMaximumPerMinute(value); return *this;} + + private: + + IoTJobExponentialRolloutRate m_exponentialRate; + bool m_exponentialRateHasBeenSet; + + int m_maximumPerMinute; + bool m_maximumPerMinuteHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExponentialRolloutRate.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExponentialRolloutRate.h new file mode 100644 index 00000000000..64864aac27e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobExponentialRolloutRate.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about an exponential rollout rate for a configuration + * deployment job.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API IoTJobExponentialRolloutRate + { + public: + IoTJobExponentialRolloutRate(); + IoTJobExponentialRolloutRate(Aws::Utils::Json::JsonView jsonValue); + IoTJobExponentialRolloutRate& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The minimum number of devices that receive a pending job notification, per + * minute, when the job starts. This parameter defines the initial rollout rate of + * the job.

+ */ + inline int GetBaseRatePerMinute() const{ return m_baseRatePerMinute; } + + /** + *

The minimum number of devices that receive a pending job notification, per + * minute, when the job starts. This parameter defines the initial rollout rate of + * the job.

+ */ + inline bool BaseRatePerMinuteHasBeenSet() const { return m_baseRatePerMinuteHasBeenSet; } + + /** + *

The minimum number of devices that receive a pending job notification, per + * minute, when the job starts. This parameter defines the initial rollout rate of + * the job.

+ */ + inline void SetBaseRatePerMinute(int value) { m_baseRatePerMinuteHasBeenSet = true; m_baseRatePerMinute = value; } + + /** + *

The minimum number of devices that receive a pending job notification, per + * minute, when the job starts. This parameter defines the initial rollout rate of + * the job.

+ */ + inline IoTJobExponentialRolloutRate& WithBaseRatePerMinute(int value) { SetBaseRatePerMinute(value); return *this;} + + + /** + *

The exponential factor to increase the rollout rate for the job.

This + * parameter supports up to one digit after the decimal (for example, you can + * specify 1.5, but not 1.55).

+ */ + inline double GetIncrementFactor() const{ return m_incrementFactor; } + + /** + *

The exponential factor to increase the rollout rate for the job.

This + * parameter supports up to one digit after the decimal (for example, you can + * specify 1.5, but not 1.55).

+ */ + inline bool IncrementFactorHasBeenSet() const { return m_incrementFactorHasBeenSet; } + + /** + *

The exponential factor to increase the rollout rate for the job.

This + * parameter supports up to one digit after the decimal (for example, you can + * specify 1.5, but not 1.55).

+ */ + inline void SetIncrementFactor(double value) { m_incrementFactorHasBeenSet = true; m_incrementFactor = value; } + + /** + *

The exponential factor to increase the rollout rate for the job.

This + * parameter supports up to one digit after the decimal (for example, you can + * specify 1.5, but not 1.55).

+ */ + inline IoTJobExponentialRolloutRate& WithIncrementFactor(double value) { SetIncrementFactor(value); return *this;} + + + /** + *

The criteria to increase the rollout rate for the job.

+ */ + inline const IoTJobRateIncreaseCriteria& GetRateIncreaseCriteria() const{ return m_rateIncreaseCriteria; } + + /** + *

The criteria to increase the rollout rate for the job.

+ */ + inline bool RateIncreaseCriteriaHasBeenSet() const { return m_rateIncreaseCriteriaHasBeenSet; } + + /** + *

The criteria to increase the rollout rate for the job.

+ */ + inline void SetRateIncreaseCriteria(const IoTJobRateIncreaseCriteria& value) { m_rateIncreaseCriteriaHasBeenSet = true; m_rateIncreaseCriteria = value; } + + /** + *

The criteria to increase the rollout rate for the job.

+ */ + inline void SetRateIncreaseCriteria(IoTJobRateIncreaseCriteria&& value) { m_rateIncreaseCriteriaHasBeenSet = true; m_rateIncreaseCriteria = std::move(value); } + + /** + *

The criteria to increase the rollout rate for the job.

+ */ + inline IoTJobExponentialRolloutRate& WithRateIncreaseCriteria(const IoTJobRateIncreaseCriteria& value) { SetRateIncreaseCriteria(value); return *this;} + + /** + *

The criteria to increase the rollout rate for the job.

+ */ + inline IoTJobExponentialRolloutRate& WithRateIncreaseCriteria(IoTJobRateIncreaseCriteria&& value) { SetRateIncreaseCriteria(std::move(value)); return *this;} + + private: + + int m_baseRatePerMinute; + bool m_baseRatePerMinuteHasBeenSet; + + double m_incrementFactor; + bool m_incrementFactorHasBeenSet; + + IoTJobRateIncreaseCriteria m_rateIncreaseCriteria; + bool m_rateIncreaseCriteriaHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobRateIncreaseCriteria.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobRateIncreaseCriteria.h new file mode 100644 index 00000000000..392ab75f6e1 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobRateIncreaseCriteria.h @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about criteria to meet before a job increases its + * rollout rate. Specify either numberOfNotifiedThings or + * numberOfSucceededThings.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API IoTJobRateIncreaseCriteria + { + public: + IoTJobRateIncreaseCriteria(); + IoTJobRateIncreaseCriteria(Aws::Utils::Json::JsonView jsonValue); + IoTJobRateIncreaseCriteria& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The number of devices to receive the job notification before the rollout rate + * increases.

+ */ + inline int GetNumberOfNotifiedThings() const{ return m_numberOfNotifiedThings; } + + /** + *

The number of devices to receive the job notification before the rollout rate + * increases.

+ */ + inline bool NumberOfNotifiedThingsHasBeenSet() const { return m_numberOfNotifiedThingsHasBeenSet; } + + /** + *

The number of devices to receive the job notification before the rollout rate + * increases.

+ */ + inline void SetNumberOfNotifiedThings(int value) { m_numberOfNotifiedThingsHasBeenSet = true; m_numberOfNotifiedThings = value; } + + /** + *

The number of devices to receive the job notification before the rollout rate + * increases.

+ */ + inline IoTJobRateIncreaseCriteria& WithNumberOfNotifiedThings(int value) { SetNumberOfNotifiedThings(value); return *this;} + + + /** + *

The number of devices to successfully run the configuration job before the + * rollout rate increases.

+ */ + inline int GetNumberOfSucceededThings() const{ return m_numberOfSucceededThings; } + + /** + *

The number of devices to successfully run the configuration job before the + * rollout rate increases.

+ */ + inline bool NumberOfSucceededThingsHasBeenSet() const { return m_numberOfSucceededThingsHasBeenSet; } + + /** + *

The number of devices to successfully run the configuration job before the + * rollout rate increases.

+ */ + inline void SetNumberOfSucceededThings(int value) { m_numberOfSucceededThingsHasBeenSet = true; m_numberOfSucceededThings = value; } + + /** + *

The number of devices to successfully run the configuration job before the + * rollout rate increases.

+ */ + inline IoTJobRateIncreaseCriteria& WithNumberOfSucceededThings(int value) { SetNumberOfSucceededThings(value); return *this;} + + private: + + int m_numberOfNotifiedThings; + bool m_numberOfNotifiedThingsHasBeenSet; + + int m_numberOfSucceededThings; + bool m_numberOfSucceededThingsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobTimeoutConfig.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobTimeoutConfig.h new file mode 100644 index 00000000000..73c0605f7b9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/IoTJobTimeoutConfig.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about the timeout configuration for a job.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API IoTJobTimeoutConfig + { + public: + IoTJobTimeoutConfig(); + IoTJobTimeoutConfig(Aws::Utils::Json::JsonView jsonValue); + IoTJobTimeoutConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The amount of time, in minutes, that devices have to complete the job. The + * timer starts when the job status is set to IN_PROGRESS. If the job + * status doesn't change to a terminal state before the time expires, then the job + * status is set to TIMED_OUT.

The timeout interval must be + * between 1 minute and 7 days (10080 minutes).

+ */ + inline long long GetInProgressTimeoutInMinutes() const{ return m_inProgressTimeoutInMinutes; } + + /** + *

The amount of time, in minutes, that devices have to complete the job. The + * timer starts when the job status is set to IN_PROGRESS. If the job + * status doesn't change to a terminal state before the time expires, then the job + * status is set to TIMED_OUT.

The timeout interval must be + * between 1 minute and 7 days (10080 minutes).

+ */ + inline bool InProgressTimeoutInMinutesHasBeenSet() const { return m_inProgressTimeoutInMinutesHasBeenSet; } + + /** + *

The amount of time, in minutes, that devices have to complete the job. The + * timer starts when the job status is set to IN_PROGRESS. If the job + * status doesn't change to a terminal state before the time expires, then the job + * status is set to TIMED_OUT.

The timeout interval must be + * between 1 minute and 7 days (10080 minutes).

+ */ + inline void SetInProgressTimeoutInMinutes(long long value) { m_inProgressTimeoutInMinutesHasBeenSet = true; m_inProgressTimeoutInMinutes = value; } + + /** + *

The amount of time, in minutes, that devices have to complete the job. The + * timer starts when the job status is set to IN_PROGRESS. If the job + * status doesn't change to a terminal state before the time expires, then the job + * status is set to TIMED_OUT.

The timeout interval must be + * between 1 minute and 7 days (10080 minutes).

+ */ + inline IoTJobTimeoutConfig& WithInProgressTimeoutInMinutes(long long value) { SetInProgressTimeoutInMinutes(value); return *this;} + + private: + + long long m_inProgressTimeoutInMinutes; + bool m_inProgressTimeoutInMinutesHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaContainerParams.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaContainerParams.h new file mode 100644 index 00000000000..b6e3a8d10e3 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaContainerParams.h @@ -0,0 +1,191 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a container in which AWS Lambda functions run on + * AWS IoT Greengrass core devices.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaContainerParams + { + public: + LambdaContainerParams(); + LambdaContainerParams(Aws::Utils::Json::JsonView jsonValue); + LambdaContainerParams& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The memory size of the container, expressed in kilobytes.

Default: + * 16384 (16 MB)

+ */ + inline int GetMemorySizeInKB() const{ return m_memorySizeInKB; } + + /** + *

The memory size of the container, expressed in kilobytes.

Default: + * 16384 (16 MB)

+ */ + inline bool MemorySizeInKBHasBeenSet() const { return m_memorySizeInKBHasBeenSet; } + + /** + *

The memory size of the container, expressed in kilobytes.

Default: + * 16384 (16 MB)

+ */ + inline void SetMemorySizeInKB(int value) { m_memorySizeInKBHasBeenSet = true; m_memorySizeInKB = value; } + + /** + *

The memory size of the container, expressed in kilobytes.

Default: + * 16384 (16 MB)

+ */ + inline LambdaContainerParams& WithMemorySizeInKB(int value) { SetMemorySizeInKB(value); return *this;} + + + /** + *

Whether or not the container can read information from the device's + * /sys folder.

Default: false

+ */ + inline bool GetMountROSysfs() const{ return m_mountROSysfs; } + + /** + *

Whether or not the container can read information from the device's + * /sys folder.

Default: false

+ */ + inline bool MountROSysfsHasBeenSet() const { return m_mountROSysfsHasBeenSet; } + + /** + *

Whether or not the container can read information from the device's + * /sys folder.

Default: false

+ */ + inline void SetMountROSysfs(bool value) { m_mountROSysfsHasBeenSet = true; m_mountROSysfs = value; } + + /** + *

Whether or not the container can read information from the device's + * /sys folder.

Default: false

+ */ + inline LambdaContainerParams& WithMountROSysfs(bool value) { SetMountROSysfs(value); return *this;} + + + /** + *

The list of volumes that the container can access.

+ */ + inline const Aws::Vector& GetVolumes() const{ return m_volumes; } + + /** + *

The list of volumes that the container can access.

+ */ + inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; } + + /** + *

The list of volumes that the container can access.

+ */ + inline void SetVolumes(const Aws::Vector& value) { m_volumesHasBeenSet = true; m_volumes = value; } + + /** + *

The list of volumes that the container can access.

+ */ + inline void SetVolumes(Aws::Vector&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); } + + /** + *

The list of volumes that the container can access.

+ */ + inline LambdaContainerParams& WithVolumes(const Aws::Vector& value) { SetVolumes(value); return *this;} + + /** + *

The list of volumes that the container can access.

+ */ + inline LambdaContainerParams& WithVolumes(Aws::Vector&& value) { SetVolumes(std::move(value)); return *this;} + + /** + *

The list of volumes that the container can access.

+ */ + inline LambdaContainerParams& AddVolumes(const LambdaVolumeMount& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; } + + /** + *

The list of volumes that the container can access.

+ */ + inline LambdaContainerParams& AddVolumes(LambdaVolumeMount&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; } + + + /** + *

The list of system devices that the container can access.

+ */ + inline const Aws::Vector& GetDevices() const{ return m_devices; } + + /** + *

The list of system devices that the container can access.

+ */ + inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; } + + /** + *

The list of system devices that the container can access.

+ */ + inline void SetDevices(const Aws::Vector& value) { m_devicesHasBeenSet = true; m_devices = value; } + + /** + *

The list of system devices that the container can access.

+ */ + inline void SetDevices(Aws::Vector&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); } + + /** + *

The list of system devices that the container can access.

+ */ + inline LambdaContainerParams& WithDevices(const Aws::Vector& value) { SetDevices(value); return *this;} + + /** + *

The list of system devices that the container can access.

+ */ + inline LambdaContainerParams& WithDevices(Aws::Vector&& value) { SetDevices(std::move(value)); return *this;} + + /** + *

The list of system devices that the container can access.

+ */ + inline LambdaContainerParams& AddDevices(const LambdaDeviceMount& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; } + + /** + *

The list of system devices that the container can access.

+ */ + inline LambdaContainerParams& AddDevices(LambdaDeviceMount&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; } + + private: + + int m_memorySizeInKB; + bool m_memorySizeInKBHasBeenSet; + + bool m_mountROSysfs; + bool m_mountROSysfsHasBeenSet; + + Aws::Vector m_volumes; + bool m_volumesHasBeenSet; + + Aws::Vector m_devices; + bool m_devicesHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaDeviceMount.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaDeviceMount.h new file mode 100644 index 00000000000..1ac1022dc95 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaDeviceMount.h @@ -0,0 +1,158 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a device that Linux processes in a container can + * access.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaDeviceMount + { + public: + LambdaDeviceMount(); + LambdaDeviceMount(Aws::Utils::Json::JsonView jsonValue); + LambdaDeviceMount& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The mount path for the device in the file system.

+ */ + inline const Aws::String& GetPath() const{ return m_path; } + + /** + *

The mount path for the device in the file system.

+ */ + inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } + + /** + *

The mount path for the device in the file system.

+ */ + inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } + + /** + *

The mount path for the device in the file system.

+ */ + inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } + + /** + *

The mount path for the device in the file system.

+ */ + inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } + + /** + *

The mount path for the device in the file system.

+ */ + inline LambdaDeviceMount& WithPath(const Aws::String& value) { SetPath(value); return *this;} + + /** + *

The mount path for the device in the file system.

+ */ + inline LambdaDeviceMount& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} + + /** + *

The mount path for the device in the file system.

+ */ + inline LambdaDeviceMount& WithPath(const char* value) { SetPath(value); return *this;} + + + /** + *

The permission to access the device: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline const LambdaFilesystemPermission& GetPermission() const{ return m_permission; } + + /** + *

The permission to access the device: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } + + /** + *

The permission to access the device: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline void SetPermission(const LambdaFilesystemPermission& value) { m_permissionHasBeenSet = true; m_permission = value; } + + /** + *

The permission to access the device: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline void SetPermission(LambdaFilesystemPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } + + /** + *

The permission to access the device: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline LambdaDeviceMount& WithPermission(const LambdaFilesystemPermission& value) { SetPermission(value); return *this;} + + /** + *

The permission to access the device: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline LambdaDeviceMount& WithPermission(LambdaFilesystemPermission&& value) { SetPermission(std::move(value)); return *this;} + + + /** + *

Whether or not to add the component's system user as an owner of the + * device.

Default: false

+ */ + inline bool GetAddGroupOwner() const{ return m_addGroupOwner; } + + /** + *

Whether or not to add the component's system user as an owner of the + * device.

Default: false

+ */ + inline bool AddGroupOwnerHasBeenSet() const { return m_addGroupOwnerHasBeenSet; } + + /** + *

Whether or not to add the component's system user as an owner of the + * device.

Default: false

+ */ + inline void SetAddGroupOwner(bool value) { m_addGroupOwnerHasBeenSet = true; m_addGroupOwner = value; } + + /** + *

Whether or not to add the component's system user as an owner of the + * device.

Default: false

+ */ + inline LambdaDeviceMount& WithAddGroupOwner(bool value) { SetAddGroupOwner(value); return *this;} + + private: + + Aws::String m_path; + bool m_pathHasBeenSet; + + LambdaFilesystemPermission m_permission; + bool m_permissionHasBeenSet; + + bool m_addGroupOwner; + bool m_addGroupOwnerHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSource.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSource.h new file mode 100644 index 00000000000..4a497b70e43 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSource.h @@ -0,0 +1,161 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about an event source for an AWS Lambda function. The + * event source defines the topics on which this Lambda function subscribes to + * receive messages that run the function.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaEventSource + { + public: + LambdaEventSource(); + LambdaEventSource(Aws::Utils::Json::JsonView jsonValue); + LambdaEventSource& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline const Aws::String& GetTopic() const{ return m_topic; } + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline LambdaEventSource& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline LambdaEventSource& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} + + /** + *

The topic to which to subscribe to receive event messages.

+ */ + inline LambdaEventSource& WithTopic(const char* value) { SetTopic(value); return *this;} + + + /** + *

The type of event source. Choose from the following options:

  • + *

    PUB_SUB – Subscribe to local publish/subscribe messages. This + * event source type doesn't support MQTT wildcards (+ and + * #) in the event source topic.

  • + * IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event + * source type supports MQTT wildcards (+ and #) in the + * event source topic.

+ */ + inline const LambdaEventSourceType& GetType() const{ return m_type; } + + /** + *

The type of event source. Choose from the following options:

  • + *

    PUB_SUB – Subscribe to local publish/subscribe messages. This + * event source type doesn't support MQTT wildcards (+ and + * #) in the event source topic.

  • + * IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event + * source type supports MQTT wildcards (+ and #) in the + * event source topic.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The type of event source. Choose from the following options:

  • + *

    PUB_SUB – Subscribe to local publish/subscribe messages. This + * event source type doesn't support MQTT wildcards (+ and + * #) in the event source topic.

  • + * IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event + * source type supports MQTT wildcards (+ and #) in the + * event source topic.

+ */ + inline void SetType(const LambdaEventSourceType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The type of event source. Choose from the following options:

  • + *

    PUB_SUB – Subscribe to local publish/subscribe messages. This + * event source type doesn't support MQTT wildcards (+ and + * #) in the event source topic.

  • + * IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event + * source type supports MQTT wildcards (+ and #) in the + * event source topic.

+ */ + inline void SetType(LambdaEventSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The type of event source. Choose from the following options:

  • + *

    PUB_SUB – Subscribe to local publish/subscribe messages. This + * event source type doesn't support MQTT wildcards (+ and + * #) in the event source topic.

  • + * IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event + * source type supports MQTT wildcards (+ and #) in the + * event source topic.

+ */ + inline LambdaEventSource& WithType(const LambdaEventSourceType& value) { SetType(value); return *this;} + + /** + *

The type of event source. Choose from the following options:

  • + *

    PUB_SUB – Subscribe to local publish/subscribe messages. This + * event source type doesn't support MQTT wildcards (+ and + * #) in the event source topic.

  • + * IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event + * source type supports MQTT wildcards (+ and #) in the + * event source topic.

+ */ + inline LambdaEventSource& WithType(LambdaEventSourceType&& value) { SetType(std::move(value)); return *this;} + + private: + + Aws::String m_topic; + bool m_topicHasBeenSet; + + LambdaEventSourceType m_type; + bool m_typeHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSourceType.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSourceType.h new file mode 100644 index 00000000000..c8a22e94f67 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaEventSourceType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class LambdaEventSourceType + { + NOT_SET, + PUB_SUB, + IOT_CORE + }; + +namespace LambdaEventSourceTypeMapper +{ +AWS_GREENGRASSV2_API LambdaEventSourceType GetLambdaEventSourceTypeForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForLambdaEventSourceType(LambdaEventSourceType value); +} // namespace LambdaEventSourceTypeMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaExecutionParameters.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaExecutionParameters.h new file mode 100644 index 00000000000..fdaa476147a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaExecutionParameters.h @@ -0,0 +1,515 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains parameters for a Lambda function that runs on AWS IoT + * Greengrass.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaExecutionParameters + { + public: + LambdaExecutionParameters(); + LambdaExecutionParameters(Aws::Utils::Json::JsonView jsonValue); + LambdaExecutionParameters& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline const Aws::Vector& GetEventSources() const{ return m_eventSources; } + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline bool EventSourcesHasBeenSet() const { return m_eventSourcesHasBeenSet; } + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline void SetEventSources(const Aws::Vector& value) { m_eventSourcesHasBeenSet = true; m_eventSources = value; } + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline void SetEventSources(Aws::Vector&& value) { m_eventSourcesHasBeenSet = true; m_eventSources = std::move(value); } + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline LambdaExecutionParameters& WithEventSources(const Aws::Vector& value) { SetEventSources(value); return *this;} + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline LambdaExecutionParameters& WithEventSources(Aws::Vector&& value) { SetEventSources(std::move(value)); return *this;} + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline LambdaExecutionParameters& AddEventSources(const LambdaEventSource& value) { m_eventSourcesHasBeenSet = true; m_eventSources.push_back(value); return *this; } + + /** + *

The list of event sources to which to subscribe to receive work messages. The + * Lambda function runs when it receives a message from an event source. You can + * subscribe this function to local publish/subscribe messages and AWS IoT Core + * MQTT messages.

+ */ + inline LambdaExecutionParameters& AddEventSources(LambdaEventSource&& value) { m_eventSourcesHasBeenSet = true; m_eventSources.push_back(std::move(value)); return *this; } + + + /** + *

The maximum size of the message queue for the Lambda function component. The + * AWS IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue + * until it can run the Lambda function to consume each message.

+ */ + inline int GetMaxQueueSize() const{ return m_maxQueueSize; } + + /** + *

The maximum size of the message queue for the Lambda function component. The + * AWS IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue + * until it can run the Lambda function to consume each message.

+ */ + inline bool MaxQueueSizeHasBeenSet() const { return m_maxQueueSizeHasBeenSet; } + + /** + *

The maximum size of the message queue for the Lambda function component. The + * AWS IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue + * until it can run the Lambda function to consume each message.

+ */ + inline void SetMaxQueueSize(int value) { m_maxQueueSizeHasBeenSet = true; m_maxQueueSize = value; } + + /** + *

The maximum size of the message queue for the Lambda function component. The + * AWS IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue + * until it can run the Lambda function to consume each message.

+ */ + inline LambdaExecutionParameters& WithMaxQueueSize(int value) { SetMaxQueueSize(value); return *this;} + + + /** + *

The maximum number of instances that a non-pinned Lambda function can run at + * the same time.

+ */ + inline int GetMaxInstancesCount() const{ return m_maxInstancesCount; } + + /** + *

The maximum number of instances that a non-pinned Lambda function can run at + * the same time.

+ */ + inline bool MaxInstancesCountHasBeenSet() const { return m_maxInstancesCountHasBeenSet; } + + /** + *

The maximum number of instances that a non-pinned Lambda function can run at + * the same time.

+ */ + inline void SetMaxInstancesCount(int value) { m_maxInstancesCountHasBeenSet = true; m_maxInstancesCount = value; } + + /** + *

The maximum number of instances that a non-pinned Lambda function can run at + * the same time.

+ */ + inline LambdaExecutionParameters& WithMaxInstancesCount(int value) { SetMaxInstancesCount(value); return *this;} + + + /** + *

The maximum amount of time in seconds that a non-pinned Lambda function can + * idle before the AWS IoT Greengrass Core software stops its process.

+ */ + inline int GetMaxIdleTimeInSeconds() const{ return m_maxIdleTimeInSeconds; } + + /** + *

The maximum amount of time in seconds that a non-pinned Lambda function can + * idle before the AWS IoT Greengrass Core software stops its process.

+ */ + inline bool MaxIdleTimeInSecondsHasBeenSet() const { return m_maxIdleTimeInSecondsHasBeenSet; } + + /** + *

The maximum amount of time in seconds that a non-pinned Lambda function can + * idle before the AWS IoT Greengrass Core software stops its process.

+ */ + inline void SetMaxIdleTimeInSeconds(int value) { m_maxIdleTimeInSecondsHasBeenSet = true; m_maxIdleTimeInSeconds = value; } + + /** + *

The maximum amount of time in seconds that a non-pinned Lambda function can + * idle before the AWS IoT Greengrass Core software stops its process.

+ */ + inline LambdaExecutionParameters& WithMaxIdleTimeInSeconds(int value) { SetMaxIdleTimeInSeconds(value); return *this;} + + + /** + *

The maximum amount of time in seconds that the Lambda function can process a + * work item.

+ */ + inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; } + + /** + *

The maximum amount of time in seconds that the Lambda function can process a + * work item.

+ */ + inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; } + + /** + *

The maximum amount of time in seconds that the Lambda function can process a + * work item.

+ */ + inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; } + + /** + *

The maximum amount of time in seconds that the Lambda function can process a + * work item.

+ */ + inline LambdaExecutionParameters& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;} + + + /** + *

The interval in seconds at which a pinned (also known as long-lived) Lambda + * function component sends status updates to the Lambda manager component.

+ */ + inline int GetStatusTimeoutInSeconds() const{ return m_statusTimeoutInSeconds; } + + /** + *

The interval in seconds at which a pinned (also known as long-lived) Lambda + * function component sends status updates to the Lambda manager component.

+ */ + inline bool StatusTimeoutInSecondsHasBeenSet() const { return m_statusTimeoutInSecondsHasBeenSet; } + + /** + *

The interval in seconds at which a pinned (also known as long-lived) Lambda + * function component sends status updates to the Lambda manager component.

+ */ + inline void SetStatusTimeoutInSeconds(int value) { m_statusTimeoutInSecondsHasBeenSet = true; m_statusTimeoutInSeconds = value; } + + /** + *

The interval in seconds at which a pinned (also known as long-lived) Lambda + * function component sends status updates to the Lambda manager component.

+ */ + inline LambdaExecutionParameters& WithStatusTimeoutInSeconds(int value) { SetStatusTimeoutInSeconds(value); return *this;} + + + /** + *

Whether or not the Lambda function is pinned, or long-lived.

  • + *

    A pinned Lambda function starts when AWS IoT Greengrass starts and keeps + * running in its own container.

  • A non-pinned Lambda function + * starts only when it receives a work item and exists after it idles for + * maxIdleTimeInSeconds. If the function has multiple work items, the + * AWS IoT Greengrass Core software creates multiple instances of the function.

    + *

Default: true

+ */ + inline bool GetPinned() const{ return m_pinned; } + + /** + *

Whether or not the Lambda function is pinned, or long-lived.

  • + *

    A pinned Lambda function starts when AWS IoT Greengrass starts and keeps + * running in its own container.

  • A non-pinned Lambda function + * starts only when it receives a work item and exists after it idles for + * maxIdleTimeInSeconds. If the function has multiple work items, the + * AWS IoT Greengrass Core software creates multiple instances of the function.

    + *

Default: true

+ */ + inline bool PinnedHasBeenSet() const { return m_pinnedHasBeenSet; } + + /** + *

Whether or not the Lambda function is pinned, or long-lived.

  • + *

    A pinned Lambda function starts when AWS IoT Greengrass starts and keeps + * running in its own container.

  • A non-pinned Lambda function + * starts only when it receives a work item and exists after it idles for + * maxIdleTimeInSeconds. If the function has multiple work items, the + * AWS IoT Greengrass Core software creates multiple instances of the function.

    + *

Default: true

+ */ + inline void SetPinned(bool value) { m_pinnedHasBeenSet = true; m_pinned = value; } + + /** + *

Whether or not the Lambda function is pinned, or long-lived.

  • + *

    A pinned Lambda function starts when AWS IoT Greengrass starts and keeps + * running in its own container.

  • A non-pinned Lambda function + * starts only when it receives a work item and exists after it idles for + * maxIdleTimeInSeconds. If the function has multiple work items, the + * AWS IoT Greengrass Core software creates multiple instances of the function.

    + *

Default: true

+ */ + inline LambdaExecutionParameters& WithPinned(bool value) { SetPinned(value); return *this;} + + + /** + *

The encoding type that the Lambda function supports.

Default: + * json

+ */ + inline const LambdaInputPayloadEncodingType& GetInputPayloadEncodingType() const{ return m_inputPayloadEncodingType; } + + /** + *

The encoding type that the Lambda function supports.

Default: + * json

+ */ + inline bool InputPayloadEncodingTypeHasBeenSet() const { return m_inputPayloadEncodingTypeHasBeenSet; } + + /** + *

The encoding type that the Lambda function supports.

Default: + * json

+ */ + inline void SetInputPayloadEncodingType(const LambdaInputPayloadEncodingType& value) { m_inputPayloadEncodingTypeHasBeenSet = true; m_inputPayloadEncodingType = value; } + + /** + *

The encoding type that the Lambda function supports.

Default: + * json

+ */ + inline void SetInputPayloadEncodingType(LambdaInputPayloadEncodingType&& value) { m_inputPayloadEncodingTypeHasBeenSet = true; m_inputPayloadEncodingType = std::move(value); } + + /** + *

The encoding type that the Lambda function supports.

Default: + * json

+ */ + inline LambdaExecutionParameters& WithInputPayloadEncodingType(const LambdaInputPayloadEncodingType& value) { SetInputPayloadEncodingType(value); return *this;} + + /** + *

The encoding type that the Lambda function supports.

Default: + * json

+ */ + inline LambdaExecutionParameters& WithInputPayloadEncodingType(LambdaInputPayloadEncodingType&& value) { SetInputPayloadEncodingType(std::move(value)); return *this;} + + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline const Aws::Vector& GetExecArgs() const{ return m_execArgs; } + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; } + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline void SetExecArgs(const Aws::Vector& value) { m_execArgsHasBeenSet = true; m_execArgs = value; } + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline void SetExecArgs(Aws::Vector&& value) { m_execArgsHasBeenSet = true; m_execArgs = std::move(value); } + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline LambdaExecutionParameters& WithExecArgs(const Aws::Vector& value) { SetExecArgs(value); return *this;} + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline LambdaExecutionParameters& WithExecArgs(Aws::Vector&& value) { SetExecArgs(std::move(value)); return *this;} + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline LambdaExecutionParameters& AddExecArgs(const Aws::String& value) { m_execArgsHasBeenSet = true; m_execArgs.push_back(value); return *this; } + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline LambdaExecutionParameters& AddExecArgs(Aws::String&& value) { m_execArgsHasBeenSet = true; m_execArgs.push_back(std::move(value)); return *this; } + + /** + *

The list of arguments to pass to the Lambda function when it runs.

+ */ + inline LambdaExecutionParameters& AddExecArgs(const char* value) { m_execArgsHasBeenSet = true; m_execArgs.push_back(value); return *this; } + + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline const Aws::Map& GetEnvironmentVariables() const{ return m_environmentVariables; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline void SetEnvironmentVariables(const Aws::Map& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline void SetEnvironmentVariables(Aws::Map&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& WithEnvironmentVariables(const Aws::Map& value) { SetEnvironmentVariables(value); return *this;} + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& WithEnvironmentVariables(Aws::Map&& value) { SetEnvironmentVariables(std::move(value)); return *this;} + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; } + + /** + *

The map of environment variables that are available to the Lambda function + * when it runs.

+ */ + inline LambdaExecutionParameters& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; } + + + /** + *

The parameters for the Linux process that contains the Lambda function.

+ */ + inline const LambdaLinuxProcessParams& GetLinuxProcessParams() const{ return m_linuxProcessParams; } + + /** + *

The parameters for the Linux process that contains the Lambda function.

+ */ + inline bool LinuxProcessParamsHasBeenSet() const { return m_linuxProcessParamsHasBeenSet; } + + /** + *

The parameters for the Linux process that contains the Lambda function.

+ */ + inline void SetLinuxProcessParams(const LambdaLinuxProcessParams& value) { m_linuxProcessParamsHasBeenSet = true; m_linuxProcessParams = value; } + + /** + *

The parameters for the Linux process that contains the Lambda function.

+ */ + inline void SetLinuxProcessParams(LambdaLinuxProcessParams&& value) { m_linuxProcessParamsHasBeenSet = true; m_linuxProcessParams = std::move(value); } + + /** + *

The parameters for the Linux process that contains the Lambda function.

+ */ + inline LambdaExecutionParameters& WithLinuxProcessParams(const LambdaLinuxProcessParams& value) { SetLinuxProcessParams(value); return *this;} + + /** + *

The parameters for the Linux process that contains the Lambda function.

+ */ + inline LambdaExecutionParameters& WithLinuxProcessParams(LambdaLinuxProcessParams&& value) { SetLinuxProcessParams(std::move(value)); return *this;} + + private: + + Aws::Vector m_eventSources; + bool m_eventSourcesHasBeenSet; + + int m_maxQueueSize; + bool m_maxQueueSizeHasBeenSet; + + int m_maxInstancesCount; + bool m_maxInstancesCountHasBeenSet; + + int m_maxIdleTimeInSeconds; + bool m_maxIdleTimeInSecondsHasBeenSet; + + int m_timeoutInSeconds; + bool m_timeoutInSecondsHasBeenSet; + + int m_statusTimeoutInSeconds; + bool m_statusTimeoutInSecondsHasBeenSet; + + bool m_pinned; + bool m_pinnedHasBeenSet; + + LambdaInputPayloadEncodingType m_inputPayloadEncodingType; + bool m_inputPayloadEncodingTypeHasBeenSet; + + Aws::Vector m_execArgs; + bool m_execArgsHasBeenSet; + + Aws::Map m_environmentVariables; + bool m_environmentVariablesHasBeenSet; + + LambdaLinuxProcessParams m_linuxProcessParams; + bool m_linuxProcessParamsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFilesystemPermission.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFilesystemPermission.h new file mode 100644 index 00000000000..8e2d65b859a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFilesystemPermission.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class LambdaFilesystemPermission + { + NOT_SET, + ro, + rw + }; + +namespace LambdaFilesystemPermissionMapper +{ +AWS_GREENGRASSV2_API LambdaFilesystemPermission GetLambdaFilesystemPermissionForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForLambdaFilesystemPermission(LambdaFilesystemPermission value); +} // namespace LambdaFilesystemPermissionMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFunctionRecipeSource.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFunctionRecipeSource.h new file mode 100644 index 00000000000..5f801e2bf82 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaFunctionRecipeSource.h @@ -0,0 +1,378 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about an AWS Lambda function to import to create a + * component.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaFunctionRecipeSource + { + public: + LambdaFunctionRecipeSource(); + LambdaFunctionRecipeSource(Aws::Utils::Json::JsonView jsonValue); + LambdaFunctionRecipeSource& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline const Aws::String& GetLambdaArn() const{ return m_lambdaArn; } + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; } + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline void SetLambdaArn(const Aws::String& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = value; } + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline void SetLambdaArn(Aws::String&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::move(value); } + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline void SetLambdaArn(const char* value) { m_lambdaArnHasBeenSet = true; m_lambdaArn.assign(value); } + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline LambdaFunctionRecipeSource& WithLambdaArn(const Aws::String& value) { SetLambdaArn(value); return *this;} + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline LambdaFunctionRecipeSource& WithLambdaArn(Aws::String&& value) { SetLambdaArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the Lambda function. The ARN must include the version of the function to + * import. You can't use version aliases like $LATEST.

+ */ + inline LambdaFunctionRecipeSource& WithLambdaArn(const char* value) { SetLambdaArn(value); return *this;} + + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline LambdaFunctionRecipeSource& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline LambdaFunctionRecipeSource& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

Defaults to the name of the Lambda + * function.

+ */ + inline LambdaFunctionRecipeSource& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline LambdaFunctionRecipeSource& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline LambdaFunctionRecipeSource& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

Defaults to the version of the Lambda + * function as a semantic version. For example, if your function version is + * 3, the component version becomes 3.0.0.

+ */ + inline LambdaFunctionRecipeSource& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The platforms that the component version supports.

+ */ + inline const Aws::Vector& GetComponentPlatforms() const{ return m_componentPlatforms; } + + /** + *

The platforms that the component version supports.

+ */ + inline bool ComponentPlatformsHasBeenSet() const { return m_componentPlatformsHasBeenSet; } + + /** + *

The platforms that the component version supports.

+ */ + inline void SetComponentPlatforms(const Aws::Vector& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms = value; } + + /** + *

The platforms that the component version supports.

+ */ + inline void SetComponentPlatforms(Aws::Vector&& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms = std::move(value); } + + /** + *

The platforms that the component version supports.

+ */ + inline LambdaFunctionRecipeSource& WithComponentPlatforms(const Aws::Vector& value) { SetComponentPlatforms(value); return *this;} + + /** + *

The platforms that the component version supports.

+ */ + inline LambdaFunctionRecipeSource& WithComponentPlatforms(Aws::Vector&& value) { SetComponentPlatforms(std::move(value)); return *this;} + + /** + *

The platforms that the component version supports.

+ */ + inline LambdaFunctionRecipeSource& AddComponentPlatforms(const ComponentPlatform& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms.push_back(value); return *this; } + + /** + *

The platforms that the component version supports.

+ */ + inline LambdaFunctionRecipeSource& AddComponentPlatforms(ComponentPlatform&& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms.push_back(std::move(value)); return *this; } + + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline const Aws::Map& GetComponentDependencies() const{ return m_componentDependencies; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline bool ComponentDependenciesHasBeenSet() const { return m_componentDependenciesHasBeenSet; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline void SetComponentDependencies(const Aws::Map& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies = value; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline void SetComponentDependencies(Aws::Map&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies = std::move(value); } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& WithComponentDependencies(const Aws::Map& value) { SetComponentDependencies(value); return *this;} + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& WithComponentDependencies(Aws::Map&& value) { SetComponentDependencies(std::move(value)); return *this;} + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& AddComponentDependencies(const Aws::String& key, const ComponentDependencyRequirement& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, value); return *this; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& AddComponentDependencies(Aws::String&& key, const ComponentDependencyRequirement& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(std::move(key), value); return *this; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& AddComponentDependencies(const Aws::String& key, ComponentDependencyRequirement&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, std::move(value)); return *this; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& AddComponentDependencies(Aws::String&& key, ComponentDependencyRequirement&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& AddComponentDependencies(const char* key, ComponentDependencyRequirement&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, std::move(value)); return *this; } + + /** + *

The component versions on which this Lambda function component depends.

+ */ + inline LambdaFunctionRecipeSource& AddComponentDependencies(const char* key, const ComponentDependencyRequirement& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, value); return *this; } + + + /** + *

The system and runtime parameters for the Lambda function as it runs on the + * AWS IoT Greengrass core device.

+ */ + inline const LambdaExecutionParameters& GetComponentLambdaParameters() const{ return m_componentLambdaParameters; } + + /** + *

The system and runtime parameters for the Lambda function as it runs on the + * AWS IoT Greengrass core device.

+ */ + inline bool ComponentLambdaParametersHasBeenSet() const { return m_componentLambdaParametersHasBeenSet; } + + /** + *

The system and runtime parameters for the Lambda function as it runs on the + * AWS IoT Greengrass core device.

+ */ + inline void SetComponentLambdaParameters(const LambdaExecutionParameters& value) { m_componentLambdaParametersHasBeenSet = true; m_componentLambdaParameters = value; } + + /** + *

The system and runtime parameters for the Lambda function as it runs on the + * AWS IoT Greengrass core device.

+ */ + inline void SetComponentLambdaParameters(LambdaExecutionParameters&& value) { m_componentLambdaParametersHasBeenSet = true; m_componentLambdaParameters = std::move(value); } + + /** + *

The system and runtime parameters for the Lambda function as it runs on the + * AWS IoT Greengrass core device.

+ */ + inline LambdaFunctionRecipeSource& WithComponentLambdaParameters(const LambdaExecutionParameters& value) { SetComponentLambdaParameters(value); return *this;} + + /** + *

The system and runtime parameters for the Lambda function as it runs on the + * AWS IoT Greengrass core device.

+ */ + inline LambdaFunctionRecipeSource& WithComponentLambdaParameters(LambdaExecutionParameters&& value) { SetComponentLambdaParameters(std::move(value)); return *this;} + + private: + + Aws::String m_lambdaArn; + bool m_lambdaArnHasBeenSet; + + Aws::String m_componentName; + bool m_componentNameHasBeenSet; + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + Aws::Vector m_componentPlatforms; + bool m_componentPlatformsHasBeenSet; + + Aws::Map m_componentDependencies; + bool m_componentDependenciesHasBeenSet; + + LambdaExecutionParameters m_componentLambdaParameters; + bool m_componentLambdaParametersHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaInputPayloadEncodingType.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaInputPayloadEncodingType.h new file mode 100644 index 00000000000..e1c098627ca --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaInputPayloadEncodingType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class LambdaInputPayloadEncodingType + { + NOT_SET, + json, + binary + }; + +namespace LambdaInputPayloadEncodingTypeMapper +{ +AWS_GREENGRASSV2_API LambdaInputPayloadEncodingType GetLambdaInputPayloadEncodingTypeForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForLambdaInputPayloadEncodingType(LambdaInputPayloadEncodingType value); +} // namespace LambdaInputPayloadEncodingTypeMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaIsolationMode.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaIsolationMode.h new file mode 100644 index 00000000000..1c6644fce4e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaIsolationMode.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class LambdaIsolationMode + { + NOT_SET, + GreengrassContainer, + NoContainer + }; + +namespace LambdaIsolationModeMapper +{ +AWS_GREENGRASSV2_API LambdaIsolationMode GetLambdaIsolationModeForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForLambdaIsolationMode(LambdaIsolationMode value); +} // namespace LambdaIsolationModeMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaLinuxProcessParams.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaLinuxProcessParams.h new file mode 100644 index 00000000000..90bbb1c8b40 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaLinuxProcessParams.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains parameters for a Linux process that contains an AWS Lambda + * function.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaLinuxProcessParams + { + public: + LambdaLinuxProcessParams(); + LambdaLinuxProcessParams(Aws::Utils::Json::JsonView jsonValue); + LambdaLinuxProcessParams& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The isolation mode for the process that contains the Lambda function. The + * process can run in an isolated runtime environment inside the AWS IoT Greengrass + * container, or as a regular process outside any container.

Default: + * GreengrassContainer

+ */ + inline const LambdaIsolationMode& GetIsolationMode() const{ return m_isolationMode; } + + /** + *

The isolation mode for the process that contains the Lambda function. The + * process can run in an isolated runtime environment inside the AWS IoT Greengrass + * container, or as a regular process outside any container.

Default: + * GreengrassContainer

+ */ + inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; } + + /** + *

The isolation mode for the process that contains the Lambda function. The + * process can run in an isolated runtime environment inside the AWS IoT Greengrass + * container, or as a regular process outside any container.

Default: + * GreengrassContainer

+ */ + inline void SetIsolationMode(const LambdaIsolationMode& value) { m_isolationModeHasBeenSet = true; m_isolationMode = value; } + + /** + *

The isolation mode for the process that contains the Lambda function. The + * process can run in an isolated runtime environment inside the AWS IoT Greengrass + * container, or as a regular process outside any container.

Default: + * GreengrassContainer

+ */ + inline void SetIsolationMode(LambdaIsolationMode&& value) { m_isolationModeHasBeenSet = true; m_isolationMode = std::move(value); } + + /** + *

The isolation mode for the process that contains the Lambda function. The + * process can run in an isolated runtime environment inside the AWS IoT Greengrass + * container, or as a regular process outside any container.

Default: + * GreengrassContainer

+ */ + inline LambdaLinuxProcessParams& WithIsolationMode(const LambdaIsolationMode& value) { SetIsolationMode(value); return *this;} + + /** + *

The isolation mode for the process that contains the Lambda function. The + * process can run in an isolated runtime environment inside the AWS IoT Greengrass + * container, or as a regular process outside any container.

Default: + * GreengrassContainer

+ */ + inline LambdaLinuxProcessParams& WithIsolationMode(LambdaIsolationMode&& value) { SetIsolationMode(std::move(value)); return *this;} + + + /** + *

The parameters for the container in which the Lambda function runs.

+ */ + inline const LambdaContainerParams& GetContainerParams() const{ return m_containerParams; } + + /** + *

The parameters for the container in which the Lambda function runs.

+ */ + inline bool ContainerParamsHasBeenSet() const { return m_containerParamsHasBeenSet; } + + /** + *

The parameters for the container in which the Lambda function runs.

+ */ + inline void SetContainerParams(const LambdaContainerParams& value) { m_containerParamsHasBeenSet = true; m_containerParams = value; } + + /** + *

The parameters for the container in which the Lambda function runs.

+ */ + inline void SetContainerParams(LambdaContainerParams&& value) { m_containerParamsHasBeenSet = true; m_containerParams = std::move(value); } + + /** + *

The parameters for the container in which the Lambda function runs.

+ */ + inline LambdaLinuxProcessParams& WithContainerParams(const LambdaContainerParams& value) { SetContainerParams(value); return *this;} + + /** + *

The parameters for the container in which the Lambda function runs.

+ */ + inline LambdaLinuxProcessParams& WithContainerParams(LambdaContainerParams&& value) { SetContainerParams(std::move(value)); return *this;} + + private: + + LambdaIsolationMode m_isolationMode; + bool m_isolationModeHasBeenSet; + + LambdaContainerParams m_containerParams; + bool m_containerParamsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaVolumeMount.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaVolumeMount.h new file mode 100644 index 00000000000..782e76f79ac --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/LambdaVolumeMount.h @@ -0,0 +1,204 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a volume that Linux processes in a container can + * access. When you define a volume, the AWS IoT Greengrass Core software mounts + * the source files to the destination inside the container.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API LambdaVolumeMount + { + public: + LambdaVolumeMount(); + LambdaVolumeMount(Aws::Utils::Json::JsonView jsonValue); + LambdaVolumeMount& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The path to the physical volume in the file system.

+ */ + inline const Aws::String& GetSourcePath() const{ return m_sourcePath; } + + /** + *

The path to the physical volume in the file system.

+ */ + inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; } + + /** + *

The path to the physical volume in the file system.

+ */ + inline void SetSourcePath(const Aws::String& value) { m_sourcePathHasBeenSet = true; m_sourcePath = value; } + + /** + *

The path to the physical volume in the file system.

+ */ + inline void SetSourcePath(Aws::String&& value) { m_sourcePathHasBeenSet = true; m_sourcePath = std::move(value); } + + /** + *

The path to the physical volume in the file system.

+ */ + inline void SetSourcePath(const char* value) { m_sourcePathHasBeenSet = true; m_sourcePath.assign(value); } + + /** + *

The path to the physical volume in the file system.

+ */ + inline LambdaVolumeMount& WithSourcePath(const Aws::String& value) { SetSourcePath(value); return *this;} + + /** + *

The path to the physical volume in the file system.

+ */ + inline LambdaVolumeMount& WithSourcePath(Aws::String&& value) { SetSourcePath(std::move(value)); return *this;} + + /** + *

The path to the physical volume in the file system.

+ */ + inline LambdaVolumeMount& WithSourcePath(const char* value) { SetSourcePath(value); return *this;} + + + /** + *

The path to the logical volume in the file system.

+ */ + inline const Aws::String& GetDestinationPath() const{ return m_destinationPath; } + + /** + *

The path to the logical volume in the file system.

+ */ + inline bool DestinationPathHasBeenSet() const { return m_destinationPathHasBeenSet; } + + /** + *

The path to the logical volume in the file system.

+ */ + inline void SetDestinationPath(const Aws::String& value) { m_destinationPathHasBeenSet = true; m_destinationPath = value; } + + /** + *

The path to the logical volume in the file system.

+ */ + inline void SetDestinationPath(Aws::String&& value) { m_destinationPathHasBeenSet = true; m_destinationPath = std::move(value); } + + /** + *

The path to the logical volume in the file system.

+ */ + inline void SetDestinationPath(const char* value) { m_destinationPathHasBeenSet = true; m_destinationPath.assign(value); } + + /** + *

The path to the logical volume in the file system.

+ */ + inline LambdaVolumeMount& WithDestinationPath(const Aws::String& value) { SetDestinationPath(value); return *this;} + + /** + *

The path to the logical volume in the file system.

+ */ + inline LambdaVolumeMount& WithDestinationPath(Aws::String&& value) { SetDestinationPath(std::move(value)); return *this;} + + /** + *

The path to the logical volume in the file system.

+ */ + inline LambdaVolumeMount& WithDestinationPath(const char* value) { SetDestinationPath(value); return *this;} + + + /** + *

The permission to access the volume: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline const LambdaFilesystemPermission& GetPermission() const{ return m_permission; } + + /** + *

The permission to access the volume: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; } + + /** + *

The permission to access the volume: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline void SetPermission(const LambdaFilesystemPermission& value) { m_permissionHasBeenSet = true; m_permission = value; } + + /** + *

The permission to access the volume: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline void SetPermission(LambdaFilesystemPermission&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); } + + /** + *

The permission to access the volume: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline LambdaVolumeMount& WithPermission(const LambdaFilesystemPermission& value) { SetPermission(value); return *this;} + + /** + *

The permission to access the volume: read/only (ro) or + * read/write (rw).

Default: ro

+ */ + inline LambdaVolumeMount& WithPermission(LambdaFilesystemPermission&& value) { SetPermission(std::move(value)); return *this;} + + + /** + *

Whether or not to add the AWS IoT Greengrass user group as an owner of the + * volume.

Default: false

+ */ + inline bool GetAddGroupOwner() const{ return m_addGroupOwner; } + + /** + *

Whether or not to add the AWS IoT Greengrass user group as an owner of the + * volume.

Default: false

+ */ + inline bool AddGroupOwnerHasBeenSet() const { return m_addGroupOwnerHasBeenSet; } + + /** + *

Whether or not to add the AWS IoT Greengrass user group as an owner of the + * volume.

Default: false

+ */ + inline void SetAddGroupOwner(bool value) { m_addGroupOwnerHasBeenSet = true; m_addGroupOwner = value; } + + /** + *

Whether or not to add the AWS IoT Greengrass user group as an owner of the + * volume.

Default: false

+ */ + inline LambdaVolumeMount& WithAddGroupOwner(bool value) { SetAddGroupOwner(value); return *this;} + + private: + + Aws::String m_sourcePath; + bool m_sourcePathHasBeenSet; + + Aws::String m_destinationPath; + bool m_destinationPathHasBeenSet; + + LambdaFilesystemPermission m_permission; + bool m_permissionHasBeenSet; + + bool m_addGroupOwner; + bool m_addGroupOwnerHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsRequest.h new file mode 100644 index 00000000000..7c5178ac233 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsRequest.h @@ -0,0 +1,173 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListComponentVersionsRequest : public GreengrassV2Request + { + public: + ListComponentVersionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListComponentVersions"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline ListComponentVersionsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ListComponentVersionsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ListComponentVersionsRequest& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline ListComponentVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListComponentVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListComponentVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListComponentVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsResult.h new file mode 100644 index 00000000000..5e5486fb0d2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentVersionsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListComponentVersionsResult + { + public: + ListComponentVersionsResult(); + ListComponentVersionsResult(const Aws::AmazonWebServiceResult& result); + ListComponentVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list of versions that exist for the component.

+ */ + inline const Aws::Vector& GetComponentVersions() const{ return m_componentVersions; } + + /** + *

A list of versions that exist for the component.

+ */ + inline void SetComponentVersions(const Aws::Vector& value) { m_componentVersions = value; } + + /** + *

A list of versions that exist for the component.

+ */ + inline void SetComponentVersions(Aws::Vector&& value) { m_componentVersions = std::move(value); } + + /** + *

A list of versions that exist for the component.

+ */ + inline ListComponentVersionsResult& WithComponentVersions(const Aws::Vector& value) { SetComponentVersions(value); return *this;} + + /** + *

A list of versions that exist for the component.

+ */ + inline ListComponentVersionsResult& WithComponentVersions(Aws::Vector&& value) { SetComponentVersions(std::move(value)); return *this;} + + /** + *

A list of versions that exist for the component.

+ */ + inline ListComponentVersionsResult& AddComponentVersions(const ComponentVersionListItem& value) { m_componentVersions.push_back(value); return *this; } + + /** + *

A list of versions that exist for the component.

+ */ + inline ListComponentVersionsResult& AddComponentVersions(ComponentVersionListItem&& value) { m_componentVersions.push_back(std::move(value)); return *this; } + + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListComponentVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListComponentVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListComponentVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_componentVersions; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsRequest.h new file mode 100644 index 00000000000..4e5f1d8276f --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsRequest.h @@ -0,0 +1,154 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListComponentsRequest : public GreengrassV2Request + { + public: + ListComponentsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListComponents"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The scope of the components to list.

Default: PRIVATE + *

+ */ + inline const ComponentVisibilityScope& GetScope() const{ return m_scope; } + + /** + *

The scope of the components to list.

Default: PRIVATE + *

+ */ + inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } + + /** + *

The scope of the components to list.

Default: PRIVATE + *

+ */ + inline void SetScope(const ComponentVisibilityScope& value) { m_scopeHasBeenSet = true; m_scope = value; } + + /** + *

The scope of the components to list.

Default: PRIVATE + *

+ */ + inline void SetScope(ComponentVisibilityScope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } + + /** + *

The scope of the components to list.

Default: PRIVATE + *

+ */ + inline ListComponentsRequest& WithScope(const ComponentVisibilityScope& value) { SetScope(value); return *this;} + + /** + *

The scope of the components to list.

Default: PRIVATE + *

+ */ + inline ListComponentsRequest& WithScope(ComponentVisibilityScope&& value) { SetScope(std::move(value)); return *this;} + + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline ListComponentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListComponentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListComponentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListComponentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + ComponentVisibilityScope m_scope; + bool m_scopeHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsResult.h new file mode 100644 index 00000000000..31b2772c422 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListComponentsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListComponentsResult + { + public: + ListComponentsResult(); + ListComponentsResult(const Aws::AmazonWebServiceResult& result); + ListComponentsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list that summarizes each component.

+ */ + inline const Aws::Vector& GetComponents() const{ return m_components; } + + /** + *

A list that summarizes each component.

+ */ + inline void SetComponents(const Aws::Vector& value) { m_components = value; } + + /** + *

A list that summarizes each component.

+ */ + inline void SetComponents(Aws::Vector&& value) { m_components = std::move(value); } + + /** + *

A list that summarizes each component.

+ */ + inline ListComponentsResult& WithComponents(const Aws::Vector& value) { SetComponents(value); return *this;} + + /** + *

A list that summarizes each component.

+ */ + inline ListComponentsResult& WithComponents(Aws::Vector&& value) { SetComponents(std::move(value)); return *this;} + + /** + *

A list that summarizes each component.

+ */ + inline ListComponentsResult& AddComponents(const Component& value) { m_components.push_back(value); return *this; } + + /** + *

A list that summarizes each component.

+ */ + inline ListComponentsResult& AddComponents(Component&& value) { m_components.push_back(std::move(value)); return *this; } + + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListComponentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListComponentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListComponentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_components; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesRequest.h new file mode 100644 index 00000000000..71487fc9f05 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesRequest.h @@ -0,0 +1,246 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListCoreDevicesRequest : public GreengrassV2Request + { + public: + ListCoreDevicesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListCoreDevices"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline const Aws::String& GetThingGroupArn() const{ return m_thingGroupArn; } + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline bool ThingGroupArnHasBeenSet() const { return m_thingGroupArnHasBeenSet; } + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline void SetThingGroupArn(const Aws::String& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = value; } + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline void SetThingGroupArn(Aws::String&& value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn = std::move(value); } + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline void SetThingGroupArn(const char* value) { m_thingGroupArnHasBeenSet = true; m_thingGroupArn.assign(value); } + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline ListCoreDevicesRequest& WithThingGroupArn(const Aws::String& value) { SetThingGroupArn(value); return *this;} + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline ListCoreDevicesRequest& WithThingGroupArn(Aws::String&& value) { SetThingGroupArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the AWS IoT thing group by which to filter. If you specify this parameter, + * the list includes only core devices that are members of this thing group.

+ */ + inline ListCoreDevicesRequest& WithThingGroupArn(const char* value) { SetThingGroupArn(value); return *this;} + + + /** + *

The core device status by which to filter. If you specify this parameter, the + * list includes only core devices that have this status. Choose one of the + * following options:

  • HEALTHY – The AWS IoT + * Greengrass Core software and all components run on the core device without + * issue.

  • UNHEALTHY – The AWS IoT Greengrass Core + * software or a component is in a failed state on the core device.

+ */ + inline const CoreDeviceStatus& GetStatus() const{ return m_status; } + + /** + *

The core device status by which to filter. If you specify this parameter, the + * list includes only core devices that have this status. Choose one of the + * following options:

  • HEALTHY – The AWS IoT + * Greengrass Core software and all components run on the core device without + * issue.

  • UNHEALTHY – The AWS IoT Greengrass Core + * software or a component is in a failed state on the core device.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The core device status by which to filter. If you specify this parameter, the + * list includes only core devices that have this status. Choose one of the + * following options:

  • HEALTHY – The AWS IoT + * Greengrass Core software and all components run on the core device without + * issue.

  • UNHEALTHY – The AWS IoT Greengrass Core + * software or a component is in a failed state on the core device.

+ */ + inline void SetStatus(const CoreDeviceStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The core device status by which to filter. If you specify this parameter, the + * list includes only core devices that have this status. Choose one of the + * following options:

  • HEALTHY – The AWS IoT + * Greengrass Core software and all components run on the core device without + * issue.

  • UNHEALTHY – The AWS IoT Greengrass Core + * software or a component is in a failed state on the core device.

+ */ + inline void SetStatus(CoreDeviceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The core device status by which to filter. If you specify this parameter, the + * list includes only core devices that have this status. Choose one of the + * following options:

  • HEALTHY – The AWS IoT + * Greengrass Core software and all components run on the core device without + * issue.

  • UNHEALTHY – The AWS IoT Greengrass Core + * software or a component is in a failed state on the core device.

+ */ + inline ListCoreDevicesRequest& WithStatus(const CoreDeviceStatus& value) { SetStatus(value); return *this;} + + /** + *

The core device status by which to filter. If you specify this parameter, the + * list includes only core devices that have this status. Choose one of the + * following options:

  • HEALTHY – The AWS IoT + * Greengrass Core software and all components run on the core device without + * issue.

  • UNHEALTHY – The AWS IoT Greengrass Core + * software or a component is in a failed state on the core device.

+ */ + inline ListCoreDevicesRequest& WithStatus(CoreDeviceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline ListCoreDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListCoreDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListCoreDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListCoreDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_thingGroupArn; + bool m_thingGroupArnHasBeenSet; + + CoreDeviceStatus m_status; + bool m_statusHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesResult.h new file mode 100644 index 00000000000..5339d1f9a57 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListCoreDevicesResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListCoreDevicesResult + { + public: + ListCoreDevicesResult(); + ListCoreDevicesResult(const Aws::AmazonWebServiceResult& result); + ListCoreDevicesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list that summarizes each core device.

+ */ + inline const Aws::Vector& GetCoreDevices() const{ return m_coreDevices; } + + /** + *

A list that summarizes each core device.

+ */ + inline void SetCoreDevices(const Aws::Vector& value) { m_coreDevices = value; } + + /** + *

A list that summarizes each core device.

+ */ + inline void SetCoreDevices(Aws::Vector&& value) { m_coreDevices = std::move(value); } + + /** + *

A list that summarizes each core device.

+ */ + inline ListCoreDevicesResult& WithCoreDevices(const Aws::Vector& value) { SetCoreDevices(value); return *this;} + + /** + *

A list that summarizes each core device.

+ */ + inline ListCoreDevicesResult& WithCoreDevices(Aws::Vector&& value) { SetCoreDevices(std::move(value)); return *this;} + + /** + *

A list that summarizes each core device.

+ */ + inline ListCoreDevicesResult& AddCoreDevices(const CoreDevice& value) { m_coreDevices.push_back(value); return *this; } + + /** + *

A list that summarizes each core device.

+ */ + inline ListCoreDevicesResult& AddCoreDevices(CoreDevice&& value) { m_coreDevices.push_back(std::move(value)); return *this; } + + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListCoreDevicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListCoreDevicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListCoreDevicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_coreDevices; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsRequest.h new file mode 100644 index 00000000000..7c6d86f3f43 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsRequest.h @@ -0,0 +1,232 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListDeploymentsRequest : public GreengrassV2Request + { + public: + ListDeploymentsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDeployments"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline const Aws::String& GetTargetArn() const{ return m_targetArn; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline ListDeploymentsRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline ListDeploymentsRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the target AWS IoT thing or thing group.

+ */ + inline ListDeploymentsRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} + + + /** + *

The filter for the list of deployments. Choose one of the following + * options:

  • ALL – The list includes all + * deployments.

  • LATEST_ONLY �� The list includes + * only the latest revision of each deployment.

Default: + * LATEST_ONLY

+ */ + inline const DeploymentHistoryFilter& GetHistoryFilter() const{ return m_historyFilter; } + + /** + *

The filter for the list of deployments. Choose one of the following + * options:

  • ALL – The list includes all + * deployments.

  • LATEST_ONLY �� The list includes + * only the latest revision of each deployment.

Default: + * LATEST_ONLY

+ */ + inline bool HistoryFilterHasBeenSet() const { return m_historyFilterHasBeenSet; } + + /** + *

The filter for the list of deployments. Choose one of the following + * options:

  • ALL – The list includes all + * deployments.

  • LATEST_ONLY �� The list includes + * only the latest revision of each deployment.

Default: + * LATEST_ONLY

+ */ + inline void SetHistoryFilter(const DeploymentHistoryFilter& value) { m_historyFilterHasBeenSet = true; m_historyFilter = value; } + + /** + *

The filter for the list of deployments. Choose one of the following + * options:

  • ALL – The list includes all + * deployments.

  • LATEST_ONLY �� The list includes + * only the latest revision of each deployment.

Default: + * LATEST_ONLY

+ */ + inline void SetHistoryFilter(DeploymentHistoryFilter&& value) { m_historyFilterHasBeenSet = true; m_historyFilter = std::move(value); } + + /** + *

The filter for the list of deployments. Choose one of the following + * options:

  • ALL – The list includes all + * deployments.

  • LATEST_ONLY �� The list includes + * only the latest revision of each deployment.

Default: + * LATEST_ONLY

+ */ + inline ListDeploymentsRequest& WithHistoryFilter(const DeploymentHistoryFilter& value) { SetHistoryFilter(value); return *this;} + + /** + *

The filter for the list of deployments. Choose one of the following + * options:

  • ALL – The list includes all + * deployments.

  • LATEST_ONLY �� The list includes + * only the latest revision of each deployment.

Default: + * LATEST_ONLY

+ */ + inline ListDeploymentsRequest& WithHistoryFilter(DeploymentHistoryFilter&& value) { SetHistoryFilter(std::move(value)); return *this;} + + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline ListDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_targetArn; + bool m_targetArnHasBeenSet; + + DeploymentHistoryFilter m_historyFilter; + bool m_historyFilterHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsResult.h new file mode 100644 index 00000000000..8fbddf67d2a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListDeploymentsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListDeploymentsResult + { + public: + ListDeploymentsResult(); + ListDeploymentsResult(const Aws::AmazonWebServiceResult& result); + ListDeploymentsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list that summarizes each deployment.

+ */ + inline const Aws::Vector& GetDeployments() const{ return m_deployments; } + + /** + *

A list that summarizes each deployment.

+ */ + inline void SetDeployments(const Aws::Vector& value) { m_deployments = value; } + + /** + *

A list that summarizes each deployment.

+ */ + inline void SetDeployments(Aws::Vector&& value) { m_deployments = std::move(value); } + + /** + *

A list that summarizes each deployment.

+ */ + inline ListDeploymentsResult& WithDeployments(const Aws::Vector& value) { SetDeployments(value); return *this;} + + /** + *

A list that summarizes each deployment.

+ */ + inline ListDeploymentsResult& WithDeployments(Aws::Vector&& value) { SetDeployments(std::move(value)); return *this;} + + /** + *

A list that summarizes each deployment.

+ */ + inline ListDeploymentsResult& AddDeployments(const Deployment& value) { m_deployments.push_back(value); return *this; } + + /** + *

A list that summarizes each deployment.

+ */ + inline ListDeploymentsResult& AddDeployments(Deployment&& value) { m_deployments.push_back(std::move(value)); return *this; } + + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListDeploymentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListDeploymentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListDeploymentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_deployments; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsRequest.h new file mode 100644 index 00000000000..48ad61d9dfd --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsRequest.h @@ -0,0 +1,157 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListEffectiveDeploymentsRequest : public GreengrassV2Request + { + public: + ListEffectiveDeploymentsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListEffectiveDeployments"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline ListEffectiveDeploymentsRequest& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline ListEffectiveDeploymentsRequest& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline ListEffectiveDeploymentsRequest& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} + + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline ListEffectiveDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListEffectiveDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListEffectiveDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListEffectiveDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_coreDeviceThingName; + bool m_coreDeviceThingNameHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsResult.h new file mode 100644 index 00000000000..25e51862f86 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListEffectiveDeploymentsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListEffectiveDeploymentsResult + { + public: + ListEffectiveDeploymentsResult(); + ListEffectiveDeploymentsResult(const Aws::AmazonWebServiceResult& result); + ListEffectiveDeploymentsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline const Aws::Vector& GetEffectiveDeployments() const{ return m_effectiveDeployments; } + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline void SetEffectiveDeployments(const Aws::Vector& value) { m_effectiveDeployments = value; } + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline void SetEffectiveDeployments(Aws::Vector&& value) { m_effectiveDeployments = std::move(value); } + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline ListEffectiveDeploymentsResult& WithEffectiveDeployments(const Aws::Vector& value) { SetEffectiveDeployments(value); return *this;} + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline ListEffectiveDeploymentsResult& WithEffectiveDeployments(Aws::Vector&& value) { SetEffectiveDeployments(std::move(value)); return *this;} + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline ListEffectiveDeploymentsResult& AddEffectiveDeployments(const EffectiveDeployment& value) { m_effectiveDeployments.push_back(value); return *this; } + + /** + *

A list that summarizes each deployment on the core device.

+ */ + inline ListEffectiveDeploymentsResult& AddEffectiveDeployments(EffectiveDeployment&& value) { m_effectiveDeployments.push_back(std::move(value)); return *this; } + + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListEffectiveDeploymentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListEffectiveDeploymentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListEffectiveDeploymentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_effectiveDeployments; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsRequest.h new file mode 100644 index 00000000000..abb048f91d3 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsRequest.h @@ -0,0 +1,157 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListInstalledComponentsRequest : public GreengrassV2Request + { + public: + ListInstalledComponentsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListInstalledComponents"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline const Aws::String& GetCoreDeviceThingName() const{ return m_coreDeviceThingName; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline bool CoreDeviceThingNameHasBeenSet() const { return m_coreDeviceThingNameHasBeenSet; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const Aws::String& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = value; } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(Aws::String&& value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName = std::move(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline void SetCoreDeviceThingName(const char* value) { m_coreDeviceThingNameHasBeenSet = true; m_coreDeviceThingName.assign(value); } + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline ListInstalledComponentsRequest& WithCoreDeviceThingName(const Aws::String& value) { SetCoreDeviceThingName(value); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline ListInstalledComponentsRequest& WithCoreDeviceThingName(Aws::String&& value) { SetCoreDeviceThingName(std::move(value)); return *this;} + + /** + *

The name of the core device. This is also the name of the AWS IoT thing.

+ */ + inline ListInstalledComponentsRequest& WithCoreDeviceThingName(const char* value) { SetCoreDeviceThingName(value); return *this;} + + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to be returned per paginated request.

+ */ + inline ListInstalledComponentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListInstalledComponentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListInstalledComponentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to be used for the next set of paginated results.

+ */ + inline ListInstalledComponentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_coreDeviceThingName; + bool m_coreDeviceThingNameHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsResult.h new file mode 100644 index 00000000000..311ede84867 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListInstalledComponentsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListInstalledComponentsResult + { + public: + ListInstalledComponentsResult(); + ListInstalledComponentsResult(const Aws::AmazonWebServiceResult& result); + ListInstalledComponentsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list that summarizes each component on the core device.

+ */ + inline const Aws::Vector& GetInstalledComponents() const{ return m_installedComponents; } + + /** + *

A list that summarizes each component on the core device.

+ */ + inline void SetInstalledComponents(const Aws::Vector& value) { m_installedComponents = value; } + + /** + *

A list that summarizes each component on the core device.

+ */ + inline void SetInstalledComponents(Aws::Vector&& value) { m_installedComponents = std::move(value); } + + /** + *

A list that summarizes each component on the core device.

+ */ + inline ListInstalledComponentsResult& WithInstalledComponents(const Aws::Vector& value) { SetInstalledComponents(value); return *this;} + + /** + *

A list that summarizes each component on the core device.

+ */ + inline ListInstalledComponentsResult& WithInstalledComponents(Aws::Vector&& value) { SetInstalledComponents(std::move(value)); return *this;} + + /** + *

A list that summarizes each component on the core device.

+ */ + inline ListInstalledComponentsResult& AddInstalledComponents(const InstalledComponent& value) { m_installedComponents.push_back(value); return *this; } + + /** + *

A list that summarizes each component on the core device.

+ */ + inline ListInstalledComponentsResult& AddInstalledComponents(InstalledComponent&& value) { m_installedComponents.push_back(std::move(value)); return *this; } + + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListInstalledComponentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListInstalledComponentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results, or null if there are no additional + * results.

+ */ + inline ListInstalledComponentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_installedComponents; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..fe4c06846f7 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceRequest.h @@ -0,0 +1,99 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ListTagsForResourceRequest : public GreengrassV2Request + { + public: + ListTagsForResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN + * of the resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN + * of the resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN + * of the resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN + * of the resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN + * of the resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN + * of the resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN + * of the resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..a29643e98aa --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ListTagsForResourceResult.h @@ -0,0 +1,139 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ListTagsForResourceResult + { + public: + ListTagsForResourceResult(); + ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/RecipeOutputFormat.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/RecipeOutputFormat.h new file mode 100644 index 00000000000..d06ade8e314 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/RecipeOutputFormat.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class RecipeOutputFormat + { + NOT_SET, + JSON, + YAML + }; + +namespace RecipeOutputFormatMapper +{ +AWS_GREENGRASSV2_API RecipeOutputFormat GetRecipeOutputFormatForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForRecipeOutputFormat(RecipeOutputFormat value); +} // namespace RecipeOutputFormatMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesRequest.h new file mode 100644 index 00000000000..63cafee5686 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesRequest.h @@ -0,0 +1,119 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API ResolveComponentCandidatesRequest : public GreengrassV2Request + { + public: + ResolveComponentCandidatesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ResolveComponentCandidates"; } + + Aws::String SerializePayload() const override; + + + /** + *

The platform to use to resolve compatible components.

+ */ + inline const ComponentPlatform& GetPlatform() const{ return m_platform; } + + /** + *

The platform to use to resolve compatible components.

+ */ + inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } + + /** + *

The platform to use to resolve compatible components.

+ */ + inline void SetPlatform(const ComponentPlatform& value) { m_platformHasBeenSet = true; m_platform = value; } + + /** + *

The platform to use to resolve compatible components.

+ */ + inline void SetPlatform(ComponentPlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } + + /** + *

The platform to use to resolve compatible components.

+ */ + inline ResolveComponentCandidatesRequest& WithPlatform(const ComponentPlatform& value) { SetPlatform(value); return *this;} + + /** + *

The platform to use to resolve compatible components.

+ */ + inline ResolveComponentCandidatesRequest& WithPlatform(ComponentPlatform&& value) { SetPlatform(std::move(value)); return *this;} + + + /** + *

The list of components to resolve.

+ */ + inline const Aws::Vector& GetComponentCandidates() const{ return m_componentCandidates; } + + /** + *

The list of components to resolve.

+ */ + inline bool ComponentCandidatesHasBeenSet() const { return m_componentCandidatesHasBeenSet; } + + /** + *

The list of components to resolve.

+ */ + inline void SetComponentCandidates(const Aws::Vector& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates = value; } + + /** + *

The list of components to resolve.

+ */ + inline void SetComponentCandidates(Aws::Vector&& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates = std::move(value); } + + /** + *

The list of components to resolve.

+ */ + inline ResolveComponentCandidatesRequest& WithComponentCandidates(const Aws::Vector& value) { SetComponentCandidates(value); return *this;} + + /** + *

The list of components to resolve.

+ */ + inline ResolveComponentCandidatesRequest& WithComponentCandidates(Aws::Vector&& value) { SetComponentCandidates(std::move(value)); return *this;} + + /** + *

The list of components to resolve.

+ */ + inline ResolveComponentCandidatesRequest& AddComponentCandidates(const ComponentCandidate& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates.push_back(value); return *this; } + + /** + *

The list of components to resolve.

+ */ + inline ResolveComponentCandidatesRequest& AddComponentCandidates(ComponentCandidate&& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates.push_back(std::move(value)); return *this; } + + private: + + ComponentPlatform m_platform; + bool m_platformHasBeenSet; + + Aws::Vector m_componentCandidates; + bool m_componentCandidatesHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesResult.h new file mode 100644 index 00000000000..9d08dd36fd9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolveComponentCandidatesResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API ResolveComponentCandidatesResult + { + public: + ResolveComponentCandidatesResult(); + ResolveComponentCandidatesResult(const Aws::AmazonWebServiceResult& result); + ResolveComponentCandidatesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline const Aws::Vector& GetResolvedComponentVersions() const{ return m_resolvedComponentVersions; } + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline void SetResolvedComponentVersions(const Aws::Vector& value) { m_resolvedComponentVersions = value; } + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline void SetResolvedComponentVersions(Aws::Vector&& value) { m_resolvedComponentVersions = std::move(value); } + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline ResolveComponentCandidatesResult& WithResolvedComponentVersions(const Aws::Vector& value) { SetResolvedComponentVersions(value); return *this;} + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline ResolveComponentCandidatesResult& WithResolvedComponentVersions(Aws::Vector&& value) { SetResolvedComponentVersions(std::move(value)); return *this;} + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline ResolveComponentCandidatesResult& AddResolvedComponentVersions(const ResolvedComponentVersion& value) { m_resolvedComponentVersions.push_back(value); return *this; } + + /** + *

A list of components that meet the requirements that you specify in the + * request. This list includes each component's recipe that you can use to install + * the component.

+ */ + inline ResolveComponentCandidatesResult& AddResolvedComponentVersions(ResolvedComponentVersion&& value) { m_resolvedComponentVersions.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_resolvedComponentVersions; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolvedComponentVersion.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolvedComponentVersion.h new file mode 100644 index 00000000000..eb921cf879c --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResolvedComponentVersion.h @@ -0,0 +1,228 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a component version that is compatible to run on a + * AWS IoT Greengrass core device.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ResolvedComponentVersion + { + public: + ResolvedComponentVersion(); + ResolvedComponentVersion(Aws::Utils::Json::JsonView jsonValue); + ResolvedComponentVersion& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ARN + * of the component version.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The ARN + * of the component version.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The ARN + * of the component version.

+ */ + inline ResolvedComponentVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ResolvedComponentVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the component version.

+ */ + inline ResolvedComponentVersion& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the component.

+ */ + inline const Aws::String& GetComponentName() const{ return m_componentName; } + + /** + *

The name of the component.

+ */ + inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } + + /** + *

The name of the component.

+ */ + inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } + + /** + *

The name of the component.

+ */ + inline ResolvedComponentVersion& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} + + /** + *

The name of the component.

+ */ + inline ResolvedComponentVersion& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} + + /** + *

The name of the component.

+ */ + inline ResolvedComponentVersion& WithComponentName(const char* value) { SetComponentName(value); return *this;} + + + /** + *

The version of the component.

+ */ + inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; } + + /** + *

The version of the component.

+ */ + inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); } + + /** + *

The version of the component.

+ */ + inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); } + + /** + *

The version of the component.

+ */ + inline ResolvedComponentVersion& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;} + + /** + *

The version of the component.

+ */ + inline ResolvedComponentVersion& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;} + + /** + *

The version of the component.

+ */ + inline ResolvedComponentVersion& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;} + + + /** + *

The recipe of the component version.

+ */ + inline const Aws::Utils::ByteBuffer& GetRecipe() const{ return m_recipe; } + + /** + *

The recipe of the component version.

+ */ + inline bool RecipeHasBeenSet() const { return m_recipeHasBeenSet; } + + /** + *

The recipe of the component version.

+ */ + inline void SetRecipe(const Aws::Utils::ByteBuffer& value) { m_recipeHasBeenSet = true; m_recipe = value; } + + /** + *

The recipe of the component version.

+ */ + inline void SetRecipe(Aws::Utils::ByteBuffer&& value) { m_recipeHasBeenSet = true; m_recipe = std::move(value); } + + /** + *

The recipe of the component version.

+ */ + inline ResolvedComponentVersion& WithRecipe(const Aws::Utils::ByteBuffer& value) { SetRecipe(value); return *this;} + + /** + *

The recipe of the component version.

+ */ + inline ResolvedComponentVersion& WithRecipe(Aws::Utils::ByteBuffer&& value) { SetRecipe(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_componentName; + bool m_componentNameHasBeenSet; + + Aws::String m_componentVersion; + bool m_componentVersionHasBeenSet; + + Aws::Utils::ByteBuffer m_recipe; + bool m_recipeHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResourceNotFoundException.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResourceNotFoundException.h new file mode 100644 index 00000000000..3e04246b3d5 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ResourceNotFoundException.h @@ -0,0 +1,160 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

The requested resource can't be found.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ResourceNotFoundException + { + public: + ResourceNotFoundException(); + ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); + ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The ID of the resource that isn't found.

+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

The ID of the resource that isn't found.

+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

The ID of the resource that isn't found.

+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

The ID of the resource that isn't found.

+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

The ID of the resource that isn't found.

+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

The ID of the resource that isn't found.

+ */ + inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

The ID of the resource that isn't found.

+ */ + inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

The ID of the resource that isn't found.

+ */ + inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

The type of the resource that isn't found.

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource that isn't found.

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource that isn't found.

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource that isn't found.

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource that isn't found.

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource that isn't found.

+ */ + inline ResourceNotFoundException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource that isn't found.

+ */ + inline ResourceNotFoundException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource that isn't found.

+ */ + inline ResourceNotFoundException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ServiceQuotaExceededException.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ServiceQuotaExceededException.h new file mode 100644 index 00000000000..e3f4347a0d9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ServiceQuotaExceededException.h @@ -0,0 +1,281 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Your request exceeds a service quota. For example, you might have the maximum + * number of components that you can create.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ServiceQuotaExceededException + { + public: + ServiceQuotaExceededException(); + ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue); + ServiceQuotaExceededException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline ServiceQuotaExceededException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline ServiceQuotaExceededException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *

The ID of the resource that exceeds the service quota.

+ */ + inline ServiceQuotaExceededException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline ServiceQuotaExceededException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline ServiceQuotaExceededException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *

The type of the resource that exceeds the service quota.

+ */ + inline ServiceQuotaExceededException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline ServiceQuotaExceededException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline ServiceQuotaExceededException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline ServiceQuotaExceededException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} + + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline ServiceQuotaExceededException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline ServiceQuotaExceededException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline ServiceQuotaExceededException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + + Aws::String m_quotaCode; + bool m_quotaCodeHasBeenSet; + + Aws::String m_serviceCode; + bool m_serviceCodeHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceRequest.h new file mode 100644 index 00000000000..eb5c4ea10d5 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceRequest.h @@ -0,0 +1,208 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API TagResourceRequest : public GreengrassV2Request + { + public: + TagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "TagResource"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN + * of the resource to tag.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN + * of the resource to tag.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN + * of the resource to tag.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN + * of the resource to tag.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN + * of the resource to tag.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN + * of the resource to tag.

+ */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN + * of the resource to tag.

+ */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the resource to tag.

+ */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A list of key-value pairs that contain metadata for the resource. For more + * information, see Tag your + * resources in the AWS IoT Greengrass V2 Developer Guide.

+ */ + inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceResult.h new file mode 100644 index 00000000000..a89bb17599d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/TagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API TagResourceResult + { + public: + TagResourceResult(); + TagResourceResult(const Aws::AmazonWebServiceResult& result); + TagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ThrottlingException.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ThrottlingException.h new file mode 100644 index 00000000000..8c80f0cc387 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ThrottlingException.h @@ -0,0 +1,218 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Your request exceeded a request rate quota. For example, you might have + * exceeded the amount of times that you can retrieve device or deployment status + * per second.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ThrottlingException + { + public: + ThrottlingException(); + ThrottlingException(Aws::Utils::Json::JsonView jsonValue); + ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} + + /** + *

The code for the quota in Service + * Quotas.

+ */ + inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} + + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} + + /** + *

The code for the service in Service + * Quotas.

+ */ + inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} + + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } + + /** + *

The amount of time to wait before you retry the request.

+ */ + inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_quotaCode; + bool m_quotaCodeHasBeenSet; + + Aws::String m_serviceCode; + bool m_serviceCodeHasBeenSet; + + int m_retryAfterSeconds; + bool m_retryAfterSecondsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceRequest.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceRequest.h new file mode 100644 index 00000000000..7a3d6f6f5f3 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceRequest.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace GreengrassV2 +{ +namespace Model +{ + + /** + */ + class AWS_GREENGRASSV2_API UntagResourceRequest : public GreengrassV2Request + { + public: + UntagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN + * of the resource to untag.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN + * of the resource to untag.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN + * of the resource to untag.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN + * of the resource to untag.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN + * of the resource to untag.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN + * of the resource to untag.

+ */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN + * of the resource to untag.

+ */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN + * of the resource to untag.

+ */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *

A list of keys for tags to remove from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceResult.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceResult.h new file mode 100644 index 00000000000..0ad02001b59 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/UntagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + class AWS_GREENGRASSV2_API UntagResourceResult + { + public: + UntagResourceResult(); + UntagResourceResult(const Aws::AmazonWebServiceResult& result); + UntagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationException.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationException.h new file mode 100644 index 00000000000..a7391a8277a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationException.h @@ -0,0 +1,154 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

The request isn't valid. This can occur if your request contains malformed + * JSON or unsupported characters.

See Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ValidationException + { + public: + ValidationException(); + ValidationException(Aws::Utils::Json::JsonView jsonValue); + ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *

The reason for the validation exception.

+ */ + inline const ValidationExceptionReason& GetReason() const{ return m_reason; } + + /** + *

The reason for the validation exception.

+ */ + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + + /** + *

The reason for the validation exception.

+ */ + inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } + + /** + *

The reason for the validation exception.

+ */ + inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + + /** + *

The reason for the validation exception.

+ */ + inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} + + /** + *

The reason for the validation exception.

+ */ + inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} + + + /** + *

The list of fields that failed to validate.

+ */ + inline const Aws::Vector& GetFields() const{ return m_fields; } + + /** + *

The list of fields that failed to validate.

+ */ + inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } + + /** + *

The list of fields that failed to validate.

+ */ + inline void SetFields(const Aws::Vector& value) { m_fieldsHasBeenSet = true; m_fields = value; } + + /** + *

The list of fields that failed to validate.

+ */ + inline void SetFields(Aws::Vector&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } + + /** + *

The list of fields that failed to validate.

+ */ + inline ValidationException& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} + + /** + *

The list of fields that failed to validate.

+ */ + inline ValidationException& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} + + /** + *

The list of fields that failed to validate.

+ */ + inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } + + /** + *

The list of fields that failed to validate.

+ */ + inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + ValidationExceptionReason m_reason; + bool m_reasonHasBeenSet; + + Aws::Vector m_fields; + bool m_fieldsHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionField.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionField.h new file mode 100644 index 00000000000..1f6f3af25ec --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionField.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GreengrassV2 +{ +namespace Model +{ + + /** + *

Contains information about a validation exception field.

See + * Also:

AWS + * API Reference

+ */ + class AWS_GREENGRASSV2_API ValidationExceptionField + { + public: + ValidationExceptionField(); + ValidationExceptionField(Aws::Utils::Json::JsonView jsonValue); + ValidationExceptionField& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the exception field.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the exception field.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the exception field.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the exception field.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the exception field.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the exception field.

+ */ + inline ValidationExceptionField& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the exception field.

+ */ + inline ValidationExceptionField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the exception field.

+ */ + inline ValidationExceptionField& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The message of the exception field.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

The message of the exception field.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

The message of the exception field.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

The message of the exception field.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

The message of the exception field.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

The message of the exception field.

+ */ + inline ValidationExceptionField& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

The message of the exception field.

+ */ + inline ValidationExceptionField& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

The message of the exception field.

+ */ + inline ValidationExceptionField& WithMessage(const char* value) { SetMessage(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_message; + bool m_messageHasBeenSet; + }; + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionReason.h b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionReason.h new file mode 100644 index 00000000000..992bc3efc8a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/include/aws/greengrassv2/model/ValidationExceptionReason.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + enum class ValidationExceptionReason + { + NOT_SET, + UNKNOWN_OPERATION, + CANNOT_PARSE, + FIELD_VALIDATION_FAILED, + OTHER + }; + +namespace ValidationExceptionReasonMapper +{ +AWS_GREENGRASSV2_API ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name); + +AWS_GREENGRASSV2_API Aws::String GetNameForValidationExceptionReason(ValidationExceptionReason value); +} // namespace ValidationExceptionReasonMapper +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp b/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp new file mode 100644 index 00000000000..865354b4587 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/GreengrassV2Client.cpp @@ -0,0 +1,757 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::GreengrassV2; +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; + +static const char* SERVICE_NAME = "greengrass"; +static const char* ALLOCATION_TAG = "GreengrassV2Client"; + + +GreengrassV2Client::GreengrassV2Client(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +GreengrassV2Client::GreengrassV2Client(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +GreengrassV2Client::GreengrassV2Client(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, credentialsProvider, + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +GreengrassV2Client::~GreengrassV2Client() +{ +} + +void GreengrassV2Client::init(const ClientConfiguration& config) +{ + SetServiceClientName("GreengrassV2"); + m_configScheme = SchemeMapper::ToString(config.scheme); + if (config.endpointOverride.empty()) + { + m_uri = m_configScheme + "://" + GreengrassV2Endpoint::ForRegion(config.region, config.useDualStack); + } + else + { + OverrideEndpoint(config.endpointOverride); + } +} + +void GreengrassV2Client::OverrideEndpoint(const Aws::String& endpoint) +{ + if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0) + { + m_uri = endpoint; + } + else + { + m_uri = m_configScheme + "://" + endpoint; + } +} + +CancelDeploymentOutcome GreengrassV2Client::CancelDeployment(const CancelDeploymentRequest& request) const +{ + if (!request.DeploymentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CancelDeployment", "Required field: DeploymentId, is not set"); + return CancelDeploymentOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DeploymentId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/deployments/"; + ss << request.GetDeploymentId(); + ss << "/cancel"; + uri.SetPath(uri.GetPath() + ss.str()); + return CancelDeploymentOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CancelDeploymentOutcomeCallable GreengrassV2Client::CancelDeploymentCallable(const CancelDeploymentRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CancelDeploymentOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CancelDeployment(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::CancelDeploymentAsync(const CancelDeploymentRequest& request, const CancelDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CancelDeploymentAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::CancelDeploymentAsyncHelper(const CancelDeploymentRequest& request, const CancelDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CancelDeployment(request), context); +} + +CreateComponentVersionOutcome GreengrassV2Client::CreateComponentVersion(const CreateComponentVersionRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/createComponentVersion"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateComponentVersionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateComponentVersionOutcomeCallable GreengrassV2Client::CreateComponentVersionCallable(const CreateComponentVersionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateComponentVersionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateComponentVersion(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::CreateComponentVersionAsync(const CreateComponentVersionRequest& request, const CreateComponentVersionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateComponentVersionAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::CreateComponentVersionAsyncHelper(const CreateComponentVersionRequest& request, const CreateComponentVersionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateComponentVersion(request), context); +} + +CreateDeploymentOutcome GreengrassV2Client::CreateDeployment(const CreateDeploymentRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/deployments"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateDeploymentOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateDeploymentOutcomeCallable GreengrassV2Client::CreateDeploymentCallable(const CreateDeploymentRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateDeploymentOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateDeployment(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::CreateDeploymentAsync(const CreateDeploymentRequest& request, const CreateDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateDeploymentAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::CreateDeploymentAsyncHelper(const CreateDeploymentRequest& request, const CreateDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateDeployment(request), context); +} + +DeleteComponentOutcome GreengrassV2Client::DeleteComponent(const DeleteComponentRequest& request) const +{ + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteComponent", "Required field: Arn, is not set"); + return DeleteComponentOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/components/"; + ss << request.GetArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteComponentOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteComponentOutcomeCallable GreengrassV2Client::DeleteComponentCallable(const DeleteComponentRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteComponentOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteComponent(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::DeleteComponentAsync(const DeleteComponentRequest& request, const DeleteComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteComponentAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::DeleteComponentAsyncHelper(const DeleteComponentRequest& request, const DeleteComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteComponent(request), context); +} + +DeleteCoreDeviceOutcome GreengrassV2Client::DeleteCoreDevice(const DeleteCoreDeviceRequest& request) const +{ + if (!request.CoreDeviceThingNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCoreDevice", "Required field: CoreDeviceThingName, is not set"); + return DeleteCoreDeviceOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CoreDeviceThingName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/coreDevices/"; + ss << request.GetCoreDeviceThingName(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteCoreDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteCoreDeviceOutcomeCallable GreengrassV2Client::DeleteCoreDeviceCallable(const DeleteCoreDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteCoreDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteCoreDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::DeleteCoreDeviceAsync(const DeleteCoreDeviceRequest& request, const DeleteCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteCoreDeviceAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::DeleteCoreDeviceAsyncHelper(const DeleteCoreDeviceRequest& request, const DeleteCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteCoreDevice(request), context); +} + +DescribeComponentOutcome GreengrassV2Client::DescribeComponent(const DescribeComponentRequest& request) const +{ + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeComponent", "Required field: Arn, is not set"); + return DescribeComponentOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/components/"; + ss << request.GetArn(); + ss << "/metadata"; + uri.SetPath(uri.GetPath() + ss.str()); + return DescribeComponentOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +DescribeComponentOutcomeCallable GreengrassV2Client::DescribeComponentCallable(const DescribeComponentRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DescribeComponentOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeComponent(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::DescribeComponentAsync(const DescribeComponentRequest& request, const DescribeComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DescribeComponentAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::DescribeComponentAsyncHelper(const DescribeComponentRequest& request, const DescribeComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DescribeComponent(request), context); +} + +GetComponentOutcome GreengrassV2Client::GetComponent(const GetComponentRequest& request) const +{ + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetComponent", "Required field: Arn, is not set"); + return GetComponentOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/components/"; + ss << request.GetArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetComponentOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetComponentOutcomeCallable GreengrassV2Client::GetComponentCallable(const GetComponentRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetComponentOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetComponent(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::GetComponentAsync(const GetComponentRequest& request, const GetComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetComponentAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::GetComponentAsyncHelper(const GetComponentRequest& request, const GetComponentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetComponent(request), context); +} + +GetComponentVersionArtifactOutcome GreengrassV2Client::GetComponentVersionArtifact(const GetComponentVersionArtifactRequest& request) const +{ + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetComponentVersionArtifact", "Required field: Arn, is not set"); + return GetComponentVersionArtifactOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + if (!request.ArtifactNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetComponentVersionArtifact", "Required field: ArtifactName, is not set"); + return GetComponentVersionArtifactOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ArtifactName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/components/"; + ss << request.GetArn(); + ss << "/artifacts/"; + ss << request.GetArtifactName(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetComponentVersionArtifactOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetComponentVersionArtifactOutcomeCallable GreengrassV2Client::GetComponentVersionArtifactCallable(const GetComponentVersionArtifactRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetComponentVersionArtifactOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetComponentVersionArtifact(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::GetComponentVersionArtifactAsync(const GetComponentVersionArtifactRequest& request, const GetComponentVersionArtifactResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetComponentVersionArtifactAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::GetComponentVersionArtifactAsyncHelper(const GetComponentVersionArtifactRequest& request, const GetComponentVersionArtifactResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetComponentVersionArtifact(request), context); +} + +GetCoreDeviceOutcome GreengrassV2Client::GetCoreDevice(const GetCoreDeviceRequest& request) const +{ + if (!request.CoreDeviceThingNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetCoreDevice", "Required field: CoreDeviceThingName, is not set"); + return GetCoreDeviceOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CoreDeviceThingName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/coreDevices/"; + ss << request.GetCoreDeviceThingName(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetCoreDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetCoreDeviceOutcomeCallable GreengrassV2Client::GetCoreDeviceCallable(const GetCoreDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetCoreDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetCoreDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::GetCoreDeviceAsync(const GetCoreDeviceRequest& request, const GetCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetCoreDeviceAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::GetCoreDeviceAsyncHelper(const GetCoreDeviceRequest& request, const GetCoreDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetCoreDevice(request), context); +} + +GetDeploymentOutcome GreengrassV2Client::GetDeployment(const GetDeploymentRequest& request) const +{ + if (!request.DeploymentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetDeployment", "Required field: DeploymentId, is not set"); + return GetDeploymentOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DeploymentId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/deployments/"; + ss << request.GetDeploymentId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetDeploymentOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetDeploymentOutcomeCallable GreengrassV2Client::GetDeploymentCallable(const GetDeploymentRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetDeploymentOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetDeployment(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::GetDeploymentAsync(const GetDeploymentRequest& request, const GetDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetDeploymentAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::GetDeploymentAsyncHelper(const GetDeploymentRequest& request, const GetDeploymentResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetDeployment(request), context); +} + +ListComponentVersionsOutcome GreengrassV2Client::ListComponentVersions(const ListComponentVersionsRequest& request) const +{ + if (!request.ArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListComponentVersions", "Required field: Arn, is not set"); + return ListComponentVersionsOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Arn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/components/"; + ss << request.GetArn(); + ss << "/versions"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListComponentVersionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListComponentVersionsOutcomeCallable GreengrassV2Client::ListComponentVersionsCallable(const ListComponentVersionsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListComponentVersionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListComponentVersions(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListComponentVersionsAsync(const ListComponentVersionsRequest& request, const ListComponentVersionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListComponentVersionsAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListComponentVersionsAsyncHelper(const ListComponentVersionsRequest& request, const ListComponentVersionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListComponentVersions(request), context); +} + +ListComponentsOutcome GreengrassV2Client::ListComponents(const ListComponentsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/components"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListComponentsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListComponentsOutcomeCallable GreengrassV2Client::ListComponentsCallable(const ListComponentsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListComponentsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListComponents(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListComponentsAsync(const ListComponentsRequest& request, const ListComponentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListComponentsAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListComponentsAsyncHelper(const ListComponentsRequest& request, const ListComponentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListComponents(request), context); +} + +ListCoreDevicesOutcome GreengrassV2Client::ListCoreDevices(const ListCoreDevicesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/coreDevices"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListCoreDevicesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListCoreDevicesOutcomeCallable GreengrassV2Client::ListCoreDevicesCallable(const ListCoreDevicesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListCoreDevicesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListCoreDevices(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListCoreDevicesAsync(const ListCoreDevicesRequest& request, const ListCoreDevicesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListCoreDevicesAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListCoreDevicesAsyncHelper(const ListCoreDevicesRequest& request, const ListCoreDevicesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListCoreDevices(request), context); +} + +ListDeploymentsOutcome GreengrassV2Client::ListDeployments(const ListDeploymentsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/deployments"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListDeploymentsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListDeploymentsOutcomeCallable GreengrassV2Client::ListDeploymentsCallable(const ListDeploymentsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListDeploymentsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDeployments(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListDeploymentsAsync(const ListDeploymentsRequest& request, const ListDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListDeploymentsAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListDeploymentsAsyncHelper(const ListDeploymentsRequest& request, const ListDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListDeployments(request), context); +} + +ListEffectiveDeploymentsOutcome GreengrassV2Client::ListEffectiveDeployments(const ListEffectiveDeploymentsRequest& request) const +{ + if (!request.CoreDeviceThingNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListEffectiveDeployments", "Required field: CoreDeviceThingName, is not set"); + return ListEffectiveDeploymentsOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CoreDeviceThingName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/coreDevices/"; + ss << request.GetCoreDeviceThingName(); + ss << "/effectiveDeployments"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListEffectiveDeploymentsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListEffectiveDeploymentsOutcomeCallable GreengrassV2Client::ListEffectiveDeploymentsCallable(const ListEffectiveDeploymentsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListEffectiveDeploymentsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListEffectiveDeployments(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListEffectiveDeploymentsAsync(const ListEffectiveDeploymentsRequest& request, const ListEffectiveDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListEffectiveDeploymentsAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListEffectiveDeploymentsAsyncHelper(const ListEffectiveDeploymentsRequest& request, const ListEffectiveDeploymentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListEffectiveDeployments(request), context); +} + +ListInstalledComponentsOutcome GreengrassV2Client::ListInstalledComponents(const ListInstalledComponentsRequest& request) const +{ + if (!request.CoreDeviceThingNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListInstalledComponents", "Required field: CoreDeviceThingName, is not set"); + return ListInstalledComponentsOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [CoreDeviceThingName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/coreDevices/"; + ss << request.GetCoreDeviceThingName(); + ss << "/installedComponents"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListInstalledComponentsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListInstalledComponentsOutcomeCallable GreengrassV2Client::ListInstalledComponentsCallable(const ListInstalledComponentsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListInstalledComponentsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListInstalledComponents(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListInstalledComponentsAsync(const ListInstalledComponentsRequest& request, const ListInstalledComponentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListInstalledComponentsAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListInstalledComponentsAsyncHelper(const ListInstalledComponentsRequest& request, const ListInstalledComponentsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListInstalledComponents(request), context); +} + +ListTagsForResourceOutcome GreengrassV2Client::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListTagsForResourceOutcomeCallable GreengrassV2Client::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListTagsForResource(request), context); +} + +ResolveComponentCandidatesOutcome GreengrassV2Client::ResolveComponentCandidates(const ResolveComponentCandidatesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/greengrass/v2/resolveComponentCandidates"; + uri.SetPath(uri.GetPath() + ss.str()); + return ResolveComponentCandidatesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +ResolveComponentCandidatesOutcomeCallable GreengrassV2Client::ResolveComponentCandidatesCallable(const ResolveComponentCandidatesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ResolveComponentCandidatesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ResolveComponentCandidates(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::ResolveComponentCandidatesAsync(const ResolveComponentCandidatesRequest& request, const ResolveComponentCandidatesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ResolveComponentCandidatesAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::ResolveComponentCandidatesAsyncHelper(const ResolveComponentCandidatesRequest& request, const ResolveComponentCandidatesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ResolveComponentCandidates(request), context); +} + +TagResourceOutcome GreengrassV2Client::TagResource(const TagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set"); + return TagResourceOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +TagResourceOutcomeCallable GreengrassV2Client::TagResourceCallable(const TagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, TagResource(request), context); +} + +UntagResourceOutcome GreengrassV2Client::UntagResource(const UntagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(GreengrassV2Errors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +UntagResourceOutcomeCallable GreengrassV2Client::UntagResourceCallable(const UntagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void GreengrassV2Client::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } ); +} + +void GreengrassV2Client::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UntagResource(request), context); +} + diff --git a/aws-cpp-sdk-greengrassv2/source/GreengrassV2Endpoint.cpp b/aws-cpp-sdk-greengrassv2/source/GreengrassV2Endpoint.cpp new file mode 100644 index 00000000000..c3b010ee6e4 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/GreengrassV2Endpoint.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws; +using namespace Aws::GreengrassV2; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace GreengrassV2Endpoint +{ + static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1"); + static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1"); + static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1"); + static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1"); + + + Aws::String ForRegion(const Aws::String& regionName, bool useDualStack) + { + // Fallback to us-east-1 if global endpoint does not exists. + Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName; + auto hash = Aws::Utils::HashingUtils::HashString(region.c_str()); + + Aws::StringStream ss; + ss << "greengrass" << "."; + + if(useDualStack) + { + ss << "dualstack."; + } + + ss << region; + + if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH) + { + ss << ".amazonaws.com.cn"; + } + else if (hash == US_ISO_EAST_1_HASH) + { + ss << ".c2s.ic.gov"; + } + else if (hash == US_ISOB_EAST_1_HASH) + { + ss << ".sc2s.sgov.gov"; + } + else + { + ss << ".amazonaws.com"; + } + + return ss.str(); + } + +} // namespace GreengrassV2Endpoint +} // namespace GreengrassV2 +} // namespace Aws + diff --git a/aws-cpp-sdk-greengrassv2/source/GreengrassV2ErrorMarshaller.cpp b/aws-cpp-sdk-greengrassv2/source/GreengrassV2ErrorMarshaller.cpp new file mode 100644 index 00000000000..160f2c894e0 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/GreengrassV2ErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::GreengrassV2; + +AWSError GreengrassV2ErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = GreengrassV2ErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp b/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp new file mode 100644 index 00000000000..84e96d48ec7 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/GreengrassV2Errors.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::GreengrassV2; +using namespace Aws::GreengrassV2::Model; + +namespace Aws +{ +namespace GreengrassV2 +{ +template<> AWS_GREENGRASSV2_API ConflictException GreengrassV2Error::GetModeledError() +{ + assert(this->GetErrorType() == GreengrassV2Errors::CONFLICT); + return ConflictException(this->GetJsonPayload().View()); +} + +template<> AWS_GREENGRASSV2_API ThrottlingException GreengrassV2Error::GetModeledError() +{ + assert(this->GetErrorType() == GreengrassV2Errors::THROTTLING); + return ThrottlingException(this->GetJsonPayload().View()); +} + +template<> AWS_GREENGRASSV2_API ServiceQuotaExceededException GreengrassV2Error::GetModeledError() +{ + assert(this->GetErrorType() == GreengrassV2Errors::SERVICE_QUOTA_EXCEEDED); + return ServiceQuotaExceededException(this->GetJsonPayload().View()); +} + +template<> AWS_GREENGRASSV2_API ResourceNotFoundException GreengrassV2Error::GetModeledError() +{ + assert(this->GetErrorType() == GreengrassV2Errors::RESOURCE_NOT_FOUND); + return ResourceNotFoundException(this->GetJsonPayload().View()); +} + +template<> AWS_GREENGRASSV2_API InternalServerException GreengrassV2Error::GetModeledError() +{ + assert(this->GetErrorType() == GreengrassV2Errors::INTERNAL_SERVER); + return InternalServerException(this->GetJsonPayload().View()); +} + +template<> AWS_GREENGRASSV2_API ValidationException GreengrassV2Error::GetModeledError() +{ + assert(this->GetErrorType() == GreengrassV2Errors::VALIDATION); + return ValidationException(this->GetJsonPayload().View()); +} + +namespace GreengrassV2ErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); +static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(GreengrassV2Errors::CONFLICT), false); + } + else if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) + { + return AWSError(static_cast(GreengrassV2Errors::SERVICE_QUOTA_EXCEEDED), false); + } + else if (hashCode == INTERNAL_SERVER_HASH) + { + return AWSError(static_cast(GreengrassV2Errors::INTERNAL_SERVER), false); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace GreengrassV2ErrorMapper +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentRequest.cpp new file mode 100644 index 00000000000..6519a3c6c87 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CancelDeploymentRequest::CancelDeploymentRequest() : + m_deploymentIdHasBeenSet(false) +{ +} + +Aws::String CancelDeploymentRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentResult.cpp new file mode 100644 index 00000000000..85c5b6a30b9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CancelDeploymentResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CancelDeploymentResult::CancelDeploymentResult() +{ +} + +CancelDeploymentResult::CancelDeploymentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CancelDeploymentResult& CancelDeploymentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp b/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp new file mode 100644 index 00000000000..60a9ca64a07 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace CloudComponentStateMapper + { + + static const int REQUESTED_HASH = HashingUtils::HashString("REQUESTED"); + static const int INITIATED_HASH = HashingUtils::HashString("INITIATED"); + static const int DEPLOYABLE_HASH = HashingUtils::HashString("DEPLOYABLE"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int DEPRECATED_HASH = HashingUtils::HashString("DEPRECATED"); + + + CloudComponentState GetCloudComponentStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == REQUESTED_HASH) + { + return CloudComponentState::REQUESTED; + } + else if (hashCode == INITIATED_HASH) + { + return CloudComponentState::INITIATED; + } + else if (hashCode == DEPLOYABLE_HASH) + { + return CloudComponentState::DEPLOYABLE; + } + else if (hashCode == FAILED_HASH) + { + return CloudComponentState::FAILED; + } + else if (hashCode == DEPRECATED_HASH) + { + return CloudComponentState::DEPRECATED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CloudComponentState::NOT_SET; + } + + Aws::String GetNameForCloudComponentState(CloudComponentState enumValue) + { + switch(enumValue) + { + case CloudComponentState::REQUESTED: + return "REQUESTED"; + case CloudComponentState::INITIATED: + return "INITIATED"; + case CloudComponentState::DEPLOYABLE: + return "DEPLOYABLE"; + case CloudComponentState::FAILED: + return "FAILED"; + case CloudComponentState::DEPRECATED: + return "DEPRECATED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CloudComponentStateMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/CloudComponentStatus.cpp b/aws-cpp-sdk-greengrassv2/source/model/CloudComponentStatus.cpp new file mode 100644 index 00000000000..cd232364430 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CloudComponentStatus.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +CloudComponentStatus::CloudComponentStatus() : + m_componentState(CloudComponentState::NOT_SET), + m_componentStateHasBeenSet(false), + m_messageHasBeenSet(false), + m_errorsHasBeenSet(false) +{ +} + +CloudComponentStatus::CloudComponentStatus(JsonView jsonValue) : + m_componentState(CloudComponentState::NOT_SET), + m_componentStateHasBeenSet(false), + m_messageHasBeenSet(false), + m_errorsHasBeenSet(false) +{ + *this = jsonValue; +} + +CloudComponentStatus& CloudComponentStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("componentState")) + { + m_componentState = CloudComponentStateMapper::GetCloudComponentStateForName(jsonValue.GetString("componentState")); + + m_componentStateHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("errors")) + { + Aws::Map errorsJsonMap = jsonValue.GetObject("errors").GetAllObjects(); + for(auto& errorsItem : errorsJsonMap) + { + m_errors[errorsItem.first] = errorsItem.second.AsString(); + } + m_errorsHasBeenSet = true; + } + + return *this; +} + +JsonValue CloudComponentStatus::Jsonize() const +{ + JsonValue payload; + + if(m_componentStateHasBeenSet) + { + payload.WithString("componentState", CloudComponentStateMapper::GetNameForCloudComponentState(m_componentState)); + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_errorsHasBeenSet) + { + JsonValue errorsJsonMap; + for(auto& errorsItem : m_errors) + { + errorsJsonMap.WithString(errorsItem.first, errorsItem.second); + } + payload.WithObject("errors", std::move(errorsJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/Component.cpp b/aws-cpp-sdk-greengrassv2/source/model/Component.cpp new file mode 100644 index 00000000000..9ad90789b23 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/Component.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +Component::Component() : + m_arnHasBeenSet(false), + m_componentNameHasBeenSet(false), + m_latestVersionHasBeenSet(false) +{ +} + +Component::Component(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_componentNameHasBeenSet(false), + m_latestVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +Component& Component::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + m_componentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("latestVersion")) + { + m_latestVersion = jsonValue.GetObject("latestVersion"); + + m_latestVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue Component::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_componentNameHasBeenSet) + { + payload.WithString("componentName", m_componentName); + + } + + if(m_latestVersionHasBeenSet) + { + payload.WithObject("latestVersion", m_latestVersion.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentCandidate.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentCandidate.cpp new file mode 100644 index 00000000000..26e6e724186 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentCandidate.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentCandidate::ComponentCandidate() : + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_versionRequirementsHasBeenSet(false) +{ +} + +ComponentCandidate::ComponentCandidate(JsonView jsonValue) : + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_versionRequirementsHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentCandidate& ComponentCandidate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + m_componentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("versionRequirements")) + { + Aws::Map versionRequirementsJsonMap = jsonValue.GetObject("versionRequirements").GetAllObjects(); + for(auto& versionRequirementsItem : versionRequirementsJsonMap) + { + m_versionRequirements[versionRequirementsItem.first] = versionRequirementsItem.second.AsString(); + } + m_versionRequirementsHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentCandidate::Jsonize() const +{ + JsonValue payload; + + if(m_componentNameHasBeenSet) + { + payload.WithString("componentName", m_componentName); + + } + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_versionRequirementsHasBeenSet) + { + JsonValue versionRequirementsJsonMap; + for(auto& versionRequirementsItem : m_versionRequirements) + { + versionRequirementsJsonMap.WithString(versionRequirementsItem.first, versionRequirementsItem.second); + } + payload.WithObject("versionRequirements", std::move(versionRequirementsJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentConfigurationUpdate.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentConfigurationUpdate.cpp new file mode 100644 index 00000000000..4050b365daa --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentConfigurationUpdate.cpp @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentConfigurationUpdate::ComponentConfigurationUpdate() : + m_mergeHasBeenSet(false), + m_resetHasBeenSet(false) +{ +} + +ComponentConfigurationUpdate::ComponentConfigurationUpdate(JsonView jsonValue) : + m_mergeHasBeenSet(false), + m_resetHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentConfigurationUpdate& ComponentConfigurationUpdate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("merge")) + { + m_merge = jsonValue.GetString("merge"); + + m_mergeHasBeenSet = true; + } + + if(jsonValue.ValueExists("reset")) + { + Array resetJsonList = jsonValue.GetArray("reset"); + for(unsigned resetIndex = 0; resetIndex < resetJsonList.GetLength(); ++resetIndex) + { + m_reset.push_back(resetJsonList[resetIndex].AsString()); + } + m_resetHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentConfigurationUpdate::Jsonize() const +{ + JsonValue payload; + + if(m_mergeHasBeenSet) + { + payload.WithString("merge", m_merge); + + } + + if(m_resetHasBeenSet) + { + Array resetJsonList(m_reset.size()); + for(unsigned resetIndex = 0; resetIndex < resetJsonList.GetLength(); ++resetIndex) + { + resetJsonList[resetIndex].AsString(m_reset[resetIndex]); + } + payload.WithArray("reset", std::move(resetJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyRequirement.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyRequirement.cpp new file mode 100644 index 00000000000..5f520fb2ba3 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyRequirement.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentDependencyRequirement::ComponentDependencyRequirement() : + m_versionRequirementHasBeenSet(false), + m_dependencyType(ComponentDependencyType::NOT_SET), + m_dependencyTypeHasBeenSet(false) +{ +} + +ComponentDependencyRequirement::ComponentDependencyRequirement(JsonView jsonValue) : + m_versionRequirementHasBeenSet(false), + m_dependencyType(ComponentDependencyType::NOT_SET), + m_dependencyTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentDependencyRequirement& ComponentDependencyRequirement::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("versionRequirement")) + { + m_versionRequirement = jsonValue.GetString("versionRequirement"); + + m_versionRequirementHasBeenSet = true; + } + + if(jsonValue.ValueExists("dependencyType")) + { + m_dependencyType = ComponentDependencyTypeMapper::GetComponentDependencyTypeForName(jsonValue.GetString("dependencyType")); + + m_dependencyTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentDependencyRequirement::Jsonize() const +{ + JsonValue payload; + + if(m_versionRequirementHasBeenSet) + { + payload.WithString("versionRequirement", m_versionRequirement); + + } + + if(m_dependencyTypeHasBeenSet) + { + payload.WithString("dependencyType", ComponentDependencyTypeMapper::GetNameForComponentDependencyType(m_dependencyType)); + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp new file mode 100644 index 00000000000..83029e4a06a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentDependencyType.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace ComponentDependencyTypeMapper + { + + static const int HARD_HASH = HashingUtils::HashString("HARD"); + static const int SOFT_HASH = HashingUtils::HashString("SOFT"); + + + ComponentDependencyType GetComponentDependencyTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == HARD_HASH) + { + return ComponentDependencyType::HARD; + } + else if (hashCode == SOFT_HASH) + { + return ComponentDependencyType::SOFT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ComponentDependencyType::NOT_SET; + } + + Aws::String GetNameForComponentDependencyType(ComponentDependencyType enumValue) + { + switch(enumValue) + { + case ComponentDependencyType::HARD: + return "HARD"; + case ComponentDependencyType::SOFT: + return "SOFT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ComponentDependencyTypeMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentDeploymentSpecification.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentDeploymentSpecification.cpp new file mode 100644 index 00000000000..d116100d99b --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentDeploymentSpecification.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentDeploymentSpecification::ComponentDeploymentSpecification() : + m_componentVersionHasBeenSet(false), + m_configurationUpdateHasBeenSet(false), + m_runWithHasBeenSet(false) +{ +} + +ComponentDeploymentSpecification::ComponentDeploymentSpecification(JsonView jsonValue) : + m_componentVersionHasBeenSet(false), + m_configurationUpdateHasBeenSet(false), + m_runWithHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentDeploymentSpecification& ComponentDeploymentSpecification::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("configurationUpdate")) + { + m_configurationUpdate = jsonValue.GetObject("configurationUpdate"); + + m_configurationUpdateHasBeenSet = true; + } + + if(jsonValue.ValueExists("runWith")) + { + m_runWith = jsonValue.GetObject("runWith"); + + m_runWithHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentDeploymentSpecification::Jsonize() const +{ + JsonValue payload; + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_configurationUpdateHasBeenSet) + { + payload.WithObject("configurationUpdate", m_configurationUpdate.Jsonize()); + + } + + if(m_runWithHasBeenSet) + { + payload.WithObject("runWith", m_runWith.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentLatestVersion.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentLatestVersion.cpp new file mode 100644 index 00000000000..fe1b94f0071 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentLatestVersion.cpp @@ -0,0 +1,141 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentLatestVersion::ComponentLatestVersion() : + m_arnHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_creationTimestampHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_publisherHasBeenSet(false), + m_platformsHasBeenSet(false) +{ +} + +ComponentLatestVersion::ComponentLatestVersion(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_creationTimestampHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_publisherHasBeenSet(false), + m_platformsHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentLatestVersion& ComponentLatestVersion::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationTimestamp")) + { + m_creationTimestamp = jsonValue.GetDouble("creationTimestamp"); + + m_creationTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("publisher")) + { + m_publisher = jsonValue.GetString("publisher"); + + m_publisherHasBeenSet = true; + } + + if(jsonValue.ValueExists("platforms")) + { + Array platformsJsonList = jsonValue.GetArray("platforms"); + for(unsigned platformsIndex = 0; platformsIndex < platformsJsonList.GetLength(); ++platformsIndex) + { + m_platforms.push_back(platformsJsonList[platformsIndex].AsObject()); + } + m_platformsHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentLatestVersion::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_creationTimestampHasBeenSet) + { + payload.WithDouble("creationTimestamp", m_creationTimestamp.SecondsWithMSPrecision()); + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_publisherHasBeenSet) + { + payload.WithString("publisher", m_publisher); + + } + + if(m_platformsHasBeenSet) + { + Array platformsJsonList(m_platforms.size()); + for(unsigned platformsIndex = 0; platformsIndex < platformsJsonList.GetLength(); ++platformsIndex) + { + platformsJsonList[platformsIndex].AsObject(m_platforms[platformsIndex].Jsonize()); + } + payload.WithArray("platforms", std::move(platformsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentPlatform.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentPlatform.cpp new file mode 100644 index 00000000000..5939e299434 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentPlatform.cpp @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentPlatform::ComponentPlatform() : + m_nameHasBeenSet(false), + m_attributesHasBeenSet(false) +{ +} + +ComponentPlatform::ComponentPlatform(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_attributesHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentPlatform& ComponentPlatform::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("attributes")) + { + Aws::Map attributesJsonMap = jsonValue.GetObject("attributes").GetAllObjects(); + for(auto& attributesItem : attributesJsonMap) + { + m_attributes[attributesItem.first] = attributesItem.second.AsString(); + } + m_attributesHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentPlatform::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_attributesHasBeenSet) + { + JsonValue attributesJsonMap; + for(auto& attributesItem : m_attributes) + { + attributesJsonMap.WithString(attributesItem.first, attributesItem.second); + } + payload.WithObject("attributes", std::move(attributesJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentRunWith.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentRunWith.cpp new file mode 100644 index 00000000000..8594dc4a77f --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentRunWith.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentRunWith::ComponentRunWith() : + m_posixUserHasBeenSet(false) +{ +} + +ComponentRunWith::ComponentRunWith(JsonView jsonValue) : + m_posixUserHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentRunWith& ComponentRunWith::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("posixUser")) + { + m_posixUser = jsonValue.GetString("posixUser"); + + m_posixUserHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentRunWith::Jsonize() const +{ + JsonValue payload; + + if(m_posixUserHasBeenSet) + { + payload.WithString("posixUser", m_posixUser); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentVersionListItem.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentVersionListItem.cpp new file mode 100644 index 00000000000..3f9ad2ebe4d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentVersionListItem.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ComponentVersionListItem::ComponentVersionListItem() : + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_arnHasBeenSet(false) +{ +} + +ComponentVersionListItem::ComponentVersionListItem(JsonView jsonValue) : + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_arnHasBeenSet(false) +{ + *this = jsonValue; +} + +ComponentVersionListItem& ComponentVersionListItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + m_componentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + return *this; +} + +JsonValue ComponentVersionListItem::Jsonize() const +{ + JsonValue payload; + + if(m_componentNameHasBeenSet) + { + payload.WithString("componentName", m_componentName); + + } + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp b/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp new file mode 100644 index 00000000000..00498a8a9c2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ComponentVisibilityScope.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace ComponentVisibilityScopeMapper + { + + static const int PRIVATE__HASH = HashingUtils::HashString("PRIVATE"); + static const int PUBLIC__HASH = HashingUtils::HashString("PUBLIC"); + + + ComponentVisibilityScope GetComponentVisibilityScopeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PRIVATE__HASH) + { + return ComponentVisibilityScope::PRIVATE_; + } + else if (hashCode == PUBLIC__HASH) + { + return ComponentVisibilityScope::PUBLIC_; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ComponentVisibilityScope::NOT_SET; + } + + Aws::String GetNameForComponentVisibilityScope(ComponentVisibilityScope enumValue) + { + switch(enumValue) + { + case ComponentVisibilityScope::PRIVATE_: + return "PRIVATE"; + case ComponentVisibilityScope::PUBLIC_: + return "PUBLIC"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ComponentVisibilityScopeMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ConflictException.cpp b/aws-cpp-sdk-greengrassv2/source/model/ConflictException.cpp new file mode 100644 index 00000000000..b7c40fc4f28 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ConflictException.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ConflictException::ConflictException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ConflictException::ConflictException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ConflictException& ConflictException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ConflictException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/CoreDevice.cpp b/aws-cpp-sdk-greengrassv2/source/model/CoreDevice.cpp new file mode 100644 index 00000000000..3409c0fa40b --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CoreDevice.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +CoreDevice::CoreDevice() : + m_coreDeviceThingNameHasBeenSet(false), + m_status(CoreDeviceStatus::NOT_SET), + m_statusHasBeenSet(false), + m_lastStatusUpdateTimestampHasBeenSet(false) +{ +} + +CoreDevice::CoreDevice(JsonView jsonValue) : + m_coreDeviceThingNameHasBeenSet(false), + m_status(CoreDeviceStatus::NOT_SET), + m_statusHasBeenSet(false), + m_lastStatusUpdateTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +CoreDevice& CoreDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("coreDeviceThingName")) + { + m_coreDeviceThingName = jsonValue.GetString("coreDeviceThingName"); + + m_coreDeviceThingNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = CoreDeviceStatusMapper::GetCoreDeviceStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastStatusUpdateTimestamp")) + { + m_lastStatusUpdateTimestamp = jsonValue.GetDouble("lastStatusUpdateTimestamp"); + + m_lastStatusUpdateTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue CoreDevice::Jsonize() const +{ + JsonValue payload; + + if(m_coreDeviceThingNameHasBeenSet) + { + payload.WithString("coreDeviceThingName", m_coreDeviceThingName); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", CoreDeviceStatusMapper::GetNameForCoreDeviceStatus(m_status)); + } + + if(m_lastStatusUpdateTimestampHasBeenSet) + { + payload.WithDouble("lastStatusUpdateTimestamp", m_lastStatusUpdateTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp b/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp new file mode 100644 index 00000000000..f90da01d552 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CoreDeviceStatus.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace CoreDeviceStatusMapper + { + + static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY"); + static const int UNHEALTHY_HASH = HashingUtils::HashString("UNHEALTHY"); + + + CoreDeviceStatus GetCoreDeviceStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == HEALTHY_HASH) + { + return CoreDeviceStatus::HEALTHY; + } + else if (hashCode == UNHEALTHY_HASH) + { + return CoreDeviceStatus::UNHEALTHY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CoreDeviceStatus::NOT_SET; + } + + Aws::String GetNameForCoreDeviceStatus(CoreDeviceStatus enumValue) + { + switch(enumValue) + { + case CoreDeviceStatus::HEALTHY: + return "HEALTHY"; + case CoreDeviceStatus::UNHEALTHY: + return "UNHEALTHY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CoreDeviceStatusMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionRequest.cpp new file mode 100644 index 00000000000..818a6229de6 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionRequest.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateComponentVersionRequest::CreateComponentVersionRequest() : + m_inlineRecipeHasBeenSet(false), + m_lambdaFunctionHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateComponentVersionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_inlineRecipeHasBeenSet) + { + payload.WithString("inlineRecipe", HashingUtils::Base64Encode(m_inlineRecipe)); + } + + if(m_lambdaFunctionHasBeenSet) + { + payload.WithObject("lambdaFunction", m_lambdaFunction.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionResult.cpp new file mode 100644 index 00000000000..bc4122d3d39 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CreateComponentVersionResult.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateComponentVersionResult::CreateComponentVersionResult() +{ +} + +CreateComponentVersionResult::CreateComponentVersionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateComponentVersionResult& CreateComponentVersionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + } + + if(jsonValue.ValueExists("creationTimestamp")) + { + m_creationTimestamp = jsonValue.GetDouble("creationTimestamp"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetObject("status"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentRequest.cpp new file mode 100644 index 00000000000..02624bf1d65 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentRequest.cpp @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateDeploymentRequest::CreateDeploymentRequest() : + m_targetArnHasBeenSet(false), + m_deploymentNameHasBeenSet(false), + m_componentsHasBeenSet(false), + m_iotJobConfigurationHasBeenSet(false), + m_deploymentPoliciesHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateDeploymentRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_targetArnHasBeenSet) + { + payload.WithString("targetArn", m_targetArn); + + } + + if(m_deploymentNameHasBeenSet) + { + payload.WithString("deploymentName", m_deploymentName); + + } + + if(m_componentsHasBeenSet) + { + JsonValue componentsJsonMap; + for(auto& componentsItem : m_components) + { + componentsJsonMap.WithObject(componentsItem.first, componentsItem.second.Jsonize()); + } + payload.WithObject("components", std::move(componentsJsonMap)); + + } + + if(m_iotJobConfigurationHasBeenSet) + { + payload.WithObject("iotJobConfiguration", m_iotJobConfiguration.Jsonize()); + + } + + if(m_deploymentPoliciesHasBeenSet) + { + payload.WithObject("deploymentPolicies", m_deploymentPolicies.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentResult.cpp new file mode 100644 index 00000000000..150373700fe --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/CreateDeploymentResult.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateDeploymentResult::CreateDeploymentResult() +{ +} + +CreateDeploymentResult::CreateDeploymentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateDeploymentResult& CreateDeploymentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("deploymentId")) + { + m_deploymentId = jsonValue.GetString("deploymentId"); + + } + + if(jsonValue.ValueExists("iotJobId")) + { + m_iotJobId = jsonValue.GetString("iotJobId"); + + } + + if(jsonValue.ValueExists("iotJobArn")) + { + m_iotJobArn = jsonValue.GetString("iotJobArn"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeleteComponentRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeleteComponentRequest.cpp new file mode 100644 index 00000000000..9968643593a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeleteComponentRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteComponentRequest::DeleteComponentRequest() : + m_arnHasBeenSet(false) +{ +} + +Aws::String DeleteComponentRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeleteCoreDeviceRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeleteCoreDeviceRequest.cpp new file mode 100644 index 00000000000..781281af7ee --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeleteCoreDeviceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteCoreDeviceRequest::DeleteCoreDeviceRequest() : + m_coreDeviceThingNameHasBeenSet(false) +{ +} + +Aws::String DeleteCoreDeviceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/Deployment.cpp b/aws-cpp-sdk-greengrassv2/source/model/Deployment.cpp new file mode 100644 index 00000000000..4aa12a8ce6d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/Deployment.cpp @@ -0,0 +1,151 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +Deployment::Deployment() : + m_targetArnHasBeenSet(false), + m_revisionIdHasBeenSet(false), + m_deploymentIdHasBeenSet(false), + m_deploymentNameHasBeenSet(false), + m_creationTimestampHasBeenSet(false), + m_deploymentStatus(DeploymentStatus::NOT_SET), + m_deploymentStatusHasBeenSet(false), + m_isLatestForTarget(false), + m_isLatestForTargetHasBeenSet(false) +{ +} + +Deployment::Deployment(JsonView jsonValue) : + m_targetArnHasBeenSet(false), + m_revisionIdHasBeenSet(false), + m_deploymentIdHasBeenSet(false), + m_deploymentNameHasBeenSet(false), + m_creationTimestampHasBeenSet(false), + m_deploymentStatus(DeploymentStatus::NOT_SET), + m_deploymentStatusHasBeenSet(false), + m_isLatestForTarget(false), + m_isLatestForTargetHasBeenSet(false) +{ + *this = jsonValue; +} + +Deployment& Deployment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("targetArn")) + { + m_targetArn = jsonValue.GetString("targetArn"); + + m_targetArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("revisionId")) + { + m_revisionId = jsonValue.GetString("revisionId"); + + m_revisionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("deploymentId")) + { + m_deploymentId = jsonValue.GetString("deploymentId"); + + m_deploymentIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("deploymentName")) + { + m_deploymentName = jsonValue.GetString("deploymentName"); + + m_deploymentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationTimestamp")) + { + m_creationTimestamp = jsonValue.GetDouble("creationTimestamp"); + + m_creationTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("deploymentStatus")) + { + m_deploymentStatus = DeploymentStatusMapper::GetDeploymentStatusForName(jsonValue.GetString("deploymentStatus")); + + m_deploymentStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("isLatestForTarget")) + { + m_isLatestForTarget = jsonValue.GetBool("isLatestForTarget"); + + m_isLatestForTargetHasBeenSet = true; + } + + return *this; +} + +JsonValue Deployment::Jsonize() const +{ + JsonValue payload; + + if(m_targetArnHasBeenSet) + { + payload.WithString("targetArn", m_targetArn); + + } + + if(m_revisionIdHasBeenSet) + { + payload.WithString("revisionId", m_revisionId); + + } + + if(m_deploymentIdHasBeenSet) + { + payload.WithString("deploymentId", m_deploymentId); + + } + + if(m_deploymentNameHasBeenSet) + { + payload.WithString("deploymentName", m_deploymentName); + + } + + if(m_creationTimestampHasBeenSet) + { + payload.WithDouble("creationTimestamp", m_creationTimestamp.SecondsWithMSPrecision()); + } + + if(m_deploymentStatusHasBeenSet) + { + payload.WithString("deploymentStatus", DeploymentStatusMapper::GetNameForDeploymentStatus(m_deploymentStatus)); + } + + if(m_isLatestForTargetHasBeenSet) + { + payload.WithBool("isLatestForTarget", m_isLatestForTarget); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicy.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicy.cpp new file mode 100644 index 00000000000..c29b2c2c839 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicy.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +DeploymentComponentUpdatePolicy::DeploymentComponentUpdatePolicy() : + m_timeoutInSeconds(0), + m_timeoutInSecondsHasBeenSet(false), + m_action(DeploymentComponentUpdatePolicyAction::NOT_SET), + m_actionHasBeenSet(false) +{ +} + +DeploymentComponentUpdatePolicy::DeploymentComponentUpdatePolicy(JsonView jsonValue) : + m_timeoutInSeconds(0), + m_timeoutInSecondsHasBeenSet(false), + m_action(DeploymentComponentUpdatePolicyAction::NOT_SET), + m_actionHasBeenSet(false) +{ + *this = jsonValue; +} + +DeploymentComponentUpdatePolicy& DeploymentComponentUpdatePolicy::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("timeoutInSeconds")) + { + m_timeoutInSeconds = jsonValue.GetInteger("timeoutInSeconds"); + + m_timeoutInSecondsHasBeenSet = true; + } + + if(jsonValue.ValueExists("action")) + { + m_action = DeploymentComponentUpdatePolicyActionMapper::GetDeploymentComponentUpdatePolicyActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + return *this; +} + +JsonValue DeploymentComponentUpdatePolicy::Jsonize() const +{ + JsonValue payload; + + if(m_timeoutInSecondsHasBeenSet) + { + payload.WithInteger("timeoutInSeconds", m_timeoutInSeconds); + + } + + if(m_actionHasBeenSet) + { + payload.WithString("action", DeploymentComponentUpdatePolicyActionMapper::GetNameForDeploymentComponentUpdatePolicyAction(m_action)); + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp new file mode 100644 index 00000000000..ff680e99a62 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentComponentUpdatePolicyAction.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace DeploymentComponentUpdatePolicyActionMapper + { + + static const int NOTIFY_COMPONENTS_HASH = HashingUtils::HashString("NOTIFY_COMPONENTS"); + static const int SKIP_NOTIFY_COMPONENTS_HASH = HashingUtils::HashString("SKIP_NOTIFY_COMPONENTS"); + + + DeploymentComponentUpdatePolicyAction GetDeploymentComponentUpdatePolicyActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == NOTIFY_COMPONENTS_HASH) + { + return DeploymentComponentUpdatePolicyAction::NOTIFY_COMPONENTS; + } + else if (hashCode == SKIP_NOTIFY_COMPONENTS_HASH) + { + return DeploymentComponentUpdatePolicyAction::SKIP_NOTIFY_COMPONENTS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DeploymentComponentUpdatePolicyAction::NOT_SET; + } + + Aws::String GetNameForDeploymentComponentUpdatePolicyAction(DeploymentComponentUpdatePolicyAction enumValue) + { + switch(enumValue) + { + case DeploymentComponentUpdatePolicyAction::NOTIFY_COMPONENTS: + return "NOTIFY_COMPONENTS"; + case DeploymentComponentUpdatePolicyAction::SKIP_NOTIFY_COMPONENTS: + return "SKIP_NOTIFY_COMPONENTS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DeploymentComponentUpdatePolicyActionMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentConfigurationValidationPolicy.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentConfigurationValidationPolicy.cpp new file mode 100644 index 00000000000..a6278500f03 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentConfigurationValidationPolicy.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +DeploymentConfigurationValidationPolicy::DeploymentConfigurationValidationPolicy() : + m_timeoutInSeconds(0), + m_timeoutInSecondsHasBeenSet(false) +{ +} + +DeploymentConfigurationValidationPolicy::DeploymentConfigurationValidationPolicy(JsonView jsonValue) : + m_timeoutInSeconds(0), + m_timeoutInSecondsHasBeenSet(false) +{ + *this = jsonValue; +} + +DeploymentConfigurationValidationPolicy& DeploymentConfigurationValidationPolicy::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("timeoutInSeconds")) + { + m_timeoutInSeconds = jsonValue.GetInteger("timeoutInSeconds"); + + m_timeoutInSecondsHasBeenSet = true; + } + + return *this; +} + +JsonValue DeploymentConfigurationValidationPolicy::Jsonize() const +{ + JsonValue payload; + + if(m_timeoutInSecondsHasBeenSet) + { + payload.WithInteger("timeoutInSeconds", m_timeoutInSeconds); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp new file mode 100644 index 00000000000..b19a6359476 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentFailureHandlingPolicy.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace DeploymentFailureHandlingPolicyMapper + { + + static const int ROLLBACK_HASH = HashingUtils::HashString("ROLLBACK"); + static const int DO_NOTHING_HASH = HashingUtils::HashString("DO_NOTHING"); + + + DeploymentFailureHandlingPolicy GetDeploymentFailureHandlingPolicyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ROLLBACK_HASH) + { + return DeploymentFailureHandlingPolicy::ROLLBACK; + } + else if (hashCode == DO_NOTHING_HASH) + { + return DeploymentFailureHandlingPolicy::DO_NOTHING; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DeploymentFailureHandlingPolicy::NOT_SET; + } + + Aws::String GetNameForDeploymentFailureHandlingPolicy(DeploymentFailureHandlingPolicy enumValue) + { + switch(enumValue) + { + case DeploymentFailureHandlingPolicy::ROLLBACK: + return "ROLLBACK"; + case DeploymentFailureHandlingPolicy::DO_NOTHING: + return "DO_NOTHING"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DeploymentFailureHandlingPolicyMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp new file mode 100644 index 00000000000..1671172e6a1 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentHistoryFilter.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace DeploymentHistoryFilterMapper + { + + static const int ALL_HASH = HashingUtils::HashString("ALL"); + static const int LATEST_ONLY_HASH = HashingUtils::HashString("LATEST_ONLY"); + + + DeploymentHistoryFilter GetDeploymentHistoryFilterForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ALL_HASH) + { + return DeploymentHistoryFilter::ALL; + } + else if (hashCode == LATEST_ONLY_HASH) + { + return DeploymentHistoryFilter::LATEST_ONLY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DeploymentHistoryFilter::NOT_SET; + } + + Aws::String GetNameForDeploymentHistoryFilter(DeploymentHistoryFilter enumValue) + { + switch(enumValue) + { + case DeploymentHistoryFilter::ALL: + return "ALL"; + case DeploymentHistoryFilter::LATEST_ONLY: + return "LATEST_ONLY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DeploymentHistoryFilterMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentIoTJobConfiguration.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentIoTJobConfiguration.cpp new file mode 100644 index 00000000000..4c029cbe3ff --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentIoTJobConfiguration.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +DeploymentIoTJobConfiguration::DeploymentIoTJobConfiguration() : + m_jobExecutionsRolloutConfigHasBeenSet(false), + m_abortConfigHasBeenSet(false), + m_timeoutConfigHasBeenSet(false) +{ +} + +DeploymentIoTJobConfiguration::DeploymentIoTJobConfiguration(JsonView jsonValue) : + m_jobExecutionsRolloutConfigHasBeenSet(false), + m_abortConfigHasBeenSet(false), + m_timeoutConfigHasBeenSet(false) +{ + *this = jsonValue; +} + +DeploymentIoTJobConfiguration& DeploymentIoTJobConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("jobExecutionsRolloutConfig")) + { + m_jobExecutionsRolloutConfig = jsonValue.GetObject("jobExecutionsRolloutConfig"); + + m_jobExecutionsRolloutConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("abortConfig")) + { + m_abortConfig = jsonValue.GetObject("abortConfig"); + + m_abortConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("timeoutConfig")) + { + m_timeoutConfig = jsonValue.GetObject("timeoutConfig"); + + m_timeoutConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue DeploymentIoTJobConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_jobExecutionsRolloutConfigHasBeenSet) + { + payload.WithObject("jobExecutionsRolloutConfig", m_jobExecutionsRolloutConfig.Jsonize()); + + } + + if(m_abortConfigHasBeenSet) + { + payload.WithObject("abortConfig", m_abortConfig.Jsonize()); + + } + + if(m_timeoutConfigHasBeenSet) + { + payload.WithObject("timeoutConfig", m_timeoutConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentPolicies.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentPolicies.cpp new file mode 100644 index 00000000000..9480148615d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentPolicies.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +DeploymentPolicies::DeploymentPolicies() : + m_failureHandlingPolicy(DeploymentFailureHandlingPolicy::NOT_SET), + m_failureHandlingPolicyHasBeenSet(false), + m_componentUpdatePolicyHasBeenSet(false), + m_configurationValidationPolicyHasBeenSet(false) +{ +} + +DeploymentPolicies::DeploymentPolicies(JsonView jsonValue) : + m_failureHandlingPolicy(DeploymentFailureHandlingPolicy::NOT_SET), + m_failureHandlingPolicyHasBeenSet(false), + m_componentUpdatePolicyHasBeenSet(false), + m_configurationValidationPolicyHasBeenSet(false) +{ + *this = jsonValue; +} + +DeploymentPolicies& DeploymentPolicies::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("failureHandlingPolicy")) + { + m_failureHandlingPolicy = DeploymentFailureHandlingPolicyMapper::GetDeploymentFailureHandlingPolicyForName(jsonValue.GetString("failureHandlingPolicy")); + + m_failureHandlingPolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentUpdatePolicy")) + { + m_componentUpdatePolicy = jsonValue.GetObject("componentUpdatePolicy"); + + m_componentUpdatePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("configurationValidationPolicy")) + { + m_configurationValidationPolicy = jsonValue.GetObject("configurationValidationPolicy"); + + m_configurationValidationPolicyHasBeenSet = true; + } + + return *this; +} + +JsonValue DeploymentPolicies::Jsonize() const +{ + JsonValue payload; + + if(m_failureHandlingPolicyHasBeenSet) + { + payload.WithString("failureHandlingPolicy", DeploymentFailureHandlingPolicyMapper::GetNameForDeploymentFailureHandlingPolicy(m_failureHandlingPolicy)); + } + + if(m_componentUpdatePolicyHasBeenSet) + { + payload.WithObject("componentUpdatePolicy", m_componentUpdatePolicy.Jsonize()); + + } + + if(m_configurationValidationPolicyHasBeenSet) + { + payload.WithObject("configurationValidationPolicy", m_configurationValidationPolicy.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp b/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp new file mode 100644 index 00000000000..002005a8907 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DeploymentStatus.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace DeploymentStatusMapper + { + + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int INACTIVE_HASH = HashingUtils::HashString("INACTIVE"); + + + DeploymentStatus GetDeploymentStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ACTIVE_HASH) + { + return DeploymentStatus::ACTIVE; + } + else if (hashCode == COMPLETED_HASH) + { + return DeploymentStatus::COMPLETED; + } + else if (hashCode == CANCELED_HASH) + { + return DeploymentStatus::CANCELED; + } + else if (hashCode == FAILED_HASH) + { + return DeploymentStatus::FAILED; + } + else if (hashCode == INACTIVE_HASH) + { + return DeploymentStatus::INACTIVE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DeploymentStatus::NOT_SET; + } + + Aws::String GetNameForDeploymentStatus(DeploymentStatus enumValue) + { + switch(enumValue) + { + case DeploymentStatus::ACTIVE: + return "ACTIVE"; + case DeploymentStatus::COMPLETED: + return "COMPLETED"; + case DeploymentStatus::CANCELED: + return "CANCELED"; + case DeploymentStatus::FAILED: + return "FAILED"; + case DeploymentStatus::INACTIVE: + return "INACTIVE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DeploymentStatusMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/DescribeComponentRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/DescribeComponentRequest.cpp new file mode 100644 index 00000000000..4a88a0c9fda --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DescribeComponentRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeComponentRequest::DescribeComponentRequest() : + m_arnHasBeenSet(false) +{ +} + +Aws::String DescribeComponentRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/DescribeComponentResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/DescribeComponentResult.cpp new file mode 100644 index 00000000000..d1d8a0bd508 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/DescribeComponentResult.cpp @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeComponentResult::DescribeComponentResult() +{ +} + +DescribeComponentResult::DescribeComponentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeComponentResult& DescribeComponentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + } + + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + } + + if(jsonValue.ValueExists("creationTimestamp")) + { + m_creationTimestamp = jsonValue.GetDouble("creationTimestamp"); + + } + + if(jsonValue.ValueExists("publisher")) + { + m_publisher = jsonValue.GetString("publisher"); + + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = jsonValue.GetObject("status"); + + } + + if(jsonValue.ValueExists("platforms")) + { + Array platformsJsonList = jsonValue.GetArray("platforms"); + for(unsigned platformsIndex = 0; platformsIndex < platformsJsonList.GetLength(); ++platformsIndex) + { + m_platforms.push_back(platformsJsonList[platformsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeployment.cpp b/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeployment.cpp new file mode 100644 index 00000000000..e8b90ebb647 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeployment.cpp @@ -0,0 +1,193 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +EffectiveDeployment::EffectiveDeployment() : + m_deploymentIdHasBeenSet(false), + m_deploymentNameHasBeenSet(false), + m_iotJobIdHasBeenSet(false), + m_iotJobArnHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_targetArnHasBeenSet(false), + m_coreDeviceExecutionStatus(EffectiveDeploymentExecutionStatus::NOT_SET), + m_coreDeviceExecutionStatusHasBeenSet(false), + m_reasonHasBeenSet(false), + m_creationTimestampHasBeenSet(false), + m_modifiedTimestampHasBeenSet(false) +{ +} + +EffectiveDeployment::EffectiveDeployment(JsonView jsonValue) : + m_deploymentIdHasBeenSet(false), + m_deploymentNameHasBeenSet(false), + m_iotJobIdHasBeenSet(false), + m_iotJobArnHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_targetArnHasBeenSet(false), + m_coreDeviceExecutionStatus(EffectiveDeploymentExecutionStatus::NOT_SET), + m_coreDeviceExecutionStatusHasBeenSet(false), + m_reasonHasBeenSet(false), + m_creationTimestampHasBeenSet(false), + m_modifiedTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +EffectiveDeployment& EffectiveDeployment::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("deploymentId")) + { + m_deploymentId = jsonValue.GetString("deploymentId"); + + m_deploymentIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("deploymentName")) + { + m_deploymentName = jsonValue.GetString("deploymentName"); + + m_deploymentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("iotJobId")) + { + m_iotJobId = jsonValue.GetString("iotJobId"); + + m_iotJobIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("iotJobArn")) + { + m_iotJobArn = jsonValue.GetString("iotJobArn"); + + m_iotJobArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("targetArn")) + { + m_targetArn = jsonValue.GetString("targetArn"); + + m_targetArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("coreDeviceExecutionStatus")) + { + m_coreDeviceExecutionStatus = EffectiveDeploymentExecutionStatusMapper::GetEffectiveDeploymentExecutionStatusForName(jsonValue.GetString("coreDeviceExecutionStatus")); + + m_coreDeviceExecutionStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("reason")) + { + m_reason = jsonValue.GetString("reason"); + + m_reasonHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationTimestamp")) + { + m_creationTimestamp = jsonValue.GetDouble("creationTimestamp"); + + m_creationTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("modifiedTimestamp")) + { + m_modifiedTimestamp = jsonValue.GetDouble("modifiedTimestamp"); + + m_modifiedTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue EffectiveDeployment::Jsonize() const +{ + JsonValue payload; + + if(m_deploymentIdHasBeenSet) + { + payload.WithString("deploymentId", m_deploymentId); + + } + + if(m_deploymentNameHasBeenSet) + { + payload.WithString("deploymentName", m_deploymentName); + + } + + if(m_iotJobIdHasBeenSet) + { + payload.WithString("iotJobId", m_iotJobId); + + } + + if(m_iotJobArnHasBeenSet) + { + payload.WithString("iotJobArn", m_iotJobArn); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_targetArnHasBeenSet) + { + payload.WithString("targetArn", m_targetArn); + + } + + if(m_coreDeviceExecutionStatusHasBeenSet) + { + payload.WithString("coreDeviceExecutionStatus", EffectiveDeploymentExecutionStatusMapper::GetNameForEffectiveDeploymentExecutionStatus(m_coreDeviceExecutionStatus)); + } + + if(m_reasonHasBeenSet) + { + payload.WithString("reason", m_reason); + + } + + if(m_creationTimestampHasBeenSet) + { + payload.WithDouble("creationTimestamp", m_creationTimestamp.SecondsWithMSPrecision()); + } + + if(m_modifiedTimestampHasBeenSet) + { + payload.WithDouble("modifiedTimestamp", m_modifiedTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp b/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp new file mode 100644 index 00000000000..cb7876059b2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/EffectiveDeploymentExecutionStatus.cpp @@ -0,0 +1,105 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace EffectiveDeploymentExecutionStatusMapper + { + + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + + + EffectiveDeploymentExecutionStatus GetEffectiveDeploymentExecutionStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IN_PROGRESS_HASH) + { + return EffectiveDeploymentExecutionStatus::IN_PROGRESS; + } + else if (hashCode == QUEUED_HASH) + { + return EffectiveDeploymentExecutionStatus::QUEUED; + } + else if (hashCode == FAILED_HASH) + { + return EffectiveDeploymentExecutionStatus::FAILED; + } + else if (hashCode == COMPLETED_HASH) + { + return EffectiveDeploymentExecutionStatus::COMPLETED; + } + else if (hashCode == TIMED_OUT_HASH) + { + return EffectiveDeploymentExecutionStatus::TIMED_OUT; + } + else if (hashCode == CANCELED_HASH) + { + return EffectiveDeploymentExecutionStatus::CANCELED; + } + else if (hashCode == REJECTED_HASH) + { + return EffectiveDeploymentExecutionStatus::REJECTED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return EffectiveDeploymentExecutionStatus::NOT_SET; + } + + Aws::String GetNameForEffectiveDeploymentExecutionStatus(EffectiveDeploymentExecutionStatus enumValue) + { + switch(enumValue) + { + case EffectiveDeploymentExecutionStatus::IN_PROGRESS: + return "IN_PROGRESS"; + case EffectiveDeploymentExecutionStatus::QUEUED: + return "QUEUED"; + case EffectiveDeploymentExecutionStatus::FAILED: + return "FAILED"; + case EffectiveDeploymentExecutionStatus::COMPLETED: + return "COMPLETED"; + case EffectiveDeploymentExecutionStatus::TIMED_OUT: + return "TIMED_OUT"; + case EffectiveDeploymentExecutionStatus::CANCELED: + return "CANCELED"; + case EffectiveDeploymentExecutionStatus::REJECTED: + return "REJECTED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace EffectiveDeploymentExecutionStatusMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetComponentRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetComponentRequest.cpp new file mode 100644 index 00000000000..16f2647c2bb --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetComponentRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetComponentRequest::GetComponentRequest() : + m_recipeOutputFormat(RecipeOutputFormat::NOT_SET), + m_recipeOutputFormatHasBeenSet(false), + m_arnHasBeenSet(false) +{ +} + +Aws::String GetComponentRequest::SerializePayload() const +{ + return {}; +} + +void GetComponentRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_recipeOutputFormatHasBeenSet) + { + ss << RecipeOutputFormatMapper::GetNameForRecipeOutputFormat(m_recipeOutputFormat); + uri.AddQueryStringParameter("recipeOutputFormat", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetComponentResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetComponentResult.cpp new file mode 100644 index 00000000000..b5383cd6b58 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetComponentResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetComponentResult::GetComponentResult() : + m_recipeOutputFormat(RecipeOutputFormat::NOT_SET) +{ +} + +GetComponentResult::GetComponentResult(const Aws::AmazonWebServiceResult& result) : + m_recipeOutputFormat(RecipeOutputFormat::NOT_SET) +{ + *this = result; +} + +GetComponentResult& GetComponentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("recipeOutputFormat")) + { + m_recipeOutputFormat = RecipeOutputFormatMapper::GetRecipeOutputFormatForName(jsonValue.GetString("recipeOutputFormat")); + + } + + if(jsonValue.ValueExists("recipe")) + { + m_recipe = HashingUtils::Base64Decode(jsonValue.GetString("recipe")); + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactRequest.cpp new file mode 100644 index 00000000000..e3ef5f94340 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetComponentVersionArtifactRequest::GetComponentVersionArtifactRequest() : + m_arnHasBeenSet(false), + m_artifactNameHasBeenSet(false) +{ +} + +Aws::String GetComponentVersionArtifactRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactResult.cpp new file mode 100644 index 00000000000..b634a40de03 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetComponentVersionArtifactResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetComponentVersionArtifactResult::GetComponentVersionArtifactResult() +{ +} + +GetComponentVersionArtifactResult::GetComponentVersionArtifactResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetComponentVersionArtifactResult& GetComponentVersionArtifactResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("preSignedUrl")) + { + m_preSignedUrl = jsonValue.GetString("preSignedUrl"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceRequest.cpp new file mode 100644 index 00000000000..8f694ca70c5 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetCoreDeviceRequest::GetCoreDeviceRequest() : + m_coreDeviceThingNameHasBeenSet(false) +{ +} + +Aws::String GetCoreDeviceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceResult.cpp new file mode 100644 index 00000000000..d7d0ce3574b --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetCoreDeviceResult.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetCoreDeviceResult::GetCoreDeviceResult() : + m_status(CoreDeviceStatus::NOT_SET) +{ +} + +GetCoreDeviceResult::GetCoreDeviceResult(const Aws::AmazonWebServiceResult& result) : + m_status(CoreDeviceStatus::NOT_SET) +{ + *this = result; +} + +GetCoreDeviceResult& GetCoreDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("coreDeviceThingName")) + { + m_coreDeviceThingName = jsonValue.GetString("coreDeviceThingName"); + + } + + if(jsonValue.ValueExists("coreVersion")) + { + m_coreVersion = jsonValue.GetString("coreVersion"); + + } + + if(jsonValue.ValueExists("platform")) + { + m_platform = jsonValue.GetString("platform"); + + } + + if(jsonValue.ValueExists("architecture")) + { + m_architecture = jsonValue.GetString("architecture"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = CoreDeviceStatusMapper::GetCoreDeviceStatusForName(jsonValue.GetString("status")); + + } + + if(jsonValue.ValueExists("lastStatusUpdateTimestamp")) + { + m_lastStatusUpdateTimestamp = jsonValue.GetDouble("lastStatusUpdateTimestamp"); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetDeploymentRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetDeploymentRequest.cpp new file mode 100644 index 00000000000..17dcc53dc2e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetDeploymentRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetDeploymentRequest::GetDeploymentRequest() : + m_deploymentIdHasBeenSet(false) +{ +} + +Aws::String GetDeploymentRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/GetDeploymentResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/GetDeploymentResult.cpp new file mode 100644 index 00000000000..ced46144c7b --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/GetDeploymentResult.cpp @@ -0,0 +1,122 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetDeploymentResult::GetDeploymentResult() : + m_deploymentStatus(DeploymentStatus::NOT_SET), + m_isLatestForTarget(false) +{ +} + +GetDeploymentResult::GetDeploymentResult(const Aws::AmazonWebServiceResult& result) : + m_deploymentStatus(DeploymentStatus::NOT_SET), + m_isLatestForTarget(false) +{ + *this = result; +} + +GetDeploymentResult& GetDeploymentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("targetArn")) + { + m_targetArn = jsonValue.GetString("targetArn"); + + } + + if(jsonValue.ValueExists("revisionId")) + { + m_revisionId = jsonValue.GetString("revisionId"); + + } + + if(jsonValue.ValueExists("deploymentId")) + { + m_deploymentId = jsonValue.GetString("deploymentId"); + + } + + if(jsonValue.ValueExists("deploymentName")) + { + m_deploymentName = jsonValue.GetString("deploymentName"); + + } + + if(jsonValue.ValueExists("deploymentStatus")) + { + m_deploymentStatus = DeploymentStatusMapper::GetDeploymentStatusForName(jsonValue.GetString("deploymentStatus")); + + } + + if(jsonValue.ValueExists("iotJobId")) + { + m_iotJobId = jsonValue.GetString("iotJobId"); + + } + + if(jsonValue.ValueExists("iotJobArn")) + { + m_iotJobArn = jsonValue.GetString("iotJobArn"); + + } + + if(jsonValue.ValueExists("components")) + { + Aws::Map componentsJsonMap = jsonValue.GetObject("components").GetAllObjects(); + for(auto& componentsItem : componentsJsonMap) + { + m_components[componentsItem.first] = componentsItem.second.AsObject(); + } + } + + if(jsonValue.ValueExists("deploymentPolicies")) + { + m_deploymentPolicies = jsonValue.GetObject("deploymentPolicies"); + + } + + if(jsonValue.ValueExists("iotJobConfiguration")) + { + m_iotJobConfiguration = jsonValue.GetObject("iotJobConfiguration"); + + } + + if(jsonValue.ValueExists("creationTimestamp")) + { + m_creationTimestamp = jsonValue.GetDouble("creationTimestamp"); + + } + + if(jsonValue.ValueExists("isLatestForTarget")) + { + m_isLatestForTarget = jsonValue.GetBool("isLatestForTarget"); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/InstalledComponent.cpp b/aws-cpp-sdk-greengrassv2/source/model/InstalledComponent.cpp new file mode 100644 index 00000000000..1220b352e0c --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/InstalledComponent.cpp @@ -0,0 +1,122 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +InstalledComponent::InstalledComponent() : + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_lifecycleState(InstalledComponentLifecycleState::NOT_SET), + m_lifecycleStateHasBeenSet(false), + m_lifecycleStateDetailsHasBeenSet(false), + m_isRoot(false), + m_isRootHasBeenSet(false) +{ +} + +InstalledComponent::InstalledComponent(JsonView jsonValue) : + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_lifecycleState(InstalledComponentLifecycleState::NOT_SET), + m_lifecycleStateHasBeenSet(false), + m_lifecycleStateDetailsHasBeenSet(false), + m_isRoot(false), + m_isRootHasBeenSet(false) +{ + *this = jsonValue; +} + +InstalledComponent& InstalledComponent::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + m_componentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("lifecycleState")) + { + m_lifecycleState = InstalledComponentLifecycleStateMapper::GetInstalledComponentLifecycleStateForName(jsonValue.GetString("lifecycleState")); + + m_lifecycleStateHasBeenSet = true; + } + + if(jsonValue.ValueExists("lifecycleStateDetails")) + { + m_lifecycleStateDetails = jsonValue.GetString("lifecycleStateDetails"); + + m_lifecycleStateDetailsHasBeenSet = true; + } + + if(jsonValue.ValueExists("isRoot")) + { + m_isRoot = jsonValue.GetBool("isRoot"); + + m_isRootHasBeenSet = true; + } + + return *this; +} + +JsonValue InstalledComponent::Jsonize() const +{ + JsonValue payload; + + if(m_componentNameHasBeenSet) + { + payload.WithString("componentName", m_componentName); + + } + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_lifecycleStateHasBeenSet) + { + payload.WithString("lifecycleState", InstalledComponentLifecycleStateMapper::GetNameForInstalledComponentLifecycleState(m_lifecycleState)); + } + + if(m_lifecycleStateDetailsHasBeenSet) + { + payload.WithString("lifecycleStateDetails", m_lifecycleStateDetails); + + } + + if(m_isRootHasBeenSet) + { + payload.WithBool("isRoot", m_isRoot); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp b/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp new file mode 100644 index 00000000000..0bb7f569ec8 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/InstalledComponentLifecycleState.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace InstalledComponentLifecycleStateMapper + { + + static const int NEW__HASH = HashingUtils::HashString("NEW"); + static const int INSTALLED_HASH = HashingUtils::HashString("INSTALLED"); + static const int STARTING_HASH = HashingUtils::HashString("STARTING"); + static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); + static const int ERRORED_HASH = HashingUtils::HashString("ERRORED"); + static const int BROKEN_HASH = HashingUtils::HashString("BROKEN"); + static const int FINISHED_HASH = HashingUtils::HashString("FINISHED"); + + + InstalledComponentLifecycleState GetInstalledComponentLifecycleStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == NEW__HASH) + { + return InstalledComponentLifecycleState::NEW_; + } + else if (hashCode == INSTALLED_HASH) + { + return InstalledComponentLifecycleState::INSTALLED; + } + else if (hashCode == STARTING_HASH) + { + return InstalledComponentLifecycleState::STARTING; + } + else if (hashCode == RUNNING_HASH) + { + return InstalledComponentLifecycleState::RUNNING; + } + else if (hashCode == STOPPING_HASH) + { + return InstalledComponentLifecycleState::STOPPING; + } + else if (hashCode == ERRORED_HASH) + { + return InstalledComponentLifecycleState::ERRORED; + } + else if (hashCode == BROKEN_HASH) + { + return InstalledComponentLifecycleState::BROKEN; + } + else if (hashCode == FINISHED_HASH) + { + return InstalledComponentLifecycleState::FINISHED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return InstalledComponentLifecycleState::NOT_SET; + } + + Aws::String GetNameForInstalledComponentLifecycleState(InstalledComponentLifecycleState enumValue) + { + switch(enumValue) + { + case InstalledComponentLifecycleState::NEW_: + return "NEW"; + case InstalledComponentLifecycleState::INSTALLED: + return "INSTALLED"; + case InstalledComponentLifecycleState::STARTING: + return "STARTING"; + case InstalledComponentLifecycleState::RUNNING: + return "RUNNING"; + case InstalledComponentLifecycleState::STOPPING: + return "STOPPING"; + case InstalledComponentLifecycleState::ERRORED: + return "ERRORED"; + case InstalledComponentLifecycleState::BROKEN: + return "BROKEN"; + case InstalledComponentLifecycleState::FINISHED: + return "FINISHED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace InstalledComponentLifecycleStateMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/InternalServerException.cpp b/aws-cpp-sdk-greengrassv2/source/model/InternalServerException.cpp new file mode 100644 index 00000000000..4ef25eb59f9 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/InternalServerException.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +InternalServerException::InternalServerException() : + m_messageHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false) +{ +} + +InternalServerException::InternalServerException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false) +{ + *this = jsonValue; +} + +InternalServerException& InternalServerException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue InternalServerException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp new file mode 100644 index 00000000000..f279af93ecb --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortAction.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace IoTJobAbortActionMapper + { + + static const int CANCEL_HASH = HashingUtils::HashString("CANCEL"); + + + IoTJobAbortAction GetIoTJobAbortActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CANCEL_HASH) + { + return IoTJobAbortAction::CANCEL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IoTJobAbortAction::NOT_SET; + } + + Aws::String GetNameForIoTJobAbortAction(IoTJobAbortAction enumValue) + { + switch(enumValue) + { + case IoTJobAbortAction::CANCEL: + return "CANCEL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IoTJobAbortActionMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortConfig.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortConfig.cpp new file mode 100644 index 00000000000..d1a90ebb188 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortConfig.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +IoTJobAbortConfig::IoTJobAbortConfig() : + m_criteriaListHasBeenSet(false) +{ +} + +IoTJobAbortConfig::IoTJobAbortConfig(JsonView jsonValue) : + m_criteriaListHasBeenSet(false) +{ + *this = jsonValue; +} + +IoTJobAbortConfig& IoTJobAbortConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("criteriaList")) + { + Array criteriaListJsonList = jsonValue.GetArray("criteriaList"); + for(unsigned criteriaListIndex = 0; criteriaListIndex < criteriaListJsonList.GetLength(); ++criteriaListIndex) + { + m_criteriaList.push_back(criteriaListJsonList[criteriaListIndex].AsObject()); + } + m_criteriaListHasBeenSet = true; + } + + return *this; +} + +JsonValue IoTJobAbortConfig::Jsonize() const +{ + JsonValue payload; + + if(m_criteriaListHasBeenSet) + { + Array criteriaListJsonList(m_criteriaList.size()); + for(unsigned criteriaListIndex = 0; criteriaListIndex < criteriaListJsonList.GetLength(); ++criteriaListIndex) + { + criteriaListJsonList[criteriaListIndex].AsObject(m_criteriaList[criteriaListIndex].Jsonize()); + } + payload.WithArray("criteriaList", std::move(criteriaListJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortCriteria.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortCriteria.cpp new file mode 100644 index 00000000000..6197cc79728 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobAbortCriteria.cpp @@ -0,0 +1,110 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +IoTJobAbortCriteria::IoTJobAbortCriteria() : + m_failureType(IoTJobExecutionFailureType::NOT_SET), + m_failureTypeHasBeenSet(false), + m_action(IoTJobAbortAction::NOT_SET), + m_actionHasBeenSet(false), + m_thresholdPercentage(0.0), + m_thresholdPercentageHasBeenSet(false), + m_minNumberOfExecutedThings(0), + m_minNumberOfExecutedThingsHasBeenSet(false) +{ +} + +IoTJobAbortCriteria::IoTJobAbortCriteria(JsonView jsonValue) : + m_failureType(IoTJobExecutionFailureType::NOT_SET), + m_failureTypeHasBeenSet(false), + m_action(IoTJobAbortAction::NOT_SET), + m_actionHasBeenSet(false), + m_thresholdPercentage(0.0), + m_thresholdPercentageHasBeenSet(false), + m_minNumberOfExecutedThings(0), + m_minNumberOfExecutedThingsHasBeenSet(false) +{ + *this = jsonValue; +} + +IoTJobAbortCriteria& IoTJobAbortCriteria::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("failureType")) + { + m_failureType = IoTJobExecutionFailureTypeMapper::GetIoTJobExecutionFailureTypeForName(jsonValue.GetString("failureType")); + + m_failureTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("action")) + { + m_action = IoTJobAbortActionMapper::GetIoTJobAbortActionForName(jsonValue.GetString("action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("thresholdPercentage")) + { + m_thresholdPercentage = jsonValue.GetDouble("thresholdPercentage"); + + m_thresholdPercentageHasBeenSet = true; + } + + if(jsonValue.ValueExists("minNumberOfExecutedThings")) + { + m_minNumberOfExecutedThings = jsonValue.GetInteger("minNumberOfExecutedThings"); + + m_minNumberOfExecutedThingsHasBeenSet = true; + } + + return *this; +} + +JsonValue IoTJobAbortCriteria::Jsonize() const +{ + JsonValue payload; + + if(m_failureTypeHasBeenSet) + { + payload.WithString("failureType", IoTJobExecutionFailureTypeMapper::GetNameForIoTJobExecutionFailureType(m_failureType)); + } + + if(m_actionHasBeenSet) + { + payload.WithString("action", IoTJobAbortActionMapper::GetNameForIoTJobAbortAction(m_action)); + } + + if(m_thresholdPercentageHasBeenSet) + { + payload.WithDouble("thresholdPercentage", m_thresholdPercentage); + + } + + if(m_minNumberOfExecutedThingsHasBeenSet) + { + payload.WithInteger("minNumberOfExecutedThings", m_minNumberOfExecutedThings); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp new file mode 100644 index 00000000000..47e8b64d7e2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionFailureType.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace IoTJobExecutionFailureTypeMapper + { + + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + static const int TIMED_OUT_HASH = HashingUtils::HashString("TIMED_OUT"); + static const int ALL_HASH = HashingUtils::HashString("ALL"); + + + IoTJobExecutionFailureType GetIoTJobExecutionFailureTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == FAILED_HASH) + { + return IoTJobExecutionFailureType::FAILED; + } + else if (hashCode == REJECTED_HASH) + { + return IoTJobExecutionFailureType::REJECTED; + } + else if (hashCode == TIMED_OUT_HASH) + { + return IoTJobExecutionFailureType::TIMED_OUT; + } + else if (hashCode == ALL_HASH) + { + return IoTJobExecutionFailureType::ALL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IoTJobExecutionFailureType::NOT_SET; + } + + Aws::String GetNameForIoTJobExecutionFailureType(IoTJobExecutionFailureType enumValue) + { + switch(enumValue) + { + case IoTJobExecutionFailureType::FAILED: + return "FAILED"; + case IoTJobExecutionFailureType::REJECTED: + return "REJECTED"; + case IoTJobExecutionFailureType::TIMED_OUT: + return "TIMED_OUT"; + case IoTJobExecutionFailureType::ALL: + return "ALL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IoTJobExecutionFailureTypeMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionsRolloutConfig.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionsRolloutConfig.cpp new file mode 100644 index 00000000000..6e400ad511a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobExecutionsRolloutConfig.cpp @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +IoTJobExecutionsRolloutConfig::IoTJobExecutionsRolloutConfig() : + m_exponentialRateHasBeenSet(false), + m_maximumPerMinute(0), + m_maximumPerMinuteHasBeenSet(false) +{ +} + +IoTJobExecutionsRolloutConfig::IoTJobExecutionsRolloutConfig(JsonView jsonValue) : + m_exponentialRateHasBeenSet(false), + m_maximumPerMinute(0), + m_maximumPerMinuteHasBeenSet(false) +{ + *this = jsonValue; +} + +IoTJobExecutionsRolloutConfig& IoTJobExecutionsRolloutConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("exponentialRate")) + { + m_exponentialRate = jsonValue.GetObject("exponentialRate"); + + m_exponentialRateHasBeenSet = true; + } + + if(jsonValue.ValueExists("maximumPerMinute")) + { + m_maximumPerMinute = jsonValue.GetInteger("maximumPerMinute"); + + m_maximumPerMinuteHasBeenSet = true; + } + + return *this; +} + +JsonValue IoTJobExecutionsRolloutConfig::Jsonize() const +{ + JsonValue payload; + + if(m_exponentialRateHasBeenSet) + { + payload.WithObject("exponentialRate", m_exponentialRate.Jsonize()); + + } + + if(m_maximumPerMinuteHasBeenSet) + { + payload.WithInteger("maximumPerMinute", m_maximumPerMinute); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobExponentialRolloutRate.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobExponentialRolloutRate.cpp new file mode 100644 index 00000000000..3f7cd7a7c3d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobExponentialRolloutRate.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +IoTJobExponentialRolloutRate::IoTJobExponentialRolloutRate() : + m_baseRatePerMinute(0), + m_baseRatePerMinuteHasBeenSet(false), + m_incrementFactor(0.0), + m_incrementFactorHasBeenSet(false), + m_rateIncreaseCriteriaHasBeenSet(false) +{ +} + +IoTJobExponentialRolloutRate::IoTJobExponentialRolloutRate(JsonView jsonValue) : + m_baseRatePerMinute(0), + m_baseRatePerMinuteHasBeenSet(false), + m_incrementFactor(0.0), + m_incrementFactorHasBeenSet(false), + m_rateIncreaseCriteriaHasBeenSet(false) +{ + *this = jsonValue; +} + +IoTJobExponentialRolloutRate& IoTJobExponentialRolloutRate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("baseRatePerMinute")) + { + m_baseRatePerMinute = jsonValue.GetInteger("baseRatePerMinute"); + + m_baseRatePerMinuteHasBeenSet = true; + } + + if(jsonValue.ValueExists("incrementFactor")) + { + m_incrementFactor = jsonValue.GetDouble("incrementFactor"); + + m_incrementFactorHasBeenSet = true; + } + + if(jsonValue.ValueExists("rateIncreaseCriteria")) + { + m_rateIncreaseCriteria = jsonValue.GetObject("rateIncreaseCriteria"); + + m_rateIncreaseCriteriaHasBeenSet = true; + } + + return *this; +} + +JsonValue IoTJobExponentialRolloutRate::Jsonize() const +{ + JsonValue payload; + + if(m_baseRatePerMinuteHasBeenSet) + { + payload.WithInteger("baseRatePerMinute", m_baseRatePerMinute); + + } + + if(m_incrementFactorHasBeenSet) + { + payload.WithDouble("incrementFactor", m_incrementFactor); + + } + + if(m_rateIncreaseCriteriaHasBeenSet) + { + payload.WithObject("rateIncreaseCriteria", m_rateIncreaseCriteria.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobRateIncreaseCriteria.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobRateIncreaseCriteria.cpp new file mode 100644 index 00000000000..efe7c1ff8d7 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobRateIncreaseCriteria.cpp @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +IoTJobRateIncreaseCriteria::IoTJobRateIncreaseCriteria() : + m_numberOfNotifiedThings(0), + m_numberOfNotifiedThingsHasBeenSet(false), + m_numberOfSucceededThings(0), + m_numberOfSucceededThingsHasBeenSet(false) +{ +} + +IoTJobRateIncreaseCriteria::IoTJobRateIncreaseCriteria(JsonView jsonValue) : + m_numberOfNotifiedThings(0), + m_numberOfNotifiedThingsHasBeenSet(false), + m_numberOfSucceededThings(0), + m_numberOfSucceededThingsHasBeenSet(false) +{ + *this = jsonValue; +} + +IoTJobRateIncreaseCriteria& IoTJobRateIncreaseCriteria::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("numberOfNotifiedThings")) + { + m_numberOfNotifiedThings = jsonValue.GetInteger("numberOfNotifiedThings"); + + m_numberOfNotifiedThingsHasBeenSet = true; + } + + if(jsonValue.ValueExists("numberOfSucceededThings")) + { + m_numberOfSucceededThings = jsonValue.GetInteger("numberOfSucceededThings"); + + m_numberOfSucceededThingsHasBeenSet = true; + } + + return *this; +} + +JsonValue IoTJobRateIncreaseCriteria::Jsonize() const +{ + JsonValue payload; + + if(m_numberOfNotifiedThingsHasBeenSet) + { + payload.WithInteger("numberOfNotifiedThings", m_numberOfNotifiedThings); + + } + + if(m_numberOfSucceededThingsHasBeenSet) + { + payload.WithInteger("numberOfSucceededThings", m_numberOfSucceededThings); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/IoTJobTimeoutConfig.cpp b/aws-cpp-sdk-greengrassv2/source/model/IoTJobTimeoutConfig.cpp new file mode 100644 index 00000000000..6d5fac59853 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/IoTJobTimeoutConfig.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +IoTJobTimeoutConfig::IoTJobTimeoutConfig() : + m_inProgressTimeoutInMinutes(0), + m_inProgressTimeoutInMinutesHasBeenSet(false) +{ +} + +IoTJobTimeoutConfig::IoTJobTimeoutConfig(JsonView jsonValue) : + m_inProgressTimeoutInMinutes(0), + m_inProgressTimeoutInMinutesHasBeenSet(false) +{ + *this = jsonValue; +} + +IoTJobTimeoutConfig& IoTJobTimeoutConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("inProgressTimeoutInMinutes")) + { + m_inProgressTimeoutInMinutes = jsonValue.GetInt64("inProgressTimeoutInMinutes"); + + m_inProgressTimeoutInMinutesHasBeenSet = true; + } + + return *this; +} + +JsonValue IoTJobTimeoutConfig::Jsonize() const +{ + JsonValue payload; + + if(m_inProgressTimeoutInMinutesHasBeenSet) + { + payload.WithInt64("inProgressTimeoutInMinutes", m_inProgressTimeoutInMinutes); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaContainerParams.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaContainerParams.cpp new file mode 100644 index 00000000000..ea6733b41f3 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaContainerParams.cpp @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaContainerParams::LambdaContainerParams() : + m_memorySizeInKB(0), + m_memorySizeInKBHasBeenSet(false), + m_mountROSysfs(false), + m_mountROSysfsHasBeenSet(false), + m_volumesHasBeenSet(false), + m_devicesHasBeenSet(false) +{ +} + +LambdaContainerParams::LambdaContainerParams(JsonView jsonValue) : + m_memorySizeInKB(0), + m_memorySizeInKBHasBeenSet(false), + m_mountROSysfs(false), + m_mountROSysfsHasBeenSet(false), + m_volumesHasBeenSet(false), + m_devicesHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaContainerParams& LambdaContainerParams::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("memorySizeInKB")) + { + m_memorySizeInKB = jsonValue.GetInteger("memorySizeInKB"); + + m_memorySizeInKBHasBeenSet = true; + } + + if(jsonValue.ValueExists("mountROSysfs")) + { + m_mountROSysfs = jsonValue.GetBool("mountROSysfs"); + + m_mountROSysfsHasBeenSet = true; + } + + if(jsonValue.ValueExists("volumes")) + { + Array volumesJsonList = jsonValue.GetArray("volumes"); + for(unsigned volumesIndex = 0; volumesIndex < volumesJsonList.GetLength(); ++volumesIndex) + { + m_volumes.push_back(volumesJsonList[volumesIndex].AsObject()); + } + m_volumesHasBeenSet = true; + } + + if(jsonValue.ValueExists("devices")) + { + Array devicesJsonList = jsonValue.GetArray("devices"); + for(unsigned devicesIndex = 0; devicesIndex < devicesJsonList.GetLength(); ++devicesIndex) + { + m_devices.push_back(devicesJsonList[devicesIndex].AsObject()); + } + m_devicesHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaContainerParams::Jsonize() const +{ + JsonValue payload; + + if(m_memorySizeInKBHasBeenSet) + { + payload.WithInteger("memorySizeInKB", m_memorySizeInKB); + + } + + if(m_mountROSysfsHasBeenSet) + { + payload.WithBool("mountROSysfs", m_mountROSysfs); + + } + + if(m_volumesHasBeenSet) + { + Array volumesJsonList(m_volumes.size()); + for(unsigned volumesIndex = 0; volumesIndex < volumesJsonList.GetLength(); ++volumesIndex) + { + volumesJsonList[volumesIndex].AsObject(m_volumes[volumesIndex].Jsonize()); + } + payload.WithArray("volumes", std::move(volumesJsonList)); + + } + + if(m_devicesHasBeenSet) + { + Array devicesJsonList(m_devices.size()); + for(unsigned devicesIndex = 0; devicesIndex < devicesJsonList.GetLength(); ++devicesIndex) + { + devicesJsonList[devicesIndex].AsObject(m_devices[devicesIndex].Jsonize()); + } + payload.WithArray("devices", std::move(devicesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp new file mode 100644 index 00000000000..2d2e9381403 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaDeviceMount::LambdaDeviceMount() : + m_pathHasBeenSet(false), + m_permission(LambdaFilesystemPermission::NOT_SET), + m_permissionHasBeenSet(false), + m_addGroupOwner(false), + m_addGroupOwnerHasBeenSet(false) +{ +} + +LambdaDeviceMount::LambdaDeviceMount(JsonView jsonValue) : + m_pathHasBeenSet(false), + m_permission(LambdaFilesystemPermission::NOT_SET), + m_permissionHasBeenSet(false), + m_addGroupOwner(false), + m_addGroupOwnerHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaDeviceMount& LambdaDeviceMount::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("path")) + { + m_path = jsonValue.GetString("path"); + + m_pathHasBeenSet = true; + } + + if(jsonValue.ValueExists("permission")) + { + m_permission = LambdaFilesystemPermissionMapper::GetLambdaFilesystemPermissionForName(jsonValue.GetString("permission")); + + m_permissionHasBeenSet = true; + } + + if(jsonValue.ValueExists("addGroupOwner")) + { + m_addGroupOwner = jsonValue.GetBool("addGroupOwner"); + + m_addGroupOwnerHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaDeviceMount::Jsonize() const +{ + JsonValue payload; + + if(m_pathHasBeenSet) + { + payload.WithString("path", m_path); + + } + + if(m_permissionHasBeenSet) + { + payload.WithString("permission", LambdaFilesystemPermissionMapper::GetNameForLambdaFilesystemPermission(m_permission)); + } + + if(m_addGroupOwnerHasBeenSet) + { + payload.WithBool("addGroupOwner", m_addGroupOwner); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSource.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSource.cpp new file mode 100644 index 00000000000..34c60c576f2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSource.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaEventSource::LambdaEventSource() : + m_topicHasBeenSet(false), + m_type(LambdaEventSourceType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +LambdaEventSource::LambdaEventSource(JsonView jsonValue) : + m_topicHasBeenSet(false), + m_type(LambdaEventSourceType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaEventSource& LambdaEventSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("topic")) + { + m_topic = jsonValue.GetString("topic"); + + m_topicHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = LambdaEventSourceTypeMapper::GetLambdaEventSourceTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaEventSource::Jsonize() const +{ + JsonValue payload; + + if(m_topicHasBeenSet) + { + payload.WithString("topic", m_topic); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", LambdaEventSourceTypeMapper::GetNameForLambdaEventSourceType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp new file mode 100644 index 00000000000..d675f29945a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaEventSourceType.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace LambdaEventSourceTypeMapper + { + + static const int PUB_SUB_HASH = HashingUtils::HashString("PUB_SUB"); + static const int IOT_CORE_HASH = HashingUtils::HashString("IOT_CORE"); + + + LambdaEventSourceType GetLambdaEventSourceTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PUB_SUB_HASH) + { + return LambdaEventSourceType::PUB_SUB; + } + else if (hashCode == IOT_CORE_HASH) + { + return LambdaEventSourceType::IOT_CORE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return LambdaEventSourceType::NOT_SET; + } + + Aws::String GetNameForLambdaEventSourceType(LambdaEventSourceType enumValue) + { + switch(enumValue) + { + case LambdaEventSourceType::PUB_SUB: + return "PUB_SUB"; + case LambdaEventSourceType::IOT_CORE: + return "IOT_CORE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace LambdaEventSourceTypeMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaExecutionParameters.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaExecutionParameters.cpp new file mode 100644 index 00000000000..4dd645fd713 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaExecutionParameters.cpp @@ -0,0 +1,246 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaExecutionParameters::LambdaExecutionParameters() : + m_eventSourcesHasBeenSet(false), + m_maxQueueSize(0), + m_maxQueueSizeHasBeenSet(false), + m_maxInstancesCount(0), + m_maxInstancesCountHasBeenSet(false), + m_maxIdleTimeInSeconds(0), + m_maxIdleTimeInSecondsHasBeenSet(false), + m_timeoutInSeconds(0), + m_timeoutInSecondsHasBeenSet(false), + m_statusTimeoutInSeconds(0), + m_statusTimeoutInSecondsHasBeenSet(false), + m_pinned(false), + m_pinnedHasBeenSet(false), + m_inputPayloadEncodingType(LambdaInputPayloadEncodingType::NOT_SET), + m_inputPayloadEncodingTypeHasBeenSet(false), + m_execArgsHasBeenSet(false), + m_environmentVariablesHasBeenSet(false), + m_linuxProcessParamsHasBeenSet(false) +{ +} + +LambdaExecutionParameters::LambdaExecutionParameters(JsonView jsonValue) : + m_eventSourcesHasBeenSet(false), + m_maxQueueSize(0), + m_maxQueueSizeHasBeenSet(false), + m_maxInstancesCount(0), + m_maxInstancesCountHasBeenSet(false), + m_maxIdleTimeInSeconds(0), + m_maxIdleTimeInSecondsHasBeenSet(false), + m_timeoutInSeconds(0), + m_timeoutInSecondsHasBeenSet(false), + m_statusTimeoutInSeconds(0), + m_statusTimeoutInSecondsHasBeenSet(false), + m_pinned(false), + m_pinnedHasBeenSet(false), + m_inputPayloadEncodingType(LambdaInputPayloadEncodingType::NOT_SET), + m_inputPayloadEncodingTypeHasBeenSet(false), + m_execArgsHasBeenSet(false), + m_environmentVariablesHasBeenSet(false), + m_linuxProcessParamsHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaExecutionParameters& LambdaExecutionParameters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("eventSources")) + { + Array eventSourcesJsonList = jsonValue.GetArray("eventSources"); + for(unsigned eventSourcesIndex = 0; eventSourcesIndex < eventSourcesJsonList.GetLength(); ++eventSourcesIndex) + { + m_eventSources.push_back(eventSourcesJsonList[eventSourcesIndex].AsObject()); + } + m_eventSourcesHasBeenSet = true; + } + + if(jsonValue.ValueExists("maxQueueSize")) + { + m_maxQueueSize = jsonValue.GetInteger("maxQueueSize"); + + m_maxQueueSizeHasBeenSet = true; + } + + if(jsonValue.ValueExists("maxInstancesCount")) + { + m_maxInstancesCount = jsonValue.GetInteger("maxInstancesCount"); + + m_maxInstancesCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("maxIdleTimeInSeconds")) + { + m_maxIdleTimeInSeconds = jsonValue.GetInteger("maxIdleTimeInSeconds"); + + m_maxIdleTimeInSecondsHasBeenSet = true; + } + + if(jsonValue.ValueExists("timeoutInSeconds")) + { + m_timeoutInSeconds = jsonValue.GetInteger("timeoutInSeconds"); + + m_timeoutInSecondsHasBeenSet = true; + } + + if(jsonValue.ValueExists("statusTimeoutInSeconds")) + { + m_statusTimeoutInSeconds = jsonValue.GetInteger("statusTimeoutInSeconds"); + + m_statusTimeoutInSecondsHasBeenSet = true; + } + + if(jsonValue.ValueExists("pinned")) + { + m_pinned = jsonValue.GetBool("pinned"); + + m_pinnedHasBeenSet = true; + } + + if(jsonValue.ValueExists("inputPayloadEncodingType")) + { + m_inputPayloadEncodingType = LambdaInputPayloadEncodingTypeMapper::GetLambdaInputPayloadEncodingTypeForName(jsonValue.GetString("inputPayloadEncodingType")); + + m_inputPayloadEncodingTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("execArgs")) + { + Array execArgsJsonList = jsonValue.GetArray("execArgs"); + for(unsigned execArgsIndex = 0; execArgsIndex < execArgsJsonList.GetLength(); ++execArgsIndex) + { + m_execArgs.push_back(execArgsJsonList[execArgsIndex].AsString()); + } + m_execArgsHasBeenSet = true; + } + + if(jsonValue.ValueExists("environmentVariables")) + { + Aws::Map environmentVariablesJsonMap = jsonValue.GetObject("environmentVariables").GetAllObjects(); + for(auto& environmentVariablesItem : environmentVariablesJsonMap) + { + m_environmentVariables[environmentVariablesItem.first] = environmentVariablesItem.second.AsString(); + } + m_environmentVariablesHasBeenSet = true; + } + + if(jsonValue.ValueExists("linuxProcessParams")) + { + m_linuxProcessParams = jsonValue.GetObject("linuxProcessParams"); + + m_linuxProcessParamsHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaExecutionParameters::Jsonize() const +{ + JsonValue payload; + + if(m_eventSourcesHasBeenSet) + { + Array eventSourcesJsonList(m_eventSources.size()); + for(unsigned eventSourcesIndex = 0; eventSourcesIndex < eventSourcesJsonList.GetLength(); ++eventSourcesIndex) + { + eventSourcesJsonList[eventSourcesIndex].AsObject(m_eventSources[eventSourcesIndex].Jsonize()); + } + payload.WithArray("eventSources", std::move(eventSourcesJsonList)); + + } + + if(m_maxQueueSizeHasBeenSet) + { + payload.WithInteger("maxQueueSize", m_maxQueueSize); + + } + + if(m_maxInstancesCountHasBeenSet) + { + payload.WithInteger("maxInstancesCount", m_maxInstancesCount); + + } + + if(m_maxIdleTimeInSecondsHasBeenSet) + { + payload.WithInteger("maxIdleTimeInSeconds", m_maxIdleTimeInSeconds); + + } + + if(m_timeoutInSecondsHasBeenSet) + { + payload.WithInteger("timeoutInSeconds", m_timeoutInSeconds); + + } + + if(m_statusTimeoutInSecondsHasBeenSet) + { + payload.WithInteger("statusTimeoutInSeconds", m_statusTimeoutInSeconds); + + } + + if(m_pinnedHasBeenSet) + { + payload.WithBool("pinned", m_pinned); + + } + + if(m_inputPayloadEncodingTypeHasBeenSet) + { + payload.WithString("inputPayloadEncodingType", LambdaInputPayloadEncodingTypeMapper::GetNameForLambdaInputPayloadEncodingType(m_inputPayloadEncodingType)); + } + + if(m_execArgsHasBeenSet) + { + Array execArgsJsonList(m_execArgs.size()); + for(unsigned execArgsIndex = 0; execArgsIndex < execArgsJsonList.GetLength(); ++execArgsIndex) + { + execArgsJsonList[execArgsIndex].AsString(m_execArgs[execArgsIndex]); + } + payload.WithArray("execArgs", std::move(execArgsJsonList)); + + } + + if(m_environmentVariablesHasBeenSet) + { + JsonValue environmentVariablesJsonMap; + for(auto& environmentVariablesItem : m_environmentVariables) + { + environmentVariablesJsonMap.WithString(environmentVariablesItem.first, environmentVariablesItem.second); + } + payload.WithObject("environmentVariables", std::move(environmentVariablesJsonMap)); + + } + + if(m_linuxProcessParamsHasBeenSet) + { + payload.WithObject("linuxProcessParams", m_linuxProcessParams.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp new file mode 100644 index 00000000000..2da80e059d2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaFilesystemPermission.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace LambdaFilesystemPermissionMapper + { + + static const int ro_HASH = HashingUtils::HashString("ro"); + static const int rw_HASH = HashingUtils::HashString("rw"); + + + LambdaFilesystemPermission GetLambdaFilesystemPermissionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ro_HASH) + { + return LambdaFilesystemPermission::ro; + } + else if (hashCode == rw_HASH) + { + return LambdaFilesystemPermission::rw; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return LambdaFilesystemPermission::NOT_SET; + } + + Aws::String GetNameForLambdaFilesystemPermission(LambdaFilesystemPermission enumValue) + { + switch(enumValue) + { + case LambdaFilesystemPermission::ro: + return "ro"; + case LambdaFilesystemPermission::rw: + return "rw"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace LambdaFilesystemPermissionMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaFunctionRecipeSource.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaFunctionRecipeSource.cpp new file mode 100644 index 00000000000..716719ca470 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaFunctionRecipeSource.cpp @@ -0,0 +1,150 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaFunctionRecipeSource::LambdaFunctionRecipeSource() : + m_lambdaArnHasBeenSet(false), + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_componentPlatformsHasBeenSet(false), + m_componentDependenciesHasBeenSet(false), + m_componentLambdaParametersHasBeenSet(false) +{ +} + +LambdaFunctionRecipeSource::LambdaFunctionRecipeSource(JsonView jsonValue) : + m_lambdaArnHasBeenSet(false), + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_componentPlatformsHasBeenSet(false), + m_componentDependenciesHasBeenSet(false), + m_componentLambdaParametersHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaFunctionRecipeSource& LambdaFunctionRecipeSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("lambdaArn")) + { + m_lambdaArn = jsonValue.GetString("lambdaArn"); + + m_lambdaArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + m_componentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentPlatforms")) + { + Array componentPlatformsJsonList = jsonValue.GetArray("componentPlatforms"); + for(unsigned componentPlatformsIndex = 0; componentPlatformsIndex < componentPlatformsJsonList.GetLength(); ++componentPlatformsIndex) + { + m_componentPlatforms.push_back(componentPlatformsJsonList[componentPlatformsIndex].AsObject()); + } + m_componentPlatformsHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentDependencies")) + { + Aws::Map componentDependenciesJsonMap = jsonValue.GetObject("componentDependencies").GetAllObjects(); + for(auto& componentDependenciesItem : componentDependenciesJsonMap) + { + m_componentDependencies[componentDependenciesItem.first] = componentDependenciesItem.second.AsObject(); + } + m_componentDependenciesHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentLambdaParameters")) + { + m_componentLambdaParameters = jsonValue.GetObject("componentLambdaParameters"); + + m_componentLambdaParametersHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaFunctionRecipeSource::Jsonize() const +{ + JsonValue payload; + + if(m_lambdaArnHasBeenSet) + { + payload.WithString("lambdaArn", m_lambdaArn); + + } + + if(m_componentNameHasBeenSet) + { + payload.WithString("componentName", m_componentName); + + } + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_componentPlatformsHasBeenSet) + { + Array componentPlatformsJsonList(m_componentPlatforms.size()); + for(unsigned componentPlatformsIndex = 0; componentPlatformsIndex < componentPlatformsJsonList.GetLength(); ++componentPlatformsIndex) + { + componentPlatformsJsonList[componentPlatformsIndex].AsObject(m_componentPlatforms[componentPlatformsIndex].Jsonize()); + } + payload.WithArray("componentPlatforms", std::move(componentPlatformsJsonList)); + + } + + if(m_componentDependenciesHasBeenSet) + { + JsonValue componentDependenciesJsonMap; + for(auto& componentDependenciesItem : m_componentDependencies) + { + componentDependenciesJsonMap.WithObject(componentDependenciesItem.first, componentDependenciesItem.second.Jsonize()); + } + payload.WithObject("componentDependencies", std::move(componentDependenciesJsonMap)); + + } + + if(m_componentLambdaParametersHasBeenSet) + { + payload.WithObject("componentLambdaParameters", m_componentLambdaParameters.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp new file mode 100644 index 00000000000..09b9baa9529 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaInputPayloadEncodingType.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace LambdaInputPayloadEncodingTypeMapper + { + + static const int json_HASH = HashingUtils::HashString("json"); + static const int binary_HASH = HashingUtils::HashString("binary"); + + + LambdaInputPayloadEncodingType GetLambdaInputPayloadEncodingTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == json_HASH) + { + return LambdaInputPayloadEncodingType::json; + } + else if (hashCode == binary_HASH) + { + return LambdaInputPayloadEncodingType::binary; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return LambdaInputPayloadEncodingType::NOT_SET; + } + + Aws::String GetNameForLambdaInputPayloadEncodingType(LambdaInputPayloadEncodingType enumValue) + { + switch(enumValue) + { + case LambdaInputPayloadEncodingType::json: + return "json"; + case LambdaInputPayloadEncodingType::binary: + return "binary"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace LambdaInputPayloadEncodingTypeMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp new file mode 100644 index 00000000000..2bc5f0b8470 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaIsolationMode.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace LambdaIsolationModeMapper + { + + static const int GreengrassContainer_HASH = HashingUtils::HashString("GreengrassContainer"); + static const int NoContainer_HASH = HashingUtils::HashString("NoContainer"); + + + LambdaIsolationMode GetLambdaIsolationModeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == GreengrassContainer_HASH) + { + return LambdaIsolationMode::GreengrassContainer; + } + else if (hashCode == NoContainer_HASH) + { + return LambdaIsolationMode::NoContainer; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return LambdaIsolationMode::NOT_SET; + } + + Aws::String GetNameForLambdaIsolationMode(LambdaIsolationMode enumValue) + { + switch(enumValue) + { + case LambdaIsolationMode::GreengrassContainer: + return "GreengrassContainer"; + case LambdaIsolationMode::NoContainer: + return "NoContainer"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace LambdaIsolationModeMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaLinuxProcessParams.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaLinuxProcessParams.cpp new file mode 100644 index 00000000000..6a73d8405a5 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaLinuxProcessParams.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaLinuxProcessParams::LambdaLinuxProcessParams() : + m_isolationMode(LambdaIsolationMode::NOT_SET), + m_isolationModeHasBeenSet(false), + m_containerParamsHasBeenSet(false) +{ +} + +LambdaLinuxProcessParams::LambdaLinuxProcessParams(JsonView jsonValue) : + m_isolationMode(LambdaIsolationMode::NOT_SET), + m_isolationModeHasBeenSet(false), + m_containerParamsHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaLinuxProcessParams& LambdaLinuxProcessParams::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("isolationMode")) + { + m_isolationMode = LambdaIsolationModeMapper::GetLambdaIsolationModeForName(jsonValue.GetString("isolationMode")); + + m_isolationModeHasBeenSet = true; + } + + if(jsonValue.ValueExists("containerParams")) + { + m_containerParams = jsonValue.GetObject("containerParams"); + + m_containerParamsHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaLinuxProcessParams::Jsonize() const +{ + JsonValue payload; + + if(m_isolationModeHasBeenSet) + { + payload.WithString("isolationMode", LambdaIsolationModeMapper::GetNameForLambdaIsolationMode(m_isolationMode)); + } + + if(m_containerParamsHasBeenSet) + { + payload.WithObject("containerParams", m_containerParams.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/LambdaVolumeMount.cpp b/aws-cpp-sdk-greengrassv2/source/model/LambdaVolumeMount.cpp new file mode 100644 index 00000000000..8c6fdc19d60 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/LambdaVolumeMount.cpp @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +LambdaVolumeMount::LambdaVolumeMount() : + m_sourcePathHasBeenSet(false), + m_destinationPathHasBeenSet(false), + m_permission(LambdaFilesystemPermission::NOT_SET), + m_permissionHasBeenSet(false), + m_addGroupOwner(false), + m_addGroupOwnerHasBeenSet(false) +{ +} + +LambdaVolumeMount::LambdaVolumeMount(JsonView jsonValue) : + m_sourcePathHasBeenSet(false), + m_destinationPathHasBeenSet(false), + m_permission(LambdaFilesystemPermission::NOT_SET), + m_permissionHasBeenSet(false), + m_addGroupOwner(false), + m_addGroupOwnerHasBeenSet(false) +{ + *this = jsonValue; +} + +LambdaVolumeMount& LambdaVolumeMount::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("sourcePath")) + { + m_sourcePath = jsonValue.GetString("sourcePath"); + + m_sourcePathHasBeenSet = true; + } + + if(jsonValue.ValueExists("destinationPath")) + { + m_destinationPath = jsonValue.GetString("destinationPath"); + + m_destinationPathHasBeenSet = true; + } + + if(jsonValue.ValueExists("permission")) + { + m_permission = LambdaFilesystemPermissionMapper::GetLambdaFilesystemPermissionForName(jsonValue.GetString("permission")); + + m_permissionHasBeenSet = true; + } + + if(jsonValue.ValueExists("addGroupOwner")) + { + m_addGroupOwner = jsonValue.GetBool("addGroupOwner"); + + m_addGroupOwnerHasBeenSet = true; + } + + return *this; +} + +JsonValue LambdaVolumeMount::Jsonize() const +{ + JsonValue payload; + + if(m_sourcePathHasBeenSet) + { + payload.WithString("sourcePath", m_sourcePath); + + } + + if(m_destinationPathHasBeenSet) + { + payload.WithString("destinationPath", m_destinationPath); + + } + + if(m_permissionHasBeenSet) + { + payload.WithString("permission", LambdaFilesystemPermissionMapper::GetNameForLambdaFilesystemPermission(m_permission)); + } + + if(m_addGroupOwnerHasBeenSet) + { + payload.WithBool("addGroupOwner", m_addGroupOwner); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsRequest.cpp new file mode 100644 index 00000000000..23735c76d94 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListComponentVersionsRequest::ListComponentVersionsRequest() : + m_arnHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListComponentVersionsRequest::SerializePayload() const +{ + return {}; +} + +void ListComponentVersionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsResult.cpp new file mode 100644 index 00000000000..6d5d000deb7 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListComponentVersionsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListComponentVersionsResult::ListComponentVersionsResult() +{ +} + +ListComponentVersionsResult::ListComponentVersionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListComponentVersionsResult& ListComponentVersionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("componentVersions")) + { + Array componentVersionsJsonList = jsonValue.GetArray("componentVersions"); + for(unsigned componentVersionsIndex = 0; componentVersionsIndex < componentVersionsJsonList.GetLength(); ++componentVersionsIndex) + { + m_componentVersions.push_back(componentVersionsJsonList[componentVersionsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListComponentsRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListComponentsRequest.cpp new file mode 100644 index 00000000000..067b7c8f962 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListComponentsRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListComponentsRequest::ListComponentsRequest() : + m_scope(ComponentVisibilityScope::NOT_SET), + m_scopeHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListComponentsRequest::SerializePayload() const +{ + return {}; +} + +void ListComponentsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_scopeHasBeenSet) + { + ss << ComponentVisibilityScopeMapper::GetNameForComponentVisibilityScope(m_scope); + uri.AddQueryStringParameter("scope", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListComponentsResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListComponentsResult.cpp new file mode 100644 index 00000000000..d3bdc451c52 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListComponentsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListComponentsResult::ListComponentsResult() +{ +} + +ListComponentsResult::ListComponentsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListComponentsResult& ListComponentsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("components")) + { + Array componentsJsonList = jsonValue.GetArray("components"); + for(unsigned componentsIndex = 0; componentsIndex < componentsJsonList.GetLength(); ++componentsIndex) + { + m_components.push_back(componentsJsonList[componentsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesRequest.cpp new file mode 100644 index 00000000000..3d6be0bd696 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesRequest.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListCoreDevicesRequest::ListCoreDevicesRequest() : + m_thingGroupArnHasBeenSet(false), + m_status(CoreDeviceStatus::NOT_SET), + m_statusHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListCoreDevicesRequest::SerializePayload() const +{ + return {}; +} + +void ListCoreDevicesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_thingGroupArnHasBeenSet) + { + ss << m_thingGroupArn; + uri.AddQueryStringParameter("thingGroupArn", ss.str()); + ss.str(""); + } + + if(m_statusHasBeenSet) + { + ss << CoreDeviceStatusMapper::GetNameForCoreDeviceStatus(m_status); + uri.AddQueryStringParameter("status", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesResult.cpp new file mode 100644 index 00000000000..cb6b8b22022 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListCoreDevicesResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListCoreDevicesResult::ListCoreDevicesResult() +{ +} + +ListCoreDevicesResult::ListCoreDevicesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListCoreDevicesResult& ListCoreDevicesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("coreDevices")) + { + Array coreDevicesJsonList = jsonValue.GetArray("coreDevices"); + for(unsigned coreDevicesIndex = 0; coreDevicesIndex < coreDevicesJsonList.GetLength(); ++coreDevicesIndex) + { + m_coreDevices.push_back(coreDevicesJsonList[coreDevicesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsRequest.cpp new file mode 100644 index 00000000000..fb0a68faa16 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsRequest.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDeploymentsRequest::ListDeploymentsRequest() : + m_targetArnHasBeenSet(false), + m_historyFilter(DeploymentHistoryFilter::NOT_SET), + m_historyFilterHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListDeploymentsRequest::SerializePayload() const +{ + return {}; +} + +void ListDeploymentsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_targetArnHasBeenSet) + { + ss << m_targetArn; + uri.AddQueryStringParameter("targetArn", ss.str()); + ss.str(""); + } + + if(m_historyFilterHasBeenSet) + { + ss << DeploymentHistoryFilterMapper::GetNameForDeploymentHistoryFilter(m_historyFilter); + uri.AddQueryStringParameter("historyFilter", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsResult.cpp new file mode 100644 index 00000000000..bb0c0d11bad --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListDeploymentsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDeploymentsResult::ListDeploymentsResult() +{ +} + +ListDeploymentsResult::ListDeploymentsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDeploymentsResult& ListDeploymentsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("deployments")) + { + Array deploymentsJsonList = jsonValue.GetArray("deployments"); + for(unsigned deploymentsIndex = 0; deploymentsIndex < deploymentsJsonList.GetLength(); ++deploymentsIndex) + { + m_deployments.push_back(deploymentsJsonList[deploymentsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsRequest.cpp new file mode 100644 index 00000000000..e409d2064d1 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListEffectiveDeploymentsRequest::ListEffectiveDeploymentsRequest() : + m_coreDeviceThingNameHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListEffectiveDeploymentsRequest::SerializePayload() const +{ + return {}; +} + +void ListEffectiveDeploymentsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsResult.cpp new file mode 100644 index 00000000000..e414ac7790d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListEffectiveDeploymentsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListEffectiveDeploymentsResult::ListEffectiveDeploymentsResult() +{ +} + +ListEffectiveDeploymentsResult::ListEffectiveDeploymentsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListEffectiveDeploymentsResult& ListEffectiveDeploymentsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("effectiveDeployments")) + { + Array effectiveDeploymentsJsonList = jsonValue.GetArray("effectiveDeployments"); + for(unsigned effectiveDeploymentsIndex = 0; effectiveDeploymentsIndex < effectiveDeploymentsJsonList.GetLength(); ++effectiveDeploymentsIndex) + { + m_effectiveDeployments.push_back(effectiveDeploymentsJsonList[effectiveDeploymentsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsRequest.cpp new file mode 100644 index 00000000000..5264655faf3 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListInstalledComponentsRequest::ListInstalledComponentsRequest() : + m_coreDeviceThingNameHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListInstalledComponentsRequest::SerializePayload() const +{ + return {}; +} + +void ListInstalledComponentsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsResult.cpp new file mode 100644 index 00000000000..98db26f6086 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListInstalledComponentsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListInstalledComponentsResult::ListInstalledComponentsResult() +{ +} + +ListInstalledComponentsResult::ListInstalledComponentsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListInstalledComponentsResult& ListInstalledComponentsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("installedComponents")) + { + Array installedComponentsJsonList = jsonValue.GetArray("installedComponents"); + for(unsigned installedComponentsIndex = 0; installedComponentsIndex < installedComponentsJsonList.GetLength(); ++installedComponentsIndex) + { + m_installedComponents.push_back(installedComponentsJsonList[installedComponentsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..a3cd7a515d5 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..2c1aea64483 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp b/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp new file mode 100644 index 00000000000..39f8e96c9f6 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/RecipeOutputFormat.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace RecipeOutputFormatMapper + { + + static const int JSON_HASH = HashingUtils::HashString("JSON"); + static const int YAML_HASH = HashingUtils::HashString("YAML"); + + + RecipeOutputFormat GetRecipeOutputFormatForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == JSON_HASH) + { + return RecipeOutputFormat::JSON; + } + else if (hashCode == YAML_HASH) + { + return RecipeOutputFormat::YAML; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RecipeOutputFormat::NOT_SET; + } + + Aws::String GetNameForRecipeOutputFormat(RecipeOutputFormat enumValue) + { + switch(enumValue) + { + case RecipeOutputFormat::JSON: + return "JSON"; + case RecipeOutputFormat::YAML: + return "YAML"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RecipeOutputFormatMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesRequest.cpp new file mode 100644 index 00000000000..7851fd40943 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesRequest.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ResolveComponentCandidatesRequest::ResolveComponentCandidatesRequest() : + m_platformHasBeenSet(false), + m_componentCandidatesHasBeenSet(false) +{ +} + +Aws::String ResolveComponentCandidatesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_platformHasBeenSet) + { + payload.WithObject("platform", m_platform.Jsonize()); + + } + + if(m_componentCandidatesHasBeenSet) + { + Array componentCandidatesJsonList(m_componentCandidates.size()); + for(unsigned componentCandidatesIndex = 0; componentCandidatesIndex < componentCandidatesJsonList.GetLength(); ++componentCandidatesIndex) + { + componentCandidatesJsonList[componentCandidatesIndex].AsObject(m_componentCandidates[componentCandidatesIndex].Jsonize()); + } + payload.WithArray("componentCandidates", std::move(componentCandidatesJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesResult.cpp new file mode 100644 index 00000000000..a4f9137d158 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ResolveComponentCandidatesResult.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ResolveComponentCandidatesResult::ResolveComponentCandidatesResult() +{ +} + +ResolveComponentCandidatesResult::ResolveComponentCandidatesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ResolveComponentCandidatesResult& ResolveComponentCandidatesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("resolvedComponentVersions")) + { + Array resolvedComponentVersionsJsonList = jsonValue.GetArray("resolvedComponentVersions"); + for(unsigned resolvedComponentVersionsIndex = 0; resolvedComponentVersionsIndex < resolvedComponentVersionsJsonList.GetLength(); ++resolvedComponentVersionsIndex) + { + m_resolvedComponentVersions.push_back(resolvedComponentVersionsJsonList[resolvedComponentVersionsIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ResolvedComponentVersion.cpp b/aws-cpp-sdk-greengrassv2/source/model/ResolvedComponentVersion.cpp new file mode 100644 index 00000000000..26202ab5a1e --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ResolvedComponentVersion.cpp @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ResolvedComponentVersion::ResolvedComponentVersion() : + m_arnHasBeenSet(false), + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_recipeHasBeenSet(false) +{ +} + +ResolvedComponentVersion::ResolvedComponentVersion(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_componentNameHasBeenSet(false), + m_componentVersionHasBeenSet(false), + m_recipeHasBeenSet(false) +{ + *this = jsonValue; +} + +ResolvedComponentVersion& ResolvedComponentVersion::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentName")) + { + m_componentName = jsonValue.GetString("componentName"); + + m_componentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("componentVersion")) + { + m_componentVersion = jsonValue.GetString("componentVersion"); + + m_componentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("recipe")) + { + m_recipe = HashingUtils::Base64Decode(jsonValue.GetString("recipe")); + m_recipeHasBeenSet = true; + } + + return *this; +} + +JsonValue ResolvedComponentVersion::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + if(m_componentNameHasBeenSet) + { + payload.WithString("componentName", m_componentName); + + } + + if(m_componentVersionHasBeenSet) + { + payload.WithString("componentVersion", m_componentVersion); + + } + + if(m_recipeHasBeenSet) + { + payload.WithString("recipe", HashingUtils::Base64Encode(m_recipe)); + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ResourceNotFoundException.cpp b/aws-cpp-sdk-greengrassv2/source/model/ResourceNotFoundException.cpp new file mode 100644 index 00000000000..a30a6170e47 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ResourceNotFoundException.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ResourceNotFoundException::ResourceNotFoundException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ResourceNotFoundException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ServiceQuotaExceededException.cpp b/aws-cpp-sdk-greengrassv2/source/model/ServiceQuotaExceededException.cpp new file mode 100644 index 00000000000..2395535ff6c --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ServiceQuotaExceededException.cpp @@ -0,0 +1,119 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ServiceQuotaExceededException::ServiceQuotaExceededException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_serviceCodeHasBeenSet(false) +{ +} + +ServiceQuotaExceededException::ServiceQuotaExceededException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_serviceCodeHasBeenSet(false) +{ + *this = jsonValue; +} + +ServiceQuotaExceededException& ServiceQuotaExceededException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceId")) + { + m_resourceId = jsonValue.GetString("resourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("resourceType")) + { + m_resourceType = jsonValue.GetString("resourceType"); + + m_resourceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("quotaCode")) + { + m_quotaCode = jsonValue.GetString("quotaCode"); + + m_quotaCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("serviceCode")) + { + m_serviceCode = jsonValue.GetString("serviceCode"); + + m_serviceCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue ServiceQuotaExceededException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("resourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("resourceType", m_resourceType); + + } + + if(m_quotaCodeHasBeenSet) + { + payload.WithString("quotaCode", m_quotaCode); + + } + + if(m_serviceCodeHasBeenSet) + { + payload.WithString("serviceCode", m_serviceCode); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/TagResourceRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..8d0fe852e31 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/TagResourceRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TagResourceRequest::TagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/TagResourceResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/TagResourceResult.cpp new file mode 100644 index 00000000000..f8aba9a450a --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/TagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TagResourceResult::TagResourceResult() +{ +} + +TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ThrottlingException.cpp b/aws-cpp-sdk-greengrassv2/source/model/ThrottlingException.cpp new file mode 100644 index 00000000000..310d02b78a2 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ThrottlingException.cpp @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ThrottlingException::ThrottlingException() : + m_messageHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_serviceCodeHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false) +{ +} + +ThrottlingException::ThrottlingException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_quotaCodeHasBeenSet(false), + m_serviceCodeHasBeenSet(false), + m_retryAfterSeconds(0), + m_retryAfterSecondsHasBeenSet(false) +{ + *this = jsonValue; +} + +ThrottlingException& ThrottlingException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("quotaCode")) + { + m_quotaCode = jsonValue.GetString("quotaCode"); + + m_quotaCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("serviceCode")) + { + m_serviceCode = jsonValue.GetString("serviceCode"); + + m_serviceCodeHasBeenSet = true; + } + + return *this; +} + +JsonValue ThrottlingException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_quotaCodeHasBeenSet) + { + payload.WithString("quotaCode", m_quotaCode); + + } + + if(m_serviceCodeHasBeenSet) + { + payload.WithString("serviceCode", m_serviceCode); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/UntagResourceRequest.cpp b/aws-cpp-sdk-greengrassv2/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..01d642d654d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/UntagResourceRequest.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UntagResourceRequest::UntagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + return {}; +} + +void UntagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_tagKeysHasBeenSet) + { + for(const auto& item : m_tagKeys) + { + ss << item; + uri.AddQueryStringParameter("tagKeys", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/aws-cpp-sdk-greengrassv2/source/model/UntagResourceResult.cpp b/aws-cpp-sdk-greengrassv2/source/model/UntagResourceResult.cpp new file mode 100644 index 00000000000..4775803da58 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/UntagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::GreengrassV2::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UntagResourceResult::UntagResourceResult() +{ +} + +UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-greengrassv2/source/model/ValidationException.cpp b/aws-cpp-sdk-greengrassv2/source/model/ValidationException.cpp new file mode 100644 index 00000000000..55fa27ec822 --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ValidationException.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ValidationException::ValidationException() : + m_messageHasBeenSet(false), + m_reason(ValidationExceptionReason::NOT_SET), + m_reasonHasBeenSet(false), + m_fieldsHasBeenSet(false) +{ +} + +ValidationException::ValidationException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_reason(ValidationExceptionReason::NOT_SET), + m_reasonHasBeenSet(false), + m_fieldsHasBeenSet(false) +{ + *this = jsonValue; +} + +ValidationException& ValidationException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("reason")) + { + m_reason = ValidationExceptionReasonMapper::GetValidationExceptionReasonForName(jsonValue.GetString("reason")); + + m_reasonHasBeenSet = true; + } + + if(jsonValue.ValueExists("fields")) + { + Array fieldsJsonList = jsonValue.GetArray("fields"); + for(unsigned fieldsIndex = 0; fieldsIndex < fieldsJsonList.GetLength(); ++fieldsIndex) + { + m_fields.push_back(fieldsJsonList[fieldsIndex].AsObject()); + } + m_fieldsHasBeenSet = true; + } + + return *this; +} + +JsonValue ValidationException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + if(m_reasonHasBeenSet) + { + payload.WithString("reason", ValidationExceptionReasonMapper::GetNameForValidationExceptionReason(m_reason)); + } + + if(m_fieldsHasBeenSet) + { + Array fieldsJsonList(m_fields.size()); + for(unsigned fieldsIndex = 0; fieldsIndex < fieldsJsonList.GetLength(); ++fieldsIndex) + { + fieldsJsonList[fieldsIndex].AsObject(m_fields[fieldsIndex].Jsonize()); + } + payload.WithArray("fields", std::move(fieldsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionField.cpp b/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionField.cpp new file mode 100644 index 00000000000..e02b3e7fe2d --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionField.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace GreengrassV2 +{ +namespace Model +{ + +ValidationExceptionField::ValidationExceptionField() : + m_nameHasBeenSet(false), + m_messageHasBeenSet(false) +{ +} + +ValidationExceptionField::ValidationExceptionField(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_messageHasBeenSet(false) +{ + *this = jsonValue; +} + +ValidationExceptionField& ValidationExceptionField::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue ValidationExceptionField::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp b/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp new file mode 100644 index 00000000000..d348234c0de --- /dev/null +++ b/aws-cpp-sdk-greengrassv2/source/model/ValidationExceptionReason.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace GreengrassV2 + { + namespace Model + { + namespace ValidationExceptionReasonMapper + { + + static const int UNKNOWN_OPERATION_HASH = HashingUtils::HashString("UNKNOWN_OPERATION"); + static const int CANNOT_PARSE_HASH = HashingUtils::HashString("CANNOT_PARSE"); + static const int FIELD_VALIDATION_FAILED_HASH = HashingUtils::HashString("FIELD_VALIDATION_FAILED"); + static const int OTHER_HASH = HashingUtils::HashString("OTHER"); + + + ValidationExceptionReason GetValidationExceptionReasonForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == UNKNOWN_OPERATION_HASH) + { + return ValidationExceptionReason::UNKNOWN_OPERATION; + } + else if (hashCode == CANNOT_PARSE_HASH) + { + return ValidationExceptionReason::CANNOT_PARSE; + } + else if (hashCode == FIELD_VALIDATION_FAILED_HASH) + { + return ValidationExceptionReason::FIELD_VALIDATION_FAILED; + } + else if (hashCode == OTHER_HASH) + { + return ValidationExceptionReason::OTHER; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ValidationExceptionReason::NOT_SET; + } + + Aws::String GetNameForValidationExceptionReason(ValidationExceptionReason enumValue) + { + switch(enumValue) + { + case ValidationExceptionReason::UNKNOWN_OPERATION: + return "UNKNOWN_OPERATION"; + case ValidationExceptionReason::CANNOT_PARSE: + return "CANNOT_PARSE"; + case ValidationExceptionReason::FIELD_VALIDATION_FAILED: + return "FIELD_VALIDATION_FAILED"; + case ValidationExceptionReason::OTHER: + return "OTHER"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ValidationExceptionReasonMapper + } // namespace Model + } // namespace GreengrassV2 +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h b/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h index 539f407534b..3ed4557733c 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h +++ b/aws-cpp-sdk-iot/include/aws/iot/IoTClient.h @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -25,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -50,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -76,7 +79,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -97,6 +102,7 @@ #include #include #include +#include #include #include #include @@ -123,6 +129,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -167,6 +176,7 @@ #include #include #include +#include #include #include #include @@ -179,6 +189,7 @@ #include #include #include +#include #include #include #include @@ -245,6 +256,7 @@ namespace Model class CancelAuditMitigationActionsTaskRequest; class CancelAuditTaskRequest; class CancelCertificateTransferRequest; + class CancelDetectMitigationActionsTaskRequest; class CancelJobRequest; class CancelJobExecutionRequest; class ClearDefaultAuthorizerRequest; @@ -253,6 +265,7 @@ namespace Model class CreateAuthorizerRequest; class CreateBillingGroupRequest; class CreateCertificateFromCsrRequest; + class CreateCustomMetricRequest; class CreateDimensionRequest; class CreateDomainConfigurationRequest; class CreateDynamicThingGroupRequest; @@ -280,6 +293,7 @@ namespace Model class DeleteBillingGroupRequest; class DeleteCACertificateRequest; class DeleteCertificateRequest; + class DeleteCustomMetricRequest; class DeleteDimensionRequest; class DeleteDomainConfigurationRequest; class DeleteDynamicThingGroupRequest; @@ -312,7 +326,9 @@ namespace Model class DescribeBillingGroupRequest; class DescribeCACertificateRequest; class DescribeCertificateRequest; + class DescribeCustomMetricRequest; class DescribeDefaultAuthorizerRequest; + class DescribeDetectMitigationActionsTaskRequest; class DescribeDimensionRequest; class DescribeDomainConfigurationRequest; class DescribeEndpointRequest; @@ -336,6 +352,7 @@ namespace Model class DetachThingPrincipalRequest; class DisableTopicRuleRequest; class EnableTopicRuleRequest; + class GetBehaviorModelTrainingSummariesRequest; class GetCardinalityRequest; class GetEffectivePoliciesRequest; class GetIndexingConfigurationRequest; @@ -362,6 +379,9 @@ namespace Model class ListCACertificatesRequest; class ListCertificatesRequest; class ListCertificatesByCARequest; + class ListCustomMetricsRequest; + class ListDetectMitigationActionsExecutionsRequest; + class ListDetectMitigationActionsTasksRequest; class ListDimensionsRequest; class ListDomainConfigurationsRequest; class ListIndicesRequest; @@ -412,6 +432,7 @@ namespace Model class SetV2LoggingLevelRequest; class SetV2LoggingOptionsRequest; class StartAuditMitigationActionsTaskRequest; + class StartDetectMitigationActionsTaskRequest; class StartOnDemandAuditTaskRequest; class StartThingRegistrationTaskRequest; class StopThingRegistrationTaskRequest; @@ -426,6 +447,7 @@ namespace Model class UpdateBillingGroupRequest; class UpdateCACertificateRequest; class UpdateCertificateRequest; + class UpdateCustomMetricRequest; class UpdateDimensionRequest; class UpdateDomainConfigurationRequest; class UpdateDynamicThingGroupRequest; @@ -454,6 +476,7 @@ namespace Model typedef Aws::Utils::Outcome CancelAuditMitigationActionsTaskOutcome; typedef Aws::Utils::Outcome CancelAuditTaskOutcome; typedef Aws::Utils::Outcome CancelCertificateTransferOutcome; + typedef Aws::Utils::Outcome CancelDetectMitigationActionsTaskOutcome; typedef Aws::Utils::Outcome CancelJobOutcome; typedef Aws::Utils::Outcome CancelJobExecutionOutcome; typedef Aws::Utils::Outcome ClearDefaultAuthorizerOutcome; @@ -462,6 +485,7 @@ namespace Model typedef Aws::Utils::Outcome CreateAuthorizerOutcome; typedef Aws::Utils::Outcome CreateBillingGroupOutcome; typedef Aws::Utils::Outcome CreateCertificateFromCsrOutcome; + typedef Aws::Utils::Outcome CreateCustomMetricOutcome; typedef Aws::Utils::Outcome CreateDimensionOutcome; typedef Aws::Utils::Outcome CreateDomainConfigurationOutcome; typedef Aws::Utils::Outcome CreateDynamicThingGroupOutcome; @@ -489,6 +513,7 @@ namespace Model typedef Aws::Utils::Outcome DeleteBillingGroupOutcome; typedef Aws::Utils::Outcome DeleteCACertificateOutcome; typedef Aws::Utils::Outcome DeleteCertificateOutcome; + typedef Aws::Utils::Outcome DeleteCustomMetricOutcome; typedef Aws::Utils::Outcome DeleteDimensionOutcome; typedef Aws::Utils::Outcome DeleteDomainConfigurationOutcome; typedef Aws::Utils::Outcome DeleteDynamicThingGroupOutcome; @@ -521,7 +546,9 @@ namespace Model typedef Aws::Utils::Outcome DescribeBillingGroupOutcome; typedef Aws::Utils::Outcome DescribeCACertificateOutcome; typedef Aws::Utils::Outcome DescribeCertificateOutcome; + typedef Aws::Utils::Outcome DescribeCustomMetricOutcome; typedef Aws::Utils::Outcome DescribeDefaultAuthorizerOutcome; + typedef Aws::Utils::Outcome DescribeDetectMitigationActionsTaskOutcome; typedef Aws::Utils::Outcome DescribeDimensionOutcome; typedef Aws::Utils::Outcome DescribeDomainConfigurationOutcome; typedef Aws::Utils::Outcome DescribeEndpointOutcome; @@ -545,6 +572,7 @@ namespace Model typedef Aws::Utils::Outcome DetachThingPrincipalOutcome; typedef Aws::Utils::Outcome DisableTopicRuleOutcome; typedef Aws::Utils::Outcome EnableTopicRuleOutcome; + typedef Aws::Utils::Outcome GetBehaviorModelTrainingSummariesOutcome; typedef Aws::Utils::Outcome GetCardinalityOutcome; typedef Aws::Utils::Outcome GetEffectivePoliciesOutcome; typedef Aws::Utils::Outcome GetIndexingConfigurationOutcome; @@ -571,6 +599,9 @@ namespace Model typedef Aws::Utils::Outcome ListCACertificatesOutcome; typedef Aws::Utils::Outcome ListCertificatesOutcome; typedef Aws::Utils::Outcome ListCertificatesByCAOutcome; + typedef Aws::Utils::Outcome ListCustomMetricsOutcome; + typedef Aws::Utils::Outcome ListDetectMitigationActionsExecutionsOutcome; + typedef Aws::Utils::Outcome ListDetectMitigationActionsTasksOutcome; typedef Aws::Utils::Outcome ListDimensionsOutcome; typedef Aws::Utils::Outcome ListDomainConfigurationsOutcome; typedef Aws::Utils::Outcome ListIndicesOutcome; @@ -621,6 +652,7 @@ namespace Model typedef Aws::Utils::Outcome SetV2LoggingLevelOutcome; typedef Aws::Utils::Outcome SetV2LoggingOptionsOutcome; typedef Aws::Utils::Outcome StartAuditMitigationActionsTaskOutcome; + typedef Aws::Utils::Outcome StartDetectMitigationActionsTaskOutcome; typedef Aws::Utils::Outcome StartOnDemandAuditTaskOutcome; typedef Aws::Utils::Outcome StartThingRegistrationTaskOutcome; typedef Aws::Utils::Outcome StopThingRegistrationTaskOutcome; @@ -635,6 +667,7 @@ namespace Model typedef Aws::Utils::Outcome UpdateBillingGroupOutcome; typedef Aws::Utils::Outcome UpdateCACertificateOutcome; typedef Aws::Utils::Outcome UpdateCertificateOutcome; + typedef Aws::Utils::Outcome UpdateCustomMetricOutcome; typedef Aws::Utils::Outcome UpdateDimensionOutcome; typedef Aws::Utils::Outcome UpdateDomainConfigurationOutcome; typedef Aws::Utils::Outcome UpdateDynamicThingGroupOutcome; @@ -663,6 +696,7 @@ namespace Model typedef std::future CancelAuditMitigationActionsTaskOutcomeCallable; typedef std::future CancelAuditTaskOutcomeCallable; typedef std::future CancelCertificateTransferOutcomeCallable; + typedef std::future CancelDetectMitigationActionsTaskOutcomeCallable; typedef std::future CancelJobOutcomeCallable; typedef std::future CancelJobExecutionOutcomeCallable; typedef std::future ClearDefaultAuthorizerOutcomeCallable; @@ -671,6 +705,7 @@ namespace Model typedef std::future CreateAuthorizerOutcomeCallable; typedef std::future CreateBillingGroupOutcomeCallable; typedef std::future CreateCertificateFromCsrOutcomeCallable; + typedef std::future CreateCustomMetricOutcomeCallable; typedef std::future CreateDimensionOutcomeCallable; typedef std::future CreateDomainConfigurationOutcomeCallable; typedef std::future CreateDynamicThingGroupOutcomeCallable; @@ -698,6 +733,7 @@ namespace Model typedef std::future DeleteBillingGroupOutcomeCallable; typedef std::future DeleteCACertificateOutcomeCallable; typedef std::future DeleteCertificateOutcomeCallable; + typedef std::future DeleteCustomMetricOutcomeCallable; typedef std::future DeleteDimensionOutcomeCallable; typedef std::future DeleteDomainConfigurationOutcomeCallable; typedef std::future DeleteDynamicThingGroupOutcomeCallable; @@ -730,7 +766,9 @@ namespace Model typedef std::future DescribeBillingGroupOutcomeCallable; typedef std::future DescribeCACertificateOutcomeCallable; typedef std::future DescribeCertificateOutcomeCallable; + typedef std::future DescribeCustomMetricOutcomeCallable; typedef std::future DescribeDefaultAuthorizerOutcomeCallable; + typedef std::future DescribeDetectMitigationActionsTaskOutcomeCallable; typedef std::future DescribeDimensionOutcomeCallable; typedef std::future DescribeDomainConfigurationOutcomeCallable; typedef std::future DescribeEndpointOutcomeCallable; @@ -754,6 +792,7 @@ namespace Model typedef std::future DetachThingPrincipalOutcomeCallable; typedef std::future DisableTopicRuleOutcomeCallable; typedef std::future EnableTopicRuleOutcomeCallable; + typedef std::future GetBehaviorModelTrainingSummariesOutcomeCallable; typedef std::future GetCardinalityOutcomeCallable; typedef std::future GetEffectivePoliciesOutcomeCallable; typedef std::future GetIndexingConfigurationOutcomeCallable; @@ -780,6 +819,9 @@ namespace Model typedef std::future ListCACertificatesOutcomeCallable; typedef std::future ListCertificatesOutcomeCallable; typedef std::future ListCertificatesByCAOutcomeCallable; + typedef std::future ListCustomMetricsOutcomeCallable; + typedef std::future ListDetectMitigationActionsExecutionsOutcomeCallable; + typedef std::future ListDetectMitigationActionsTasksOutcomeCallable; typedef std::future ListDimensionsOutcomeCallable; typedef std::future ListDomainConfigurationsOutcomeCallable; typedef std::future ListIndicesOutcomeCallable; @@ -830,6 +872,7 @@ namespace Model typedef std::future SetV2LoggingLevelOutcomeCallable; typedef std::future SetV2LoggingOptionsOutcomeCallable; typedef std::future StartAuditMitigationActionsTaskOutcomeCallable; + typedef std::future StartDetectMitigationActionsTaskOutcomeCallable; typedef std::future StartOnDemandAuditTaskOutcomeCallable; typedef std::future StartThingRegistrationTaskOutcomeCallable; typedef std::future StopThingRegistrationTaskOutcomeCallable; @@ -844,6 +887,7 @@ namespace Model typedef std::future UpdateBillingGroupOutcomeCallable; typedef std::future UpdateCACertificateOutcomeCallable; typedef std::future UpdateCertificateOutcomeCallable; + typedef std::future UpdateCustomMetricOutcomeCallable; typedef std::future UpdateDimensionOutcomeCallable; typedef std::future UpdateDomainConfigurationOutcomeCallable; typedef std::future UpdateDynamicThingGroupOutcomeCallable; @@ -875,6 +919,7 @@ namespace Model typedef std::function&) > CancelAuditMitigationActionsTaskResponseReceivedHandler; typedef std::function&) > CancelAuditTaskResponseReceivedHandler; typedef std::function&) > CancelCertificateTransferResponseReceivedHandler; + typedef std::function&) > CancelDetectMitigationActionsTaskResponseReceivedHandler; typedef std::function&) > CancelJobResponseReceivedHandler; typedef std::function&) > CancelJobExecutionResponseReceivedHandler; typedef std::function&) > ClearDefaultAuthorizerResponseReceivedHandler; @@ -883,6 +928,7 @@ namespace Model typedef std::function&) > CreateAuthorizerResponseReceivedHandler; typedef std::function&) > CreateBillingGroupResponseReceivedHandler; typedef std::function&) > CreateCertificateFromCsrResponseReceivedHandler; + typedef std::function&) > CreateCustomMetricResponseReceivedHandler; typedef std::function&) > CreateDimensionResponseReceivedHandler; typedef std::function&) > CreateDomainConfigurationResponseReceivedHandler; typedef std::function&) > CreateDynamicThingGroupResponseReceivedHandler; @@ -910,6 +956,7 @@ namespace Model typedef std::function&) > DeleteBillingGroupResponseReceivedHandler; typedef std::function&) > DeleteCACertificateResponseReceivedHandler; typedef std::function&) > DeleteCertificateResponseReceivedHandler; + typedef std::function&) > DeleteCustomMetricResponseReceivedHandler; typedef std::function&) > DeleteDimensionResponseReceivedHandler; typedef std::function&) > DeleteDomainConfigurationResponseReceivedHandler; typedef std::function&) > DeleteDynamicThingGroupResponseReceivedHandler; @@ -942,7 +989,9 @@ namespace Model typedef std::function&) > DescribeBillingGroupResponseReceivedHandler; typedef std::function&) > DescribeCACertificateResponseReceivedHandler; typedef std::function&) > DescribeCertificateResponseReceivedHandler; + typedef std::function&) > DescribeCustomMetricResponseReceivedHandler; typedef std::function&) > DescribeDefaultAuthorizerResponseReceivedHandler; + typedef std::function&) > DescribeDetectMitigationActionsTaskResponseReceivedHandler; typedef std::function&) > DescribeDimensionResponseReceivedHandler; typedef std::function&) > DescribeDomainConfigurationResponseReceivedHandler; typedef std::function&) > DescribeEndpointResponseReceivedHandler; @@ -966,6 +1015,7 @@ namespace Model typedef std::function&) > DetachThingPrincipalResponseReceivedHandler; typedef std::function&) > DisableTopicRuleResponseReceivedHandler; typedef std::function&) > EnableTopicRuleResponseReceivedHandler; + typedef std::function&) > GetBehaviorModelTrainingSummariesResponseReceivedHandler; typedef std::function&) > GetCardinalityResponseReceivedHandler; typedef std::function&) > GetEffectivePoliciesResponseReceivedHandler; typedef std::function&) > GetIndexingConfigurationResponseReceivedHandler; @@ -992,6 +1042,9 @@ namespace Model typedef std::function&) > ListCACertificatesResponseReceivedHandler; typedef std::function&) > ListCertificatesResponseReceivedHandler; typedef std::function&) > ListCertificatesByCAResponseReceivedHandler; + typedef std::function&) > ListCustomMetricsResponseReceivedHandler; + typedef std::function&) > ListDetectMitigationActionsExecutionsResponseReceivedHandler; + typedef std::function&) > ListDetectMitigationActionsTasksResponseReceivedHandler; typedef std::function&) > ListDimensionsResponseReceivedHandler; typedef std::function&) > ListDomainConfigurationsResponseReceivedHandler; typedef std::function&) > ListIndicesResponseReceivedHandler; @@ -1042,6 +1095,7 @@ namespace Model typedef std::function&) > SetV2LoggingLevelResponseReceivedHandler; typedef std::function&) > SetV2LoggingOptionsResponseReceivedHandler; typedef std::function&) > StartAuditMitigationActionsTaskResponseReceivedHandler; + typedef std::function&) > StartDetectMitigationActionsTaskResponseReceivedHandler; typedef std::function&) > StartOnDemandAuditTaskResponseReceivedHandler; typedef std::function&) > StartThingRegistrationTaskResponseReceivedHandler; typedef std::function&) > StopThingRegistrationTaskResponseReceivedHandler; @@ -1056,6 +1110,7 @@ namespace Model typedef std::function&) > UpdateBillingGroupResponseReceivedHandler; typedef std::function&) > UpdateCACertificateResponseReceivedHandler; typedef std::function&) > UpdateCertificateResponseReceivedHandler; + typedef std::function&) > UpdateCustomMetricResponseReceivedHandler; typedef std::function&) > UpdateDimensionResponseReceivedHandler; typedef std::function&) > UpdateDomainConfigurationResponseReceivedHandler; typedef std::function&) > UpdateDynamicThingGroupResponseReceivedHandler; @@ -1362,8 +1417,8 @@ namespace Model virtual void CancelAuditMitigationActionsTaskAsync(const Model::CancelAuditMitigationActionsTaskRequest& request, const CancelAuditMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** - *

Cancels an audit that is in progress. The audit can be either scheduled or - * on-demand. If the audit is not in progress, an "InvalidRequestException" + *

Cancels an audit that is in progress. The audit can be either scheduled or on + * demand. If the audit isn't in progress, an "InvalidRequestException" * occurs.

See Also:

AWS * API Reference

@@ -1371,8 +1426,8 @@ namespace Model virtual Model::CancelAuditTaskOutcome CancelAuditTask(const Model::CancelAuditTaskRequest& request) const; /** - *

Cancels an audit that is in progress. The audit can be either scheduled or - * on-demand. If the audit is not in progress, an "InvalidRequestException" + *

Cancels an audit that is in progress. The audit can be either scheduled or on + * demand. If the audit isn't in progress, an "InvalidRequestException" * occurs.

See Also:

AWS * API Reference

@@ -1382,8 +1437,8 @@ namespace Model virtual Model::CancelAuditTaskOutcomeCallable CancelAuditTaskCallable(const Model::CancelAuditTaskRequest& request) const; /** - *

Cancels an audit that is in progress. The audit can be either scheduled or - * on-demand. If the audit is not in progress, an "InvalidRequestException" + *

Cancels an audit that is in progress. The audit can be either scheduled or on + * demand. If the audit isn't in progress, an "InvalidRequestException" * occurs.

See Also:

AWS * API Reference

@@ -1438,6 +1493,34 @@ namespace Model */ virtual void CancelCertificateTransferAsync(const Model::CancelCertificateTransferRequest& request, const CancelCertificateTransferResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Cancels a Device Defender ML Detect mitigation action.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::CancelDetectMitigationActionsTaskOutcome CancelDetectMitigationActionsTask(const Model::CancelDetectMitigationActionsTaskRequest& request) const; + + /** + *

Cancels a Device Defender ML Detect mitigation action.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CancelDetectMitigationActionsTaskOutcomeCallable CancelDetectMitigationActionsTaskCallable(const Model::CancelDetectMitigationActionsTaskRequest& request) const; + + /** + *

Cancels a Device Defender ML Detect mitigation action.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CancelDetectMitigationActionsTaskAsync(const Model::CancelDetectMitigationActionsTaskRequest& request, const CancelDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Cancels a job.

See Also:

AWS API @@ -1728,6 +1811,34 @@ namespace Model */ virtual void CreateCertificateFromCsrAsync(const Model::CreateCertificateFromCsrRequest& request, const CreateCertificateFromCsrResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Use this API to define a Custom Metric published by your devices to Device + * Defender.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateCustomMetricOutcome CreateCustomMetric(const Model::CreateCustomMetricRequest& request) const; + + /** + *

Use this API to define a Custom Metric published by your devices to Device + * Defender.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateCustomMetricOutcomeCallable CreateCustomMetricCallable(const Model::CreateCustomMetricRequest& request) const; + + /** + *

Use this API to define a Custom Metric published by your devices to Device + * Defender.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateCustomMetricAsync(const Model::CreateCustomMetricRequest& request, const CreateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Create a dimension that you can use to limit the scope of a metric used in a * security profile for AWS IoT Device Defender. For example, using a @@ -2556,6 +2667,46 @@ namespace Model */ virtual void DeleteCertificateAsync(const Model::DeleteCertificateRequest& request, const DeleteCertificateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Before you can delete a custom metric, you must first remove the + * custom metric from all security profiles it's a part of. The security profile + * associated with the custom metric can be found using the ListSecurityProfiles + * API with metricName set to your custom metric name.

+ * Deletes a Device Defender detect custom metric.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteCustomMetricOutcome DeleteCustomMetric(const Model::DeleteCustomMetricRequest& request) const; + + /** + *

Before you can delete a custom metric, you must first remove the + * custom metric from all security profiles it's a part of. The security profile + * associated with the custom metric can be found using the ListSecurityProfiles + * API with metricName set to your custom metric name.

+ * Deletes a Device Defender detect custom metric.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteCustomMetricOutcomeCallable DeleteCustomMetricCallable(const Model::DeleteCustomMetricRequest& request) const; + + /** + *

Before you can delete a custom metric, you must first remove the + * custom metric from all security profiles it's a part of. The security profile + * associated with the custom metric can be found using the ListSecurityProfiles + * API with metricName set to your custom metric name.

+ * Deletes a Device Defender detect custom metric.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteCustomMetricAsync(const Model::DeleteCustomMetricRequest& request, const DeleteCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Removes the specified dimension from your AWS account.

See * Also:

Gets information about a single audit finding. Properties include the reason - * for noncompliance, the severity of the issue, and when the audit that returned - * the finding was started.

See Also:

See Also:

AWS * API Reference

*/ @@ -3254,8 +3405,8 @@ namespace Model /** *

Gets information about a single audit finding. Properties include the reason - * for noncompliance, the severity of the issue, and when the audit that returned - * the finding was started.

See Also:

See Also:

AWS * API Reference

* @@ -3265,8 +3416,8 @@ namespace Model /** *

Gets information about a single audit finding. Properties include the reason - * for noncompliance, the severity of the issue, and when the audit that returned - * the finding was started.

See Also:

See Also:

AWS * API Reference

* @@ -3464,6 +3615,34 @@ namespace Model */ virtual void DescribeCertificateAsync(const Model::DescribeCertificateRequest& request, const DescribeCertificateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Gets information about a Device Defender detect custom metric. + *

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeCustomMetricOutcome DescribeCustomMetric(const Model::DescribeCustomMetricRequest& request) const; + + /** + *

Gets information about a Device Defender detect custom metric. + *

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DescribeCustomMetricOutcomeCallable DescribeCustomMetricCallable(const Model::DescribeCustomMetricRequest& request) const; + + /** + *

Gets information about a Device Defender detect custom metric. + *

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DescribeCustomMetricAsync(const Model::DescribeCustomMetricRequest& request, const DescribeCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Describes the default authorizer.

See Also:

AWS @@ -3489,6 +3668,34 @@ namespace Model */ virtual void DescribeDefaultAuthorizerAsync(const Model::DescribeDefaultAuthorizerRequest& request, const DescribeDefaultAuthorizerResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Gets information about a Device Defender ML Detect mitigation action. + *

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeDetectMitigationActionsTaskOutcome DescribeDetectMitigationActionsTask(const Model::DescribeDetectMitigationActionsTaskRequest& request) const; + + /** + *

Gets information about a Device Defender ML Detect mitigation action. + *

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DescribeDetectMitigationActionsTaskOutcomeCallable DescribeDetectMitigationActionsTaskCallable(const Model::DescribeDetectMitigationActionsTaskRequest& request) const; + + /** + *

Gets information about a Device Defender ML Detect mitigation action. + *

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DescribeDetectMitigationActionsTaskAsync(const Model::DescribeDetectMitigationActionsTaskRequest& request, const DescribeDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Provides details about a dimension that is defined in your AWS * account.

See Also:

& context = nullptr) const; + /** + *

Returns a Device Defender's ML Detect Security Profile training model's + * status.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetBehaviorModelTrainingSummariesOutcome GetBehaviorModelTrainingSummaries(const Model::GetBehaviorModelTrainingSummariesRequest& request) const; + + /** + *

Returns a Device Defender's ML Detect Security Profile training model's + * status.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetBehaviorModelTrainingSummariesOutcomeCallable GetBehaviorModelTrainingSummariesCallable(const Model::GetBehaviorModelTrainingSummariesRequest& request) const; + + /** + *

Returns a Device Defender's ML Detect Security Profile training model's + * status.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetBehaviorModelTrainingSummariesAsync(const Model::GetBehaviorModelTrainingSummariesRequest& request, const GetBehaviorModelTrainingSummariesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Returns the approximate count of unique values that match the * query.

See Also:

& context = nullptr) const; + /** + *

Lists your Device Defender detect custom metrics.

See Also:

+ *
AWS + * API Reference

+ */ + virtual Model::ListCustomMetricsOutcome ListCustomMetrics(const Model::ListCustomMetricsRequest& request) const; + + /** + *

Lists your Device Defender detect custom metrics.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListCustomMetricsOutcomeCallable ListCustomMetricsCallable(const Model::ListCustomMetricsRequest& request) const; + + /** + *

Lists your Device Defender detect custom metrics.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListCustomMetricsAsync(const Model::ListCustomMetricsRequest& request, const ListCustomMetricsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists mitigation actions executions for a Device Defender ML Detect Security + * Profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListDetectMitigationActionsExecutionsOutcome ListDetectMitigationActionsExecutions(const Model::ListDetectMitigationActionsExecutionsRequest& request) const; + + /** + *

Lists mitigation actions executions for a Device Defender ML Detect Security + * Profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListDetectMitigationActionsExecutionsOutcomeCallable ListDetectMitigationActionsExecutionsCallable(const Model::ListDetectMitigationActionsExecutionsRequest& request) const; + + /** + *

Lists mitigation actions executions for a Device Defender ML Detect Security + * Profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListDetectMitigationActionsExecutionsAsync(const Model::ListDetectMitigationActionsExecutionsRequest& request, const ListDetectMitigationActionsExecutionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

List of Device Defender ML Detect mitigation actions tasks.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListDetectMitigationActionsTasksOutcome ListDetectMitigationActionsTasks(const Model::ListDetectMitigationActionsTasksRequest& request) const; + + /** + *

List of Device Defender ML Detect mitigation actions tasks.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListDetectMitigationActionsTasksOutcomeCallable ListDetectMitigationActionsTasksCallable(const Model::ListDetectMitigationActionsTasksRequest& request) const; + + /** + *

List of Device Defender ML Detect mitigation actions tasks.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListDetectMitigationActionsTasksAsync(const Model::ListDetectMitigationActionsTasksRequest& request, const ListDetectMitigationActionsTasksResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

List the set of dimensions that are defined for your AWS * account.

See Also:

& context = nullptr) const; /** - *

Lists the Device Defender security profiles you have created. You can use - * filters to list only those security profiles associated with a thing group or - * only those associated with your account.

See Also:

Lists the Device Defender security profiles you've created. You can filter + * security profiles by dimension or custom metric.

+ * dimensionName and metricName cannot be used in the + * same request.

See Also:

AWS * API Reference

*/ virtual Model::ListSecurityProfilesOutcome ListSecurityProfiles(const Model::ListSecurityProfilesRequest& request) const; /** - *

Lists the Device Defender security profiles you have created. You can use - * filters to list only those security profiles associated with a thing group or - * only those associated with your account.

See Also:

Lists the Device Defender security profiles you've created. You can filter + * security profiles by dimension or custom metric.

+ * dimensionName and metricName cannot be used in the + * same request.

See Also:

AWS * API Reference

* @@ -5312,9 +5633,10 @@ namespace Model virtual Model::ListSecurityProfilesOutcomeCallable ListSecurityProfilesCallable(const Model::ListSecurityProfilesRequest& request) const; /** - *

Lists the Device Defender security profiles you have created. You can use - * filters to list only those security profiles associated with a thing group or - * only those associated with your account.

See Also:

Lists the Device Defender security profiles you've created. You can filter + * security profiles by dimension or custom metric.

+ * dimensionName and metricName cannot be used in the + * same request.

See Also:

AWS * API Reference

* @@ -6309,6 +6631,34 @@ namespace Model */ virtual void StartAuditMitigationActionsTaskAsync(const Model::StartAuditMitigationActionsTaskRequest& request, const StartAuditMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Starts a Device Defender ML Detect mitigation actions task.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::StartDetectMitigationActionsTaskOutcome StartDetectMitigationActionsTask(const Model::StartDetectMitigationActionsTaskRequest& request) const; + + /** + *

Starts a Device Defender ML Detect mitigation actions task.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::StartDetectMitigationActionsTaskOutcomeCallable StartDetectMitigationActionsTaskCallable(const Model::StartDetectMitigationActionsTaskRequest& request) const; + + /** + *

Starts a Device Defender ML Detect mitigation actions task.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void StartDetectMitigationActionsTaskAsync(const Model::StartDetectMitigationActionsTaskRequest& request, const StartDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Starts an on-demand Device Defender audit.

See Also:

AWS @@ -6728,10 +7078,38 @@ namespace Model */ virtual void UpdateCertificateAsync(const Model::UpdateCertificateRequest& request, const UpdateCertificateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

Updates a Device Defender detect custom metric.

See Also:

+ *
AWS + * API Reference

+ */ + virtual Model::UpdateCustomMetricOutcome UpdateCustomMetric(const Model::UpdateCustomMetricRequest& request) const; + + /** + *

Updates a Device Defender detect custom metric.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateCustomMetricOutcomeCallable UpdateCustomMetricCallable(const Model::UpdateCustomMetricRequest& request) const; + + /** + *

Updates a Device Defender detect custom metric.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateCustomMetricAsync(const Model::UpdateCustomMetricRequest& request, const UpdateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

Updates the definition for a dimension. You cannot change the type of a - * dimension after it is created (you can delete it and re-create - * it).

See Also:

See + * Also:

AWS * API Reference

*/ @@ -6739,8 +7117,8 @@ namespace Model /** *

Updates the definition for a dimension. You cannot change the type of a - * dimension after it is created (you can delete it and re-create - * it).

See Also:

See + * Also:

AWS * API Reference

* @@ -6750,8 +7128,8 @@ namespace Model /** *

Updates the definition for a dimension. You cannot change the type of a - * dimension after it is created (you can delete it and re-create - * it).

See Also:

See + * Also:

AWS * API Reference

* @@ -7197,6 +7575,7 @@ namespace Model void CancelAuditMitigationActionsTaskAsyncHelper(const Model::CancelAuditMitigationActionsTaskRequest& request, const CancelAuditMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CancelAuditTaskAsyncHelper(const Model::CancelAuditTaskRequest& request, const CancelAuditTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CancelCertificateTransferAsyncHelper(const Model::CancelCertificateTransferRequest& request, const CancelCertificateTransferResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CancelDetectMitigationActionsTaskAsyncHelper(const Model::CancelDetectMitigationActionsTaskRequest& request, const CancelDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CancelJobAsyncHelper(const Model::CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CancelJobExecutionAsyncHelper(const Model::CancelJobExecutionRequest& request, const CancelJobExecutionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ClearDefaultAuthorizerAsyncHelper(const Model::ClearDefaultAuthorizerRequest& request, const ClearDefaultAuthorizerResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7205,6 +7584,7 @@ namespace Model void CreateAuthorizerAsyncHelper(const Model::CreateAuthorizerRequest& request, const CreateAuthorizerResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateBillingGroupAsyncHelper(const Model::CreateBillingGroupRequest& request, const CreateBillingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateCertificateFromCsrAsyncHelper(const Model::CreateCertificateFromCsrRequest& request, const CreateCertificateFromCsrResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateCustomMetricAsyncHelper(const Model::CreateCustomMetricRequest& request, const CreateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateDimensionAsyncHelper(const Model::CreateDimensionRequest& request, const CreateDimensionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateDomainConfigurationAsyncHelper(const Model::CreateDomainConfigurationRequest& request, const CreateDomainConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateDynamicThingGroupAsyncHelper(const Model::CreateDynamicThingGroupRequest& request, const CreateDynamicThingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7232,6 +7612,7 @@ namespace Model void DeleteBillingGroupAsyncHelper(const Model::DeleteBillingGroupRequest& request, const DeleteBillingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteCACertificateAsyncHelper(const Model::DeleteCACertificateRequest& request, const DeleteCACertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteCertificateAsyncHelper(const Model::DeleteCertificateRequest& request, const DeleteCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteCustomMetricAsyncHelper(const Model::DeleteCustomMetricRequest& request, const DeleteCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteDimensionAsyncHelper(const Model::DeleteDimensionRequest& request, const DeleteDimensionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteDomainConfigurationAsyncHelper(const Model::DeleteDomainConfigurationRequest& request, const DeleteDomainConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteDynamicThingGroupAsyncHelper(const Model::DeleteDynamicThingGroupRequest& request, const DeleteDynamicThingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7264,7 +7645,9 @@ namespace Model void DescribeBillingGroupAsyncHelper(const Model::DescribeBillingGroupRequest& request, const DescribeBillingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeCACertificateAsyncHelper(const Model::DescribeCACertificateRequest& request, const DescribeCACertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeCertificateAsyncHelper(const Model::DescribeCertificateRequest& request, const DescribeCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DescribeCustomMetricAsyncHelper(const Model::DescribeCustomMetricRequest& request, const DescribeCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeDefaultAuthorizerAsyncHelper(const Model::DescribeDefaultAuthorizerRequest& request, const DescribeDefaultAuthorizerResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DescribeDetectMitigationActionsTaskAsyncHelper(const Model::DescribeDetectMitigationActionsTaskRequest& request, const DescribeDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeDimensionAsyncHelper(const Model::DescribeDimensionRequest& request, const DescribeDimensionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeDomainConfigurationAsyncHelper(const Model::DescribeDomainConfigurationRequest& request, const DescribeDomainConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeEndpointAsyncHelper(const Model::DescribeEndpointRequest& request, const DescribeEndpointResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7288,6 +7671,7 @@ namespace Model void DetachThingPrincipalAsyncHelper(const Model::DetachThingPrincipalRequest& request, const DetachThingPrincipalResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DisableTopicRuleAsyncHelper(const Model::DisableTopicRuleRequest& request, const DisableTopicRuleResponseReceivedHandler& handler, const std::shared_ptr& context) const; void EnableTopicRuleAsyncHelper(const Model::EnableTopicRuleRequest& request, const EnableTopicRuleResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetBehaviorModelTrainingSummariesAsyncHelper(const Model::GetBehaviorModelTrainingSummariesRequest& request, const GetBehaviorModelTrainingSummariesResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetCardinalityAsyncHelper(const Model::GetCardinalityRequest& request, const GetCardinalityResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetEffectivePoliciesAsyncHelper(const Model::GetEffectivePoliciesRequest& request, const GetEffectivePoliciesResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetIndexingConfigurationAsyncHelper(const Model::GetIndexingConfigurationRequest& request, const GetIndexingConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7314,6 +7698,9 @@ namespace Model void ListCACertificatesAsyncHelper(const Model::ListCACertificatesRequest& request, const ListCACertificatesResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListCertificatesAsyncHelper(const Model::ListCertificatesRequest& request, const ListCertificatesResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListCertificatesByCAAsyncHelper(const Model::ListCertificatesByCARequest& request, const ListCertificatesByCAResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListCustomMetricsAsyncHelper(const Model::ListCustomMetricsRequest& request, const ListCustomMetricsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListDetectMitigationActionsExecutionsAsyncHelper(const Model::ListDetectMitigationActionsExecutionsRequest& request, const ListDetectMitigationActionsExecutionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListDetectMitigationActionsTasksAsyncHelper(const Model::ListDetectMitigationActionsTasksRequest& request, const ListDetectMitigationActionsTasksResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListDimensionsAsyncHelper(const Model::ListDimensionsRequest& request, const ListDimensionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListDomainConfigurationsAsyncHelper(const Model::ListDomainConfigurationsRequest& request, const ListDomainConfigurationsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListIndicesAsyncHelper(const Model::ListIndicesRequest& request, const ListIndicesResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7364,6 +7751,7 @@ namespace Model void SetV2LoggingLevelAsyncHelper(const Model::SetV2LoggingLevelRequest& request, const SetV2LoggingLevelResponseReceivedHandler& handler, const std::shared_ptr& context) const; void SetV2LoggingOptionsAsyncHelper(const Model::SetV2LoggingOptionsRequest& request, const SetV2LoggingOptionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StartAuditMitigationActionsTaskAsyncHelper(const Model::StartAuditMitigationActionsTaskRequest& request, const StartAuditMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void StartDetectMitigationActionsTaskAsyncHelper(const Model::StartDetectMitigationActionsTaskRequest& request, const StartDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StartOnDemandAuditTaskAsyncHelper(const Model::StartOnDemandAuditTaskRequest& request, const StartOnDemandAuditTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StartThingRegistrationTaskAsyncHelper(const Model::StartThingRegistrationTaskRequest& request, const StartThingRegistrationTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StopThingRegistrationTaskAsyncHelper(const Model::StopThingRegistrationTaskRequest& request, const StopThingRegistrationTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -7378,6 +7766,7 @@ namespace Model void UpdateBillingGroupAsyncHelper(const Model::UpdateBillingGroupRequest& request, const UpdateBillingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateCACertificateAsyncHelper(const Model::UpdateCACertificateRequest& request, const UpdateCACertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateCertificateAsyncHelper(const Model::UpdateCertificateRequest& request, const UpdateCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateCustomMetricAsyncHelper(const Model::UpdateCustomMetricRequest& request, const UpdateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateDimensionAsyncHelper(const Model::UpdateDimensionRequest& request, const UpdateDimensionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateDomainConfigurationAsyncHelper(const Model::UpdateDomainConfigurationRequest& request, const UpdateDomainConfigurationResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateDynamicThingGroupAsyncHelper(const Model::UpdateDynamicThingGroupRequest& request, const UpdateDynamicThingGroupResponseReceivedHandler& handler, const std::shared_ptr& context) const; diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/Action.h b/aws-cpp-sdk-iot/include/aws/iot/model/Action.h index cf40a81a078..beef75b4da8 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/Action.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/Action.h @@ -25,6 +25,7 @@ #include #include #include +#include #include namespace Aws @@ -711,6 +712,43 @@ namespace Model */ inline Action& WithHttp(HttpAction&& value) { SetHttp(std::move(value)); return *this;} + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

+ */ + inline const KafkaAction& GetKafka() const{ return m_kafka; } + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

+ */ + inline bool KafkaHasBeenSet() const { return m_kafkaHasBeenSet; } + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

+ */ + inline void SetKafka(const KafkaAction& value) { m_kafkaHasBeenSet = true; m_kafka = value; } + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

+ */ + inline void SetKafka(KafkaAction&& value) { m_kafkaHasBeenSet = true; m_kafka = std::move(value); } + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

+ */ + inline Action& WithKafka(const KafkaAction& value) { SetKafka(value); return *this;} + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

+ */ + inline Action& WithKafka(KafkaAction&& value) { SetKafka(std::move(value)); return *this;} + private: DynamoDBAction m_dynamoDB; @@ -772,6 +810,9 @@ namespace Model HttpAction m_http; bool m_httpHasBeenSet; + + KafkaAction m_kafka; + bool m_kafkaHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ActiveViolation.h b/aws-cpp-sdk-iot/include/aws/iot/model/ActiveViolation.h index f4fb8e019b0..cd28cb415d2 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/ActiveViolation.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ActiveViolation.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -124,114 +125,145 @@ namespace Model /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; } /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; } /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; } /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); } /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); } /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline ActiveViolation& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;} /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline ActiveViolation& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;} /** - *

The security profile whose behavior is in violation.

+ *

The security profile with the behavior is in violation.

*/ inline ActiveViolation& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} /** - *

The behavior which is being violated.

+ *

The behavior that is being violated.

*/ inline const Behavior& GetBehavior() const{ return m_behavior; } /** - *

The behavior which is being violated.

+ *

The behavior that is being violated.

*/ inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; } /** - *

The behavior which is being violated.

+ *

The behavior that is being violated.

*/ inline void SetBehavior(const Behavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; } /** - *

The behavior which is being violated.

+ *

The behavior that is being violated.

*/ inline void SetBehavior(Behavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); } /** - *

The behavior which is being violated.

+ *

The behavior that is being violated.

*/ inline ActiveViolation& WithBehavior(const Behavior& value) { SetBehavior(value); return *this;} /** - *

The behavior which is being violated.

+ *

The behavior that is being violated.

*/ inline ActiveViolation& WithBehavior(Behavior&& value) { SetBehavior(std::move(value)); return *this;} /** - *

The value of the metric (the measurement) which caused the most recent + *

The value of the metric (the measurement) that caused the most recent * violation.

*/ inline const MetricValue& GetLastViolationValue() const{ return m_lastViolationValue; } /** - *

The value of the metric (the measurement) which caused the most recent + *

The value of the metric (the measurement) that caused the most recent * violation.

*/ inline bool LastViolationValueHasBeenSet() const { return m_lastViolationValueHasBeenSet; } /** - *

The value of the metric (the measurement) which caused the most recent + *

The value of the metric (the measurement) that caused the most recent * violation.

*/ inline void SetLastViolationValue(const MetricValue& value) { m_lastViolationValueHasBeenSet = true; m_lastViolationValue = value; } /** - *

The value of the metric (the measurement) which caused the most recent + *

The value of the metric (the measurement) that caused the most recent * violation.

*/ inline void SetLastViolationValue(MetricValue&& value) { m_lastViolationValueHasBeenSet = true; m_lastViolationValue = std::move(value); } /** - *

The value of the metric (the measurement) which caused the most recent + *

The value of the metric (the measurement) that caused the most recent * violation.

*/ inline ActiveViolation& WithLastViolationValue(const MetricValue& value) { SetLastViolationValue(value); return *this;} /** - *

The value of the metric (the measurement) which caused the most recent + *

The value of the metric (the measurement) that caused the most recent * violation.

*/ inline ActiveViolation& WithLastViolationValue(MetricValue&& value) { SetLastViolationValue(std::move(value)); return *this;} + /** + *

The details of a violation event.

+ */ + inline const ViolationEventAdditionalInfo& GetViolationEventAdditionalInfo() const{ return m_violationEventAdditionalInfo; } + + /** + *

The details of a violation event.

+ */ + inline bool ViolationEventAdditionalInfoHasBeenSet() const { return m_violationEventAdditionalInfoHasBeenSet; } + + /** + *

The details of a violation event.

+ */ + inline void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = value; } + + /** + *

The details of a violation event.

+ */ + inline void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = std::move(value); } + + /** + *

The details of a violation event.

+ */ + inline ActiveViolation& WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { SetViolationEventAdditionalInfo(value); return *this;} + + /** + *

The details of a violation event.

+ */ + inline ActiveViolation& WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { SetViolationEventAdditionalInfo(std::move(value)); return *this;} + + /** *

The time the most recent violation occurred.

*/ @@ -310,6 +342,9 @@ namespace Model MetricValue m_lastViolationValue; bool m_lastViolationValueHasBeenSet; + ViolationEventAdditionalInfo m_violationEventAdditionalInfo; + bool m_violationEventAdditionalInfoHasBeenSet; + Aws::Utils::DateTime m_lastViolationTime; bool m_lastViolationTimeHasBeenSet; diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/AddThingsToThingGroupParams.h b/aws-cpp-sdk-iot/include/aws/iot/model/AddThingsToThingGroupParams.h index 1426be2a261..39d544c6925 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/AddThingsToThingGroupParams.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/AddThingsToThingGroupParams.h @@ -41,63 +41,63 @@ namespace Model /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline const Aws::Vector& GetThingGroupNames() const{ return m_thingGroupNames; } /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline bool ThingGroupNamesHasBeenSet() const { return m_thingGroupNamesHasBeenSet; } /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline void SetThingGroupNames(const Aws::Vector& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = value; } /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline void SetThingGroupNames(Aws::Vector&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames = std::move(value); } /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& WithThingGroupNames(const Aws::Vector& value) { SetThingGroupNames(value); return *this;} /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& WithThingGroupNames(Aws::Vector&& value) { SetThingGroupNames(std::move(value)); return *this;} /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& AddThingGroupNames(const Aws::String& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; } /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& AddThingGroupNames(Aws::String&& value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(std::move(value)); return *this; } /** *

The list of groups to which you want to add the things that triggered the - * mitigation action. You can add a thing to a maximum of 10 groups, but you cannot + * mitigation action. You can add a thing to a maximum of 10 groups, but you can't * add a thing to more than one group in the same hierarchy.

*/ inline AddThingsToThingGroupParams& AddThingGroupNames(const char* value) { m_thingGroupNamesHasBeenSet = true; m_thingGroupNames.push_back(value); return *this; } @@ -105,29 +105,25 @@ namespace Model /** *

Specifies if this mitigation action can move the things that triggered the - * mitigation action even if they are part of one or more dynamic things - * groups.

+ * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline bool GetOverrideDynamicGroups() const{ return m_overrideDynamicGroups; } /** *

Specifies if this mitigation action can move the things that triggered the - * mitigation action even if they are part of one or more dynamic things - * groups.

+ * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline bool OverrideDynamicGroupsHasBeenSet() const { return m_overrideDynamicGroupsHasBeenSet; } /** *

Specifies if this mitigation action can move the things that triggered the - * mitigation action even if they are part of one or more dynamic things - * groups.

+ * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline void SetOverrideDynamicGroups(bool value) { m_overrideDynamicGroupsHasBeenSet = true; m_overrideDynamicGroups = value; } /** *

Specifies if this mitigation action can move the things that triggered the - * mitigation action even if they are part of one or more dynamic things - * groups.

+ * mitigation action even if they are part of one or more dynamic thing groups.

*/ inline AddThingsToThingGroupParams& WithOverrideDynamicGroups(bool value) { SetOverrideDynamicGroups(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/AlertTarget.h b/aws-cpp-sdk-iot/include/aws/iot/model/AlertTarget.h index 05a50aa223e..ad46ccc9c19 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/AlertTarget.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/AlertTarget.h @@ -39,42 +39,50 @@ namespace Model /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline const Aws::String& GetAlertTargetArn() const{ return m_alertTargetArn; } /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline bool AlertTargetArnHasBeenSet() const { return m_alertTargetArnHasBeenSet; } /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline void SetAlertTargetArn(const Aws::String& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = value; } /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline void SetAlertTargetArn(Aws::String&& value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn = std::move(value); } /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline void SetAlertTargetArn(const char* value) { m_alertTargetArnHasBeenSet = true; m_alertTargetArn.assign(value); } /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline AlertTarget& WithAlertTargetArn(const Aws::String& value) { SetAlertTargetArn(value); return *this;} /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline AlertTarget& WithAlertTargetArn(Aws::String&& value) { SetAlertTargetArn(std::move(value)); return *this;} /** - *

The ARN of the notification target to which alerts are sent.

+ *

The Amazon Resource Name (ARN) of the notification target to which alerts are + * sent.

*/ inline AlertTarget& WithAlertTargetArn(const char* value) { SetAlertTargetArn(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/Behavior.h b/aws-cpp-sdk-iot/include/aws/iot/model/Behavior.h index 56d1e91d97e..7a0a4ddfa96 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/Behavior.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/Behavior.h @@ -40,42 +40,42 @@ namespace Model /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline const Aws::String& GetName() const{ return m_name; } /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline Behavior& WithName(const Aws::String& value) { SetName(value); return *this;} /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline Behavior& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** - *

The name you have given to the behavior.

+ *

The name you've given to the behavior.

*/ inline Behavior& WithName(const char* value) { SetName(value); return *this;} @@ -124,42 +124,48 @@ namespace Model /** *

The dimension for a metric in your behavior. For example, using a * TOPIC_FILTER dimension, you can narrow down the scope of the metric - * only to MQTT topics whose name match the pattern specified in the dimension.

+ * to only MQTT topics where the name matches the pattern specified in the + * dimension. This can't be used with custom metrics.

*/ inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; } /** *

The dimension for a metric in your behavior. For example, using a * TOPIC_FILTER dimension, you can narrow down the scope of the metric - * only to MQTT topics whose name match the pattern specified in the dimension.

+ * to only MQTT topics where the name matches the pattern specified in the + * dimension. This can't be used with custom metrics.

*/ inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; } /** *

The dimension for a metric in your behavior. For example, using a * TOPIC_FILTER dimension, you can narrow down the scope of the metric - * only to MQTT topics whose name match the pattern specified in the dimension.

+ * to only MQTT topics where the name matches the pattern specified in the + * dimension. This can't be used with custom metrics.

*/ inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; } /** *

The dimension for a metric in your behavior. For example, using a * TOPIC_FILTER dimension, you can narrow down the scope of the metric - * only to MQTT topics whose name match the pattern specified in the dimension.

+ * to only MQTT topics where the name matches the pattern specified in the + * dimension. This can't be used with custom metrics.

*/ inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); } /** *

The dimension for a metric in your behavior. For example, using a * TOPIC_FILTER dimension, you can narrow down the scope of the metric - * only to MQTT topics whose name match the pattern specified in the dimension.

+ * to only MQTT topics where the name matches the pattern specified in the + * dimension. This can't be used with custom metrics.

*/ inline Behavior& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;} /** *

The dimension for a metric in your behavior. For example, using a * TOPIC_FILTER dimension, you can narrow down the scope of the metric - * only to MQTT topics whose name match the pattern specified in the dimension.

+ * to only MQTT topics where the name matches the pattern specified in the + * dimension. This can't be used with custom metrics.

*/ inline Behavior& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;} @@ -200,6 +206,27 @@ namespace Model */ inline Behavior& WithCriteria(BehaviorCriteria&& value) { SetCriteria(std::move(value)); return *this;} + + /** + *

Suppresses alerts.

+ */ + inline bool GetSuppressAlerts() const{ return m_suppressAlerts; } + + /** + *

Suppresses alerts.

+ */ + inline bool SuppressAlertsHasBeenSet() const { return m_suppressAlertsHasBeenSet; } + + /** + *

Suppresses alerts.

+ */ + inline void SetSuppressAlerts(bool value) { m_suppressAlertsHasBeenSet = true; m_suppressAlerts = value; } + + /** + *

Suppresses alerts.

+ */ + inline Behavior& WithSuppressAlerts(bool value) { SetSuppressAlerts(value); return *this;} + private: Aws::String m_name; @@ -213,6 +240,9 @@ namespace Model BehaviorCriteria m_criteria; bool m_criteriaHasBeenSet; + + bool m_suppressAlerts; + bool m_suppressAlertsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteria.h b/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteria.h index fea18261dd7..809161541e8 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteria.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteria.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -42,43 +43,79 @@ namespace Model /** *

The operator that relates the thing measured (metric) to the - * criteria (containing a value or - * statisticalThreshold).

+ * criteria (containing a value or statisticalThreshold). + * Valid operators include:

  • string-list: + * in-set and not-in-set

  • + * number-list: in-set and not-in-set

    + *
  • ip-address-list: in-cidr-set and + * not-in-cidr-set

  • number: + * less-than, less-than-equals, + * greater-than, and greater-than-equals

*/ inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; } /** *

The operator that relates the thing measured (metric) to the - * criteria (containing a value or - * statisticalThreshold).

+ * criteria (containing a value or statisticalThreshold). + * Valid operators include:

  • string-list: + * in-set and not-in-set

  • + * number-list: in-set and not-in-set

    + *
  • ip-address-list: in-cidr-set and + * not-in-cidr-set

  • number: + * less-than, less-than-equals, + * greater-than, and greater-than-equals

*/ inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; } /** *

The operator that relates the thing measured (metric) to the - * criteria (containing a value or - * statisticalThreshold).

+ * criteria (containing a value or statisticalThreshold). + * Valid operators include:

  • string-list: + * in-set and not-in-set

  • + * number-list: in-set and not-in-set

    + *
  • ip-address-list: in-cidr-set and + * not-in-cidr-set

  • number: + * less-than, less-than-equals, + * greater-than, and greater-than-equals

*/ inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; } /** *

The operator that relates the thing measured (metric) to the - * criteria (containing a value or - * statisticalThreshold).

+ * criteria (containing a value or statisticalThreshold). + * Valid operators include:

  • string-list: + * in-set and not-in-set

  • + * number-list: in-set and not-in-set

    + *
  • ip-address-list: in-cidr-set and + * not-in-cidr-set

  • number: + * less-than, less-than-equals, + * greater-than, and greater-than-equals

*/ inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); } /** *

The operator that relates the thing measured (metric) to the - * criteria (containing a value or - * statisticalThreshold).

+ * criteria (containing a value or statisticalThreshold). + * Valid operators include:

  • string-list: + * in-set and not-in-set

  • + * number-list: in-set and not-in-set

    + *
  • ip-address-list: in-cidr-set and + * not-in-cidr-set

  • number: + * less-than, less-than-equals, + * greater-than, and greater-than-equals

*/ inline BehaviorCriteria& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;} /** *

The operator that relates the thing measured (metric) to the - * criteria (containing a value or - * statisticalThreshold).

+ * criteria (containing a value or statisticalThreshold). + * Valid operators include:

  • string-list: + * in-set and not-in-set

  • + * number-list: in-set and not-in-set

    + *
  • ip-address-list: in-cidr-set and + * not-in-cidr-set

  • number: + * less-than, less-than-equals, + * greater-than, and greater-than-equals

*/ inline BehaviorCriteria& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;} @@ -116,45 +153,49 @@ namespace Model /** *

Use this to specify the time duration over which the behavior is evaluated, - * for those criteria which have a time dimension (for example, + * for those criteria that have a time dimension (for example, * NUM_MESSAGES_SENT). For a statisticalThreshhold metric * comparison, measurements from all devices are accumulated over this time * duration before being used to calculate percentiles, and later, measurements * from an individual device are also accumulated over this time duration before - * being given a percentile rank.

+ * being given a percentile rank. Cannot be used with list-based metric + * datatypes.

*/ inline int GetDurationSeconds() const{ return m_durationSeconds; } /** *

Use this to specify the time duration over which the behavior is evaluated, - * for those criteria which have a time dimension (for example, + * for those criteria that have a time dimension (for example, * NUM_MESSAGES_SENT). For a statisticalThreshhold metric * comparison, measurements from all devices are accumulated over this time * duration before being used to calculate percentiles, and later, measurements * from an individual device are also accumulated over this time duration before - * being given a percentile rank.

+ * being given a percentile rank. Cannot be used with list-based metric + * datatypes.

*/ inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; } /** *

Use this to specify the time duration over which the behavior is evaluated, - * for those criteria which have a time dimension (for example, + * for those criteria that have a time dimension (for example, * NUM_MESSAGES_SENT). For a statisticalThreshhold metric * comparison, measurements from all devices are accumulated over this time * duration before being used to calculate percentiles, and later, measurements * from an individual device are also accumulated over this time duration before - * being given a percentile rank.

+ * being given a percentile rank. Cannot be used with list-based metric + * datatypes.

*/ inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; } /** *

Use this to specify the time duration over which the behavior is evaluated, - * for those criteria which have a time dimension (for example, + * for those criteria that have a time dimension (for example, * NUM_MESSAGES_SENT). For a statisticalThreshhold metric * comparison, measurements from all devices are accumulated over this time * duration before being used to calculate percentiles, and later, measurements * from an individual device are also accumulated over this time duration before - * being given a percentile rank.

+ * being given a percentile rank. Cannot be used with list-based metric + * datatypes.

*/ inline BehaviorCriteria& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;} @@ -214,47 +255,72 @@ namespace Model /** - *

A statistical ranking (percentile) which indicates a threshold value by which - * a behavior is determined to be in compliance or in violation of the - * behavior.

+ *

A statistical ranking (percentile)that indicates a threshold value by which a + * behavior is determined to be in compliance or in violation of the behavior.

*/ inline const StatisticalThreshold& GetStatisticalThreshold() const{ return m_statisticalThreshold; } /** - *

A statistical ranking (percentile) which indicates a threshold value by which - * a behavior is determined to be in compliance or in violation of the - * behavior.

+ *

A statistical ranking (percentile)that indicates a threshold value by which a + * behavior is determined to be in compliance or in violation of the behavior.

*/ inline bool StatisticalThresholdHasBeenSet() const { return m_statisticalThresholdHasBeenSet; } /** - *

A statistical ranking (percentile) which indicates a threshold value by which - * a behavior is determined to be in compliance or in violation of the - * behavior.

+ *

A statistical ranking (percentile)that indicates a threshold value by which a + * behavior is determined to be in compliance or in violation of the behavior.

*/ inline void SetStatisticalThreshold(const StatisticalThreshold& value) { m_statisticalThresholdHasBeenSet = true; m_statisticalThreshold = value; } /** - *

A statistical ranking (percentile) which indicates a threshold value by which - * a behavior is determined to be in compliance or in violation of the - * behavior.

+ *

A statistical ranking (percentile)that indicates a threshold value by which a + * behavior is determined to be in compliance or in violation of the behavior.

*/ inline void SetStatisticalThreshold(StatisticalThreshold&& value) { m_statisticalThresholdHasBeenSet = true; m_statisticalThreshold = std::move(value); } /** - *

A statistical ranking (percentile) which indicates a threshold value by which - * a behavior is determined to be in compliance or in violation of the - * behavior.

+ *

A statistical ranking (percentile)that indicates a threshold value by which a + * behavior is determined to be in compliance or in violation of the behavior.

*/ inline BehaviorCriteria& WithStatisticalThreshold(const StatisticalThreshold& value) { SetStatisticalThreshold(value); return *this;} /** - *

A statistical ranking (percentile) which indicates a threshold value by which - * a behavior is determined to be in compliance or in violation of the - * behavior.

+ *

A statistical ranking (percentile)that indicates a threshold value by which a + * behavior is determined to be in compliance or in violation of the behavior.

*/ inline BehaviorCriteria& WithStatisticalThreshold(StatisticalThreshold&& value) { SetStatisticalThreshold(std::move(value)); return *this;} + + /** + *

The configuration of an ML Detect

+ */ + inline const MachineLearningDetectionConfig& GetMlDetectionConfig() const{ return m_mlDetectionConfig; } + + /** + *

The configuration of an ML Detect

+ */ + inline bool MlDetectionConfigHasBeenSet() const { return m_mlDetectionConfigHasBeenSet; } + + /** + *

The configuration of an ML Detect

+ */ + inline void SetMlDetectionConfig(const MachineLearningDetectionConfig& value) { m_mlDetectionConfigHasBeenSet = true; m_mlDetectionConfig = value; } + + /** + *

The configuration of an ML Detect

+ */ + inline void SetMlDetectionConfig(MachineLearningDetectionConfig&& value) { m_mlDetectionConfigHasBeenSet = true; m_mlDetectionConfig = std::move(value); } + + /** + *

The configuration of an ML Detect

+ */ + inline BehaviorCriteria& WithMlDetectionConfig(const MachineLearningDetectionConfig& value) { SetMlDetectionConfig(value); return *this;} + + /** + *

The configuration of an ML Detect

+ */ + inline BehaviorCriteria& WithMlDetectionConfig(MachineLearningDetectionConfig&& value) { SetMlDetectionConfig(std::move(value)); return *this;} + private: ComparisonOperator m_comparisonOperator; @@ -274,6 +340,9 @@ namespace Model StatisticalThreshold m_statisticalThreshold; bool m_statisticalThresholdHasBeenSet; + + MachineLearningDetectionConfig m_mlDetectionConfig; + bool m_mlDetectionConfigHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteriaType.h b/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteriaType.h new file mode 100644 index 00000000000..bd2b2da8888 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorCriteriaType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class BehaviorCriteriaType + { + NOT_SET, + STATIC_, + STATISTICAL, + MACHINE_LEARNING + }; + +namespace BehaviorCriteriaTypeMapper +{ +AWS_IOT_API BehaviorCriteriaType GetBehaviorCriteriaTypeForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForBehaviorCriteriaType(BehaviorCriteriaType value); +} // namespace BehaviorCriteriaTypeMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorModelTrainingSummary.h b/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorModelTrainingSummary.h new file mode 100644 index 00000000000..8caa07639e9 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/BehaviorModelTrainingSummary.h @@ -0,0 +1,260 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The summary of an ML Detect behavior model.

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API BehaviorModelTrainingSummary + { + public: + BehaviorModelTrainingSummary(); + BehaviorModelTrainingSummary(Aws::Utils::Json::JsonView jsonValue); + BehaviorModelTrainingSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the security profile.

+ */ + inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; } + + /** + *

The name of the security profile.

+ */ + inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); } + + /** + *

The name of the security profile.

+ */ + inline BehaviorModelTrainingSummary& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;} + + /** + *

The name of the security profile.

+ */ + inline BehaviorModelTrainingSummary& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;} + + /** + *

The name of the security profile.

+ */ + inline BehaviorModelTrainingSummary& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} + + + /** + *

The name of the behavior.

+ */ + inline const Aws::String& GetBehaviorName() const{ return m_behaviorName; } + + /** + *

The name of the behavior.

+ */ + inline bool BehaviorNameHasBeenSet() const { return m_behaviorNameHasBeenSet; } + + /** + *

The name of the behavior.

+ */ + inline void SetBehaviorName(const Aws::String& value) { m_behaviorNameHasBeenSet = true; m_behaviorName = value; } + + /** + *

The name of the behavior.

+ */ + inline void SetBehaviorName(Aws::String&& value) { m_behaviorNameHasBeenSet = true; m_behaviorName = std::move(value); } + + /** + *

The name of the behavior.

+ */ + inline void SetBehaviorName(const char* value) { m_behaviorNameHasBeenSet = true; m_behaviorName.assign(value); } + + /** + *

The name of the behavior.

+ */ + inline BehaviorModelTrainingSummary& WithBehaviorName(const Aws::String& value) { SetBehaviorName(value); return *this;} + + /** + *

The name of the behavior.

+ */ + inline BehaviorModelTrainingSummary& WithBehaviorName(Aws::String&& value) { SetBehaviorName(std::move(value)); return *this;} + + /** + *

The name of the behavior.

+ */ + inline BehaviorModelTrainingSummary& WithBehaviorName(const char* value) { SetBehaviorName(value); return *this;} + + + /** + *

The date a training model started collecting data.

+ */ + inline const Aws::Utils::DateTime& GetTrainingDataCollectionStartDate() const{ return m_trainingDataCollectionStartDate; } + + /** + *

The date a training model started collecting data.

+ */ + inline bool TrainingDataCollectionStartDateHasBeenSet() const { return m_trainingDataCollectionStartDateHasBeenSet; } + + /** + *

The date a training model started collecting data.

+ */ + inline void SetTrainingDataCollectionStartDate(const Aws::Utils::DateTime& value) { m_trainingDataCollectionStartDateHasBeenSet = true; m_trainingDataCollectionStartDate = value; } + + /** + *

The date a training model started collecting data.

+ */ + inline void SetTrainingDataCollectionStartDate(Aws::Utils::DateTime&& value) { m_trainingDataCollectionStartDateHasBeenSet = true; m_trainingDataCollectionStartDate = std::move(value); } + + /** + *

The date a training model started collecting data.

+ */ + inline BehaviorModelTrainingSummary& WithTrainingDataCollectionStartDate(const Aws::Utils::DateTime& value) { SetTrainingDataCollectionStartDate(value); return *this;} + + /** + *

The date a training model started collecting data.

+ */ + inline BehaviorModelTrainingSummary& WithTrainingDataCollectionStartDate(Aws::Utils::DateTime&& value) { SetTrainingDataCollectionStartDate(std::move(value)); return *this;} + + + /** + *

The status of the behavior model.

+ */ + inline const ModelStatus& GetModelStatus() const{ return m_modelStatus; } + + /** + *

The status of the behavior model.

+ */ + inline bool ModelStatusHasBeenSet() const { return m_modelStatusHasBeenSet; } + + /** + *

The status of the behavior model.

+ */ + inline void SetModelStatus(const ModelStatus& value) { m_modelStatusHasBeenSet = true; m_modelStatus = value; } + + /** + *

The status of the behavior model.

+ */ + inline void SetModelStatus(ModelStatus&& value) { m_modelStatusHasBeenSet = true; m_modelStatus = std::move(value); } + + /** + *

The status of the behavior model.

+ */ + inline BehaviorModelTrainingSummary& WithModelStatus(const ModelStatus& value) { SetModelStatus(value); return *this;} + + /** + *

The status of the behavior model.

+ */ + inline BehaviorModelTrainingSummary& WithModelStatus(ModelStatus&& value) { SetModelStatus(std::move(value)); return *this;} + + + /** + *

The percentage of datapoints collected.

+ */ + inline double GetDatapointsCollectionPercentage() const{ return m_datapointsCollectionPercentage; } + + /** + *

The percentage of datapoints collected.

+ */ + inline bool DatapointsCollectionPercentageHasBeenSet() const { return m_datapointsCollectionPercentageHasBeenSet; } + + /** + *

The percentage of datapoints collected.

+ */ + inline void SetDatapointsCollectionPercentage(double value) { m_datapointsCollectionPercentageHasBeenSet = true; m_datapointsCollectionPercentage = value; } + + /** + *

The percentage of datapoints collected.

+ */ + inline BehaviorModelTrainingSummary& WithDatapointsCollectionPercentage(double value) { SetDatapointsCollectionPercentage(value); return *this;} + + + /** + *

The date the model was last refreshed.

+ */ + inline const Aws::Utils::DateTime& GetLastModelRefreshDate() const{ return m_lastModelRefreshDate; } + + /** + *

The date the model was last refreshed.

+ */ + inline bool LastModelRefreshDateHasBeenSet() const { return m_lastModelRefreshDateHasBeenSet; } + + /** + *

The date the model was last refreshed.

+ */ + inline void SetLastModelRefreshDate(const Aws::Utils::DateTime& value) { m_lastModelRefreshDateHasBeenSet = true; m_lastModelRefreshDate = value; } + + /** + *

The date the model was last refreshed.

+ */ + inline void SetLastModelRefreshDate(Aws::Utils::DateTime&& value) { m_lastModelRefreshDateHasBeenSet = true; m_lastModelRefreshDate = std::move(value); } + + /** + *

The date the model was last refreshed.

+ */ + inline BehaviorModelTrainingSummary& WithLastModelRefreshDate(const Aws::Utils::DateTime& value) { SetLastModelRefreshDate(value); return *this;} + + /** + *

The date the model was last refreshed.

+ */ + inline BehaviorModelTrainingSummary& WithLastModelRefreshDate(Aws::Utils::DateTime&& value) { SetLastModelRefreshDate(std::move(value)); return *this;} + + private: + + Aws::String m_securityProfileName; + bool m_securityProfileNameHasBeenSet; + + Aws::String m_behaviorName; + bool m_behaviorNameHasBeenSet; + + Aws::Utils::DateTime m_trainingDataCollectionStartDate; + bool m_trainingDataCollectionStartDateHasBeenSet; + + ModelStatus m_modelStatus; + bool m_modelStatusHasBeenSet; + + double m_datapointsCollectionPercentage; + bool m_datapointsCollectionPercentageHasBeenSet; + + Aws::Utils::DateTime m_lastModelRefreshDate; + bool m_lastModelRefreshDateHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskRequest.h new file mode 100644 index 00000000000..d2fe0c61778 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API CancelDetectMitigationActionsTaskRequest : public IoTRequest + { + public: + CancelDetectMitigationActionsTaskRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CancelDetectMitigationActionsTask"; } + + Aws::String SerializePayload() const override; + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline CancelDetectMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline CancelDetectMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline CancelDetectMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + private: + + Aws::String m_taskId; + bool m_taskIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskResult.h new file mode 100644 index 00000000000..c1efe239dee --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CancelDetectMitigationActionsTaskResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API CancelDetectMitigationActionsTaskResult + { + public: + CancelDetectMitigationActionsTaskResult(); + CancelDetectMitigationActionsTaskResult(const Aws::AmazonWebServiceResult& result); + CancelDetectMitigationActionsTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ComparisonOperator.h b/aws-cpp-sdk-iot/include/aws/iot/model/ComparisonOperator.h index a4be0c01a0d..db96c098608 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/ComparisonOperator.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ComparisonOperator.h @@ -23,7 +23,9 @@ namespace Model in_cidr_set, not_in_cidr_set, in_port_set, - not_in_port_set + not_in_port_set, + in_set, + not_in_set }; namespace ComparisonOperatorMapper diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ConfidenceLevel.h b/aws-cpp-sdk-iot/include/aws/iot/model/ConfidenceLevel.h new file mode 100644 index 00000000000..6f59606c574 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ConfidenceLevel.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class ConfidenceLevel + { + NOT_SET, + LOW, + MEDIUM, + HIGH + }; + +namespace ConfidenceLevelMapper +{ +AWS_IOT_API ConfidenceLevel GetConfidenceLevelForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForConfidenceLevel(ConfidenceLevel value); +} // namespace ConfidenceLevelMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricRequest.h new file mode 100644 index 00000000000..1a85ea5b2be --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricRequest.h @@ -0,0 +1,321 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API CreateCustomMetricRequest : public IoTRequest + { + public: + CreateCustomMetricRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateCustomMetric"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline CreateCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline CreateCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric. This will be used in the metric report + * submitted from the device/thing. Shouldn't begin with aws:. Cannot + * be updated once defined.

+ */ + inline CreateCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline CreateCustomMetricRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline CreateCustomMetricRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + + /** + *

Field represents a friendly name in the console for the custom metric; it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated once defined.

+ */ + inline CreateCustomMetricRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline const CustomMetricType& GetMetricType() const{ return m_metricType; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline void SetMetricType(const CustomMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline void SetMetricType(CustomMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline CreateCustomMetricRequest& WithMetricType(const CustomMetricType& value) { SetMetricType(value); return *this;} + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline CreateCustomMetricRequest& WithMetricType(CustomMetricType&& value) { SetMetricType(std::move(value)); return *this;} + + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline CreateCustomMetricRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline CreateCustomMetricRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline CreateCustomMetricRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

Metadata that can be used to manage the custom metric.

+ */ + inline CreateCustomMetricRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline CreateCustomMetricRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline CreateCustomMetricRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each custom metric must have a unique client request token. If you try to + * create a new custom metric that already exists with a different token, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline CreateCustomMetricRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_metricName; + bool m_metricNameHasBeenSet; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet; + + CustomMetricType m_metricType; + bool m_metricTypeHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricResult.h new file mode 100644 index 00000000000..792eaec3916 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CreateCustomMetricResult.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API CreateCustomMetricResult + { + public: + CreateCustomMetricResult(); + CreateCustomMetricResult(const Aws::AmazonWebServiceResult& result); + CreateCustomMetricResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricName = value; } + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricName = std::move(value); } + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline void SetMetricName(const char* value) { m_metricName.assign(value); } + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline CreateCustomMetricResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline CreateCustomMetricResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric to be used in the metric report.

+ */ + inline CreateCustomMetricResult& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline const Aws::String& GetMetricArn() const{ return m_metricArn; } + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline void SetMetricArn(const Aws::String& value) { m_metricArn = value; } + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline void SetMetricArn(Aws::String&& value) { m_metricArn = std::move(value); } + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline void SetMetricArn(const char* value) { m_metricArn.assign(value); } + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline CreateCustomMetricResult& WithMetricArn(const Aws::String& value) { SetMetricArn(value); return *this;} + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline CreateCustomMetricResult& WithMetricArn(Aws::String&& value) { SetMetricArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Number (ARN) of the custom metric, e.g. + * arn:aws-partition:iot:region:accountId:custommetric/metricName + *

+ */ + inline CreateCustomMetricResult& WithMetricArn(const char* value) { SetMetricArn(value); return *this;} + + private: + + Aws::String m_metricName; + + Aws::String m_metricArn; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CreateDimensionResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/CreateDimensionResult.h index d22f40e069e..df646a66988 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/CreateDimensionResult.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CreateDimensionResult.h @@ -69,37 +69,37 @@ namespace Model /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline CreateDimensionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline CreateDimensionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN) of the created dimension.

*/ inline CreateDimensionResult& WithArn(const char* value) { SetArn(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CreateScheduledAuditRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/CreateScheduledAuditRequest.h index 03c592102fd..35f4761ca1e 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/CreateScheduledAuditRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CreateScheduledAuditRequest.h @@ -37,152 +37,172 @@ namespace Model /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY" or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline const AuditFrequency& GetFrequency() const{ return m_frequency; } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY" or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY" or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline void SetFrequency(const AuditFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY" or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline void SetFrequency(AuditFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY" or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline CreateScheduledAuditRequest& WithFrequency(const AuditFrequency& value) { SetFrequency(value); return *this;} /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY" or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline CreateScheduledAuditRequest& WithFrequency(AuditFrequency&& value) { SetFrequency(std::move(value)); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline const Aws::String& GetDayOfMonth() const{ return m_dayOfMonth; } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline void SetDayOfMonth(const Aws::String& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline void SetDayOfMonth(Aws::String&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::move(value); } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline void SetDayOfMonth(const char* value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth.assign(value); } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline CreateScheduledAuditRequest& WithDayOfMonth(const Aws::String& value) { SetDayOfMonth(value); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline CreateScheduledAuditRequest& WithDayOfMonth(Aws::String&& value) { SetDayOfMonth(std::move(value)); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * "1" through "31" or "LAST". This field is required if the "frequency" parameter + * is set to MONTHLY. If days 29 to 31 are specified, and the month + * doesn't have that many days, the audit takes place on the LAST day + * of the month.

*/ inline CreateScheduledAuditRequest& WithDayOfMonth(const char* value) { SetDayOfMonth(value); return *this;} /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place, either + * SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the frequency parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline const DayOfWeek& GetDayOfWeek() const{ return m_dayOfWeek; } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place, either + * SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the frequency parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place, either + * SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the frequency parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline void SetDayOfWeek(const DayOfWeek& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place, either + * SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the frequency parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline void SetDayOfWeek(DayOfWeek&& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = std::move(value); } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place, either + * SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the frequency parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline CreateScheduledAuditRequest& WithDayOfWeek(const DayOfWeek& value) { SetDayOfWeek(value); return *this;} /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place, either + * SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the frequency parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline CreateScheduledAuditRequest& WithDayOfWeek(DayOfWeek&& value) { SetDayOfWeek(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CreateSecurityProfileRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/CreateSecurityProfileRequest.h index e4db1eef420..25650487e82 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/CreateSecurityProfileRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CreateSecurityProfileRequest.h @@ -244,56 +244,64 @@ namespace Model /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline const Aws::Vector& GetAdditionalMetricsToRetainV2() const{ return m_additionalMetricsToRetainV2; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline bool AdditionalMetricsToRetainV2HasBeenSet() const { return m_additionalMetricsToRetainV2HasBeenSet; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline void SetAdditionalMetricsToRetainV2(const Aws::Vector& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = value; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline void SetAdditionalMetricsToRetainV2(Aws::Vector&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = std::move(value); } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline CreateSecurityProfileRequest& WithAdditionalMetricsToRetainV2(const Aws::Vector& value) { SetAdditionalMetricsToRetainV2(value); return *this;} /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline CreateSecurityProfileRequest& WithAdditionalMetricsToRetainV2(Aws::Vector&& value) { SetAdditionalMetricsToRetainV2(std::move(value)); return *this;} /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline CreateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(const MetricToRetain& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(value); return *this; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is - * also retained for any metric specified here.

+ * also retained for any metric specified here. Can be used with custom metrics; + * cannot be used with dimensions.

*/ inline CreateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(MetricToRetain&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(std::move(value)); return *this; } diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/CustomMetricType.h b/aws-cpp-sdk-iot/include/aws/iot/model/CustomMetricType.h new file mode 100644 index 00000000000..bcf31491076 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/CustomMetricType.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class CustomMetricType + { + NOT_SET, + string_list, + ip_address_list, + number_list, + number + }; + +namespace CustomMetricTypeMapper +{ +AWS_IOT_API CustomMetricType GetCustomMetricTypeForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForCustomMetricType(CustomMetricType value); +} // namespace CustomMetricTypeMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricRequest.h new file mode 100644 index 00000000000..e0e9821f540 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API DeleteCustomMetricRequest : public IoTRequest + { + public: + DeleteCustomMetricRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteCustomMetric"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the custom metric.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric.

+ */ + inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } + + /** + *

The name of the custom metric.

+ */ + inline DeleteCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline DeleteCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline DeleteCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + private: + + Aws::String m_metricName; + bool m_metricNameHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricResult.h new file mode 100644 index 00000000000..35c8a99ea85 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DeleteCustomMetricResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API DeleteCustomMetricResult + { + public: + DeleteCustomMetricResult(); + DeleteCustomMetricResult(const Aws::AmazonWebServiceResult& result); + DeleteCustomMetricResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricRequest.h new file mode 100644 index 00000000000..b6117ab9fde --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API DescribeCustomMetricRequest : public IoTRequest + { + public: + DescribeCustomMetricRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeCustomMetric"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the custom metric.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric.

+ */ + inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } + + /** + *

The name of the custom metric.

+ */ + inline DescribeCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline DescribeCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline DescribeCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + private: + + Aws::String m_metricName; + bool m_metricNameHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricResult.h new file mode 100644 index 00000000000..f60e9680010 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeCustomMetricResult.h @@ -0,0 +1,268 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API DescribeCustomMetricResult + { + public: + DescribeCustomMetricResult(); + DescribeCustomMetricResult(const Aws::AmazonWebServiceResult& result); + DescribeCustomMetricResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The name of the custom metric.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricName = value; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricName = std::move(value); } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const char* value) { m_metricName.assign(value); } + + /** + *

The name of the custom metric.

+ */ + inline DescribeCustomMetricResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline DescribeCustomMetricResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline DescribeCustomMetricResult& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline const Aws::String& GetMetricArn() const{ return m_metricArn; } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline void SetMetricArn(const Aws::String& value) { m_metricArn = value; } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline void SetMetricArn(Aws::String&& value) { m_metricArn = std::move(value); } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline void SetMetricArn(const char* value) { m_metricArn.assign(value); } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline DescribeCustomMetricResult& WithMetricArn(const Aws::String& value) { SetMetricArn(value); return *this;} + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline DescribeCustomMetricResult& WithMetricArn(Aws::String&& value) { SetMetricArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline DescribeCustomMetricResult& WithMetricArn(const char* value) { SetMetricArn(value); return *this;} + + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline const CustomMetricType& GetMetricType() const{ return m_metricType; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline void SetMetricType(const CustomMetricType& value) { m_metricType = value; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline void SetMetricType(CustomMetricType&& value) { m_metricType = std::move(value); } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline DescribeCustomMetricResult& WithMetricType(const CustomMetricType& value) { SetMetricType(value); return *this;} + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline DescribeCustomMetricResult& WithMetricType(CustomMetricType&& value) { SetMetricType(std::move(value)); return *this;} + + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline void SetDisplayName(const Aws::String& value) { m_displayName = value; } + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); } + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline void SetDisplayName(const char* value) { m_displayName.assign(value); } + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline DescribeCustomMetricResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline DescribeCustomMetricResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + + /** + *

Field represents a friendly name in the console for the custom metric; + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline DescribeCustomMetricResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline DescribeCustomMetricResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline DescribeCustomMetricResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} + + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline DescribeCustomMetricResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline DescribeCustomMetricResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} + + private: + + Aws::String m_metricName; + + Aws::String m_metricArn; + + CustomMetricType m_metricType; + + Aws::String m_displayName; + + Aws::Utils::DateTime m_creationDate; + + Aws::Utils::DateTime m_lastModifiedDate; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskRequest.h new file mode 100644 index 00000000000..98475f3e20c --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API DescribeDetectMitigationActionsTaskRequest : public IoTRequest + { + public: + DescribeDetectMitigationActionsTaskRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeDetectMitigationActionsTask"; } + + Aws::String SerializePayload() const override; + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline DescribeDetectMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline DescribeDetectMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline DescribeDetectMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + private: + + Aws::String m_taskId; + bool m_taskIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskResult.h new file mode 100644 index 00000000000..063ae580b47 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDetectMitigationActionsTaskResult.h @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API DescribeDetectMitigationActionsTaskResult + { + public: + DescribeDetectMitigationActionsTaskResult(); + DescribeDetectMitigationActionsTaskResult(const Aws::AmazonWebServiceResult& result); + DescribeDetectMitigationActionsTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The description of a task.

+ */ + inline const DetectMitigationActionsTaskSummary& GetTaskSummary() const{ return m_taskSummary; } + + /** + *

The description of a task.

+ */ + inline void SetTaskSummary(const DetectMitigationActionsTaskSummary& value) { m_taskSummary = value; } + + /** + *

The description of a task.

+ */ + inline void SetTaskSummary(DetectMitigationActionsTaskSummary&& value) { m_taskSummary = std::move(value); } + + /** + *

The description of a task.

+ */ + inline DescribeDetectMitigationActionsTaskResult& WithTaskSummary(const DetectMitigationActionsTaskSummary& value) { SetTaskSummary(value); return *this;} + + /** + *

The description of a task.

+ */ + inline DescribeDetectMitigationActionsTaskResult& WithTaskSummary(DetectMitigationActionsTaskSummary&& value) { SetTaskSummary(std::move(value)); return *this;} + + private: + + DetectMitigationActionsTaskSummary m_taskSummary; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDimensionResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDimensionResult.h index c9e2bae0b5c..372198f81f4 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDimensionResult.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeDimensionResult.h @@ -72,37 +72,37 @@ namespace Model /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline DescribeDimensionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline DescribeDimensionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** - *

The ARN (Amazon resource name) for the dimension.

+ *

The Amazon Resource Name (ARN) for the dimension.

*/ inline DescribeDimensionResult& WithArn(const char* value) { SetArn(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeScheduledAuditResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeScheduledAuditResult.h index d7b22a897cd..6394bb10346 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/DescribeScheduledAuditResult.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DescribeScheduledAuditResult.h @@ -36,118 +36,130 @@ namespace Model /** - *

How often the scheduled audit takes place. One of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either one of DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline const AuditFrequency& GetFrequency() const{ return m_frequency; } /** - *

How often the scheduled audit takes place. One of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either one of DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline void SetFrequency(const AuditFrequency& value) { m_frequency = value; } /** - *

How often the scheduled audit takes place. One of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either one of DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline void SetFrequency(AuditFrequency&& value) { m_frequency = std::move(value); } /** - *

How often the scheduled audit takes place. One of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either one of DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline DescribeScheduledAuditResult& WithFrequency(const AuditFrequency& value) { SetFrequency(value); return *this;} /** - *

How often the scheduled audit takes place. One of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either one of DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline DescribeScheduledAuditResult& WithFrequency(AuditFrequency&& value) { SetFrequency(std::move(value)); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline const Aws::String& GetDayOfMonth() const{ return m_dayOfMonth; } /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline void SetDayOfMonth(const Aws::String& value) { m_dayOfMonth = value; } /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline void SetDayOfMonth(Aws::String&& value) { m_dayOfMonth = std::move(value); } /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline void SetDayOfMonth(const char* value) { m_dayOfMonth.assign(value); } /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline DescribeScheduledAuditResult& WithDayOfMonth(const Aws::String& value) { SetDayOfMonth(value); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline DescribeScheduledAuditResult& WithDayOfMonth(Aws::String&& value) { SetDayOfMonth(std::move(value)); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Will be "1" - * through "31" or "LAST". If days 29-31 are specified, and the month does not have - * that many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This is will + * be 1 through 31 or LAST. If days + * 29-31 are specified, and the month does not have that + * many days, the audit takes place on the LAST day of the month.

*/ inline DescribeScheduledAuditResult& WithDayOfMonth(const char* value) { SetDayOfMonth(value); return *this;} /** - *

The day of the week on which the scheduled audit takes place. One of "SUN", - * "MON", "TUE", "WED", "THU", "FRI", or "SAT".

+ *

The day of the week on which the scheduled audit takes place, either one of + * SUN, MON, TUE, WED, + * THU, FRI, or SAT.

*/ inline const DayOfWeek& GetDayOfWeek() const{ return m_dayOfWeek; } /** - *

The day of the week on which the scheduled audit takes place. One of "SUN", - * "MON", "TUE", "WED", "THU", "FRI", or "SAT".

+ *

The day of the week on which the scheduled audit takes place, either one of + * SUN, MON, TUE, WED, + * THU, FRI, or SAT.

*/ inline void SetDayOfWeek(const DayOfWeek& value) { m_dayOfWeek = value; } /** - *

The day of the week on which the scheduled audit takes place. One of "SUN", - * "MON", "TUE", "WED", "THU", "FRI", or "SAT".

+ *

The day of the week on which the scheduled audit takes place, either one of + * SUN, MON, TUE, WED, + * THU, FRI, or SAT.

*/ inline void SetDayOfWeek(DayOfWeek&& value) { m_dayOfWeek = std::move(value); } /** - *

The day of the week on which the scheduled audit takes place. One of "SUN", - * "MON", "TUE", "WED", "THU", "FRI", or "SAT".

+ *

The day of the week on which the scheduled audit takes place, either one of + * SUN, MON, TUE, WED, + * THU, FRI, or SAT.

*/ inline DescribeScheduledAuditResult& WithDayOfWeek(const DayOfWeek& value) { SetDayOfWeek(value); return *this;} /** - *

The day of the week on which the scheduled audit takes place. One of "SUN", - * "MON", "TUE", "WED", "THU", "FRI", or "SAT".

+ *

The day of the week on which the scheduled audit takes place, either one of + * SUN, MON, TUE, WED, + * THU, FRI, or SAT.

*/ inline DescribeScheduledAuditResult& WithDayOfWeek(DayOfWeek&& value) { SetDayOfWeek(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecution.h b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecution.h new file mode 100644 index 00000000000..31d673abe7d --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecution.h @@ -0,0 +1,413 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

Describes which mitigation actions should be executed.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOT_API DetectMitigationActionExecution + { + public: + DetectMitigationActionExecution(); + DetectMitigationActionExecution(Aws::Utils::Json::JsonView jsonValue); + DetectMitigationActionExecution& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline DetectMitigationActionExecution& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline DetectMitigationActionExecution& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline DetectMitigationActionExecution& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + + /** + *

The unique identifier of the violation.

+ */ + inline const Aws::String& GetViolationId() const{ return m_violationId; } + + /** + *

The unique identifier of the violation.

+ */ + inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; } + + /** + *

The unique identifier of the violation.

+ */ + inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; } + + /** + *

The unique identifier of the violation.

+ */ + inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); } + + /** + *

The unique identifier of the violation.

+ */ + inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); } + + /** + *

The unique identifier of the violation.

+ */ + inline DetectMitigationActionExecution& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;} + + /** + *

The unique identifier of the violation.

+ */ + inline DetectMitigationActionExecution& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;} + + /** + *

The unique identifier of the violation.

+ */ + inline DetectMitigationActionExecution& WithViolationId(const char* value) { SetViolationId(value); return *this;} + + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline const Aws::String& GetActionName() const{ return m_actionName; } + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline DetectMitigationActionExecution& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline DetectMitigationActionExecution& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} + + /** + *

The friendly name that uniquely identifies the mitigation action.

+ */ + inline DetectMitigationActionExecution& WithActionName(const char* value) { SetActionName(value); return *this;} + + + /** + *

The name of the thing.

+ */ + inline const Aws::String& GetThingName() const{ return m_thingName; } + + /** + *

The name of the thing.

+ */ + inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } + + /** + *

The name of the thing.

+ */ + inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } + + /** + *

The name of the thing.

+ */ + inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } + + /** + *

The name of the thing.

+ */ + inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } + + /** + *

The name of the thing.

+ */ + inline DetectMitigationActionExecution& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} + + /** + *

The name of the thing.

+ */ + inline DetectMitigationActionExecution& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} + + /** + *

The name of the thing.

+ */ + inline DetectMitigationActionExecution& WithThingName(const char* value) { SetThingName(value); return *this;} + + + /** + *

The date a mitigation action was started.

+ */ + inline const Aws::Utils::DateTime& GetExecutionStartDate() const{ return m_executionStartDate; } + + /** + *

The date a mitigation action was started.

+ */ + inline bool ExecutionStartDateHasBeenSet() const { return m_executionStartDateHasBeenSet; } + + /** + *

The date a mitigation action was started.

+ */ + inline void SetExecutionStartDate(const Aws::Utils::DateTime& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = value; } + + /** + *

The date a mitigation action was started.

+ */ + inline void SetExecutionStartDate(Aws::Utils::DateTime&& value) { m_executionStartDateHasBeenSet = true; m_executionStartDate = std::move(value); } + + /** + *

The date a mitigation action was started.

+ */ + inline DetectMitigationActionExecution& WithExecutionStartDate(const Aws::Utils::DateTime& value) { SetExecutionStartDate(value); return *this;} + + /** + *

The date a mitigation action was started.

+ */ + inline DetectMitigationActionExecution& WithExecutionStartDate(Aws::Utils::DateTime&& value) { SetExecutionStartDate(std::move(value)); return *this;} + + + /** + *

The date a mitigation action ended.

+ */ + inline const Aws::Utils::DateTime& GetExecutionEndDate() const{ return m_executionEndDate; } + + /** + *

The date a mitigation action ended.

+ */ + inline bool ExecutionEndDateHasBeenSet() const { return m_executionEndDateHasBeenSet; } + + /** + *

The date a mitigation action ended.

+ */ + inline void SetExecutionEndDate(const Aws::Utils::DateTime& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = value; } + + /** + *

The date a mitigation action ended.

+ */ + inline void SetExecutionEndDate(Aws::Utils::DateTime&& value) { m_executionEndDateHasBeenSet = true; m_executionEndDate = std::move(value); } + + /** + *

The date a mitigation action ended.

+ */ + inline DetectMitigationActionExecution& WithExecutionEndDate(const Aws::Utils::DateTime& value) { SetExecutionEndDate(value); return *this;} + + /** + *

The date a mitigation action ended.

+ */ + inline DetectMitigationActionExecution& WithExecutionEndDate(Aws::Utils::DateTime&& value) { SetExecutionEndDate(std::move(value)); return *this;} + + + /** + *

The status of a mitigation action.

+ */ + inline const DetectMitigationActionExecutionStatus& GetStatus() const{ return m_status; } + + /** + *

The status of a mitigation action.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The status of a mitigation action.

+ */ + inline void SetStatus(const DetectMitigationActionExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The status of a mitigation action.

+ */ + inline void SetStatus(DetectMitigationActionExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The status of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithStatus(const DetectMitigationActionExecutionStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithStatus(DetectMitigationActionExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

The error code of a mitigation action.

+ */ + inline const Aws::String& GetErrorCode() const{ return m_errorCode; } + + /** + *

The error code of a mitigation action.

+ */ + inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } + + /** + *

The error code of a mitigation action.

+ */ + inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } + + /** + *

The error code of a mitigation action.

+ */ + inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } + + /** + *

The error code of a mitigation action.

+ */ + inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } + + /** + *

The error code of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} + + /** + *

The error code of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} + + /** + *

The error code of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} + + + /** + *

The message of a mitigation action.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *

The message of a mitigation action.

+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *

The message of a mitigation action.

+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *

The message of a mitigation action.

+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *

The message of a mitigation action.

+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *

The message of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *

The message of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *

The message of a mitigation action.

+ */ + inline DetectMitigationActionExecution& WithMessage(const char* value) { SetMessage(value); return *this;} + + private: + + Aws::String m_taskId; + bool m_taskIdHasBeenSet; + + Aws::String m_violationId; + bool m_violationIdHasBeenSet; + + Aws::String m_actionName; + bool m_actionNameHasBeenSet; + + Aws::String m_thingName; + bool m_thingNameHasBeenSet; + + Aws::Utils::DateTime m_executionStartDate; + bool m_executionStartDateHasBeenSet; + + Aws::Utils::DateTime m_executionEndDate; + bool m_executionEndDateHasBeenSet; + + DetectMitigationActionExecutionStatus m_status; + bool m_statusHasBeenSet; + + Aws::String m_errorCode; + bool m_errorCodeHasBeenSet; + + Aws::String m_message; + bool m_messageHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecutionStatus.h b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecutionStatus.h new file mode 100644 index 00000000000..78a7d68c663 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionExecutionStatus.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class DetectMitigationActionExecutionStatus + { + NOT_SET, + IN_PROGRESS, + SUCCESSFUL, + FAILED, + SKIPPED + }; + +namespace DetectMitigationActionExecutionStatusMapper +{ +AWS_IOT_API DetectMitigationActionExecutionStatus GetDetectMitigationActionExecutionStatusForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForDetectMitigationActionExecutionStatus(DetectMitigationActionExecutionStatus value); +} // namespace DetectMitigationActionExecutionStatusMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatistics.h b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatistics.h new file mode 100644 index 00000000000..a893a4d5296 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatistics.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The statistics of a mitigation action task.

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API DetectMitigationActionsTaskStatistics + { + public: + DetectMitigationActionsTaskStatistics(); + DetectMitigationActionsTaskStatistics(Aws::Utils::Json::JsonView jsonValue); + DetectMitigationActionsTaskStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The actions that were performed.

+ */ + inline long long GetActionsExecuted() const{ return m_actionsExecuted; } + + /** + *

The actions that were performed.

+ */ + inline bool ActionsExecutedHasBeenSet() const { return m_actionsExecutedHasBeenSet; } + + /** + *

The actions that were performed.

+ */ + inline void SetActionsExecuted(long long value) { m_actionsExecutedHasBeenSet = true; m_actionsExecuted = value; } + + /** + *

The actions that were performed.

+ */ + inline DetectMitigationActionsTaskStatistics& WithActionsExecuted(long long value) { SetActionsExecuted(value); return *this;} + + + /** + *

The actions that were skipped.

+ */ + inline long long GetActionsSkipped() const{ return m_actionsSkipped; } + + /** + *

The actions that were skipped.

+ */ + inline bool ActionsSkippedHasBeenSet() const { return m_actionsSkippedHasBeenSet; } + + /** + *

The actions that were skipped.

+ */ + inline void SetActionsSkipped(long long value) { m_actionsSkippedHasBeenSet = true; m_actionsSkipped = value; } + + /** + *

The actions that were skipped.

+ */ + inline DetectMitigationActionsTaskStatistics& WithActionsSkipped(long long value) { SetActionsSkipped(value); return *this;} + + + /** + *

The actions that failed.

+ */ + inline long long GetActionsFailed() const{ return m_actionsFailed; } + + /** + *

The actions that failed.

+ */ + inline bool ActionsFailedHasBeenSet() const { return m_actionsFailedHasBeenSet; } + + /** + *

The actions that failed.

+ */ + inline void SetActionsFailed(long long value) { m_actionsFailedHasBeenSet = true; m_actionsFailed = value; } + + /** + *

The actions that failed.

+ */ + inline DetectMitigationActionsTaskStatistics& WithActionsFailed(long long value) { SetActionsFailed(value); return *this;} + + private: + + long long m_actionsExecuted; + bool m_actionsExecutedHasBeenSet; + + long long m_actionsSkipped; + bool m_actionsSkippedHasBeenSet; + + long long m_actionsFailed; + bool m_actionsFailedHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatus.h b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatus.h new file mode 100644 index 00000000000..381026caffb --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskStatus.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class DetectMitigationActionsTaskStatus + { + NOT_SET, + IN_PROGRESS, + SUCCESSFUL, + FAILED, + CANCELED + }; + +namespace DetectMitigationActionsTaskStatusMapper +{ +AWS_IOT_API DetectMitigationActionsTaskStatus GetDetectMitigationActionsTaskStatusForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForDetectMitigationActionsTaskStatus(DetectMitigationActionsTaskStatus value); +} // namespace DetectMitigationActionsTaskStatusMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskSummary.h b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskSummary.h new file mode 100644 index 00000000000..0df53ee844d --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskSummary.h @@ -0,0 +1,397 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The summary of the mitigation action tasks.

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API DetectMitigationActionsTaskSummary + { + public: + DetectMitigationActionsTaskSummary(); + DetectMitigationActionsTaskSummary(Aws::Utils::Json::JsonView jsonValue); + DetectMitigationActionsTaskSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + + /** + *

The status of the task.

+ */ + inline const DetectMitigationActionsTaskStatus& GetTaskStatus() const{ return m_taskStatus; } + + /** + *

The status of the task.

+ */ + inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; } + + /** + *

The status of the task.

+ */ + inline void SetTaskStatus(const DetectMitigationActionsTaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; } + + /** + *

The status of the task.

+ */ + inline void SetTaskStatus(DetectMitigationActionsTaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); } + + /** + *

The status of the task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskStatus(const DetectMitigationActionsTaskStatus& value) { SetTaskStatus(value); return *this;} + + /** + *

The status of the task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskStatus(DetectMitigationActionsTaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;} + + + /** + *

The date the task started.

+ */ + inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; } + + /** + *

The date the task started.

+ */ + inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; } + + /** + *

The date the task started.

+ */ + inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; } + + /** + *

The date the task started.

+ */ + inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); } + + /** + *

The date the task started.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskStartTime(const Aws::Utils::DateTime& value) { SetTaskStartTime(value); return *this;} + + /** + *

The date the task started.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;} + + + /** + *

The date the task ended.

+ */ + inline const Aws::Utils::DateTime& GetTaskEndTime() const{ return m_taskEndTime; } + + /** + *

The date the task ended.

+ */ + inline bool TaskEndTimeHasBeenSet() const { return m_taskEndTimeHasBeenSet; } + + /** + *

The date the task ended.

+ */ + inline void SetTaskEndTime(const Aws::Utils::DateTime& value) { m_taskEndTimeHasBeenSet = true; m_taskEndTime = value; } + + /** + *

The date the task ended.

+ */ + inline void SetTaskEndTime(Aws::Utils::DateTime&& value) { m_taskEndTimeHasBeenSet = true; m_taskEndTime = std::move(value); } + + /** + *

The date the task ended.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskEndTime(const Aws::Utils::DateTime& value) { SetTaskEndTime(value); return *this;} + + /** + *

The date the task ended.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskEndTime(Aws::Utils::DateTime&& value) { SetTaskEndTime(std::move(value)); return *this;} + + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline const DetectMitigationActionsTaskTarget& GetTarget() const{ return m_target; } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline void SetTarget(const DetectMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline void SetTarget(DetectMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline DetectMitigationActionsTaskSummary& WithTarget(const DetectMitigationActionsTaskTarget& value) { SetTarget(value); return *this;} + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline DetectMitigationActionsTaskSummary& WithTarget(DetectMitigationActionsTaskTarget&& value) { SetTarget(std::move(value)); return *this;} + + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const{ return m_violationEventOccurrenceRange; } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = value; } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::move(value); } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline DetectMitigationActionsTaskSummary& WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { SetViolationEventOccurrenceRange(value); return *this;} + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline DetectMitigationActionsTaskSummary& WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { SetViolationEventOccurrenceRange(std::move(value)); return *this;} + + + /** + *

Includes only active violations.

+ */ + inline bool GetOnlyActiveViolationsIncluded() const{ return m_onlyActiveViolationsIncluded; } + + /** + *

Includes only active violations.

+ */ + inline bool OnlyActiveViolationsIncludedHasBeenSet() const { return m_onlyActiveViolationsIncludedHasBeenSet; } + + /** + *

Includes only active violations.

+ */ + inline void SetOnlyActiveViolationsIncluded(bool value) { m_onlyActiveViolationsIncludedHasBeenSet = true; m_onlyActiveViolationsIncluded = value; } + + /** + *

Includes only active violations.

+ */ + inline DetectMitigationActionsTaskSummary& WithOnlyActiveViolationsIncluded(bool value) { SetOnlyActiveViolationsIncluded(value); return *this;} + + + /** + *

Includes suppressed alerts.

+ */ + inline bool GetSuppressedAlertsIncluded() const{ return m_suppressedAlertsIncluded; } + + /** + *

Includes suppressed alerts.

+ */ + inline bool SuppressedAlertsIncludedHasBeenSet() const { return m_suppressedAlertsIncludedHasBeenSet; } + + /** + *

Includes suppressed alerts.

+ */ + inline void SetSuppressedAlertsIncluded(bool value) { m_suppressedAlertsIncludedHasBeenSet = true; m_suppressedAlertsIncluded = value; } + + /** + *

Includes suppressed alerts.

+ */ + inline DetectMitigationActionsTaskSummary& WithSuppressedAlertsIncluded(bool value) { SetSuppressedAlertsIncluded(value); return *this;} + + + /** + *

The definition of the actions.

+ */ + inline const Aws::Vector& GetActionsDefinition() const{ return m_actionsDefinition; } + + /** + *

The definition of the actions.

+ */ + inline bool ActionsDefinitionHasBeenSet() const { return m_actionsDefinitionHasBeenSet; } + + /** + *

The definition of the actions.

+ */ + inline void SetActionsDefinition(const Aws::Vector& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition = value; } + + /** + *

The definition of the actions.

+ */ + inline void SetActionsDefinition(Aws::Vector&& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition = std::move(value); } + + /** + *

The definition of the actions.

+ */ + inline DetectMitigationActionsTaskSummary& WithActionsDefinition(const Aws::Vector& value) { SetActionsDefinition(value); return *this;} + + /** + *

The definition of the actions.

+ */ + inline DetectMitigationActionsTaskSummary& WithActionsDefinition(Aws::Vector&& value) { SetActionsDefinition(std::move(value)); return *this;} + + /** + *

The definition of the actions.

+ */ + inline DetectMitigationActionsTaskSummary& AddActionsDefinition(const MitigationAction& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition.push_back(value); return *this; } + + /** + *

The definition of the actions.

+ */ + inline DetectMitigationActionsTaskSummary& AddActionsDefinition(MitigationAction&& value) { m_actionsDefinitionHasBeenSet = true; m_actionsDefinition.push_back(std::move(value)); return *this; } + + + /** + *

The statistics of a mitigation action task.

+ */ + inline const DetectMitigationActionsTaskStatistics& GetTaskStatistics() const{ return m_taskStatistics; } + + /** + *

The statistics of a mitigation action task.

+ */ + inline bool TaskStatisticsHasBeenSet() const { return m_taskStatisticsHasBeenSet; } + + /** + *

The statistics of a mitigation action task.

+ */ + inline void SetTaskStatistics(const DetectMitigationActionsTaskStatistics& value) { m_taskStatisticsHasBeenSet = true; m_taskStatistics = value; } + + /** + *

The statistics of a mitigation action task.

+ */ + inline void SetTaskStatistics(DetectMitigationActionsTaskStatistics&& value) { m_taskStatisticsHasBeenSet = true; m_taskStatistics = std::move(value); } + + /** + *

The statistics of a mitigation action task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskStatistics(const DetectMitigationActionsTaskStatistics& value) { SetTaskStatistics(value); return *this;} + + /** + *

The statistics of a mitigation action task.

+ */ + inline DetectMitigationActionsTaskSummary& WithTaskStatistics(DetectMitigationActionsTaskStatistics&& value) { SetTaskStatistics(std::move(value)); return *this;} + + private: + + Aws::String m_taskId; + bool m_taskIdHasBeenSet; + + DetectMitigationActionsTaskStatus m_taskStatus; + bool m_taskStatusHasBeenSet; + + Aws::Utils::DateTime m_taskStartTime; + bool m_taskStartTimeHasBeenSet; + + Aws::Utils::DateTime m_taskEndTime; + bool m_taskEndTimeHasBeenSet; + + DetectMitigationActionsTaskTarget m_target; + bool m_targetHasBeenSet; + + ViolationEventOccurrenceRange m_violationEventOccurrenceRange; + bool m_violationEventOccurrenceRangeHasBeenSet; + + bool m_onlyActiveViolationsIncluded; + bool m_onlyActiveViolationsIncludedHasBeenSet; + + bool m_suppressedAlertsIncluded; + bool m_suppressedAlertsIncludedHasBeenSet; + + Aws::Vector m_actionsDefinition; + bool m_actionsDefinitionHasBeenSet; + + DetectMitigationActionsTaskStatistics m_taskStatistics; + bool m_taskStatisticsHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskTarget.h b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskTarget.h new file mode 100644 index 00000000000..d3ef70e22d3 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/DetectMitigationActionsTaskTarget.h @@ -0,0 +1,182 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The target of a mitigation action task.

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API DetectMitigationActionsTaskTarget + { + public: + DetectMitigationActionsTaskTarget(); + DetectMitigationActionsTaskTarget(Aws::Utils::Json::JsonView jsonValue); + DetectMitigationActionsTaskTarget& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The unique identifiers of the violations.

+ */ + inline const Aws::Vector& GetViolationIds() const{ return m_violationIds; } + + /** + *

The unique identifiers of the violations.

+ */ + inline bool ViolationIdsHasBeenSet() const { return m_violationIdsHasBeenSet; } + + /** + *

The unique identifiers of the violations.

+ */ + inline void SetViolationIds(const Aws::Vector& value) { m_violationIdsHasBeenSet = true; m_violationIds = value; } + + /** + *

The unique identifiers of the violations.

+ */ + inline void SetViolationIds(Aws::Vector&& value) { m_violationIdsHasBeenSet = true; m_violationIds = std::move(value); } + + /** + *

The unique identifiers of the violations.

+ */ + inline DetectMitigationActionsTaskTarget& WithViolationIds(const Aws::Vector& value) { SetViolationIds(value); return *this;} + + /** + *

The unique identifiers of the violations.

+ */ + inline DetectMitigationActionsTaskTarget& WithViolationIds(Aws::Vector&& value) { SetViolationIds(std::move(value)); return *this;} + + /** + *

The unique identifiers of the violations.

+ */ + inline DetectMitigationActionsTaskTarget& AddViolationIds(const Aws::String& value) { m_violationIdsHasBeenSet = true; m_violationIds.push_back(value); return *this; } + + /** + *

The unique identifiers of the violations.

+ */ + inline DetectMitigationActionsTaskTarget& AddViolationIds(Aws::String&& value) { m_violationIdsHasBeenSet = true; m_violationIds.push_back(std::move(value)); return *this; } + + /** + *

The unique identifiers of the violations.

+ */ + inline DetectMitigationActionsTaskTarget& AddViolationIds(const char* value) { m_violationIdsHasBeenSet = true; m_violationIds.push_back(value); return *this; } + + + /** + *

The name of the security profile.

+ */ + inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; } + + /** + *

The name of the security profile.

+ */ + inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); } + + /** + *

The name of the security profile.

+ */ + inline DetectMitigationActionsTaskTarget& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;} + + /** + *

The name of the security profile.

+ */ + inline DetectMitigationActionsTaskTarget& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;} + + /** + *

The name of the security profile.

+ */ + inline DetectMitigationActionsTaskTarget& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} + + + /** + *

The name of the behavior.

+ */ + inline const Aws::String& GetBehaviorName() const{ return m_behaviorName; } + + /** + *

The name of the behavior.

+ */ + inline bool BehaviorNameHasBeenSet() const { return m_behaviorNameHasBeenSet; } + + /** + *

The name of the behavior.

+ */ + inline void SetBehaviorName(const Aws::String& value) { m_behaviorNameHasBeenSet = true; m_behaviorName = value; } + + /** + *

The name of the behavior.

+ */ + inline void SetBehaviorName(Aws::String&& value) { m_behaviorNameHasBeenSet = true; m_behaviorName = std::move(value); } + + /** + *

The name of the behavior.

+ */ + inline void SetBehaviorName(const char* value) { m_behaviorNameHasBeenSet = true; m_behaviorName.assign(value); } + + /** + *

The name of the behavior.

+ */ + inline DetectMitigationActionsTaskTarget& WithBehaviorName(const Aws::String& value) { SetBehaviorName(value); return *this;} + + /** + *

The name of the behavior.

+ */ + inline DetectMitigationActionsTaskTarget& WithBehaviorName(Aws::String&& value) { SetBehaviorName(std::move(value)); return *this;} + + /** + *

The name of the behavior.

+ */ + inline DetectMitigationActionsTaskTarget& WithBehaviorName(const char* value) { SetBehaviorName(value); return *this;} + + private: + + Aws::Vector m_violationIds; + bool m_violationIdsHasBeenSet; + + Aws::String m_securityProfileName; + bool m_securityProfileNameHasBeenSet; + + Aws::String m_behaviorName; + bool m_behaviorNameHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/EnableIoTLoggingParams.h b/aws-cpp-sdk-iot/include/aws/iot/model/EnableIoTLoggingParams.h index ca60d57f15c..931f311a9d1 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/EnableIoTLoggingParams.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/EnableIoTLoggingParams.h @@ -40,73 +40,73 @@ namespace Model /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline const Aws::String& GetRoleArnForLogging() const{ return m_roleArnForLogging; } /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline bool RoleArnForLoggingHasBeenSet() const { return m_roleArnForLoggingHasBeenSet; } /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline void SetRoleArnForLogging(const Aws::String& value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging = value; } /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline void SetRoleArnForLogging(Aws::String&& value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging = std::move(value); } /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline void SetRoleArnForLogging(const char* value) { m_roleArnForLoggingHasBeenSet = true; m_roleArnForLogging.assign(value); } /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline EnableIoTLoggingParams& WithRoleArnForLogging(const Aws::String& value) { SetRoleArnForLogging(value); return *this;} /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline EnableIoTLoggingParams& WithRoleArnForLogging(Aws::String&& value) { SetRoleArnForLogging(std::move(value)); return *this;} /** - *

The ARN of the IAM role used for logging.

+ *

The Amazon Resource Name (ARN) of the IAM role used for logging.

*/ inline EnableIoTLoggingParams& WithRoleArnForLogging(const char* value) { SetRoleArnForLogging(value); return *this;} /** - *

Specifies the types of information to be logged.

+ *

Specifies the type of information to be logged.

*/ inline const LogLevel& GetLogLevel() const{ return m_logLevel; } /** - *

Specifies the types of information to be logged.

+ *

Specifies the type of information to be logged.

*/ inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; } /** - *

Specifies the types of information to be logged.

+ *

Specifies the type of information to be logged.

*/ inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; } /** - *

Specifies the types of information to be logged.

+ *

Specifies the type of information to be logged.

*/ inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); } /** - *

Specifies the types of information to be logged.

+ *

Specifies the type of information to be logged.

*/ inline EnableIoTLoggingParams& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;} /** - *

Specifies the types of information to be logged.

+ *

Specifies the type of information to be logged.

*/ inline EnableIoTLoggingParams& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesRequest.h new file mode 100644 index 00000000000..7ab4a04331c --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesRequest.h @@ -0,0 +1,157 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API GetBehaviorModelTrainingSummariesRequest : public IoTRequest + { + public: + GetBehaviorModelTrainingSummariesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetBehaviorModelTrainingSummaries"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The name of the security profile.

+ */ + inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; } + + /** + *

The name of the security profile.

+ */ + inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); } + + /** + *

The name of the security profile.

+ */ + inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); } + + /** + *

The name of the security profile.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;} + + /** + *

The name of the security profile.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;} + + /** + *

The name of the security profile.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} + + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token for the next set of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token for the next set of results.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline GetBehaviorModelTrainingSummariesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_securityProfileName; + bool m_securityProfileNameHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesResult.h new file mode 100644 index 00000000000..583b644ec98 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/GetBehaviorModelTrainingSummariesResult.h @@ -0,0 +1,131 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API GetBehaviorModelTrainingSummariesResult + { + public: + GetBehaviorModelTrainingSummariesResult(); + GetBehaviorModelTrainingSummariesResult(const Aws::AmazonWebServiceResult& result); + GetBehaviorModelTrainingSummariesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline const Aws::Vector& GetSummaries() const{ return m_summaries; } + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline void SetSummaries(const Aws::Vector& value) { m_summaries = value; } + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline void SetSummaries(Aws::Vector&& value) { m_summaries = std::move(value); } + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline GetBehaviorModelTrainingSummariesResult& WithSummaries(const Aws::Vector& value) { SetSummaries(value); return *this;} + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline GetBehaviorModelTrainingSummariesResult& WithSummaries(Aws::Vector&& value) { SetSummaries(std::move(value)); return *this;} + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline GetBehaviorModelTrainingSummariesResult& AddSummaries(const BehaviorModelTrainingSummary& value) { m_summaries.push_back(value); return *this; } + + /** + *

A list of all ML Detect behaviors and their model status for a given + * Security Profile.

+ */ + inline GetBehaviorModelTrainingSummariesResult& AddSummaries(BehaviorModelTrainingSummary&& value) { m_summaries.push_back(std::move(value)); return *this; } + + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline GetBehaviorModelTrainingSummariesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline GetBehaviorModelTrainingSummariesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline GetBehaviorModelTrainingSummariesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_summaries; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/KafkaAction.h b/aws-cpp-sdk-iot/include/aws/iot/model/KafkaAction.h new file mode 100644 index 00000000000..43e0bfd22ae --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/KafkaAction.h @@ -0,0 +1,291 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or + * self-managed Apache Kafka cluster.

See Also:

AWS API + * Reference

+ */ + class AWS_IOT_API KafkaAction + { + public: + KafkaAction(); + KafkaAction(Aws::Utils::Json::JsonView jsonValue); + KafkaAction& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; } + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); } + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); } + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline KafkaAction& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline KafkaAction& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} + + /** + *

The ARN of Kafka action's VPC TopicRuleDestination.

+ */ + inline KafkaAction& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} + + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline const Aws::String& GetTopic() const{ return m_topic; } + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline KafkaAction& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline KafkaAction& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} + + /** + *

The Kafka topic for messages to be sent to the Kafka broker.

+ */ + inline KafkaAction& WithTopic(const char* value) { SetTopic(value); return *this;} + + + /** + *

The Kafka message key.

+ */ + inline const Aws::String& GetKey() const{ return m_key; } + + /** + *

The Kafka message key.

+ */ + inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } + + /** + *

The Kafka message key.

+ */ + inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } + + /** + *

The Kafka message key.

+ */ + inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } + + /** + *

The Kafka message key.

+ */ + inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } + + /** + *

The Kafka message key.

+ */ + inline KafkaAction& WithKey(const Aws::String& value) { SetKey(value); return *this;} + + /** + *

The Kafka message key.

+ */ + inline KafkaAction& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} + + /** + *

The Kafka message key.

+ */ + inline KafkaAction& WithKey(const char* value) { SetKey(value); return *this;} + + + /** + *

The Kafka message partition.

+ */ + inline const Aws::String& GetPartition() const{ return m_partition; } + + /** + *

The Kafka message partition.

+ */ + inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; } + + /** + *

The Kafka message partition.

+ */ + inline void SetPartition(const Aws::String& value) { m_partitionHasBeenSet = true; m_partition = value; } + + /** + *

The Kafka message partition.

+ */ + inline void SetPartition(Aws::String&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); } + + /** + *

The Kafka message partition.

+ */ + inline void SetPartition(const char* value) { m_partitionHasBeenSet = true; m_partition.assign(value); } + + /** + *

The Kafka message partition.

+ */ + inline KafkaAction& WithPartition(const Aws::String& value) { SetPartition(value); return *this;} + + /** + *

The Kafka message partition.

+ */ + inline KafkaAction& WithPartition(Aws::String&& value) { SetPartition(std::move(value)); return *this;} + + /** + *

The Kafka message partition.

+ */ + inline KafkaAction& WithPartition(const char* value) { SetPartition(value); return *this;} + + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline const Aws::Map& GetClientProperties() const{ return m_clientProperties; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline void SetClientProperties(const Aws::Map& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = value; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline void SetClientProperties(Aws::Map&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = std::move(value); } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& WithClientProperties(const Aws::Map& value) { SetClientProperties(value); return *this;} + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& WithClientProperties(Aws::Map&& value) { SetClientProperties(std::move(value)); return *this;} + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(const Aws::String& key, const Aws::String& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, value); return *this; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(Aws::String&& key, const Aws::String& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), value); return *this; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(const Aws::String& key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, std::move(value)); return *this; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(Aws::String&& key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(const char* key, Aws::String&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, std::move(value)); return *this; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(Aws::String&& key, const char* value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(std::move(key), value); return *this; } + + /** + *

Properties of the Apache Kafka producer client.

+ */ + inline KafkaAction& AddClientProperties(const char* key, const char* value) { m_clientPropertiesHasBeenSet = true; m_clientProperties.emplace(key, value); return *this; } + + private: + + Aws::String m_destinationArn; + bool m_destinationArnHasBeenSet; + + Aws::String m_topic; + bool m_topicHasBeenSet; + + Aws::String m_key; + bool m_keyHasBeenSet; + + Aws::String m_partition; + bool m_partitionHasBeenSet; + + Aws::Map m_clientProperties; + bool m_clientPropertiesHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListActiveViolationsRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListActiveViolationsRequest.h index 17c32d8d472..a26ca8c66ef 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/ListActiveViolationsRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListActiveViolationsRequest.h @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Aws @@ -128,6 +129,58 @@ namespace Model inline ListActiveViolationsRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} + /** + *

The criteria for a behavior.

+ */ + inline const BehaviorCriteriaType& GetBehaviorCriteriaType() const{ return m_behaviorCriteriaType; } + + /** + *

The criteria for a behavior.

+ */ + inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; } + + /** + *

The criteria for a behavior.

+ */ + inline void SetBehaviorCriteriaType(const BehaviorCriteriaType& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; } + + /** + *

The criteria for a behavior.

+ */ + inline void SetBehaviorCriteriaType(BehaviorCriteriaType&& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = std::move(value); } + + /** + *

The criteria for a behavior.

+ */ + inline ListActiveViolationsRequest& WithBehaviorCriteriaType(const BehaviorCriteriaType& value) { SetBehaviorCriteriaType(value); return *this;} + + /** + *

The criteria for a behavior.

+ */ + inline ListActiveViolationsRequest& WithBehaviorCriteriaType(BehaviorCriteriaType&& value) { SetBehaviorCriteriaType(std::move(value)); return *this;} + + + /** + *

A list of all suppressed alerts.

+ */ + inline bool GetListSuppressedAlerts() const{ return m_listSuppressedAlerts; } + + /** + *

A list of all suppressed alerts.

+ */ + inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; } + + /** + *

A list of all suppressed alerts.

+ */ + inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; } + + /** + *

A list of all suppressed alerts.

+ */ + inline ListActiveViolationsRequest& WithListSuppressedAlerts(bool value) { SetListSuppressedAlerts(value); return *this;} + + /** *

The token for the next set of results.

*/ @@ -197,6 +250,12 @@ namespace Model Aws::String m_securityProfileName; bool m_securityProfileNameHasBeenSet; + BehaviorCriteriaType m_behaviorCriteriaType; + bool m_behaviorCriteriaTypeHasBeenSet; + + bool m_listSuppressedAlerts; + bool m_listSuppressedAlertsHasBeenSet; + Aws::String m_nextToken; bool m_nextTokenHasBeenSet; diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsRequest.h new file mode 100644 index 00000000000..d17441be8a8 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsRequest.h @@ -0,0 +1,113 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API ListCustomMetricsRequest : public IoTRequest + { + public: + ListCustomMetricsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListCustomMetrics"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The token for the next set of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token for the next set of results.

+ */ + inline ListCustomMetricsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline ListCustomMetricsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline ListCustomMetricsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline ListCustomMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsResult.h new file mode 100644 index 00000000000..9bd0637526c --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListCustomMetricsResult.h @@ -0,0 +1,128 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API ListCustomMetricsResult + { + public: + ListCustomMetricsResult(); + ListCustomMetricsResult(const Aws::AmazonWebServiceResult& result); + ListCustomMetricsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The name of the custom metric.

+ */ + inline const Aws::Vector& GetMetricNames() const{ return m_metricNames; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricNames(const Aws::Vector& value) { m_metricNames = value; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricNames(Aws::Vector&& value) { m_metricNames = std::move(value); } + + /** + *

The name of the custom metric.

+ */ + inline ListCustomMetricsResult& WithMetricNames(const Aws::Vector& value) { SetMetricNames(value); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline ListCustomMetricsResult& WithMetricNames(Aws::Vector&& value) { SetMetricNames(std::move(value)); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline ListCustomMetricsResult& AddMetricNames(const Aws::String& value) { m_metricNames.push_back(value); return *this; } + + /** + *

The name of the custom metric.

+ */ + inline ListCustomMetricsResult& AddMetricNames(Aws::String&& value) { m_metricNames.push_back(std::move(value)); return *this; } + + /** + *

The name of the custom metric.

+ */ + inline ListCustomMetricsResult& AddMetricNames(const char* value) { m_metricNames.push_back(value); return *this; } + + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListCustomMetricsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListCustomMetricsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListCustomMetricsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_metricNames; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsRequest.h new file mode 100644 index 00000000000..7180d0b7e76 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsRequest.h @@ -0,0 +1,326 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API ListDetectMitigationActionsExecutionsRequest : public IoTRequest + { + public: + ListDetectMitigationActionsExecutionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDetectMitigationActionsExecutions"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + + /** + *

The unique identifier of the violation.

+ */ + inline const Aws::String& GetViolationId() const{ return m_violationId; } + + /** + *

The unique identifier of the violation.

+ */ + inline bool ViolationIdHasBeenSet() const { return m_violationIdHasBeenSet; } + + /** + *

The unique identifier of the violation.

+ */ + inline void SetViolationId(const Aws::String& value) { m_violationIdHasBeenSet = true; m_violationId = value; } + + /** + *

The unique identifier of the violation.

+ */ + inline void SetViolationId(Aws::String&& value) { m_violationIdHasBeenSet = true; m_violationId = std::move(value); } + + /** + *

The unique identifier of the violation.

+ */ + inline void SetViolationId(const char* value) { m_violationIdHasBeenSet = true; m_violationId.assign(value); } + + /** + *

The unique identifier of the violation.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithViolationId(const Aws::String& value) { SetViolationId(value); return *this;} + + /** + *

The unique identifier of the violation.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithViolationId(Aws::String&& value) { SetViolationId(std::move(value)); return *this;} + + /** + *

The unique identifier of the violation.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithViolationId(const char* value) { SetViolationId(value); return *this;} + + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline const Aws::String& GetThingName() const{ return m_thingName; } + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} + + /** + *

The name of the thing whose mitigation actions are listed.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithThingName(const char* value) { SetThingName(value); return *this;} + + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

The end of the time period for which ML Detect mitigation actions executions + * are returned.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

The end of the time period for which ML Detect mitigation actions executions + * are returned.

+ */ + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + + /** + *

The end of the time period for which ML Detect mitigation actions executions + * are returned.

+ */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + + /** + *

The end of the time period for which ML Detect mitigation actions executions + * are returned.

+ */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + + /** + *

The end of the time period for which ML Detect mitigation actions executions + * are returned.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

The end of the time period for which ML Detect mitigation actions executions + * are returned.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token for the next set of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token for the next set of results.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline ListDetectMitigationActionsExecutionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_taskId; + bool m_taskIdHasBeenSet; + + Aws::String m_violationId; + bool m_violationIdHasBeenSet; + + Aws::String m_thingName; + bool m_thingNameHasBeenSet; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsResult.h new file mode 100644 index 00000000000..497e3d72bbf --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsExecutionsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API ListDetectMitigationActionsExecutionsResult + { + public: + ListDetectMitigationActionsExecutionsResult(); + ListDetectMitigationActionsExecutionsResult(const Aws::AmazonWebServiceResult& result); + ListDetectMitigationActionsExecutionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

List of actions executions.

+ */ + inline const Aws::Vector& GetActionsExecutions() const{ return m_actionsExecutions; } + + /** + *

List of actions executions.

+ */ + inline void SetActionsExecutions(const Aws::Vector& value) { m_actionsExecutions = value; } + + /** + *

List of actions executions.

+ */ + inline void SetActionsExecutions(Aws::Vector&& value) { m_actionsExecutions = std::move(value); } + + /** + *

List of actions executions.

+ */ + inline ListDetectMitigationActionsExecutionsResult& WithActionsExecutions(const Aws::Vector& value) { SetActionsExecutions(value); return *this;} + + /** + *

List of actions executions.

+ */ + inline ListDetectMitigationActionsExecutionsResult& WithActionsExecutions(Aws::Vector&& value) { SetActionsExecutions(std::move(value)); return *this;} + + /** + *

List of actions executions.

+ */ + inline ListDetectMitigationActionsExecutionsResult& AddActionsExecutions(const DetectMitigationActionExecution& value) { m_actionsExecutions.push_back(value); return *this; } + + /** + *

List of actions executions.

+ */ + inline ListDetectMitigationActionsExecutionsResult& AddActionsExecutions(DetectMitigationActionExecution&& value) { m_actionsExecutions.push_back(std::move(value)); return *this; } + + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListDetectMitigationActionsExecutionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListDetectMitigationActionsExecutionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListDetectMitigationActionsExecutionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_actionsExecutions; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksRequest.h new file mode 100644 index 00000000000..17cb3245990 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksRequest.h @@ -0,0 +1,194 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API ListDetectMitigationActionsTasksRequest : public IoTRequest + { + public: + ListDetectMitigationActionsTasksRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDetectMitigationActionsTasks"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return at one time. The default is 25.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The token for the next set of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token for the next set of results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The token for the next set of results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The token for the next set of results.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token for the next set of results.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

A filter to limit results to those found after the specified time. You must + * specify either the startTime and endTime or the taskId, but not both.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

The end of the time period for which ML Detect mitigation actions tasks are + * returned.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

The end of the time period for which ML Detect mitigation actions tasks are + * returned.

+ */ + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + + /** + *

The end of the time period for which ML Detect mitigation actions tasks are + * returned.

+ */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + + /** + *

The end of the time period for which ML Detect mitigation actions tasks are + * returned.

+ */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + + /** + *

The end of the time period for which ML Detect mitigation actions tasks are + * returned.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

The end of the time period for which ML Detect mitigation actions tasks are + * returned.

+ */ + inline ListDetectMitigationActionsTasksRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksResult.h new file mode 100644 index 00000000000..203e8a00876 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListDetectMitigationActionsTasksResult.h @@ -0,0 +1,131 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API ListDetectMitigationActionsTasksResult + { + public: + ListDetectMitigationActionsTasksResult(); + ListDetectMitigationActionsTasksResult(const Aws::AmazonWebServiceResult& result); + ListDetectMitigationActionsTasksResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline const Aws::Vector& GetTasks() const{ return m_tasks; } + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline void SetTasks(const Aws::Vector& value) { m_tasks = value; } + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline void SetTasks(Aws::Vector&& value) { m_tasks = std::move(value); } + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline ListDetectMitigationActionsTasksResult& WithTasks(const Aws::Vector& value) { SetTasks(value); return *this;} + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline ListDetectMitigationActionsTasksResult& WithTasks(Aws::Vector&& value) { SetTasks(std::move(value)); return *this;} + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline ListDetectMitigationActionsTasksResult& AddTasks(const DetectMitigationActionsTaskSummary& value) { m_tasks.push_back(value); return *this; } + + /** + *

The collection of ML Detect mitigation tasks that matched the filter + * criteria.

+ */ + inline ListDetectMitigationActionsTasksResult& AddTasks(DetectMitigationActionsTaskSummary&& value) { m_tasks.push_back(std::move(value)); return *this; } + + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListDetectMitigationActionsTasksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListDetectMitigationActionsTasksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

A token that can be used to retrieve the next set of results, or + * null if there are no additional results.

+ */ + inline ListDetectMitigationActionsTasksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_tasks; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListSecurityProfilesRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListSecurityProfilesRequest.h index acab22a302f..e3e9e8342df 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/ListSecurityProfilesRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListSecurityProfilesRequest.h @@ -102,52 +102,101 @@ namespace Model /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline const Aws::String& GetDimensionName() const{ return m_dimensionName; } /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline bool DimensionNameHasBeenSet() const { return m_dimensionNameHasBeenSet; } /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline void SetDimensionName(const Aws::String& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = value; } /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline void SetDimensionName(Aws::String&& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = std::move(value); } /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline void SetDimensionName(const char* value) { m_dimensionNameHasBeenSet = true; m_dimensionName.assign(value); } /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline ListSecurityProfilesRequest& WithDimensionName(const Aws::String& value) { SetDimensionName(value); return *this;} /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline ListSecurityProfilesRequest& WithDimensionName(Aws::String&& value) { SetDimensionName(std::move(value)); return *this;} /** *

A filter to limit results to the security profiles that use the defined - * dimension.

+ * dimension. Cannot be used with metricName

*/ inline ListSecurityProfilesRequest& WithDimensionName(const char* value) { SetDimensionName(value); return *this;} + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline ListSecurityProfilesRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline ListSecurityProfilesRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric. Cannot be used with + * dimensionName.

+ */ + inline ListSecurityProfilesRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;} + private: Aws::String m_nextToken; @@ -158,6 +207,9 @@ namespace Model Aws::String m_dimensionName; bool m_dimensionNameHasBeenSet; + + Aws::String m_metricName; + bool m_metricNameHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ListViolationEventsRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/ListViolationEventsRequest.h index d83694aee22..6bd51a39f2d 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/ListViolationEventsRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ListViolationEventsRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -191,6 +192,58 @@ namespace Model inline ListViolationEventsRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} + /** + *

The criteria for a behavior.

+ */ + inline const BehaviorCriteriaType& GetBehaviorCriteriaType() const{ return m_behaviorCriteriaType; } + + /** + *

The criteria for a behavior.

+ */ + inline bool BehaviorCriteriaTypeHasBeenSet() const { return m_behaviorCriteriaTypeHasBeenSet; } + + /** + *

The criteria for a behavior.

+ */ + inline void SetBehaviorCriteriaType(const BehaviorCriteriaType& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = value; } + + /** + *

The criteria for a behavior.

+ */ + inline void SetBehaviorCriteriaType(BehaviorCriteriaType&& value) { m_behaviorCriteriaTypeHasBeenSet = true; m_behaviorCriteriaType = std::move(value); } + + /** + *

The criteria for a behavior.

+ */ + inline ListViolationEventsRequest& WithBehaviorCriteriaType(const BehaviorCriteriaType& value) { SetBehaviorCriteriaType(value); return *this;} + + /** + *

The criteria for a behavior.

+ */ + inline ListViolationEventsRequest& WithBehaviorCriteriaType(BehaviorCriteriaType&& value) { SetBehaviorCriteriaType(std::move(value)); return *this;} + + + /** + *

A list of all suppressed alerts.

+ */ + inline bool GetListSuppressedAlerts() const{ return m_listSuppressedAlerts; } + + /** + *

A list of all suppressed alerts.

+ */ + inline bool ListSuppressedAlertsHasBeenSet() const { return m_listSuppressedAlertsHasBeenSet; } + + /** + *

A list of all suppressed alerts.

+ */ + inline void SetListSuppressedAlerts(bool value) { m_listSuppressedAlertsHasBeenSet = true; m_listSuppressedAlerts = value; } + + /** + *

A list of all suppressed alerts.

+ */ + inline ListViolationEventsRequest& WithListSuppressedAlerts(bool value) { SetListSuppressedAlerts(value); return *this;} + + /** *

The token for the next set of results.

*/ @@ -266,6 +319,12 @@ namespace Model Aws::String m_securityProfileName; bool m_securityProfileNameHasBeenSet; + BehaviorCriteriaType m_behaviorCriteriaType; + bool m_behaviorCriteriaTypeHasBeenSet; + + bool m_listSuppressedAlerts; + bool m_listSuppressedAlertsHasBeenSet; + Aws::String m_nextToken; bool m_nextTokenHasBeenSet; diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/MachineLearningDetectionConfig.h b/aws-cpp-sdk-iot/include/aws/iot/model/MachineLearningDetectionConfig.h new file mode 100644 index 00000000000..9f8dde8fea0 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/MachineLearningDetectionConfig.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The configuration of an ML Detect Security Profile.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOT_API MachineLearningDetectionConfig + { + public: + MachineLearningDetectionConfig(); + MachineLearningDetectionConfig(Aws::Utils::Json::JsonView jsonValue); + MachineLearningDetectionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline const ConfidenceLevel& GetConfidenceLevel() const{ return m_confidenceLevel; } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline bool ConfidenceLevelHasBeenSet() const { return m_confidenceLevelHasBeenSet; } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline void SetConfidenceLevel(const ConfidenceLevel& value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = value; } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline void SetConfidenceLevel(ConfidenceLevel&& value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = std::move(value); } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline MachineLearningDetectionConfig& WithConfidenceLevel(const ConfidenceLevel& value) { SetConfidenceLevel(value); return *this;} + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline MachineLearningDetectionConfig& WithConfidenceLevel(ConfidenceLevel&& value) { SetConfidenceLevel(std::move(value)); return *this;} + + private: + + ConfidenceLevel m_confidenceLevel; + bool m_confidenceLevelHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/MetricToRetain.h b/aws-cpp-sdk-iot/include/aws/iot/model/MetricToRetain.h index 03480669b56..faaae202ec6 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/MetricToRetain.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/MetricToRetain.h @@ -81,32 +81,32 @@ namespace Model /** - *

The dimension of a metric.

+ *

The dimension of a metric. This can't be used with custom metrics.

*/ inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; } /** - *

The dimension of a metric.

+ *

The dimension of a metric. This can't be used with custom metrics.

*/ inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; } /** - *

The dimension of a metric.

+ *

The dimension of a metric. This can't be used with custom metrics.

*/ inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; } /** - *

The dimension of a metric.

+ *

The dimension of a metric. This can't be used with custom metrics.

*/ inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); } /** - *

The dimension of a metric.

+ *

The dimension of a metric. This can't be used with custom metrics.

*/ inline MetricToRetain& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;} /** - *

The dimension of a metric.

+ *

The dimension of a metric. This can't be used with custom metrics.

*/ inline MetricToRetain& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/MetricValue.h b/aws-cpp-sdk-iot/include/aws/iot/model/MetricValue.h index 362405a2b15..24db558822b 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/MetricValue.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/MetricValue.h @@ -161,6 +161,109 @@ namespace Model */ inline MetricValue& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; } + + /** + *

The numeral value of a metric.

+ */ + inline double GetNumber() const{ return m_number; } + + /** + *

The numeral value of a metric.

+ */ + inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; } + + /** + *

The numeral value of a metric.

+ */ + inline void SetNumber(double value) { m_numberHasBeenSet = true; m_number = value; } + + /** + *

The numeral value of a metric.

+ */ + inline MetricValue& WithNumber(double value) { SetNumber(value); return *this;} + + + /** + *

The numeral values of a metric.

+ */ + inline const Aws::Vector& GetNumbers() const{ return m_numbers; } + + /** + *

The numeral values of a metric.

+ */ + inline bool NumbersHasBeenSet() const { return m_numbersHasBeenSet; } + + /** + *

The numeral values of a metric.

+ */ + inline void SetNumbers(const Aws::Vector& value) { m_numbersHasBeenSet = true; m_numbers = value; } + + /** + *

The numeral values of a metric.

+ */ + inline void SetNumbers(Aws::Vector&& value) { m_numbersHasBeenSet = true; m_numbers = std::move(value); } + + /** + *

The numeral values of a metric.

+ */ + inline MetricValue& WithNumbers(const Aws::Vector& value) { SetNumbers(value); return *this;} + + /** + *

The numeral values of a metric.

+ */ + inline MetricValue& WithNumbers(Aws::Vector&& value) { SetNumbers(std::move(value)); return *this;} + + /** + *

The numeral values of a metric.

+ */ + inline MetricValue& AddNumbers(double value) { m_numbersHasBeenSet = true; m_numbers.push_back(value); return *this; } + + + /** + *

The string values of a metric.

+ */ + inline const Aws::Vector& GetStrings() const{ return m_strings; } + + /** + *

The string values of a metric.

+ */ + inline bool StringsHasBeenSet() const { return m_stringsHasBeenSet; } + + /** + *

The string values of a metric.

+ */ + inline void SetStrings(const Aws::Vector& value) { m_stringsHasBeenSet = true; m_strings = value; } + + /** + *

The string values of a metric.

+ */ + inline void SetStrings(Aws::Vector&& value) { m_stringsHasBeenSet = true; m_strings = std::move(value); } + + /** + *

The string values of a metric.

+ */ + inline MetricValue& WithStrings(const Aws::Vector& value) { SetStrings(value); return *this;} + + /** + *

The string values of a metric.

+ */ + inline MetricValue& WithStrings(Aws::Vector&& value) { SetStrings(std::move(value)); return *this;} + + /** + *

The string values of a metric.

+ */ + inline MetricValue& AddStrings(const Aws::String& value) { m_stringsHasBeenSet = true; m_strings.push_back(value); return *this; } + + /** + *

The string values of a metric.

+ */ + inline MetricValue& AddStrings(Aws::String&& value) { m_stringsHasBeenSet = true; m_strings.push_back(std::move(value)); return *this; } + + /** + *

The string values of a metric.

+ */ + inline MetricValue& AddStrings(const char* value) { m_stringsHasBeenSet = true; m_strings.push_back(value); return *this; } + private: long long m_count; @@ -171,6 +274,15 @@ namespace Model Aws::Vector m_ports; bool m_portsHasBeenSet; + + double m_number; + bool m_numberHasBeenSet; + + Aws::Vector m_numbers; + bool m_numbersHasBeenSet; + + Aws::Vector m_strings; + bool m_stringsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/MitigationActionParams.h b/aws-cpp-sdk-iot/include/aws/iot/model/MitigationActionParams.h index 22e6e322323..12347767595 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/MitigationActionParams.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/MitigationActionParams.h @@ -231,43 +231,43 @@ namespace Model /** *

Parameters to define a mitigation action that publishes findings to Amazon - * SNS. You can implement your own custom actions in response to the Amazon SNS - * messages.

+ * Simple Notification Service (Amazon SNS. You can implement your own custom + * actions in response to the Amazon SNS messages.

*/ inline const PublishFindingToSnsParams& GetPublishFindingToSnsParams() const{ return m_publishFindingToSnsParams; } /** *

Parameters to define a mitigation action that publishes findings to Amazon - * SNS. You can implement your own custom actions in response to the Amazon SNS - * messages.

+ * Simple Notification Service (Amazon SNS. You can implement your own custom + * actions in response to the Amazon SNS messages.

*/ inline bool PublishFindingToSnsParamsHasBeenSet() const { return m_publishFindingToSnsParamsHasBeenSet; } /** *

Parameters to define a mitigation action that publishes findings to Amazon - * SNS. You can implement your own custom actions in response to the Amazon SNS - * messages.

+ * Simple Notification Service (Amazon SNS. You can implement your own custom + * actions in response to the Amazon SNS messages.

*/ inline void SetPublishFindingToSnsParams(const PublishFindingToSnsParams& value) { m_publishFindingToSnsParamsHasBeenSet = true; m_publishFindingToSnsParams = value; } /** *

Parameters to define a mitigation action that publishes findings to Amazon - * SNS. You can implement your own custom actions in response to the Amazon SNS - * messages.

+ * Simple Notification Service (Amazon SNS. You can implement your own custom + * actions in response to the Amazon SNS messages.

*/ inline void SetPublishFindingToSnsParams(PublishFindingToSnsParams&& value) { m_publishFindingToSnsParamsHasBeenSet = true; m_publishFindingToSnsParams = std::move(value); } /** *

Parameters to define a mitigation action that publishes findings to Amazon - * SNS. You can implement your own custom actions in response to the Amazon SNS - * messages.

+ * Simple Notification Service (Amazon SNS. You can implement your own custom + * actions in response to the Amazon SNS messages.

*/ inline MitigationActionParams& WithPublishFindingToSnsParams(const PublishFindingToSnsParams& value) { SetPublishFindingToSnsParams(value); return *this;} /** *

Parameters to define a mitigation action that publishes findings to Amazon - * SNS. You can implement your own custom actions in response to the Amazon SNS - * messages.

+ * Simple Notification Service (Amazon SNS. You can implement your own custom + * actions in response to the Amazon SNS messages.

*/ inline MitigationActionParams& WithPublishFindingToSnsParams(PublishFindingToSnsParams&& value) { SetPublishFindingToSnsParams(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ModelStatus.h b/aws-cpp-sdk-iot/include/aws/iot/model/ModelStatus.h new file mode 100644 index 00000000000..faf5b91f8f7 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ModelStatus.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + enum class ModelStatus + { + NOT_SET, + PENDING_BUILD, + ACTIVE, + EXPIRED + }; + +namespace ModelStatusMapper +{ +AWS_IOT_API ModelStatus GetModelStatusForName(const Aws::String& name); + +AWS_IOT_API Aws::String GetNameForModelStatus(ModelStatus value); +} // namespace ModelStatusMapper +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/SecurityProfileIdentifier.h b/aws-cpp-sdk-iot/include/aws/iot/model/SecurityProfileIdentifier.h index 0ae71729cd9..ed18100454f 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/SecurityProfileIdentifier.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/SecurityProfileIdentifier.h @@ -39,42 +39,42 @@ namespace Model /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline const Aws::String& GetName() const{ return m_name; } /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline SecurityProfileIdentifier& WithName(const Aws::String& value) { SetName(value); return *this;} /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline SecurityProfileIdentifier& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** - *

The name you have given to the security profile.

+ *

The name you've given to the security profile.

*/ inline SecurityProfileIdentifier& WithName(const char* value) { SetName(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/StartAuditMitigationActionsTaskRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/StartAuditMitigationActionsTaskRequest.h index faa083dda7d..1e49140cc81 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/StartAuditMitigationActionsTaskRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/StartAuditMitigationActionsTaskRequest.h @@ -88,42 +88,42 @@ namespace Model /** *

Specifies the audit findings to which the mitigation actions are applied. You * can apply them to a type of audit check, to all findings from an audit, or to a - * speecific set of findings.

+ * specific set of findings.

*/ inline const AuditMitigationActionsTaskTarget& GetTarget() const{ return m_target; } /** *

Specifies the audit findings to which the mitigation actions are applied. You * can apply them to a type of audit check, to all findings from an audit, or to a - * speecific set of findings.

+ * specific set of findings.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

Specifies the audit findings to which the mitigation actions are applied. You * can apply them to a type of audit check, to all findings from an audit, or to a - * speecific set of findings.

+ * specific set of findings.

*/ inline void SetTarget(const AuditMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; } /** *

Specifies the audit findings to which the mitigation actions are applied. You * can apply them to a type of audit check, to all findings from an audit, or to a - * speecific set of findings.

+ * specific set of findings.

*/ inline void SetTarget(AuditMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

Specifies the audit findings to which the mitigation actions are applied. You * can apply them to a type of audit check, to all findings from an audit, or to a - * speecific set of findings.

+ * specific set of findings.

*/ inline StartAuditMitigationActionsTaskRequest& WithTarget(const AuditMitigationActionsTaskTarget& value) { SetTarget(value); return *this;} /** *

Specifies the audit findings to which the mitigation actions are applied. You * can apply them to a type of audit check, to all findings from an audit, or to a - * speecific set of findings.

+ * specific set of findings.

*/ inline StartAuditMitigationActionsTaskRequest& WithTarget(AuditMitigationActionsTaskTarget&& value) { SetTarget(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskRequest.h new file mode 100644 index 00000000000..308b9ab093b --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskRequest.h @@ -0,0 +1,326 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API StartDetectMitigationActionsTaskRequest : public IoTRequest + { + public: + StartDetectMitigationActionsTaskRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "StartDetectMitigationActionsTask"; } + + Aws::String SerializePayload() const override; + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline const DetectMitigationActionsTaskTarget& GetTarget() const{ return m_target; } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline void SetTarget(const DetectMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline void SetTarget(DetectMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithTarget(const DetectMitigationActionsTaskTarget& value) { SetTarget(value); return *this;} + + /** + *

Specifies the ML Detect findings to which the mitigation actions are + * applied.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithTarget(DetectMitigationActionsTaskTarget&& value) { SetTarget(std::move(value)); return *this;} + + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline const Aws::Vector& GetActions() const{ return m_actions; } + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline StartDetectMitigationActionsTaskRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline StartDetectMitigationActionsTaskRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } + + /** + *

The actions to be performed when a device has unexpected behavior.

+ */ + inline StartDetectMitigationActionsTaskRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } + + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const{ return m_violationEventOccurrenceRange; } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = value; } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::move(value); } + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { SetViolationEventOccurrenceRange(value); return *this;} + + /** + *

Specifies the time period of which violation events occurred between.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { SetViolationEventOccurrenceRange(std::move(value)); return *this;} + + + /** + *

Specifies to list only active violations.

+ */ + inline bool GetIncludeOnlyActiveViolations() const{ return m_includeOnlyActiveViolations; } + + /** + *

Specifies to list only active violations.

+ */ + inline bool IncludeOnlyActiveViolationsHasBeenSet() const { return m_includeOnlyActiveViolationsHasBeenSet; } + + /** + *

Specifies to list only active violations.

+ */ + inline void SetIncludeOnlyActiveViolations(bool value) { m_includeOnlyActiveViolationsHasBeenSet = true; m_includeOnlyActiveViolations = value; } + + /** + *

Specifies to list only active violations.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithIncludeOnlyActiveViolations(bool value) { SetIncludeOnlyActiveViolations(value); return *this;} + + + /** + *

Specifies to include suppressed alerts.

+ */ + inline bool GetIncludeSuppressedAlerts() const{ return m_includeSuppressedAlerts; } + + /** + *

Specifies to include suppressed alerts.

+ */ + inline bool IncludeSuppressedAlertsHasBeenSet() const { return m_includeSuppressedAlertsHasBeenSet; } + + /** + *

Specifies to include suppressed alerts.

+ */ + inline void SetIncludeSuppressedAlerts(bool value) { m_includeSuppressedAlertsHasBeenSet = true; m_includeSuppressedAlerts = value; } + + /** + *

Specifies to include suppressed alerts.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithIncludeSuppressedAlerts(bool value) { SetIncludeSuppressedAlerts(value); return *this;} + + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each mitigation action task must have a unique client request token. If you + * try to create a new task with the same token as a task that already exists, an + * exception occurs. If you omit this value, AWS SDKs will automatically generate a + * unique client request.

+ */ + inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_taskId; + bool m_taskIdHasBeenSet; + + DetectMitigationActionsTaskTarget m_target; + bool m_targetHasBeenSet; + + Aws::Vector m_actions; + bool m_actionsHasBeenSet; + + ViolationEventOccurrenceRange m_violationEventOccurrenceRange; + bool m_violationEventOccurrenceRangeHasBeenSet; + + bool m_includeOnlyActiveViolations; + bool m_includeOnlyActiveViolationsHasBeenSet; + + bool m_includeSuppressedAlerts; + bool m_includeSuppressedAlertsHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskResult.h new file mode 100644 index 00000000000..bb5c0710762 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/StartDetectMitigationActionsTaskResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API StartDetectMitigationActionsTaskResult + { + public: + StartDetectMitigationActionsTaskResult(); + StartDetectMitigationActionsTaskResult(const Aws::AmazonWebServiceResult& result); + StartDetectMitigationActionsTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The unique identifier of the task.

+ */ + inline const Aws::String& GetTaskId() const{ return m_taskId; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const Aws::String& value) { m_taskId = value; } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); } + + /** + *

The unique identifier of the task.

+ */ + inline void SetTaskId(const char* value) { m_taskId.assign(value); } + + /** + *

The unique identifier of the task.

+ */ + inline StartDetectMitigationActionsTaskResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline StartDetectMitigationActionsTaskResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} + + /** + *

The unique identifier of the task.

+ */ + inline StartDetectMitigationActionsTaskResult& WithTaskId(const char* value) { SetTaskId(value); return *this;} + + private: + + Aws::String m_taskId; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/StatisticalThreshold.h b/aws-cpp-sdk-iot/include/aws/iot/model/StatisticalThreshold.h index 797549ffd59..ce5ce3b88e3 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/StatisticalThreshold.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/StatisticalThreshold.h @@ -24,7 +24,7 @@ namespace Model { /** - *

A statistical ranking (percentile) which indicates a threshold value by which + *

A statistical ranking (percentile) that indicates a threshold value by which * a behavior is determined to be in compliance or in violation of the * behavior.

See Also:

AWS @@ -40,7 +40,7 @@ namespace Model /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -52,7 +52,7 @@ namespace Model inline const Aws::String& GetStatistic() const{ return m_statistic; } /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -64,7 +64,7 @@ namespace Model inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -76,7 +76,7 @@ namespace Model inline void SetStatistic(const Aws::String& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -88,7 +88,7 @@ namespace Model inline void SetStatistic(Aws::String&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -100,7 +100,7 @@ namespace Model inline void SetStatistic(const char* value) { m_statisticHasBeenSet = true; m_statistic.assign(value); } /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -112,7 +112,7 @@ namespace Model inline StatisticalThreshold& WithStatistic(const Aws::String& value) { SetStatistic(value); return *this;} /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are @@ -124,7 +124,7 @@ namespace Model inline StatisticalThreshold& WithStatistic(Aws::String&& value) { SetStatistic(std::move(value)); return *this;} /** - *

The percentile which resolves to a threshold value by which compliance with a + *

The percentile that resolves to a threshold value by which compliance with a * behavior is determined. Metrics are collected over the specified period * (durationSeconds) from all reporting devices in your account and * statistical ranks are calculated. Then, the measurements from a device are diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestination.h b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestination.h index 4b180fbba66..3270850893b 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestination.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestination.h @@ -7,7 +7,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -213,6 +215,68 @@ namespace Model inline TopicRuleDestination& WithStatus(TopicRuleDestinationStatus&& value) { SetStatus(std::move(value)); return *this;} + /** + *

The date and time when the topic rule destination was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline TopicRuleDestination& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline TopicRuleDestination& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline TopicRuleDestination& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline TopicRuleDestination& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} + + /** *

Additional details or reason why the topic rule destination is in the current * status.

@@ -292,6 +356,37 @@ namespace Model */ inline TopicRuleDestination& WithHttpUrlProperties(HttpUrlDestinationProperties&& value) { SetHttpUrlProperties(std::move(value)); return *this;} + + /** + *

Properties of the virtual private cloud (VPC) connection.

+ */ + inline const VpcDestinationProperties& GetVpcProperties() const{ return m_vpcProperties; } + + /** + *

Properties of the virtual private cloud (VPC) connection.

+ */ + inline bool VpcPropertiesHasBeenSet() const { return m_vpcPropertiesHasBeenSet; } + + /** + *

Properties of the virtual private cloud (VPC) connection.

+ */ + inline void SetVpcProperties(const VpcDestinationProperties& value) { m_vpcPropertiesHasBeenSet = true; m_vpcProperties = value; } + + /** + *

Properties of the virtual private cloud (VPC) connection.

+ */ + inline void SetVpcProperties(VpcDestinationProperties&& value) { m_vpcPropertiesHasBeenSet = true; m_vpcProperties = std::move(value); } + + /** + *

Properties of the virtual private cloud (VPC) connection.

+ */ + inline TopicRuleDestination& WithVpcProperties(const VpcDestinationProperties& value) { SetVpcProperties(value); return *this;} + + /** + *

Properties of the virtual private cloud (VPC) connection.

+ */ + inline TopicRuleDestination& WithVpcProperties(VpcDestinationProperties&& value) { SetVpcProperties(std::move(value)); return *this;} + private: Aws::String m_arn; @@ -300,11 +395,20 @@ namespace Model TopicRuleDestinationStatus m_status; bool m_statusHasBeenSet; + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + Aws::Utils::DateTime m_lastUpdatedAt; + bool m_lastUpdatedAtHasBeenSet; + Aws::String m_statusReason; bool m_statusReasonHasBeenSet; HttpUrlDestinationProperties m_httpUrlProperties; bool m_httpUrlPropertiesHasBeenSet; + + VpcDestinationProperties m_vpcProperties; + bool m_vpcPropertiesHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationConfiguration.h b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationConfiguration.h index 41385aa34ce..ad4c1ce540f 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationConfiguration.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationConfiguration.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -67,10 +68,44 @@ namespace Model */ inline TopicRuleDestinationConfiguration& WithHttpUrlConfiguration(HttpUrlDestinationConfiguration&& value) { SetHttpUrlConfiguration(std::move(value)); return *this;} + + /** + *

Configuration of the virtual private cloud (VPC) connection.

+ */ + inline const VpcDestinationConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } + + /** + *

Configuration of the virtual private cloud (VPC) connection.

+ */ + inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } + + /** + *

Configuration of the virtual private cloud (VPC) connection.

+ */ + inline void SetVpcConfiguration(const VpcDestinationConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; } + + /** + *

Configuration of the virtual private cloud (VPC) connection.

+ */ + inline void SetVpcConfiguration(VpcDestinationConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); } + + /** + *

Configuration of the virtual private cloud (VPC) connection.

+ */ + inline TopicRuleDestinationConfiguration& WithVpcConfiguration(const VpcDestinationConfiguration& value) { SetVpcConfiguration(value); return *this;} + + /** + *

Configuration of the virtual private cloud (VPC) connection.

+ */ + inline TopicRuleDestinationConfiguration& WithVpcConfiguration(VpcDestinationConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} + private: HttpUrlDestinationConfiguration m_httpUrlConfiguration; bool m_httpUrlConfigurationHasBeenSet; + + VpcDestinationConfiguration m_vpcConfiguration; + bool m_vpcConfigurationHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationStatus.h b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationStatus.h index 0cc5a1866d2..df3b0bc3326 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationStatus.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationStatus.h @@ -19,7 +19,8 @@ namespace Model ENABLED, IN_PROGRESS, DISABLED, - ERROR_ + ERROR_, + DELETING }; namespace TopicRuleDestinationStatusMapper diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationSummary.h b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationSummary.h index 48ca73fa6d1..533fda5ae14 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationSummary.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/TopicRuleDestinationSummary.h @@ -7,7 +7,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -213,6 +215,68 @@ namespace Model inline TopicRuleDestinationSummary& WithStatus(TopicRuleDestinationStatus&& value) { SetStatus(std::move(value)); return *this;} + /** + *

The date and time when the topic rule destination was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline TopicRuleDestinationSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

The date and time when the topic rule destination was created.

+ */ + inline TopicRuleDestinationSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline TopicRuleDestinationSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} + + /** + *

The date and time when the topic rule destination was last updated.

+ */ + inline TopicRuleDestinationSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} + + /** *

The reason the topic rule destination is in the current status.

*/ @@ -284,6 +348,37 @@ namespace Model */ inline TopicRuleDestinationSummary& WithHttpUrlSummary(HttpUrlDestinationSummary&& value) { SetHttpUrlSummary(std::move(value)); return *this;} + + /** + *

Information about the virtual private cloud (VPC) connection.

+ */ + inline const VpcDestinationSummary& GetVpcDestinationSummary() const{ return m_vpcDestinationSummary; } + + /** + *

Information about the virtual private cloud (VPC) connection.

+ */ + inline bool VpcDestinationSummaryHasBeenSet() const { return m_vpcDestinationSummaryHasBeenSet; } + + /** + *

Information about the virtual private cloud (VPC) connection.

+ */ + inline void SetVpcDestinationSummary(const VpcDestinationSummary& value) { m_vpcDestinationSummaryHasBeenSet = true; m_vpcDestinationSummary = value; } + + /** + *

Information about the virtual private cloud (VPC) connection.

+ */ + inline void SetVpcDestinationSummary(VpcDestinationSummary&& value) { m_vpcDestinationSummaryHasBeenSet = true; m_vpcDestinationSummary = std::move(value); } + + /** + *

Information about the virtual private cloud (VPC) connection.

+ */ + inline TopicRuleDestinationSummary& WithVpcDestinationSummary(const VpcDestinationSummary& value) { SetVpcDestinationSummary(value); return *this;} + + /** + *

Information about the virtual private cloud (VPC) connection.

+ */ + inline TopicRuleDestinationSummary& WithVpcDestinationSummary(VpcDestinationSummary&& value) { SetVpcDestinationSummary(std::move(value)); return *this;} + private: Aws::String m_arn; @@ -292,11 +387,20 @@ namespace Model TopicRuleDestinationStatus m_status; bool m_statusHasBeenSet; + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + Aws::Utils::DateTime m_lastUpdatedAt; + bool m_lastUpdatedAtHasBeenSet; + Aws::String m_statusReason; bool m_statusReasonHasBeenSet; HttpUrlDestinationSummary m_httpUrlSummary; bool m_httpUrlSummaryHasBeenSet; + + VpcDestinationSummary m_vpcDestinationSummary; + bool m_vpcDestinationSummaryHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateAccountAuditConfigurationRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateAccountAuditConfigurationRequest.h index aa2584451d9..c9df92f23af 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateAccountAuditConfigurationRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateAccountAuditConfigurationRequest.h @@ -37,58 +37,58 @@ namespace Model /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline UpdateAccountAuditConfigurationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline UpdateAccountAuditConfigurationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** - *

The ARN of the role that grants permission to AWS IoT to access information - * about your devices, policies, certificates and other items as required when - * performing an audit.

+ *

The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT + * to access information about your devices, policies, certificates, and other + * items as required when performing an audit.

*/ inline UpdateAccountAuditConfigurationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} @@ -150,7 +150,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -163,7 +163,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -176,7 +176,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -189,7 +189,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -202,7 +202,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -215,7 +215,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -228,7 +228,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -241,7 +241,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -254,7 +254,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -267,7 +267,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -280,7 +280,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

@@ -293,7 +293,7 @@ namespace Model * including those that are currently enabled.

Some data collection might * start immediately when certain checks are enabled. When a check is disabled, any * data collected so far in relation to the check is deleted.

You cannot - * disable a check if it is used by any scheduled audit. You must first delete the + * disable a check if it's used by any scheduled audit. You must first delete the * check from the scheduled audit or delete the scheduled audit itself.

On * the first call to UpdateAccountAuditConfiguration, this parameter * is required and must specify at least one enabled check.

diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCACertificateParams.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCACertificateParams.h index c1beaa079a6..c6be1339629 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCACertificateParams.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCACertificateParams.h @@ -39,37 +39,37 @@ namespace Model /** - *

The action that you want to apply to the CA cerrtificate. The only supported + *

The action that you want to apply to the CA certificate. The only supported * value is DEACTIVATE.

*/ inline const CACertificateUpdateAction& GetAction() const{ return m_action; } /** - *

The action that you want to apply to the CA cerrtificate. The only supported + *

The action that you want to apply to the CA certificate. The only supported * value is DEACTIVATE.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** - *

The action that you want to apply to the CA cerrtificate. The only supported + *

The action that you want to apply to the CA certificate. The only supported * value is DEACTIVATE.

*/ inline void SetAction(const CACertificateUpdateAction& value) { m_actionHasBeenSet = true; m_action = value; } /** - *

The action that you want to apply to the CA cerrtificate. The only supported + *

The action that you want to apply to the CA certificate. The only supported * value is DEACTIVATE.

*/ inline void SetAction(CACertificateUpdateAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** - *

The action that you want to apply to the CA cerrtificate. The only supported + *

The action that you want to apply to the CA certificate. The only supported * value is DEACTIVATE.

*/ inline UpdateCACertificateParams& WithAction(const CACertificateUpdateAction& value) { SetAction(value); return *this;} /** - *

The action that you want to apply to the CA cerrtificate. The only supported + *

The action that you want to apply to the CA certificate. The only supported * value is DEACTIVATE.

*/ inline UpdateCACertificateParams& WithAction(CACertificateUpdateAction&& value) { SetAction(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricRequest.h new file mode 100644 index 00000000000..a0b796b46fc --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricRequest.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + + /** + */ + class AWS_IOT_API UpdateCustomMetricRequest : public IoTRequest + { + public: + UpdateCustomMetricRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateCustomMetric"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline UpdateCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline UpdateCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric. Cannot be updated.

+ */ + inline UpdateCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline UpdateCustomMetricRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline UpdateCustomMetricRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + + /** + *

Field represents a friendly name in the console for the custom metric, it + * doesn't have to be unique. Don't use this name as the metric identifier in the + * device metric report. Can be updated.

+ */ + inline UpdateCustomMetricRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + + private: + + Aws::String m_metricName; + bool m_metricNameHasBeenSet; + + Aws::String m_displayName; + bool m_displayNameHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricResult.h new file mode 100644 index 00000000000..42e421cefaa --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateCustomMetricResult.h @@ -0,0 +1,254 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + class AWS_IOT_API UpdateCustomMetricResult + { + public: + UpdateCustomMetricResult(); + UpdateCustomMetricResult(const Aws::AmazonWebServiceResult& result); + UpdateCustomMetricResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The name of the custom metric.

+ */ + inline const Aws::String& GetMetricName() const{ return m_metricName; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const Aws::String& value) { m_metricName = value; } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(Aws::String&& value) { m_metricName = std::move(value); } + + /** + *

The name of the custom metric.

+ */ + inline void SetMetricName(const char* value) { m_metricName.assign(value); } + + /** + *

The name of the custom metric.

+ */ + inline UpdateCustomMetricResult& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline UpdateCustomMetricResult& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} + + /** + *

The name of the custom metric.

+ */ + inline UpdateCustomMetricResult& WithMetricName(const char* value) { SetMetricName(value); return *this;} + + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline const Aws::String& GetMetricArn() const{ return m_metricArn; } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline void SetMetricArn(const Aws::String& value) { m_metricArn = value; } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline void SetMetricArn(Aws::String&& value) { m_metricArn = std::move(value); } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline void SetMetricArn(const char* value) { m_metricArn.assign(value); } + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline UpdateCustomMetricResult& WithMetricArn(const Aws::String& value) { SetMetricArn(value); return *this;} + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline UpdateCustomMetricResult& WithMetricArn(Aws::String&& value) { SetMetricArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Number (ARN) of the custom metric.

+ */ + inline UpdateCustomMetricResult& WithMetricArn(const char* value) { SetMetricArn(value); return *this;} + + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline const CustomMetricType& GetMetricType() const{ return m_metricType; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline void SetMetricType(const CustomMetricType& value) { m_metricType = value; } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline void SetMetricType(CustomMetricType&& value) { m_metricType = std::move(value); } + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline UpdateCustomMetricResult& WithMetricType(const CustomMetricType& value) { SetMetricType(value); return *this;} + + /** + *

The type of the custom metric. Types include string-list, + * ip-address-list, number-list, and number. + *

+ */ + inline UpdateCustomMetricResult& WithMetricType(CustomMetricType&& value) { SetMetricType(std::move(value)); return *this;} + + + /** + *

A friendly name in the console for the custom metric

+ */ + inline const Aws::String& GetDisplayName() const{ return m_displayName; } + + /** + *

A friendly name in the console for the custom metric

+ */ + inline void SetDisplayName(const Aws::String& value) { m_displayName = value; } + + /** + *

A friendly name in the console for the custom metric

+ */ + inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); } + + /** + *

A friendly name in the console for the custom metric

+ */ + inline void SetDisplayName(const char* value) { m_displayName.assign(value); } + + /** + *

A friendly name in the console for the custom metric

+ */ + inline UpdateCustomMetricResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} + + /** + *

A friendly name in the console for the custom metric

+ */ + inline UpdateCustomMetricResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} + + /** + *

A friendly name in the console for the custom metric

+ */ + inline UpdateCustomMetricResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} + + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline UpdateCustomMetricResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} + + /** + *

The creation date of the custom metric in milliseconds since epoch.

+ */ + inline UpdateCustomMetricResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} + + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline UpdateCustomMetricResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} + + /** + *

The time the custom metric was last modified in milliseconds since epoch. + *

+ */ + inline UpdateCustomMetricResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} + + private: + + Aws::String m_metricName; + + Aws::String m_metricArn; + + CustomMetricType m_metricType; + + Aws::String m_displayName; + + Aws::Utils::DateTime m_creationDate; + + Aws::Utils::DateTime m_lastModifiedDate; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDeviceCertificateParams.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDeviceCertificateParams.h index 9d8dd805466..846156fe758 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDeviceCertificateParams.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDeviceCertificateParams.h @@ -39,37 +39,37 @@ namespace Model /** - *

The action that you want to apply to the device cerrtificate. The only + *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline const DeviceCertificateUpdateAction& GetAction() const{ return m_action; } /** - *

The action that you want to apply to the device cerrtificate. The only + *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** - *

The action that you want to apply to the device cerrtificate. The only + *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline void SetAction(const DeviceCertificateUpdateAction& value) { m_actionHasBeenSet = true; m_action = value; } /** - *

The action that you want to apply to the device cerrtificate. The only + *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline void SetAction(DeviceCertificateUpdateAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** - *

The action that you want to apply to the device cerrtificate. The only + *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline UpdateDeviceCertificateParams& WithAction(const DeviceCertificateUpdateAction& value) { SetAction(value); return *this;} /** - *

The action that you want to apply to the device cerrtificate. The only + *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline UpdateDeviceCertificateParams& WithAction(DeviceCertificateUpdateAction&& value) { SetAction(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDimensionResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDimensionResult.h index d66934723c7..c1f23eb1ecf 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDimensionResult.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateDimensionResult.h @@ -72,37 +72,37 @@ namespace Model /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline UpdateDimensionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline UpdateDimensionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** - *

The ARN (Amazon resource name) of the created dimension.

+ *

The Amazon Resource Name (ARN)of the created dimension.

*/ inline UpdateDimensionResult& WithArn(const char* value) { SetArn(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateMitigationActionRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateMitigationActionRequest.h index 91d87217e40..d3ed5d5569e 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateMitigationActionRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateMitigationActionRequest.h @@ -34,58 +34,58 @@ namespace Model /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline UpdateMitigationActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline UpdateMitigationActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** - *

The friendly name for the mitigation action. You can't change the name by - * using UpdateMitigationAction. Instead, you must delete and - * re-create the mitigation action with the new name.

+ *

The friendly name for the mitigation action. You cannot change the name by + * using UpdateMitigationAction. Instead, you must delete and recreate + * the mitigation action with the new name.

*/ inline UpdateMitigationActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateScheduledAuditRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateScheduledAuditRequest.h index 271fd87490f..e02c207096e 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateScheduledAuditRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateScheduledAuditRequest.h @@ -36,152 +36,172 @@ namespace Model /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline const AuditFrequency& GetFrequency() const{ return m_frequency; } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline void SetFrequency(const AuditFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline void SetFrequency(AuditFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); } /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline UpdateScheduledAuditRequest& WithFrequency(const AuditFrequency& value) { SetFrequency(value); return *this;} /** - *

How often the scheduled audit takes place. Can be one of "DAILY", "WEEKLY", - * "BIWEEKLY", or "MONTHLY". The start time of each audit is determined by the - * system.

+ *

How often the scheduled audit takes place, either DAILY, + * WEEKLY, BIWEEKLY, or MONTHLY. The start + * time of each audit is determined by the system.

*/ inline UpdateScheduledAuditRequest& WithFrequency(AuditFrequency&& value) { SetFrequency(std::move(value)); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline const Aws::String& GetDayOfMonth() const{ return m_dayOfMonth; } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline void SetDayOfMonth(const Aws::String& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline void SetDayOfMonth(Aws::String&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::move(value); } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline void SetDayOfMonth(const char* value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth.assign(value); } /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline UpdateScheduledAuditRequest& WithDayOfMonth(const Aws::String& value) { SetDayOfMonth(value); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline UpdateScheduledAuditRequest& WithDayOfMonth(Aws::String&& value) { SetDayOfMonth(std::move(value)); return *this;} /** - *

The day of the month on which the scheduled audit takes place. Can be "1" - * through "31" or "LAST". This field is required if the "frequency" parameter is - * set to "MONTHLY". If days 29-31 are specified, and the month does not have that - * many days, the audit takes place on the "LAST" day of the month.

+ *

The day of the month on which the scheduled audit takes place. This can be + * 1 through 31 or LAST. This field is + * required if the frequency parameter is set to MONTHLY. + * If days 29-31 are specified, and the month does not have that many days, the + * audit takes place on the "LAST" day of the month.

*/ inline UpdateScheduledAuditRequest& WithDayOfMonth(const char* value) { SetDayOfMonth(value); return *this;} /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place. This can be one + * of SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the "frequency" parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline const DayOfWeek& GetDayOfWeek() const{ return m_dayOfWeek; } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place. This can be one + * of SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the "frequency" parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place. This can be one + * of SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the "frequency" parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline void SetDayOfWeek(const DayOfWeek& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place. This can be one + * of SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the "frequency" parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline void SetDayOfWeek(DayOfWeek&& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = std::move(value); } /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place. This can be one + * of SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the "frequency" parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline UpdateScheduledAuditRequest& WithDayOfWeek(const DayOfWeek& value) { SetDayOfWeek(value); return *this;} /** - *

The day of the week on which the scheduled audit takes place. Can be one of - * "SUN", "MON", "TUE", "WED", "THU", "FRI", or "SAT". This field is required if - * the "frequency" parameter is set to "WEEKLY" or "BIWEEKLY".

+ *

The day of the week on which the scheduled audit takes place. This can be one + * of SUN, MON, TUE, WED, + * THU, FRI, or SAT. This field is required + * if the "frequency" parameter is set to WEEKLY or + * BIWEEKLY.

*/ inline UpdateScheduledAuditRequest& WithDayOfWeek(DayOfWeek&& value) { SetDayOfWeek(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileRequest.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileRequest.h index 67d6a3d33f8..53bc08c75ec 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileRequest.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileRequest.h @@ -229,56 +229,64 @@ namespace Model /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline const Aws::Vector& GetAdditionalMetricsToRetainV2() const{ return m_additionalMetricsToRetainV2; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline bool AdditionalMetricsToRetainV2HasBeenSet() const { return m_additionalMetricsToRetainV2HasBeenSet; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline void SetAdditionalMetricsToRetainV2(const Aws::Vector& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = value; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline void SetAdditionalMetricsToRetainV2(Aws::Vector&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2 = std::move(value); } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileRequest& WithAdditionalMetricsToRetainV2(const Aws::Vector& value) { SetAdditionalMetricsToRetainV2(value); return *this;} /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileRequest& WithAdditionalMetricsToRetainV2(Aws::Vector&& value) { SetAdditionalMetricsToRetainV2(std::move(value)); return *this;} /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(const MetricToRetain& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(value); return *this; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileRequest& AddAdditionalMetricsToRetainV2(MetricToRetain&& value) { m_additionalMetricsToRetainV2HasBeenSet = true; m_additionalMetricsToRetainV2.push_back(std::move(value)); return *this; } diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileResult.h b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileResult.h index 17c7be05df1..287b6abc7f5 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileResult.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/UpdateSecurityProfileResult.h @@ -239,49 +239,56 @@ namespace Model /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline const Aws::Vector& GetAdditionalMetricsToRetainV2() const{ return m_additionalMetricsToRetainV2; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline void SetAdditionalMetricsToRetainV2(const Aws::Vector& value) { m_additionalMetricsToRetainV2 = value; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline void SetAdditionalMetricsToRetainV2(Aws::Vector&& value) { m_additionalMetricsToRetainV2 = std::move(value); } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileResult& WithAdditionalMetricsToRetainV2(const Aws::Vector& value) { SetAdditionalMetricsToRetainV2(value); return *this;} /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileResult& WithAdditionalMetricsToRetainV2(Aws::Vector&& value) { SetAdditionalMetricsToRetainV2(std::move(value)); return *this;} /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileResult& AddAdditionalMetricsToRetainV2(const MetricToRetain& value) { m_additionalMetricsToRetainV2.push_back(value); return *this; } /** *

A list of metrics whose data is retained (stored). By default, data is * retained for any metric used in the profile's behaviors, but it is also retained - * for any metric specified here.

+ * for any metric specified here. Can be used with custom metrics; cannot be used + * with dimensions.

*/ inline UpdateSecurityProfileResult& AddAdditionalMetricsToRetainV2(MetricToRetain&& value) { m_additionalMetricsToRetainV2.push_back(std::move(value)); return *this; } diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEvent.h b/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEvent.h index c57ec0ae947..a01b7e47ffb 100644 --- a/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEvent.h +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEvent.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -166,32 +167,32 @@ namespace Model /** - *

The behavior which was violated.

+ *

The behavior that was violated.

*/ inline const Behavior& GetBehavior() const{ return m_behavior; } /** - *

The behavior which was violated.

+ *

The behavior that was violated.

*/ inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; } /** - *

The behavior which was violated.

+ *

The behavior that was violated.

*/ inline void SetBehavior(const Behavior& value) { m_behaviorHasBeenSet = true; m_behavior = value; } /** - *

The behavior which was violated.

+ *

The behavior that was violated.

*/ inline void SetBehavior(Behavior&& value) { m_behaviorHasBeenSet = true; m_behavior = std::move(value); } /** - *

The behavior which was violated.

+ *

The behavior that was violated.

*/ inline ViolationEvent& WithBehavior(const Behavior& value) { SetBehavior(value); return *this;} /** - *

The behavior which was violated.

+ *

The behavior that was violated.

*/ inline ViolationEvent& WithBehavior(Behavior&& value) { SetBehavior(std::move(value)); return *this;} @@ -227,6 +228,37 @@ namespace Model inline ViolationEvent& WithMetricValue(MetricValue&& value) { SetMetricValue(std::move(value)); return *this;} + /** + *

The details of a violation event.

+ */ + inline const ViolationEventAdditionalInfo& GetViolationEventAdditionalInfo() const{ return m_violationEventAdditionalInfo; } + + /** + *

The details of a violation event.

+ */ + inline bool ViolationEventAdditionalInfoHasBeenSet() const { return m_violationEventAdditionalInfoHasBeenSet; } + + /** + *

The details of a violation event.

+ */ + inline void SetViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = value; } + + /** + *

The details of a violation event.

+ */ + inline void SetViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { m_violationEventAdditionalInfoHasBeenSet = true; m_violationEventAdditionalInfo = std::move(value); } + + /** + *

The details of a violation event.

+ */ + inline ViolationEvent& WithViolationEventAdditionalInfo(const ViolationEventAdditionalInfo& value) { SetViolationEventAdditionalInfo(value); return *this;} + + /** + *

The details of a violation event.

+ */ + inline ViolationEvent& WithViolationEventAdditionalInfo(ViolationEventAdditionalInfo&& value) { SetViolationEventAdditionalInfo(std::move(value)); return *this;} + + /** *

The type of violation event.

*/ @@ -305,6 +337,9 @@ namespace Model MetricValue m_metricValue; bool m_metricValueHasBeenSet; + ViolationEventAdditionalInfo m_violationEventAdditionalInfo; + bool m_violationEventAdditionalInfoHasBeenSet; + ViolationEventType m_violationEventType; bool m_violationEventTypeHasBeenSet; diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventAdditionalInfo.h b/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventAdditionalInfo.h new file mode 100644 index 00000000000..c139277c385 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventAdditionalInfo.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The details of a violation event.

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API ViolationEventAdditionalInfo + { + public: + ViolationEventAdditionalInfo(); + ViolationEventAdditionalInfo(Aws::Utils::Json::JsonView jsonValue); + ViolationEventAdditionalInfo& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline const ConfidenceLevel& GetConfidenceLevel() const{ return m_confidenceLevel; } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline bool ConfidenceLevelHasBeenSet() const { return m_confidenceLevelHasBeenSet; } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline void SetConfidenceLevel(const ConfidenceLevel& value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = value; } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline void SetConfidenceLevel(ConfidenceLevel&& value) { m_confidenceLevelHasBeenSet = true; m_confidenceLevel = std::move(value); } + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline ViolationEventAdditionalInfo& WithConfidenceLevel(const ConfidenceLevel& value) { SetConfidenceLevel(value); return *this;} + + /** + *

The sensitivity of anomalous behavior evaluation. Can be Low, + * Medium, or High.

+ */ + inline ViolationEventAdditionalInfo& WithConfidenceLevel(ConfidenceLevel&& value) { SetConfidenceLevel(std::move(value)); return *this;} + + private: + + ConfidenceLevel m_confidenceLevel; + bool m_confidenceLevelHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventOccurrenceRange.h b/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventOccurrenceRange.h new file mode 100644 index 00000000000..77fbe38ae90 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/ViolationEventOccurrenceRange.h @@ -0,0 +1,125 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

Specifies the time period of which violation events occurred between. + *

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API ViolationEventOccurrenceRange + { + public: + ViolationEventOccurrenceRange(); + ViolationEventOccurrenceRange(Aws::Utils::Json::JsonView jsonValue); + ViolationEventOccurrenceRange& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The start date and time of a time period in which violation events occurred. + *

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

The start date and time of a time period in which violation events occurred. + *

+ */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

The start date and time of a time period in which violation events occurred. + *

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

The start date and time of a time period in which violation events occurred. + *

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

The start date and time of a time period in which violation events occurred. + *

+ */ + inline ViolationEventOccurrenceRange& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

The start date and time of a time period in which violation events occurred. + *

+ */ + inline ViolationEventOccurrenceRange& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

The end date and time of a time period in which violation events occurred. + *

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

The end date and time of a time period in which violation events occurred. + *

+ */ + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + + /** + *

The end date and time of a time period in which violation events occurred. + *

+ */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + + /** + *

The end date and time of a time period in which violation events occurred. + *

+ */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + + /** + *

The end date and time of a time period in which violation events occurred. + *

+ */ + inline ViolationEventOccurrenceRange& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

The end date and time of a time period in which violation events occurred. + *

+ */ + inline ViolationEventOccurrenceRange& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + private: + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationConfiguration.h b/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationConfiguration.h new file mode 100644 index 00000000000..2c9807515d4 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationConfiguration.h @@ -0,0 +1,240 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The configuration information for a virtual private cloud (VPC) + * destination.

See Also:

AWS + * API Reference

+ */ + class AWS_IOT_API VpcDestinationConfiguration + { + public: + VpcDestinationConfiguration(); + VpcDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue); + VpcDestinationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationConfiguration& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationConfiguration& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationConfiguration& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationConfiguration& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationConfiguration& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } + + + /** + *

The security groups of the VPC destination.

+ */ + inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } + + /** + *

The security groups of the VPC destination.

+ */ + inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } + + /** + *

The security groups of the VPC destination.

+ */ + inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } + + /** + *

The security groups of the VPC destination.

+ */ + inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationConfiguration& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationConfiguration& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationConfiguration& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationConfiguration& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationConfiguration& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } + + + /** + *

The ID of the VPC.

+ */ + inline const Aws::String& GetVpcId() const{ return m_vpcId; } + + /** + *

The ID of the VPC.

+ */ + inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationConfiguration& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationConfiguration& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationConfiguration& WithVpcId(const char* value) { SetVpcId(value); return *this;} + + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + Aws::Vector m_subnetIds; + bool m_subnetIdsHasBeenSet; + + Aws::Vector m_securityGroups; + bool m_securityGroupsHasBeenSet; + + Aws::String m_vpcId; + bool m_vpcIdHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationProperties.h b/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationProperties.h new file mode 100644 index 00000000000..1f0da491f5f --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationProperties.h @@ -0,0 +1,240 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The properties of a virtual private cloud (VPC) destination.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOT_API VpcDestinationProperties + { + public: + VpcDestinationProperties(); + VpcDestinationProperties(Aws::Utils::Json::JsonView jsonValue); + VpcDestinationProperties& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationProperties& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationProperties& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationProperties& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationProperties& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationProperties& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } + + + /** + *

The security groups of the VPC destination.

+ */ + inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } + + /** + *

The security groups of the VPC destination.

+ */ + inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } + + /** + *

The security groups of the VPC destination.

+ */ + inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } + + /** + *

The security groups of the VPC destination.

+ */ + inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationProperties& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationProperties& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationProperties& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationProperties& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationProperties& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } + + + /** + *

The ID of the VPC.

+ */ + inline const Aws::String& GetVpcId() const{ return m_vpcId; } + + /** + *

The ID of the VPC.

+ */ + inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationProperties& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationProperties& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationProperties& WithVpcId(const char* value) { SetVpcId(value); return *this;} + + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationProperties& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationProperties& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationProperties& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + Aws::Vector m_subnetIds; + bool m_subnetIdsHasBeenSet; + + Aws::Vector m_securityGroups; + bool m_securityGroupsHasBeenSet; + + Aws::String m_vpcId; + bool m_vpcIdHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationSummary.h b/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationSummary.h new file mode 100644 index 00000000000..7b174561b03 --- /dev/null +++ b/aws-cpp-sdk-iot/include/aws/iot/model/VpcDestinationSummary.h @@ -0,0 +1,240 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoT +{ +namespace Model +{ + + /** + *

The summary of a virtual private cloud (VPC) destination.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOT_API VpcDestinationSummary + { + public: + VpcDestinationSummary(); + VpcDestinationSummary(Aws::Utils::Json::JsonView jsonValue); + VpcDestinationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationSummary& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationSummary& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationSummary& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationSummary& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } + + /** + *

The subnet IDs of the VPC destination.

+ */ + inline VpcDestinationSummary& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } + + + /** + *

The security groups of the VPC destination.

+ */ + inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } + + /** + *

The security groups of the VPC destination.

+ */ + inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } + + /** + *

The security groups of the VPC destination.

+ */ + inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } + + /** + *

The security groups of the VPC destination.

+ */ + inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationSummary& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationSummary& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationSummary& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationSummary& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } + + /** + *

The security groups of the VPC destination.

+ */ + inline VpcDestinationSummary& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } + + + /** + *

The ID of the VPC.

+ */ + inline const Aws::String& GetVpcId() const{ return m_vpcId; } + + /** + *

The ID of the VPC.

+ */ + inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } + + /** + *

The ID of the VPC.

+ */ + inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationSummary& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationSummary& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} + + /** + *

The ID of the VPC.

+ */ + inline VpcDestinationSummary& WithVpcId(const char* value) { SetVpcId(value); return *this;} + + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationSummary& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationSummary& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of a role that has permission to create and attach to elastic network + * interfaces (ENIs).

+ */ + inline VpcDestinationSummary& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + Aws::Vector m_subnetIds; + bool m_subnetIdsHasBeenSet; + + Aws::Vector m_securityGroups; + bool m_securityGroupsHasBeenSet; + + Aws::String m_vpcId; + bool m_vpcIdHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/IoTClient.cpp b/aws-cpp-sdk-iot/source/IoTClient.cpp index b9e8ce7984b..abea9ba8a03 100644 --- a/aws-cpp-sdk-iot/source/IoTClient.cpp +++ b/aws-cpp-sdk-iot/source/IoTClient.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -38,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -65,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -97,7 +100,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -121,6 +126,7 @@ #include #include #include +#include #include #include #include @@ -147,6 +153,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -197,6 +206,7 @@ #include #include #include +#include #include #include #include @@ -211,6 +221,7 @@ #include #include #include +#include #include #include #include @@ -635,6 +646,40 @@ void IoTClient::CancelCertificateTransferAsyncHelper(const CancelCertificateTran handler(this, request, CancelCertificateTransfer(request), context); } +CancelDetectMitigationActionsTaskOutcome IoTClient::CancelDetectMitigationActionsTask(const CancelDetectMitigationActionsTaskRequest& request) const +{ + if (!request.TaskIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CancelDetectMitigationActionsTask", "Required field: TaskId, is not set"); + return CancelDetectMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/detect/mitigationactions/tasks/"; + ss << request.GetTaskId(); + ss << "/cancel"; + uri.SetPath(uri.GetPath() + ss.str()); + return CancelDetectMitigationActionsTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); +} + +CancelDetectMitigationActionsTaskOutcomeCallable IoTClient::CancelDetectMitigationActionsTaskCallable(const CancelDetectMitigationActionsTaskRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CancelDetectMitigationActionsTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CancelDetectMitigationActionsTask(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::CancelDetectMitigationActionsTaskAsync(const CancelDetectMitigationActionsTaskRequest& request, const CancelDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CancelDetectMitigationActionsTaskAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::CancelDetectMitigationActionsTaskAsyncHelper(const CancelDetectMitigationActionsTaskRequest& request, const CancelDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CancelDetectMitigationActionsTask(request), context); +} + CancelJobOutcome IoTClient::CancelJob(const CancelJobRequest& request) const { if (!request.JobIdHasBeenSet()) @@ -890,6 +935,39 @@ void IoTClient::CreateCertificateFromCsrAsyncHelper(const CreateCertificateFromC handler(this, request, CreateCertificateFromCsr(request), context); } +CreateCustomMetricOutcome IoTClient::CreateCustomMetric(const CreateCustomMetricRequest& request) const +{ + if (!request.MetricNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateCustomMetric", "Required field: MetricName, is not set"); + return CreateCustomMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/custom-metric/"; + ss << request.GetMetricName(); + uri.SetPath(uri.GetPath() + ss.str()); + return CreateCustomMetricOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateCustomMetricOutcomeCallable IoTClient::CreateCustomMetricCallable(const CreateCustomMetricRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateCustomMetricOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateCustomMetric(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::CreateCustomMetricAsync(const CreateCustomMetricRequest& request, const CreateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateCustomMetricAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::CreateCustomMetricAsyncHelper(const CreateCustomMetricRequest& request, const CreateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateCustomMetric(request), context); +} + CreateDimensionOutcome IoTClient::CreateDimension(const CreateDimensionRequest& request) const { if (!request.NameHasBeenSet()) @@ -1754,6 +1832,39 @@ void IoTClient::DeleteCertificateAsyncHelper(const DeleteCertificateRequest& req handler(this, request, DeleteCertificate(request), context); } +DeleteCustomMetricOutcome IoTClient::DeleteCustomMetric(const DeleteCustomMetricRequest& request) const +{ + if (!request.MetricNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteCustomMetric", "Required field: MetricName, is not set"); + return DeleteCustomMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/custom-metric/"; + ss << request.GetMetricName(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteCustomMetricOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteCustomMetricOutcomeCallable IoTClient::DeleteCustomMetricCallable(const DeleteCustomMetricRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteCustomMetricOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteCustomMetric(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::DeleteCustomMetricAsync(const DeleteCustomMetricRequest& request, const DeleteCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteCustomMetricAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::DeleteCustomMetricAsyncHelper(const DeleteCustomMetricRequest& request, const DeleteCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteCustomMetric(request), context); +} + DeleteDimensionOutcome IoTClient::DeleteDimension(const DeleteDimensionRequest& request) const { if (!request.NameHasBeenSet()) @@ -2825,6 +2936,39 @@ void IoTClient::DescribeCertificateAsyncHelper(const DescribeCertificateRequest& handler(this, request, DescribeCertificate(request), context); } +DescribeCustomMetricOutcome IoTClient::DescribeCustomMetric(const DescribeCustomMetricRequest& request) const +{ + if (!request.MetricNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeCustomMetric", "Required field: MetricName, is not set"); + return DescribeCustomMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/custom-metric/"; + ss << request.GetMetricName(); + uri.SetPath(uri.GetPath() + ss.str()); + return DescribeCustomMetricOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +DescribeCustomMetricOutcomeCallable IoTClient::DescribeCustomMetricCallable(const DescribeCustomMetricRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DescribeCustomMetricOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeCustomMetric(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::DescribeCustomMetricAsync(const DescribeCustomMetricRequest& request, const DescribeCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DescribeCustomMetricAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::DescribeCustomMetricAsyncHelper(const DescribeCustomMetricRequest& request, const DescribeCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DescribeCustomMetric(request), context); +} + DescribeDefaultAuthorizerOutcome IoTClient::DescribeDefaultAuthorizer(const DescribeDefaultAuthorizerRequest& request) const { Aws::Http::URI uri = m_uri; @@ -2852,6 +2996,39 @@ void IoTClient::DescribeDefaultAuthorizerAsyncHelper(const DescribeDefaultAuthor handler(this, request, DescribeDefaultAuthorizer(request), context); } +DescribeDetectMitigationActionsTaskOutcome IoTClient::DescribeDetectMitigationActionsTask(const DescribeDetectMitigationActionsTaskRequest& request) const +{ + if (!request.TaskIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeDetectMitigationActionsTask", "Required field: TaskId, is not set"); + return DescribeDetectMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/detect/mitigationactions/tasks/"; + ss << request.GetTaskId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DescribeDetectMitigationActionsTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +DescribeDetectMitigationActionsTaskOutcomeCallable IoTClient::DescribeDetectMitigationActionsTaskCallable(const DescribeDetectMitigationActionsTaskRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DescribeDetectMitigationActionsTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeDetectMitigationActionsTask(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::DescribeDetectMitigationActionsTaskAsync(const DescribeDetectMitigationActionsTaskRequest& request, const DescribeDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DescribeDetectMitigationActionsTaskAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::DescribeDetectMitigationActionsTaskAsyncHelper(const DescribeDetectMitigationActionsTaskRequest& request, const DescribeDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DescribeDetectMitigationActionsTask(request), context); +} + DescribeDimensionOutcome IoTClient::DescribeDimension(const DescribeDimensionRequest& request) const { if (!request.NameHasBeenSet()) @@ -3627,6 +3804,33 @@ void IoTClient::EnableTopicRuleAsyncHelper(const EnableTopicRuleRequest& request handler(this, request, EnableTopicRule(request), context); } +GetBehaviorModelTrainingSummariesOutcome IoTClient::GetBehaviorModelTrainingSummaries(const GetBehaviorModelTrainingSummariesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/behavior-model-training/summaries"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetBehaviorModelTrainingSummariesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetBehaviorModelTrainingSummariesOutcomeCallable IoTClient::GetBehaviorModelTrainingSummariesCallable(const GetBehaviorModelTrainingSummariesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetBehaviorModelTrainingSummariesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetBehaviorModelTrainingSummaries(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::GetBehaviorModelTrainingSummariesAsync(const GetBehaviorModelTrainingSummariesRequest& request, const GetBehaviorModelTrainingSummariesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetBehaviorModelTrainingSummariesAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::GetBehaviorModelTrainingSummariesAsyncHelper(const GetBehaviorModelTrainingSummariesRequest& request, const GetBehaviorModelTrainingSummariesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetBehaviorModelTrainingSummaries(request), context); +} + GetCardinalityOutcome IoTClient::GetCardinality(const GetCardinalityRequest& request) const { Aws::Http::URI uri = m_uri; @@ -4415,6 +4619,97 @@ void IoTClient::ListCertificatesByCAAsyncHelper(const ListCertificatesByCAReques handler(this, request, ListCertificatesByCA(request), context); } +ListCustomMetricsOutcome IoTClient::ListCustomMetrics(const ListCustomMetricsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/custom-metrics"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListCustomMetricsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListCustomMetricsOutcomeCallable IoTClient::ListCustomMetricsCallable(const ListCustomMetricsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListCustomMetricsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListCustomMetrics(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::ListCustomMetricsAsync(const ListCustomMetricsRequest& request, const ListCustomMetricsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListCustomMetricsAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::ListCustomMetricsAsyncHelper(const ListCustomMetricsRequest& request, const ListCustomMetricsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListCustomMetrics(request), context); +} + +ListDetectMitigationActionsExecutionsOutcome IoTClient::ListDetectMitigationActionsExecutions(const ListDetectMitigationActionsExecutionsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/detect/mitigationactions/executions"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListDetectMitigationActionsExecutionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListDetectMitigationActionsExecutionsOutcomeCallable IoTClient::ListDetectMitigationActionsExecutionsCallable(const ListDetectMitigationActionsExecutionsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListDetectMitigationActionsExecutionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDetectMitigationActionsExecutions(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::ListDetectMitigationActionsExecutionsAsync(const ListDetectMitigationActionsExecutionsRequest& request, const ListDetectMitigationActionsExecutionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListDetectMitigationActionsExecutionsAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::ListDetectMitigationActionsExecutionsAsyncHelper(const ListDetectMitigationActionsExecutionsRequest& request, const ListDetectMitigationActionsExecutionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListDetectMitigationActionsExecutions(request), context); +} + +ListDetectMitigationActionsTasksOutcome IoTClient::ListDetectMitigationActionsTasks(const ListDetectMitigationActionsTasksRequest& request) const +{ + if (!request.StartTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListDetectMitigationActionsTasks", "Required field: StartTime, is not set"); + return ListDetectMitigationActionsTasksOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StartTime]", false)); + } + if (!request.EndTimeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListDetectMitigationActionsTasks", "Required field: EndTime, is not set"); + return ListDetectMitigationActionsTasksOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [EndTime]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/detect/mitigationactions/tasks"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListDetectMitigationActionsTasksOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListDetectMitigationActionsTasksOutcomeCallable IoTClient::ListDetectMitigationActionsTasksCallable(const ListDetectMitigationActionsTasksRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListDetectMitigationActionsTasksOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDetectMitigationActionsTasks(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::ListDetectMitigationActionsTasksAsync(const ListDetectMitigationActionsTasksRequest& request, const ListDetectMitigationActionsTasksResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListDetectMitigationActionsTasksAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::ListDetectMitigationActionsTasksAsyncHelper(const ListDetectMitigationActionsTasksRequest& request, const ListDetectMitigationActionsTasksResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListDetectMitigationActionsTasks(request), context); +} + ListDimensionsOutcome IoTClient::ListDimensions(const ListDimensionsRequest& request) const { Aws::Http::URI uri = m_uri; @@ -5902,6 +6197,39 @@ void IoTClient::StartAuditMitigationActionsTaskAsyncHelper(const StartAuditMitig handler(this, request, StartAuditMitigationActionsTask(request), context); } +StartDetectMitigationActionsTaskOutcome IoTClient::StartDetectMitigationActionsTask(const StartDetectMitigationActionsTaskRequest& request) const +{ + if (!request.TaskIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartDetectMitigationActionsTask", "Required field: TaskId, is not set"); + return StartDetectMitigationActionsTaskOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TaskId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/detect/mitigationactions/tasks/"; + ss << request.GetTaskId(); + uri.SetPath(uri.GetPath() + ss.str()); + return StartDetectMitigationActionsTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); +} + +StartDetectMitigationActionsTaskOutcomeCallable IoTClient::StartDetectMitigationActionsTaskCallable(const StartDetectMitigationActionsTaskRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< StartDetectMitigationActionsTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartDetectMitigationActionsTask(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::StartDetectMitigationActionsTaskAsync(const StartDetectMitigationActionsTaskRequest& request, const StartDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->StartDetectMitigationActionsTaskAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::StartDetectMitigationActionsTaskAsyncHelper(const StartDetectMitigationActionsTaskRequest& request, const StartDetectMitigationActionsTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, StartDetectMitigationActionsTask(request), context); +} + StartOnDemandAuditTaskOutcome IoTClient::StartOnDemandAuditTask(const StartOnDemandAuditTaskRequest& request) const { Aws::Http::URI uri = m_uri; @@ -6334,6 +6662,39 @@ void IoTClient::UpdateCertificateAsyncHelper(const UpdateCertificateRequest& req handler(this, request, UpdateCertificate(request), context); } +UpdateCustomMetricOutcome IoTClient::UpdateCustomMetric(const UpdateCustomMetricRequest& request) const +{ + if (!request.MetricNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateCustomMetric", "Required field: MetricName, is not set"); + return UpdateCustomMetricOutcome(Aws::Client::AWSError(IoTErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [MetricName]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/custom-metric/"; + ss << request.GetMetricName(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateCustomMetricOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateCustomMetricOutcomeCallable IoTClient::UpdateCustomMetricCallable(const UpdateCustomMetricRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateCustomMetricOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateCustomMetric(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTClient::UpdateCustomMetricAsync(const UpdateCustomMetricRequest& request, const UpdateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateCustomMetricAsyncHelper( request, handler, context ); } ); +} + +void IoTClient::UpdateCustomMetricAsyncHelper(const UpdateCustomMetricRequest& request, const UpdateCustomMetricResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateCustomMetric(request), context); +} + UpdateDimensionOutcome IoTClient::UpdateDimension(const UpdateDimensionRequest& request) const { if (!request.NameHasBeenSet()) diff --git a/aws-cpp-sdk-iot/source/model/Action.cpp b/aws-cpp-sdk-iot/source/model/Action.cpp index 658cc055270..eb78fc20cc7 100644 --- a/aws-cpp-sdk-iot/source/model/Action.cpp +++ b/aws-cpp-sdk-iot/source/model/Action.cpp @@ -38,7 +38,8 @@ Action::Action() : m_iotSiteWiseHasBeenSet(false), m_stepFunctionsHasBeenSet(false), m_timestreamHasBeenSet(false), - m_httpHasBeenSet(false) + m_httpHasBeenSet(false), + m_kafkaHasBeenSet(false) { } @@ -62,7 +63,8 @@ Action::Action(JsonView jsonValue) : m_iotSiteWiseHasBeenSet(false), m_stepFunctionsHasBeenSet(false), m_timestreamHasBeenSet(false), - m_httpHasBeenSet(false) + m_httpHasBeenSet(false), + m_kafkaHasBeenSet(false) { *this = jsonValue; } @@ -209,6 +211,13 @@ Action& Action::operator =(JsonView jsonValue) m_httpHasBeenSet = true; } + if(jsonValue.ValueExists("kafka")) + { + m_kafka = jsonValue.GetObject("kafka"); + + m_kafkaHasBeenSet = true; + } + return *this; } @@ -336,6 +345,12 @@ JsonValue Action::Jsonize() const } + if(m_kafkaHasBeenSet) + { + payload.WithObject("kafka", m_kafka.Jsonize()); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/ActiveViolation.cpp b/aws-cpp-sdk-iot/source/model/ActiveViolation.cpp index 46d5e1d7496..ba1e7b88bf2 100644 --- a/aws-cpp-sdk-iot/source/model/ActiveViolation.cpp +++ b/aws-cpp-sdk-iot/source/model/ActiveViolation.cpp @@ -24,6 +24,7 @@ ActiveViolation::ActiveViolation() : m_securityProfileNameHasBeenSet(false), m_behaviorHasBeenSet(false), m_lastViolationValueHasBeenSet(false), + m_violationEventAdditionalInfoHasBeenSet(false), m_lastViolationTimeHasBeenSet(false), m_violationStartTimeHasBeenSet(false) { @@ -35,6 +36,7 @@ ActiveViolation::ActiveViolation(JsonView jsonValue) : m_securityProfileNameHasBeenSet(false), m_behaviorHasBeenSet(false), m_lastViolationValueHasBeenSet(false), + m_violationEventAdditionalInfoHasBeenSet(false), m_lastViolationTimeHasBeenSet(false), m_violationStartTimeHasBeenSet(false) { @@ -78,6 +80,13 @@ ActiveViolation& ActiveViolation::operator =(JsonView jsonValue) m_lastViolationValueHasBeenSet = true; } + if(jsonValue.ValueExists("violationEventAdditionalInfo")) + { + m_violationEventAdditionalInfo = jsonValue.GetObject("violationEventAdditionalInfo"); + + m_violationEventAdditionalInfoHasBeenSet = true; + } + if(jsonValue.ValueExists("lastViolationTime")) { m_lastViolationTime = jsonValue.GetDouble("lastViolationTime"); @@ -129,6 +138,12 @@ JsonValue ActiveViolation::Jsonize() const } + if(m_violationEventAdditionalInfoHasBeenSet) + { + payload.WithObject("violationEventAdditionalInfo", m_violationEventAdditionalInfo.Jsonize()); + + } + if(m_lastViolationTimeHasBeenSet) { payload.WithDouble("lastViolationTime", m_lastViolationTime.SecondsWithMSPrecision()); diff --git a/aws-cpp-sdk-iot/source/model/Behavior.cpp b/aws-cpp-sdk-iot/source/model/Behavior.cpp index 8b8c96792f2..96626bf85c3 100644 --- a/aws-cpp-sdk-iot/source/model/Behavior.cpp +++ b/aws-cpp-sdk-iot/source/model/Behavior.cpp @@ -22,7 +22,9 @@ Behavior::Behavior() : m_nameHasBeenSet(false), m_metricHasBeenSet(false), m_metricDimensionHasBeenSet(false), - m_criteriaHasBeenSet(false) + m_criteriaHasBeenSet(false), + m_suppressAlerts(false), + m_suppressAlertsHasBeenSet(false) { } @@ -30,7 +32,9 @@ Behavior::Behavior(JsonView jsonValue) : m_nameHasBeenSet(false), m_metricHasBeenSet(false), m_metricDimensionHasBeenSet(false), - m_criteriaHasBeenSet(false) + m_criteriaHasBeenSet(false), + m_suppressAlerts(false), + m_suppressAlertsHasBeenSet(false) { *this = jsonValue; } @@ -65,6 +69,13 @@ Behavior& Behavior::operator =(JsonView jsonValue) m_criteriaHasBeenSet = true; } + if(jsonValue.ValueExists("suppressAlerts")) + { + m_suppressAlerts = jsonValue.GetBool("suppressAlerts"); + + m_suppressAlertsHasBeenSet = true; + } + return *this; } @@ -96,6 +107,12 @@ JsonValue Behavior::Jsonize() const } + if(m_suppressAlertsHasBeenSet) + { + payload.WithBool("suppressAlerts", m_suppressAlerts); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/BehaviorCriteria.cpp b/aws-cpp-sdk-iot/source/model/BehaviorCriteria.cpp index 6ab5fe88596..c6ad6ff22a8 100644 --- a/aws-cpp-sdk-iot/source/model/BehaviorCriteria.cpp +++ b/aws-cpp-sdk-iot/source/model/BehaviorCriteria.cpp @@ -28,7 +28,8 @@ BehaviorCriteria::BehaviorCriteria() : m_consecutiveDatapointsToAlarmHasBeenSet(false), m_consecutiveDatapointsToClear(0), m_consecutiveDatapointsToClearHasBeenSet(false), - m_statisticalThresholdHasBeenSet(false) + m_statisticalThresholdHasBeenSet(false), + m_mlDetectionConfigHasBeenSet(false) { } @@ -42,7 +43,8 @@ BehaviorCriteria::BehaviorCriteria(JsonView jsonValue) : m_consecutiveDatapointsToAlarmHasBeenSet(false), m_consecutiveDatapointsToClear(0), m_consecutiveDatapointsToClearHasBeenSet(false), - m_statisticalThresholdHasBeenSet(false) + m_statisticalThresholdHasBeenSet(false), + m_mlDetectionConfigHasBeenSet(false) { *this = jsonValue; } @@ -91,6 +93,13 @@ BehaviorCriteria& BehaviorCriteria::operator =(JsonView jsonValue) m_statisticalThresholdHasBeenSet = true; } + if(jsonValue.ValueExists("mlDetectionConfig")) + { + m_mlDetectionConfig = jsonValue.GetObject("mlDetectionConfig"); + + m_mlDetectionConfigHasBeenSet = true; + } + return *this; } @@ -133,6 +142,12 @@ JsonValue BehaviorCriteria::Jsonize() const } + if(m_mlDetectionConfigHasBeenSet) + { + payload.WithObject("mlDetectionConfig", m_mlDetectionConfig.Jsonize()); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp b/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp new file mode 100644 index 00000000000..f577ae940d9 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/BehaviorCriteriaType.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace BehaviorCriteriaTypeMapper + { + + static const int STATIC__HASH = HashingUtils::HashString("STATIC"); + static const int STATISTICAL_HASH = HashingUtils::HashString("STATISTICAL"); + static const int MACHINE_LEARNING_HASH = HashingUtils::HashString("MACHINE_LEARNING"); + + + BehaviorCriteriaType GetBehaviorCriteriaTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == STATIC__HASH) + { + return BehaviorCriteriaType::STATIC_; + } + else if (hashCode == STATISTICAL_HASH) + { + return BehaviorCriteriaType::STATISTICAL; + } + else if (hashCode == MACHINE_LEARNING_HASH) + { + return BehaviorCriteriaType::MACHINE_LEARNING; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return BehaviorCriteriaType::NOT_SET; + } + + Aws::String GetNameForBehaviorCriteriaType(BehaviorCriteriaType enumValue) + { + switch(enumValue) + { + case BehaviorCriteriaType::STATIC_: + return "STATIC"; + case BehaviorCriteriaType::STATISTICAL: + return "STATISTICAL"; + case BehaviorCriteriaType::MACHINE_LEARNING: + return "MACHINE_LEARNING"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace BehaviorCriteriaTypeMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/BehaviorModelTrainingSummary.cpp b/aws-cpp-sdk-iot/source/model/BehaviorModelTrainingSummary.cpp new file mode 100644 index 00000000000..689c85c68f8 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/BehaviorModelTrainingSummary.cpp @@ -0,0 +1,135 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +BehaviorModelTrainingSummary::BehaviorModelTrainingSummary() : + m_securityProfileNameHasBeenSet(false), + m_behaviorNameHasBeenSet(false), + m_trainingDataCollectionStartDateHasBeenSet(false), + m_modelStatus(ModelStatus::NOT_SET), + m_modelStatusHasBeenSet(false), + m_datapointsCollectionPercentage(0.0), + m_datapointsCollectionPercentageHasBeenSet(false), + m_lastModelRefreshDateHasBeenSet(false) +{ +} + +BehaviorModelTrainingSummary::BehaviorModelTrainingSummary(JsonView jsonValue) : + m_securityProfileNameHasBeenSet(false), + m_behaviorNameHasBeenSet(false), + m_trainingDataCollectionStartDateHasBeenSet(false), + m_modelStatus(ModelStatus::NOT_SET), + m_modelStatusHasBeenSet(false), + m_datapointsCollectionPercentage(0.0), + m_datapointsCollectionPercentageHasBeenSet(false), + m_lastModelRefreshDateHasBeenSet(false) +{ + *this = jsonValue; +} + +BehaviorModelTrainingSummary& BehaviorModelTrainingSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("securityProfileName")) + { + m_securityProfileName = jsonValue.GetString("securityProfileName"); + + m_securityProfileNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("behaviorName")) + { + m_behaviorName = jsonValue.GetString("behaviorName"); + + m_behaviorNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("trainingDataCollectionStartDate")) + { + m_trainingDataCollectionStartDate = jsonValue.GetDouble("trainingDataCollectionStartDate"); + + m_trainingDataCollectionStartDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("modelStatus")) + { + m_modelStatus = ModelStatusMapper::GetModelStatusForName(jsonValue.GetString("modelStatus")); + + m_modelStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("datapointsCollectionPercentage")) + { + m_datapointsCollectionPercentage = jsonValue.GetDouble("datapointsCollectionPercentage"); + + m_datapointsCollectionPercentageHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastModelRefreshDate")) + { + m_lastModelRefreshDate = jsonValue.GetDouble("lastModelRefreshDate"); + + m_lastModelRefreshDateHasBeenSet = true; + } + + return *this; +} + +JsonValue BehaviorModelTrainingSummary::Jsonize() const +{ + JsonValue payload; + + if(m_securityProfileNameHasBeenSet) + { + payload.WithString("securityProfileName", m_securityProfileName); + + } + + if(m_behaviorNameHasBeenSet) + { + payload.WithString("behaviorName", m_behaviorName); + + } + + if(m_trainingDataCollectionStartDateHasBeenSet) + { + payload.WithDouble("trainingDataCollectionStartDate", m_trainingDataCollectionStartDate.SecondsWithMSPrecision()); + } + + if(m_modelStatusHasBeenSet) + { + payload.WithString("modelStatus", ModelStatusMapper::GetNameForModelStatus(m_modelStatus)); + } + + if(m_datapointsCollectionPercentageHasBeenSet) + { + payload.WithDouble("datapointsCollectionPercentage", m_datapointsCollectionPercentage); + + } + + if(m_lastModelRefreshDateHasBeenSet) + { + payload.WithDouble("lastModelRefreshDate", m_lastModelRefreshDate.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskRequest.cpp b/aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskRequest.cpp new file mode 100644 index 00000000000..b3167b68bba --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CancelDetectMitigationActionsTaskRequest::CancelDetectMitigationActionsTaskRequest() : + m_taskIdHasBeenSet(false) +{ +} + +Aws::String CancelDetectMitigationActionsTaskRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskResult.cpp b/aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskResult.cpp new file mode 100644 index 00000000000..3b67a1d603e --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/CancelDetectMitigationActionsTaskResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CancelDetectMitigationActionsTaskResult::CancelDetectMitigationActionsTaskResult() +{ +} + +CancelDetectMitigationActionsTaskResult::CancelDetectMitigationActionsTaskResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CancelDetectMitigationActionsTaskResult& CancelDetectMitigationActionsTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp b/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp index 902722414ce..8607b77bfc4 100644 --- a/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp +++ b/aws-cpp-sdk-iot/source/model/ComparisonOperator.cpp @@ -28,6 +28,8 @@ namespace Aws static const int not_in_cidr_set_HASH = HashingUtils::HashString("not-in-cidr-set"); static const int in_port_set_HASH = HashingUtils::HashString("in-port-set"); static const int not_in_port_set_HASH = HashingUtils::HashString("not-in-port-set"); + static const int in_set_HASH = HashingUtils::HashString("in-set"); + static const int not_in_set_HASH = HashingUtils::HashString("not-in-set"); ComparisonOperator GetComparisonOperatorForName(const Aws::String& name) @@ -65,6 +67,14 @@ namespace Aws { return ComparisonOperator::not_in_port_set; } + else if (hashCode == in_set_HASH) + { + return ComparisonOperator::in_set; + } + else if (hashCode == not_in_set_HASH) + { + return ComparisonOperator::not_in_set; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -95,6 +105,10 @@ namespace Aws return "in-port-set"; case ComparisonOperator::not_in_port_set: return "not-in-port-set"; + case ComparisonOperator::in_set: + return "in-set"; + case ComparisonOperator::not_in_set: + return "not-in-set"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp b/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp new file mode 100644 index 00000000000..d980d8d02db --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ConfidenceLevel.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace ConfidenceLevelMapper + { + + static const int LOW_HASH = HashingUtils::HashString("LOW"); + static const int MEDIUM_HASH = HashingUtils::HashString("MEDIUM"); + static const int HIGH_HASH = HashingUtils::HashString("HIGH"); + + + ConfidenceLevel GetConfidenceLevelForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == LOW_HASH) + { + return ConfidenceLevel::LOW; + } + else if (hashCode == MEDIUM_HASH) + { + return ConfidenceLevel::MEDIUM; + } + else if (hashCode == HIGH_HASH) + { + return ConfidenceLevel::HIGH; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ConfidenceLevel::NOT_SET; + } + + Aws::String GetNameForConfidenceLevel(ConfidenceLevel enumValue) + { + switch(enumValue) + { + case ConfidenceLevel::LOW: + return "LOW"; + case ConfidenceLevel::MEDIUM: + return "MEDIUM"; + case ConfidenceLevel::HIGH: + return "HIGH"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ConfidenceLevelMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/CreateCustomMetricRequest.cpp b/aws-cpp-sdk-iot/source/model/CreateCustomMetricRequest.cpp new file mode 100644 index 00000000000..38cd26a8330 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/CreateCustomMetricRequest.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateCustomMetricRequest::CreateCustomMetricRequest() : + m_metricNameHasBeenSet(false), + m_displayNameHasBeenSet(false), + m_metricType(CustomMetricType::NOT_SET), + m_metricTypeHasBeenSet(false), + m_tagsHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String CreateCustomMetricRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_displayNameHasBeenSet) + { + payload.WithString("displayName", m_displayName); + + } + + if(m_metricTypeHasBeenSet) + { + payload.WithString("metricType", CustomMetricTypeMapper::GetNameForCustomMetricType(m_metricType)); + } + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("tags", std::move(tagsJsonList)); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("clientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/CreateCustomMetricResult.cpp b/aws-cpp-sdk-iot/source/model/CreateCustomMetricResult.cpp new file mode 100644 index 00000000000..2c425120149 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/CreateCustomMetricResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateCustomMetricResult::CreateCustomMetricResult() +{ +} + +CreateCustomMetricResult::CreateCustomMetricResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateCustomMetricResult& CreateCustomMetricResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("metricName")) + { + m_metricName = jsonValue.GetString("metricName"); + + } + + if(jsonValue.ValueExists("metricArn")) + { + m_metricArn = jsonValue.GetString("metricArn"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp b/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp new file mode 100644 index 00000000000..d24e0a10c8b --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/CustomMetricType.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace CustomMetricTypeMapper + { + + static const int string_list_HASH = HashingUtils::HashString("string-list"); + static const int ip_address_list_HASH = HashingUtils::HashString("ip-address-list"); + static const int number_list_HASH = HashingUtils::HashString("number-list"); + static const int number_HASH = HashingUtils::HashString("number"); + + + CustomMetricType GetCustomMetricTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == string_list_HASH) + { + return CustomMetricType::string_list; + } + else if (hashCode == ip_address_list_HASH) + { + return CustomMetricType::ip_address_list; + } + else if (hashCode == number_list_HASH) + { + return CustomMetricType::number_list; + } + else if (hashCode == number_HASH) + { + return CustomMetricType::number; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return CustomMetricType::NOT_SET; + } + + Aws::String GetNameForCustomMetricType(CustomMetricType enumValue) + { + switch(enumValue) + { + case CustomMetricType::string_list: + return "string-list"; + case CustomMetricType::ip_address_list: + return "ip-address-list"; + case CustomMetricType::number_list: + return "number-list"; + case CustomMetricType::number: + return "number"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CustomMetricTypeMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/DeleteCustomMetricRequest.cpp b/aws-cpp-sdk-iot/source/model/DeleteCustomMetricRequest.cpp new file mode 100644 index 00000000000..71a05becd21 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DeleteCustomMetricRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteCustomMetricRequest::DeleteCustomMetricRequest() : + m_metricNameHasBeenSet(false) +{ +} + +Aws::String DeleteCustomMetricRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/DeleteCustomMetricResult.cpp b/aws-cpp-sdk-iot/source/model/DeleteCustomMetricResult.cpp new file mode 100644 index 00000000000..dd490d75973 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DeleteCustomMetricResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteCustomMetricResult::DeleteCustomMetricResult() +{ +} + +DeleteCustomMetricResult::DeleteCustomMetricResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteCustomMetricResult& DeleteCustomMetricResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/DescribeCustomMetricRequest.cpp b/aws-cpp-sdk-iot/source/model/DescribeCustomMetricRequest.cpp new file mode 100644 index 00000000000..96f1df9dc7e --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DescribeCustomMetricRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeCustomMetricRequest::DescribeCustomMetricRequest() : + m_metricNameHasBeenSet(false) +{ +} + +Aws::String DescribeCustomMetricRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/DescribeCustomMetricResult.cpp b/aws-cpp-sdk-iot/source/model/DescribeCustomMetricResult.cpp new file mode 100644 index 00000000000..cdecd64a8d6 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DescribeCustomMetricResult.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeCustomMetricResult::DescribeCustomMetricResult() : + m_metricType(CustomMetricType::NOT_SET) +{ +} + +DescribeCustomMetricResult::DescribeCustomMetricResult(const Aws::AmazonWebServiceResult& result) : + m_metricType(CustomMetricType::NOT_SET) +{ + *this = result; +} + +DescribeCustomMetricResult& DescribeCustomMetricResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("metricName")) + { + m_metricName = jsonValue.GetString("metricName"); + + } + + if(jsonValue.ValueExists("metricArn")) + { + m_metricArn = jsonValue.GetString("metricArn"); + + } + + if(jsonValue.ValueExists("metricType")) + { + m_metricType = CustomMetricTypeMapper::GetCustomMetricTypeForName(jsonValue.GetString("metricType")); + + } + + if(jsonValue.ValueExists("displayName")) + { + m_displayName = jsonValue.GetString("displayName"); + + } + + if(jsonValue.ValueExists("creationDate")) + { + m_creationDate = jsonValue.GetDouble("creationDate"); + + } + + if(jsonValue.ValueExists("lastModifiedDate")) + { + m_lastModifiedDate = jsonValue.GetDouble("lastModifiedDate"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskRequest.cpp b/aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskRequest.cpp new file mode 100644 index 00000000000..19e80a151dd --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeDetectMitigationActionsTaskRequest::DescribeDetectMitigationActionsTaskRequest() : + m_taskIdHasBeenSet(false) +{ +} + +Aws::String DescribeDetectMitigationActionsTaskRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskResult.cpp b/aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskResult.cpp new file mode 100644 index 00000000000..33beadcfe54 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DescribeDetectMitigationActionsTaskResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeDetectMitigationActionsTaskResult::DescribeDetectMitigationActionsTaskResult() +{ +} + +DescribeDetectMitigationActionsTaskResult::DescribeDetectMitigationActionsTaskResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeDetectMitigationActionsTaskResult& DescribeDetectMitigationActionsTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("taskSummary")) + { + m_taskSummary = jsonValue.GetObject("taskSummary"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecution.cpp b/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecution.cpp new file mode 100644 index 00000000000..903c3023800 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecution.cpp @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +DetectMitigationActionExecution::DetectMitigationActionExecution() : + m_taskIdHasBeenSet(false), + m_violationIdHasBeenSet(false), + m_actionNameHasBeenSet(false), + m_thingNameHasBeenSet(false), + m_executionStartDateHasBeenSet(false), + m_executionEndDateHasBeenSet(false), + m_status(DetectMitigationActionExecutionStatus::NOT_SET), + m_statusHasBeenSet(false), + m_errorCodeHasBeenSet(false), + m_messageHasBeenSet(false) +{ +} + +DetectMitigationActionExecution::DetectMitigationActionExecution(JsonView jsonValue) : + m_taskIdHasBeenSet(false), + m_violationIdHasBeenSet(false), + m_actionNameHasBeenSet(false), + m_thingNameHasBeenSet(false), + m_executionStartDateHasBeenSet(false), + m_executionEndDateHasBeenSet(false), + m_status(DetectMitigationActionExecutionStatus::NOT_SET), + m_statusHasBeenSet(false), + m_errorCodeHasBeenSet(false), + m_messageHasBeenSet(false) +{ + *this = jsonValue; +} + +DetectMitigationActionExecution& DetectMitigationActionExecution::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("taskId")) + { + m_taskId = jsonValue.GetString("taskId"); + + m_taskIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("violationId")) + { + m_violationId = jsonValue.GetString("violationId"); + + m_violationIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("actionName")) + { + m_actionName = jsonValue.GetString("actionName"); + + m_actionNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("thingName")) + { + m_thingName = jsonValue.GetString("thingName"); + + m_thingNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("executionStartDate")) + { + m_executionStartDate = jsonValue.GetDouble("executionStartDate"); + + m_executionStartDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("executionEndDate")) + { + m_executionEndDate = jsonValue.GetDouble("executionEndDate"); + + m_executionEndDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = DetectMitigationActionExecutionStatusMapper::GetDetectMitigationActionExecutionStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("errorCode")) + { + m_errorCode = jsonValue.GetString("errorCode"); + + m_errorCodeHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue DetectMitigationActionExecution::Jsonize() const +{ + JsonValue payload; + + if(m_taskIdHasBeenSet) + { + payload.WithString("taskId", m_taskId); + + } + + if(m_violationIdHasBeenSet) + { + payload.WithString("violationId", m_violationId); + + } + + if(m_actionNameHasBeenSet) + { + payload.WithString("actionName", m_actionName); + + } + + if(m_thingNameHasBeenSet) + { + payload.WithString("thingName", m_thingName); + + } + + if(m_executionStartDateHasBeenSet) + { + payload.WithDouble("executionStartDate", m_executionStartDate.SecondsWithMSPrecision()); + } + + if(m_executionEndDateHasBeenSet) + { + payload.WithDouble("executionEndDate", m_executionEndDate.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", DetectMitigationActionExecutionStatusMapper::GetNameForDetectMitigationActionExecutionStatus(m_status)); + } + + if(m_errorCodeHasBeenSet) + { + payload.WithString("errorCode", m_errorCode); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp b/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp new file mode 100644 index 00000000000..68a9334a1e7 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DetectMitigationActionExecutionStatus.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace DetectMitigationActionExecutionStatusMapper + { + + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int SKIPPED_HASH = HashingUtils::HashString("SKIPPED"); + + + DetectMitigationActionExecutionStatus GetDetectMitigationActionExecutionStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IN_PROGRESS_HASH) + { + return DetectMitigationActionExecutionStatus::IN_PROGRESS; + } + else if (hashCode == SUCCESSFUL_HASH) + { + return DetectMitigationActionExecutionStatus::SUCCESSFUL; + } + else if (hashCode == FAILED_HASH) + { + return DetectMitigationActionExecutionStatus::FAILED; + } + else if (hashCode == SKIPPED_HASH) + { + return DetectMitigationActionExecutionStatus::SKIPPED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DetectMitigationActionExecutionStatus::NOT_SET; + } + + Aws::String GetNameForDetectMitigationActionExecutionStatus(DetectMitigationActionExecutionStatus enumValue) + { + switch(enumValue) + { + case DetectMitigationActionExecutionStatus::IN_PROGRESS: + return "IN_PROGRESS"; + case DetectMitigationActionExecutionStatus::SUCCESSFUL: + return "SUCCESSFUL"; + case DetectMitigationActionExecutionStatus::FAILED: + return "FAILED"; + case DetectMitigationActionExecutionStatus::SKIPPED: + return "SKIPPED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DetectMitigationActionExecutionStatusMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatistics.cpp b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatistics.cpp new file mode 100644 index 00000000000..15ff9a07b3b --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatistics.cpp @@ -0,0 +1,95 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +DetectMitigationActionsTaskStatistics::DetectMitigationActionsTaskStatistics() : + m_actionsExecuted(0), + m_actionsExecutedHasBeenSet(false), + m_actionsSkipped(0), + m_actionsSkippedHasBeenSet(false), + m_actionsFailed(0), + m_actionsFailedHasBeenSet(false) +{ +} + +DetectMitigationActionsTaskStatistics::DetectMitigationActionsTaskStatistics(JsonView jsonValue) : + m_actionsExecuted(0), + m_actionsExecutedHasBeenSet(false), + m_actionsSkipped(0), + m_actionsSkippedHasBeenSet(false), + m_actionsFailed(0), + m_actionsFailedHasBeenSet(false) +{ + *this = jsonValue; +} + +DetectMitigationActionsTaskStatistics& DetectMitigationActionsTaskStatistics::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("actionsExecuted")) + { + m_actionsExecuted = jsonValue.GetInt64("actionsExecuted"); + + m_actionsExecutedHasBeenSet = true; + } + + if(jsonValue.ValueExists("actionsSkipped")) + { + m_actionsSkipped = jsonValue.GetInt64("actionsSkipped"); + + m_actionsSkippedHasBeenSet = true; + } + + if(jsonValue.ValueExists("actionsFailed")) + { + m_actionsFailed = jsonValue.GetInt64("actionsFailed"); + + m_actionsFailedHasBeenSet = true; + } + + return *this; +} + +JsonValue DetectMitigationActionsTaskStatistics::Jsonize() const +{ + JsonValue payload; + + if(m_actionsExecutedHasBeenSet) + { + payload.WithInt64("actionsExecuted", m_actionsExecuted); + + } + + if(m_actionsSkippedHasBeenSet) + { + payload.WithInt64("actionsSkipped", m_actionsSkipped); + + } + + if(m_actionsFailedHasBeenSet) + { + payload.WithInt64("actionsFailed", m_actionsFailed); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp new file mode 100644 index 00000000000..98f6ff84361 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskStatus.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace DetectMitigationActionsTaskStatusMapper + { + + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int SUCCESSFUL_HASH = HashingUtils::HashString("SUCCESSFUL"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + + + DetectMitigationActionsTaskStatus GetDetectMitigationActionsTaskStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IN_PROGRESS_HASH) + { + return DetectMitigationActionsTaskStatus::IN_PROGRESS; + } + else if (hashCode == SUCCESSFUL_HASH) + { + return DetectMitigationActionsTaskStatus::SUCCESSFUL; + } + else if (hashCode == FAILED_HASH) + { + return DetectMitigationActionsTaskStatus::FAILED; + } + else if (hashCode == CANCELED_HASH) + { + return DetectMitigationActionsTaskStatus::CANCELED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DetectMitigationActionsTaskStatus::NOT_SET; + } + + Aws::String GetNameForDetectMitigationActionsTaskStatus(DetectMitigationActionsTaskStatus enumValue) + { + switch(enumValue) + { + case DetectMitigationActionsTaskStatus::IN_PROGRESS: + return "IN_PROGRESS"; + case DetectMitigationActionsTaskStatus::SUCCESSFUL: + return "SUCCESSFUL"; + case DetectMitigationActionsTaskStatus::FAILED: + return "FAILED"; + case DetectMitigationActionsTaskStatus::CANCELED: + return "CANCELED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DetectMitigationActionsTaskStatusMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskSummary.cpp b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskSummary.cpp new file mode 100644 index 00000000000..b2945987643 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskSummary.cpp @@ -0,0 +1,205 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +DetectMitigationActionsTaskSummary::DetectMitigationActionsTaskSummary() : + m_taskIdHasBeenSet(false), + m_taskStatus(DetectMitigationActionsTaskStatus::NOT_SET), + m_taskStatusHasBeenSet(false), + m_taskStartTimeHasBeenSet(false), + m_taskEndTimeHasBeenSet(false), + m_targetHasBeenSet(false), + m_violationEventOccurrenceRangeHasBeenSet(false), + m_onlyActiveViolationsIncluded(false), + m_onlyActiveViolationsIncludedHasBeenSet(false), + m_suppressedAlertsIncluded(false), + m_suppressedAlertsIncludedHasBeenSet(false), + m_actionsDefinitionHasBeenSet(false), + m_taskStatisticsHasBeenSet(false) +{ +} + +DetectMitigationActionsTaskSummary::DetectMitigationActionsTaskSummary(JsonView jsonValue) : + m_taskIdHasBeenSet(false), + m_taskStatus(DetectMitigationActionsTaskStatus::NOT_SET), + m_taskStatusHasBeenSet(false), + m_taskStartTimeHasBeenSet(false), + m_taskEndTimeHasBeenSet(false), + m_targetHasBeenSet(false), + m_violationEventOccurrenceRangeHasBeenSet(false), + m_onlyActiveViolationsIncluded(false), + m_onlyActiveViolationsIncludedHasBeenSet(false), + m_suppressedAlertsIncluded(false), + m_suppressedAlertsIncludedHasBeenSet(false), + m_actionsDefinitionHasBeenSet(false), + m_taskStatisticsHasBeenSet(false) +{ + *this = jsonValue; +} + +DetectMitigationActionsTaskSummary& DetectMitigationActionsTaskSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("taskId")) + { + m_taskId = jsonValue.GetString("taskId"); + + m_taskIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("taskStatus")) + { + m_taskStatus = DetectMitigationActionsTaskStatusMapper::GetDetectMitigationActionsTaskStatusForName(jsonValue.GetString("taskStatus")); + + m_taskStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("taskStartTime")) + { + m_taskStartTime = jsonValue.GetDouble("taskStartTime"); + + m_taskStartTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("taskEndTime")) + { + m_taskEndTime = jsonValue.GetDouble("taskEndTime"); + + m_taskEndTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("target")) + { + m_target = jsonValue.GetObject("target"); + + m_targetHasBeenSet = true; + } + + if(jsonValue.ValueExists("violationEventOccurrenceRange")) + { + m_violationEventOccurrenceRange = jsonValue.GetObject("violationEventOccurrenceRange"); + + m_violationEventOccurrenceRangeHasBeenSet = true; + } + + if(jsonValue.ValueExists("onlyActiveViolationsIncluded")) + { + m_onlyActiveViolationsIncluded = jsonValue.GetBool("onlyActiveViolationsIncluded"); + + m_onlyActiveViolationsIncludedHasBeenSet = true; + } + + if(jsonValue.ValueExists("suppressedAlertsIncluded")) + { + m_suppressedAlertsIncluded = jsonValue.GetBool("suppressedAlertsIncluded"); + + m_suppressedAlertsIncludedHasBeenSet = true; + } + + if(jsonValue.ValueExists("actionsDefinition")) + { + Array actionsDefinitionJsonList = jsonValue.GetArray("actionsDefinition"); + for(unsigned actionsDefinitionIndex = 0; actionsDefinitionIndex < actionsDefinitionJsonList.GetLength(); ++actionsDefinitionIndex) + { + m_actionsDefinition.push_back(actionsDefinitionJsonList[actionsDefinitionIndex].AsObject()); + } + m_actionsDefinitionHasBeenSet = true; + } + + if(jsonValue.ValueExists("taskStatistics")) + { + m_taskStatistics = jsonValue.GetObject("taskStatistics"); + + m_taskStatisticsHasBeenSet = true; + } + + return *this; +} + +JsonValue DetectMitigationActionsTaskSummary::Jsonize() const +{ + JsonValue payload; + + if(m_taskIdHasBeenSet) + { + payload.WithString("taskId", m_taskId); + + } + + if(m_taskStatusHasBeenSet) + { + payload.WithString("taskStatus", DetectMitigationActionsTaskStatusMapper::GetNameForDetectMitigationActionsTaskStatus(m_taskStatus)); + } + + if(m_taskStartTimeHasBeenSet) + { + payload.WithDouble("taskStartTime", m_taskStartTime.SecondsWithMSPrecision()); + } + + if(m_taskEndTimeHasBeenSet) + { + payload.WithDouble("taskEndTime", m_taskEndTime.SecondsWithMSPrecision()); + } + + if(m_targetHasBeenSet) + { + payload.WithObject("target", m_target.Jsonize()); + + } + + if(m_violationEventOccurrenceRangeHasBeenSet) + { + payload.WithObject("violationEventOccurrenceRange", m_violationEventOccurrenceRange.Jsonize()); + + } + + if(m_onlyActiveViolationsIncludedHasBeenSet) + { + payload.WithBool("onlyActiveViolationsIncluded", m_onlyActiveViolationsIncluded); + + } + + if(m_suppressedAlertsIncludedHasBeenSet) + { + payload.WithBool("suppressedAlertsIncluded", m_suppressedAlertsIncluded); + + } + + if(m_actionsDefinitionHasBeenSet) + { + Array actionsDefinitionJsonList(m_actionsDefinition.size()); + for(unsigned actionsDefinitionIndex = 0; actionsDefinitionIndex < actionsDefinitionJsonList.GetLength(); ++actionsDefinitionIndex) + { + actionsDefinitionJsonList[actionsDefinitionIndex].AsObject(m_actionsDefinition[actionsDefinitionIndex].Jsonize()); + } + payload.WithArray("actionsDefinition", std::move(actionsDefinitionJsonList)); + + } + + if(m_taskStatisticsHasBeenSet) + { + payload.WithObject("taskStatistics", m_taskStatistics.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskTarget.cpp b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskTarget.cpp new file mode 100644 index 00000000000..c7a20ea388a --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/DetectMitigationActionsTaskTarget.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +DetectMitigationActionsTaskTarget::DetectMitigationActionsTaskTarget() : + m_violationIdsHasBeenSet(false), + m_securityProfileNameHasBeenSet(false), + m_behaviorNameHasBeenSet(false) +{ +} + +DetectMitigationActionsTaskTarget::DetectMitigationActionsTaskTarget(JsonView jsonValue) : + m_violationIdsHasBeenSet(false), + m_securityProfileNameHasBeenSet(false), + m_behaviorNameHasBeenSet(false) +{ + *this = jsonValue; +} + +DetectMitigationActionsTaskTarget& DetectMitigationActionsTaskTarget::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("violationIds")) + { + Array violationIdsJsonList = jsonValue.GetArray("violationIds"); + for(unsigned violationIdsIndex = 0; violationIdsIndex < violationIdsJsonList.GetLength(); ++violationIdsIndex) + { + m_violationIds.push_back(violationIdsJsonList[violationIdsIndex].AsString()); + } + m_violationIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("securityProfileName")) + { + m_securityProfileName = jsonValue.GetString("securityProfileName"); + + m_securityProfileNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("behaviorName")) + { + m_behaviorName = jsonValue.GetString("behaviorName"); + + m_behaviorNameHasBeenSet = true; + } + + return *this; +} + +JsonValue DetectMitigationActionsTaskTarget::Jsonize() const +{ + JsonValue payload; + + if(m_violationIdsHasBeenSet) + { + Array violationIdsJsonList(m_violationIds.size()); + for(unsigned violationIdsIndex = 0; violationIdsIndex < violationIdsJsonList.GetLength(); ++violationIdsIndex) + { + violationIdsJsonList[violationIdsIndex].AsString(m_violationIds[violationIdsIndex]); + } + payload.WithArray("violationIds", std::move(violationIdsJsonList)); + + } + + if(m_securityProfileNameHasBeenSet) + { + payload.WithString("securityProfileName", m_securityProfileName); + + } + + if(m_behaviorNameHasBeenSet) + { + payload.WithString("behaviorName", m_behaviorName); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesRequest.cpp b/aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesRequest.cpp new file mode 100644 index 00000000000..18dfb9fced2 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetBehaviorModelTrainingSummariesRequest::GetBehaviorModelTrainingSummariesRequest() : + m_securityProfileNameHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String GetBehaviorModelTrainingSummariesRequest::SerializePayload() const +{ + return {}; +} + +void GetBehaviorModelTrainingSummariesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_securityProfileNameHasBeenSet) + { + ss << m_securityProfileName; + uri.AddQueryStringParameter("securityProfileName", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesResult.cpp b/aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesResult.cpp new file mode 100644 index 00000000000..bcb6cb9b619 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/GetBehaviorModelTrainingSummariesResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetBehaviorModelTrainingSummariesResult::GetBehaviorModelTrainingSummariesResult() +{ +} + +GetBehaviorModelTrainingSummariesResult::GetBehaviorModelTrainingSummariesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetBehaviorModelTrainingSummariesResult& GetBehaviorModelTrainingSummariesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("summaries")) + { + Array summariesJsonList = jsonValue.GetArray("summaries"); + for(unsigned summariesIndex = 0; summariesIndex < summariesJsonList.GetLength(); ++summariesIndex) + { + m_summaries.push_back(summariesJsonList[summariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/KafkaAction.cpp b/aws-cpp-sdk-iot/source/model/KafkaAction.cpp new file mode 100644 index 00000000000..81d2e5f7d72 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/KafkaAction.cpp @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +KafkaAction::KafkaAction() : + m_destinationArnHasBeenSet(false), + m_topicHasBeenSet(false), + m_keyHasBeenSet(false), + m_partitionHasBeenSet(false), + m_clientPropertiesHasBeenSet(false) +{ +} + +KafkaAction::KafkaAction(JsonView jsonValue) : + m_destinationArnHasBeenSet(false), + m_topicHasBeenSet(false), + m_keyHasBeenSet(false), + m_partitionHasBeenSet(false), + m_clientPropertiesHasBeenSet(false) +{ + *this = jsonValue; +} + +KafkaAction& KafkaAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("destinationArn")) + { + m_destinationArn = jsonValue.GetString("destinationArn"); + + m_destinationArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("topic")) + { + m_topic = jsonValue.GetString("topic"); + + m_topicHasBeenSet = true; + } + + if(jsonValue.ValueExists("key")) + { + m_key = jsonValue.GetString("key"); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("partition")) + { + m_partition = jsonValue.GetString("partition"); + + m_partitionHasBeenSet = true; + } + + if(jsonValue.ValueExists("clientProperties")) + { + Aws::Map clientPropertiesJsonMap = jsonValue.GetObject("clientProperties").GetAllObjects(); + for(auto& clientPropertiesItem : clientPropertiesJsonMap) + { + m_clientProperties[clientPropertiesItem.first] = clientPropertiesItem.second.AsString(); + } + m_clientPropertiesHasBeenSet = true; + } + + return *this; +} + +JsonValue KafkaAction::Jsonize() const +{ + JsonValue payload; + + if(m_destinationArnHasBeenSet) + { + payload.WithString("destinationArn", m_destinationArn); + + } + + if(m_topicHasBeenSet) + { + payload.WithString("topic", m_topic); + + } + + if(m_keyHasBeenSet) + { + payload.WithString("key", m_key); + + } + + if(m_partitionHasBeenSet) + { + payload.WithString("partition", m_partition); + + } + + if(m_clientPropertiesHasBeenSet) + { + JsonValue clientPropertiesJsonMap; + for(auto& clientPropertiesItem : m_clientProperties) + { + clientPropertiesJsonMap.WithString(clientPropertiesItem.first, clientPropertiesItem.second); + } + payload.WithObject("clientProperties", std::move(clientPropertiesJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/ListActiveViolationsRequest.cpp b/aws-cpp-sdk-iot/source/model/ListActiveViolationsRequest.cpp index fd410a0bd90..46e8ee1ced4 100644 --- a/aws-cpp-sdk-iot/source/model/ListActiveViolationsRequest.cpp +++ b/aws-cpp-sdk-iot/source/model/ListActiveViolationsRequest.cpp @@ -18,6 +18,10 @@ using namespace Aws::Http; ListActiveViolationsRequest::ListActiveViolationsRequest() : m_thingNameHasBeenSet(false), m_securityProfileNameHasBeenSet(false), + m_behaviorCriteriaType(BehaviorCriteriaType::NOT_SET), + m_behaviorCriteriaTypeHasBeenSet(false), + m_listSuppressedAlerts(false), + m_listSuppressedAlertsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) @@ -46,6 +50,20 @@ void ListActiveViolationsRequest::AddQueryStringParameters(URI& uri) const ss.str(""); } + if(m_behaviorCriteriaTypeHasBeenSet) + { + ss << BehaviorCriteriaTypeMapper::GetNameForBehaviorCriteriaType(m_behaviorCriteriaType); + uri.AddQueryStringParameter("behaviorCriteriaType", ss.str()); + ss.str(""); + } + + if(m_listSuppressedAlertsHasBeenSet) + { + ss << m_listSuppressedAlerts; + uri.AddQueryStringParameter("listSuppressedAlerts", ss.str()); + ss.str(""); + } + if(m_nextTokenHasBeenSet) { ss << m_nextToken; diff --git a/aws-cpp-sdk-iot/source/model/ListCustomMetricsRequest.cpp b/aws-cpp-sdk-iot/source/model/ListCustomMetricsRequest.cpp new file mode 100644 index 00000000000..ef70f8b6b00 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ListCustomMetricsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListCustomMetricsRequest::ListCustomMetricsRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListCustomMetricsRequest::SerializePayload() const +{ + return {}; +} + +void ListCustomMetricsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iot/source/model/ListCustomMetricsResult.cpp b/aws-cpp-sdk-iot/source/model/ListCustomMetricsResult.cpp new file mode 100644 index 00000000000..3fcae4a54bc --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ListCustomMetricsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListCustomMetricsResult::ListCustomMetricsResult() +{ +} + +ListCustomMetricsResult::ListCustomMetricsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListCustomMetricsResult& ListCustomMetricsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("metricNames")) + { + Array metricNamesJsonList = jsonValue.GetArray("metricNames"); + for(unsigned metricNamesIndex = 0; metricNamesIndex < metricNamesJsonList.GetLength(); ++metricNamesIndex) + { + m_metricNames.push_back(metricNamesJsonList[metricNamesIndex].AsString()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsRequest.cpp b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsRequest.cpp new file mode 100644 index 00000000000..9f8ace1f805 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsRequest.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDetectMitigationActionsExecutionsRequest::ListDetectMitigationActionsExecutionsRequest() : + m_taskIdHasBeenSet(false), + m_violationIdHasBeenSet(false), + m_thingNameHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListDetectMitigationActionsExecutionsRequest::SerializePayload() const +{ + return {}; +} + +void ListDetectMitigationActionsExecutionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_taskIdHasBeenSet) + { + ss << m_taskId; + uri.AddQueryStringParameter("taskId", ss.str()); + ss.str(""); + } + + if(m_violationIdHasBeenSet) + { + ss << m_violationId; + uri.AddQueryStringParameter("violationId", ss.str()); + ss.str(""); + } + + if(m_thingNameHasBeenSet) + { + ss << m_thingName; + uri.AddQueryStringParameter("thingName", ss.str()); + ss.str(""); + } + + if(m_startTimeHasBeenSet) + { + ss << m_startTime.ToGmtString(DateFormat::RFC822); + uri.AddQueryStringParameter("startTime", ss.str()); + ss.str(""); + } + + if(m_endTimeHasBeenSet) + { + ss << m_endTime.ToGmtString(DateFormat::RFC822); + uri.AddQueryStringParameter("endTime", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsResult.cpp b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsResult.cpp new file mode 100644 index 00000000000..8d1cd1c7493 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsExecutionsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDetectMitigationActionsExecutionsResult::ListDetectMitigationActionsExecutionsResult() +{ +} + +ListDetectMitigationActionsExecutionsResult::ListDetectMitigationActionsExecutionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDetectMitigationActionsExecutionsResult& ListDetectMitigationActionsExecutionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("actionsExecutions")) + { + Array actionsExecutionsJsonList = jsonValue.GetArray("actionsExecutions"); + for(unsigned actionsExecutionsIndex = 0; actionsExecutionsIndex < actionsExecutionsJsonList.GetLength(); ++actionsExecutionsIndex) + { + m_actionsExecutions.push_back(actionsExecutionsJsonList[actionsExecutionsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksRequest.cpp b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksRequest.cpp new file mode 100644 index 00000000000..5042ca2f03a --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksRequest.cpp @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDetectMitigationActionsTasksRequest::ListDetectMitigationActionsTasksRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false) +{ +} + +Aws::String ListDetectMitigationActionsTasksRequest::SerializePayload() const +{ + return {}; +} + +void ListDetectMitigationActionsTasksRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_startTimeHasBeenSet) + { + ss << m_startTime.ToGmtString(DateFormat::RFC822); + uri.AddQueryStringParameter("startTime", ss.str()); + ss.str(""); + } + + if(m_endTimeHasBeenSet) + { + ss << m_endTime.ToGmtString(DateFormat::RFC822); + uri.AddQueryStringParameter("endTime", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksResult.cpp b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksResult.cpp new file mode 100644 index 00000000000..5ff93922508 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ListDetectMitigationActionsTasksResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDetectMitigationActionsTasksResult::ListDetectMitigationActionsTasksResult() +{ +} + +ListDetectMitigationActionsTasksResult::ListDetectMitigationActionsTasksResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDetectMitigationActionsTasksResult& ListDetectMitigationActionsTasksResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("tasks")) + { + Array tasksJsonList = jsonValue.GetArray("tasks"); + for(unsigned tasksIndex = 0; tasksIndex < tasksJsonList.GetLength(); ++tasksIndex) + { + m_tasks.push_back(tasksJsonList[tasksIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/ListSecurityProfilesRequest.cpp b/aws-cpp-sdk-iot/source/model/ListSecurityProfilesRequest.cpp index d1f02dda6f4..c1251253951 100644 --- a/aws-cpp-sdk-iot/source/model/ListSecurityProfilesRequest.cpp +++ b/aws-cpp-sdk-iot/source/model/ListSecurityProfilesRequest.cpp @@ -19,7 +19,8 @@ ListSecurityProfilesRequest::ListSecurityProfilesRequest() : m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), - m_dimensionNameHasBeenSet(false) + m_dimensionNameHasBeenSet(false), + m_metricNameHasBeenSet(false) { } @@ -52,6 +53,13 @@ void ListSecurityProfilesRequest::AddQueryStringParameters(URI& uri) const ss.str(""); } + if(m_metricNameHasBeenSet) + { + ss << m_metricName; + uri.AddQueryStringParameter("metricName", ss.str()); + ss.str(""); + } + } diff --git a/aws-cpp-sdk-iot/source/model/ListViolationEventsRequest.cpp b/aws-cpp-sdk-iot/source/model/ListViolationEventsRequest.cpp index 5afc7d79591..e3ff164f54e 100644 --- a/aws-cpp-sdk-iot/source/model/ListViolationEventsRequest.cpp +++ b/aws-cpp-sdk-iot/source/model/ListViolationEventsRequest.cpp @@ -20,6 +20,10 @@ ListViolationEventsRequest::ListViolationEventsRequest() : m_endTimeHasBeenSet(false), m_thingNameHasBeenSet(false), m_securityProfileNameHasBeenSet(false), + m_behaviorCriteriaType(BehaviorCriteriaType::NOT_SET), + m_behaviorCriteriaTypeHasBeenSet(false), + m_listSuppressedAlerts(false), + m_listSuppressedAlertsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) @@ -62,6 +66,20 @@ void ListViolationEventsRequest::AddQueryStringParameters(URI& uri) const ss.str(""); } + if(m_behaviorCriteriaTypeHasBeenSet) + { + ss << BehaviorCriteriaTypeMapper::GetNameForBehaviorCriteriaType(m_behaviorCriteriaType); + uri.AddQueryStringParameter("behaviorCriteriaType", ss.str()); + ss.str(""); + } + + if(m_listSuppressedAlertsHasBeenSet) + { + ss << m_listSuppressedAlerts; + uri.AddQueryStringParameter("listSuppressedAlerts", ss.str()); + ss.str(""); + } + if(m_nextTokenHasBeenSet) { ss << m_nextToken; diff --git a/aws-cpp-sdk-iot/source/model/MachineLearningDetectionConfig.cpp b/aws-cpp-sdk-iot/source/model/MachineLearningDetectionConfig.cpp new file mode 100644 index 00000000000..2ccb0ab2bc1 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/MachineLearningDetectionConfig.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +MachineLearningDetectionConfig::MachineLearningDetectionConfig() : + m_confidenceLevel(ConfidenceLevel::NOT_SET), + m_confidenceLevelHasBeenSet(false) +{ +} + +MachineLearningDetectionConfig::MachineLearningDetectionConfig(JsonView jsonValue) : + m_confidenceLevel(ConfidenceLevel::NOT_SET), + m_confidenceLevelHasBeenSet(false) +{ + *this = jsonValue; +} + +MachineLearningDetectionConfig& MachineLearningDetectionConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("confidenceLevel")) + { + m_confidenceLevel = ConfidenceLevelMapper::GetConfidenceLevelForName(jsonValue.GetString("confidenceLevel")); + + m_confidenceLevelHasBeenSet = true; + } + + return *this; +} + +JsonValue MachineLearningDetectionConfig::Jsonize() const +{ + JsonValue payload; + + if(m_confidenceLevelHasBeenSet) + { + payload.WithString("confidenceLevel", ConfidenceLevelMapper::GetNameForConfidenceLevel(m_confidenceLevel)); + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/MetricValue.cpp b/aws-cpp-sdk-iot/source/model/MetricValue.cpp index 83e7c282cf7..7ca603279f5 100644 --- a/aws-cpp-sdk-iot/source/model/MetricValue.cpp +++ b/aws-cpp-sdk-iot/source/model/MetricValue.cpp @@ -22,7 +22,11 @@ MetricValue::MetricValue() : m_count(0), m_countHasBeenSet(false), m_cidrsHasBeenSet(false), - m_portsHasBeenSet(false) + m_portsHasBeenSet(false), + m_number(0.0), + m_numberHasBeenSet(false), + m_numbersHasBeenSet(false), + m_stringsHasBeenSet(false) { } @@ -30,7 +34,11 @@ MetricValue::MetricValue(JsonView jsonValue) : m_count(0), m_countHasBeenSet(false), m_cidrsHasBeenSet(false), - m_portsHasBeenSet(false) + m_portsHasBeenSet(false), + m_number(0.0), + m_numberHasBeenSet(false), + m_numbersHasBeenSet(false), + m_stringsHasBeenSet(false) { *this = jsonValue; } @@ -64,6 +72,33 @@ MetricValue& MetricValue::operator =(JsonView jsonValue) m_portsHasBeenSet = true; } + if(jsonValue.ValueExists("number")) + { + m_number = jsonValue.GetDouble("number"); + + m_numberHasBeenSet = true; + } + + if(jsonValue.ValueExists("numbers")) + { + Array numbersJsonList = jsonValue.GetArray("numbers"); + for(unsigned numbersIndex = 0; numbersIndex < numbersJsonList.GetLength(); ++numbersIndex) + { + m_numbers.push_back(numbersJsonList[numbersIndex].AsDouble()); + } + m_numbersHasBeenSet = true; + } + + if(jsonValue.ValueExists("strings")) + { + Array stringsJsonList = jsonValue.GetArray("strings"); + for(unsigned stringsIndex = 0; stringsIndex < stringsJsonList.GetLength(); ++stringsIndex) + { + m_strings.push_back(stringsJsonList[stringsIndex].AsString()); + } + m_stringsHasBeenSet = true; + } + return *this; } @@ -99,6 +134,34 @@ JsonValue MetricValue::Jsonize() const } + if(m_numberHasBeenSet) + { + payload.WithDouble("number", m_number); + + } + + if(m_numbersHasBeenSet) + { + Array numbersJsonList(m_numbers.size()); + for(unsigned numbersIndex = 0; numbersIndex < numbersJsonList.GetLength(); ++numbersIndex) + { + numbersJsonList[numbersIndex].AsDouble(m_numbers[numbersIndex]); + } + payload.WithArray("numbers", std::move(numbersJsonList)); + + } + + if(m_stringsHasBeenSet) + { + Array stringsJsonList(m_strings.size()); + for(unsigned stringsIndex = 0; stringsIndex < stringsJsonList.GetLength(); ++stringsIndex) + { + stringsJsonList[stringsIndex].AsString(m_strings[stringsIndex]); + } + payload.WithArray("strings", std::move(stringsJsonList)); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/ModelStatus.cpp b/aws-cpp-sdk-iot/source/model/ModelStatus.cpp new file mode 100644 index 00000000000..f99d1b733c8 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ModelStatus.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoT + { + namespace Model + { + namespace ModelStatusMapper + { + + static const int PENDING_BUILD_HASH = HashingUtils::HashString("PENDING_BUILD"); + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); + + + ModelStatus GetModelStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PENDING_BUILD_HASH) + { + return ModelStatus::PENDING_BUILD; + } + else if (hashCode == ACTIVE_HASH) + { + return ModelStatus::ACTIVE; + } + else if (hashCode == EXPIRED_HASH) + { + return ModelStatus::EXPIRED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ModelStatus::NOT_SET; + } + + Aws::String GetNameForModelStatus(ModelStatus enumValue) + { + switch(enumValue) + { + case ModelStatus::PENDING_BUILD: + return "PENDING_BUILD"; + case ModelStatus::ACTIVE: + return "ACTIVE"; + case ModelStatus::EXPIRED: + return "EXPIRED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ModelStatusMapper + } // namespace Model + } // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskRequest.cpp b/aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskRequest.cpp new file mode 100644 index 00000000000..12b1212359b --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskRequest.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartDetectMitigationActionsTaskRequest::StartDetectMitigationActionsTaskRequest() : + m_taskIdHasBeenSet(false), + m_targetHasBeenSet(false), + m_actionsHasBeenSet(false), + m_violationEventOccurrenceRangeHasBeenSet(false), + m_includeOnlyActiveViolations(false), + m_includeOnlyActiveViolationsHasBeenSet(false), + m_includeSuppressedAlerts(false), + m_includeSuppressedAlertsHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String StartDetectMitigationActionsTaskRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_targetHasBeenSet) + { + payload.WithObject("target", m_target.Jsonize()); + + } + + if(m_actionsHasBeenSet) + { + Array actionsJsonList(m_actions.size()); + for(unsigned actionsIndex = 0; actionsIndex < actionsJsonList.GetLength(); ++actionsIndex) + { + actionsJsonList[actionsIndex].AsString(m_actions[actionsIndex]); + } + payload.WithArray("actions", std::move(actionsJsonList)); + + } + + if(m_violationEventOccurrenceRangeHasBeenSet) + { + payload.WithObject("violationEventOccurrenceRange", m_violationEventOccurrenceRange.Jsonize()); + + } + + if(m_includeOnlyActiveViolationsHasBeenSet) + { + payload.WithBool("includeOnlyActiveViolations", m_includeOnlyActiveViolations); + + } + + if(m_includeSuppressedAlertsHasBeenSet) + { + payload.WithBool("includeSuppressedAlerts", m_includeSuppressedAlerts); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("clientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskResult.cpp b/aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskResult.cpp new file mode 100644 index 00000000000..6da302304b2 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/StartDetectMitigationActionsTaskResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartDetectMitigationActionsTaskResult::StartDetectMitigationActionsTaskResult() +{ +} + +StartDetectMitigationActionsTaskResult::StartDetectMitigationActionsTaskResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartDetectMitigationActionsTaskResult& StartDetectMitigationActionsTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("taskId")) + { + m_taskId = jsonValue.GetString("taskId"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/TopicRuleDestination.cpp b/aws-cpp-sdk-iot/source/model/TopicRuleDestination.cpp index b204a64c391..8ce437a9a59 100644 --- a/aws-cpp-sdk-iot/source/model/TopicRuleDestination.cpp +++ b/aws-cpp-sdk-iot/source/model/TopicRuleDestination.cpp @@ -22,8 +22,11 @@ TopicRuleDestination::TopicRuleDestination() : m_arnHasBeenSet(false), m_status(TopicRuleDestinationStatus::NOT_SET), m_statusHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_lastUpdatedAtHasBeenSet(false), m_statusReasonHasBeenSet(false), - m_httpUrlPropertiesHasBeenSet(false) + m_httpUrlPropertiesHasBeenSet(false), + m_vpcPropertiesHasBeenSet(false) { } @@ -31,8 +34,11 @@ TopicRuleDestination::TopicRuleDestination(JsonView jsonValue) : m_arnHasBeenSet(false), m_status(TopicRuleDestinationStatus::NOT_SET), m_statusHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_lastUpdatedAtHasBeenSet(false), m_statusReasonHasBeenSet(false), - m_httpUrlPropertiesHasBeenSet(false) + m_httpUrlPropertiesHasBeenSet(false), + m_vpcPropertiesHasBeenSet(false) { *this = jsonValue; } @@ -53,6 +59,20 @@ TopicRuleDestination& TopicRuleDestination::operator =(JsonView jsonValue) m_statusHasBeenSet = true; } + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedAt")) + { + m_lastUpdatedAt = jsonValue.GetDouble("lastUpdatedAt"); + + m_lastUpdatedAtHasBeenSet = true; + } + if(jsonValue.ValueExists("statusReason")) { m_statusReason = jsonValue.GetString("statusReason"); @@ -67,6 +87,13 @@ TopicRuleDestination& TopicRuleDestination::operator =(JsonView jsonValue) m_httpUrlPropertiesHasBeenSet = true; } + if(jsonValue.ValueExists("vpcProperties")) + { + m_vpcProperties = jsonValue.GetObject("vpcProperties"); + + m_vpcPropertiesHasBeenSet = true; + } + return *this; } @@ -85,6 +112,16 @@ JsonValue TopicRuleDestination::Jsonize() const payload.WithString("status", TopicRuleDestinationStatusMapper::GetNameForTopicRuleDestinationStatus(m_status)); } + if(m_createdAtHasBeenSet) + { + payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); + } + + if(m_lastUpdatedAtHasBeenSet) + { + payload.WithDouble("lastUpdatedAt", m_lastUpdatedAt.SecondsWithMSPrecision()); + } + if(m_statusReasonHasBeenSet) { payload.WithString("statusReason", m_statusReason); @@ -97,6 +134,12 @@ JsonValue TopicRuleDestination::Jsonize() const } + if(m_vpcPropertiesHasBeenSet) + { + payload.WithObject("vpcProperties", m_vpcProperties.Jsonize()); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/TopicRuleDestinationConfiguration.cpp b/aws-cpp-sdk-iot/source/model/TopicRuleDestinationConfiguration.cpp index 2882674e2e2..762bbf17fc4 100644 --- a/aws-cpp-sdk-iot/source/model/TopicRuleDestinationConfiguration.cpp +++ b/aws-cpp-sdk-iot/source/model/TopicRuleDestinationConfiguration.cpp @@ -19,12 +19,14 @@ namespace Model { TopicRuleDestinationConfiguration::TopicRuleDestinationConfiguration() : - m_httpUrlConfigurationHasBeenSet(false) + m_httpUrlConfigurationHasBeenSet(false), + m_vpcConfigurationHasBeenSet(false) { } TopicRuleDestinationConfiguration::TopicRuleDestinationConfiguration(JsonView jsonValue) : - m_httpUrlConfigurationHasBeenSet(false) + m_httpUrlConfigurationHasBeenSet(false), + m_vpcConfigurationHasBeenSet(false) { *this = jsonValue; } @@ -38,6 +40,13 @@ TopicRuleDestinationConfiguration& TopicRuleDestinationConfiguration::operator = m_httpUrlConfigurationHasBeenSet = true; } + if(jsonValue.ValueExists("vpcConfiguration")) + { + m_vpcConfiguration = jsonValue.GetObject("vpcConfiguration"); + + m_vpcConfigurationHasBeenSet = true; + } + return *this; } @@ -51,6 +60,12 @@ JsonValue TopicRuleDestinationConfiguration::Jsonize() const } + if(m_vpcConfigurationHasBeenSet) + { + payload.WithObject("vpcConfiguration", m_vpcConfiguration.Jsonize()); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp b/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp index e84c3e39ed5..5f577021730 100644 --- a/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp +++ b/aws-cpp-sdk-iot/source/model/TopicRuleDestinationStatus.cpp @@ -24,6 +24,7 @@ namespace Aws static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static const int DELETING_HASH = HashingUtils::HashString("DELETING"); TopicRuleDestinationStatus GetTopicRuleDestinationStatusForName(const Aws::String& name) @@ -45,6 +46,10 @@ namespace Aws { return TopicRuleDestinationStatus::ERROR_; } + else if (hashCode == DELETING_HASH) + { + return TopicRuleDestinationStatus::DELETING; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -67,6 +72,8 @@ namespace Aws return "DISABLED"; case TopicRuleDestinationStatus::ERROR_: return "ERROR"; + case TopicRuleDestinationStatus::DELETING: + return "DELETING"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-iot/source/model/TopicRuleDestinationSummary.cpp b/aws-cpp-sdk-iot/source/model/TopicRuleDestinationSummary.cpp index 9a7327f9dc1..28bbb84b1c3 100644 --- a/aws-cpp-sdk-iot/source/model/TopicRuleDestinationSummary.cpp +++ b/aws-cpp-sdk-iot/source/model/TopicRuleDestinationSummary.cpp @@ -22,8 +22,11 @@ TopicRuleDestinationSummary::TopicRuleDestinationSummary() : m_arnHasBeenSet(false), m_status(TopicRuleDestinationStatus::NOT_SET), m_statusHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_lastUpdatedAtHasBeenSet(false), m_statusReasonHasBeenSet(false), - m_httpUrlSummaryHasBeenSet(false) + m_httpUrlSummaryHasBeenSet(false), + m_vpcDestinationSummaryHasBeenSet(false) { } @@ -31,8 +34,11 @@ TopicRuleDestinationSummary::TopicRuleDestinationSummary(JsonView jsonValue) : m_arnHasBeenSet(false), m_status(TopicRuleDestinationStatus::NOT_SET), m_statusHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_lastUpdatedAtHasBeenSet(false), m_statusReasonHasBeenSet(false), - m_httpUrlSummaryHasBeenSet(false) + m_httpUrlSummaryHasBeenSet(false), + m_vpcDestinationSummaryHasBeenSet(false) { *this = jsonValue; } @@ -53,6 +59,20 @@ TopicRuleDestinationSummary& TopicRuleDestinationSummary::operator =(JsonView js m_statusHasBeenSet = true; } + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastUpdatedAt")) + { + m_lastUpdatedAt = jsonValue.GetDouble("lastUpdatedAt"); + + m_lastUpdatedAtHasBeenSet = true; + } + if(jsonValue.ValueExists("statusReason")) { m_statusReason = jsonValue.GetString("statusReason"); @@ -67,6 +87,13 @@ TopicRuleDestinationSummary& TopicRuleDestinationSummary::operator =(JsonView js m_httpUrlSummaryHasBeenSet = true; } + if(jsonValue.ValueExists("vpcDestinationSummary")) + { + m_vpcDestinationSummary = jsonValue.GetObject("vpcDestinationSummary"); + + m_vpcDestinationSummaryHasBeenSet = true; + } + return *this; } @@ -85,6 +112,16 @@ JsonValue TopicRuleDestinationSummary::Jsonize() const payload.WithString("status", TopicRuleDestinationStatusMapper::GetNameForTopicRuleDestinationStatus(m_status)); } + if(m_createdAtHasBeenSet) + { + payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); + } + + if(m_lastUpdatedAtHasBeenSet) + { + payload.WithDouble("lastUpdatedAt", m_lastUpdatedAt.SecondsWithMSPrecision()); + } + if(m_statusReasonHasBeenSet) { payload.WithString("statusReason", m_statusReason); @@ -97,6 +134,12 @@ JsonValue TopicRuleDestinationSummary::Jsonize() const } + if(m_vpcDestinationSummaryHasBeenSet) + { + payload.WithObject("vpcDestinationSummary", m_vpcDestinationSummary.Jsonize()); + + } + return payload; } diff --git a/aws-cpp-sdk-iot/source/model/UpdateCustomMetricRequest.cpp b/aws-cpp-sdk-iot/source/model/UpdateCustomMetricRequest.cpp new file mode 100644 index 00000000000..ad20027c2b0 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/UpdateCustomMetricRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateCustomMetricRequest::UpdateCustomMetricRequest() : + m_metricNameHasBeenSet(false), + m_displayNameHasBeenSet(false) +{ +} + +Aws::String UpdateCustomMetricRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_displayNameHasBeenSet) + { + payload.WithString("displayName", m_displayName); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iot/source/model/UpdateCustomMetricResult.cpp b/aws-cpp-sdk-iot/source/model/UpdateCustomMetricResult.cpp new file mode 100644 index 00000000000..962446b2522 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/UpdateCustomMetricResult.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoT::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateCustomMetricResult::UpdateCustomMetricResult() : + m_metricType(CustomMetricType::NOT_SET) +{ +} + +UpdateCustomMetricResult::UpdateCustomMetricResult(const Aws::AmazonWebServiceResult& result) : + m_metricType(CustomMetricType::NOT_SET) +{ + *this = result; +} + +UpdateCustomMetricResult& UpdateCustomMetricResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("metricName")) + { + m_metricName = jsonValue.GetString("metricName"); + + } + + if(jsonValue.ValueExists("metricArn")) + { + m_metricArn = jsonValue.GetString("metricArn"); + + } + + if(jsonValue.ValueExists("metricType")) + { + m_metricType = CustomMetricTypeMapper::GetCustomMetricTypeForName(jsonValue.GetString("metricType")); + + } + + if(jsonValue.ValueExists("displayName")) + { + m_displayName = jsonValue.GetString("displayName"); + + } + + if(jsonValue.ValueExists("creationDate")) + { + m_creationDate = jsonValue.GetDouble("creationDate"); + + } + + if(jsonValue.ValueExists("lastModifiedDate")) + { + m_lastModifiedDate = jsonValue.GetDouble("lastModifiedDate"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iot/source/model/ViolationEvent.cpp b/aws-cpp-sdk-iot/source/model/ViolationEvent.cpp index 60ed2ea5e3d..24115867aff 100644 --- a/aws-cpp-sdk-iot/source/model/ViolationEvent.cpp +++ b/aws-cpp-sdk-iot/source/model/ViolationEvent.cpp @@ -24,6 +24,7 @@ ViolationEvent::ViolationEvent() : m_securityProfileNameHasBeenSet(false), m_behaviorHasBeenSet(false), m_metricValueHasBeenSet(false), + m_violationEventAdditionalInfoHasBeenSet(false), m_violationEventType(ViolationEventType::NOT_SET), m_violationEventTypeHasBeenSet(false), m_violationEventTimeHasBeenSet(false) @@ -36,6 +37,7 @@ ViolationEvent::ViolationEvent(JsonView jsonValue) : m_securityProfileNameHasBeenSet(false), m_behaviorHasBeenSet(false), m_metricValueHasBeenSet(false), + m_violationEventAdditionalInfoHasBeenSet(false), m_violationEventType(ViolationEventType::NOT_SET), m_violationEventTypeHasBeenSet(false), m_violationEventTimeHasBeenSet(false) @@ -80,6 +82,13 @@ ViolationEvent& ViolationEvent::operator =(JsonView jsonValue) m_metricValueHasBeenSet = true; } + if(jsonValue.ValueExists("violationEventAdditionalInfo")) + { + m_violationEventAdditionalInfo = jsonValue.GetObject("violationEventAdditionalInfo"); + + m_violationEventAdditionalInfoHasBeenSet = true; + } + if(jsonValue.ValueExists("violationEventType")) { m_violationEventType = ViolationEventTypeMapper::GetViolationEventTypeForName(jsonValue.GetString("violationEventType")); @@ -131,6 +140,12 @@ JsonValue ViolationEvent::Jsonize() const } + if(m_violationEventAdditionalInfoHasBeenSet) + { + payload.WithObject("violationEventAdditionalInfo", m_violationEventAdditionalInfo.Jsonize()); + + } + if(m_violationEventTypeHasBeenSet) { payload.WithString("violationEventType", ViolationEventTypeMapper::GetNameForViolationEventType(m_violationEventType)); diff --git a/aws-cpp-sdk-iot/source/model/ViolationEventAdditionalInfo.cpp b/aws-cpp-sdk-iot/source/model/ViolationEventAdditionalInfo.cpp new file mode 100644 index 00000000000..4a77ad96992 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ViolationEventAdditionalInfo.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +ViolationEventAdditionalInfo::ViolationEventAdditionalInfo() : + m_confidenceLevel(ConfidenceLevel::NOT_SET), + m_confidenceLevelHasBeenSet(false) +{ +} + +ViolationEventAdditionalInfo::ViolationEventAdditionalInfo(JsonView jsonValue) : + m_confidenceLevel(ConfidenceLevel::NOT_SET), + m_confidenceLevelHasBeenSet(false) +{ + *this = jsonValue; +} + +ViolationEventAdditionalInfo& ViolationEventAdditionalInfo::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("confidenceLevel")) + { + m_confidenceLevel = ConfidenceLevelMapper::GetConfidenceLevelForName(jsonValue.GetString("confidenceLevel")); + + m_confidenceLevelHasBeenSet = true; + } + + return *this; +} + +JsonValue ViolationEventAdditionalInfo::Jsonize() const +{ + JsonValue payload; + + if(m_confidenceLevelHasBeenSet) + { + payload.WithString("confidenceLevel", ConfidenceLevelMapper::GetNameForConfidenceLevel(m_confidenceLevel)); + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/ViolationEventOccurrenceRange.cpp b/aws-cpp-sdk-iot/source/model/ViolationEventOccurrenceRange.cpp new file mode 100644 index 00000000000..9d84db3d9e3 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/ViolationEventOccurrenceRange.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +ViolationEventOccurrenceRange::ViolationEventOccurrenceRange() : + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false) +{ +} + +ViolationEventOccurrenceRange::ViolationEventOccurrenceRange(JsonView jsonValue) : + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false) +{ + *this = jsonValue; +} + +ViolationEventOccurrenceRange& ViolationEventOccurrenceRange::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetDouble("endTime"); + + m_endTimeHasBeenSet = true; + } + + return *this; +} + +JsonValue ViolationEventOccurrenceRange::Jsonize() const +{ + JsonValue payload; + + if(m_startTimeHasBeenSet) + { + payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); + } + + if(m_endTimeHasBeenSet) + { + payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/VpcDestinationConfiguration.cpp b/aws-cpp-sdk-iot/source/model/VpcDestinationConfiguration.cpp new file mode 100644 index 00000000000..afdaa02a9f0 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/VpcDestinationConfiguration.cpp @@ -0,0 +1,120 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +VpcDestinationConfiguration::VpcDestinationConfiguration() : + m_subnetIdsHasBeenSet(false), + m_securityGroupsHasBeenSet(false), + m_vpcIdHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +VpcDestinationConfiguration::VpcDestinationConfiguration(JsonView jsonValue) : + m_subnetIdsHasBeenSet(false), + m_securityGroupsHasBeenSet(false), + m_vpcIdHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +VpcDestinationConfiguration& VpcDestinationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("subnetIds")) + { + Array subnetIdsJsonList = jsonValue.GetArray("subnetIds"); + for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) + { + m_subnetIds.push_back(subnetIdsJsonList[subnetIdsIndex].AsString()); + } + m_subnetIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("securityGroups")) + { + Array securityGroupsJsonList = jsonValue.GetArray("securityGroups"); + for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex) + { + m_securityGroups.push_back(securityGroupsJsonList[securityGroupsIndex].AsString()); + } + m_securityGroupsHasBeenSet = true; + } + + if(jsonValue.ValueExists("vpcId")) + { + m_vpcId = jsonValue.GetString("vpcId"); + + m_vpcIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("roleArn")) + { + m_roleArn = jsonValue.GetString("roleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue VpcDestinationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_subnetIdsHasBeenSet) + { + Array subnetIdsJsonList(m_subnetIds.size()); + for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) + { + subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]); + } + payload.WithArray("subnetIds", std::move(subnetIdsJsonList)); + + } + + if(m_securityGroupsHasBeenSet) + { + Array securityGroupsJsonList(m_securityGroups.size()); + for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex) + { + securityGroupsJsonList[securityGroupsIndex].AsString(m_securityGroups[securityGroupsIndex]); + } + payload.WithArray("securityGroups", std::move(securityGroupsJsonList)); + + } + + if(m_vpcIdHasBeenSet) + { + payload.WithString("vpcId", m_vpcId); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/VpcDestinationProperties.cpp b/aws-cpp-sdk-iot/source/model/VpcDestinationProperties.cpp new file mode 100644 index 00000000000..e6a8fcc2473 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/VpcDestinationProperties.cpp @@ -0,0 +1,120 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +VpcDestinationProperties::VpcDestinationProperties() : + m_subnetIdsHasBeenSet(false), + m_securityGroupsHasBeenSet(false), + m_vpcIdHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +VpcDestinationProperties::VpcDestinationProperties(JsonView jsonValue) : + m_subnetIdsHasBeenSet(false), + m_securityGroupsHasBeenSet(false), + m_vpcIdHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +VpcDestinationProperties& VpcDestinationProperties::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("subnetIds")) + { + Array subnetIdsJsonList = jsonValue.GetArray("subnetIds"); + for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) + { + m_subnetIds.push_back(subnetIdsJsonList[subnetIdsIndex].AsString()); + } + m_subnetIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("securityGroups")) + { + Array securityGroupsJsonList = jsonValue.GetArray("securityGroups"); + for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex) + { + m_securityGroups.push_back(securityGroupsJsonList[securityGroupsIndex].AsString()); + } + m_securityGroupsHasBeenSet = true; + } + + if(jsonValue.ValueExists("vpcId")) + { + m_vpcId = jsonValue.GetString("vpcId"); + + m_vpcIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("roleArn")) + { + m_roleArn = jsonValue.GetString("roleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue VpcDestinationProperties::Jsonize() const +{ + JsonValue payload; + + if(m_subnetIdsHasBeenSet) + { + Array subnetIdsJsonList(m_subnetIds.size()); + for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) + { + subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]); + } + payload.WithArray("subnetIds", std::move(subnetIdsJsonList)); + + } + + if(m_securityGroupsHasBeenSet) + { + Array securityGroupsJsonList(m_securityGroups.size()); + for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex) + { + securityGroupsJsonList[securityGroupsIndex].AsString(m_securityGroups[securityGroupsIndex]); + } + payload.WithArray("securityGroups", std::move(securityGroupsJsonList)); + + } + + if(m_vpcIdHasBeenSet) + { + payload.WithString("vpcId", m_vpcId); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iot/source/model/VpcDestinationSummary.cpp b/aws-cpp-sdk-iot/source/model/VpcDestinationSummary.cpp new file mode 100644 index 00000000000..8161dda8020 --- /dev/null +++ b/aws-cpp-sdk-iot/source/model/VpcDestinationSummary.cpp @@ -0,0 +1,120 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoT +{ +namespace Model +{ + +VpcDestinationSummary::VpcDestinationSummary() : + m_subnetIdsHasBeenSet(false), + m_securityGroupsHasBeenSet(false), + m_vpcIdHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +VpcDestinationSummary::VpcDestinationSummary(JsonView jsonValue) : + m_subnetIdsHasBeenSet(false), + m_securityGroupsHasBeenSet(false), + m_vpcIdHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +VpcDestinationSummary& VpcDestinationSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("subnetIds")) + { + Array subnetIdsJsonList = jsonValue.GetArray("subnetIds"); + for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) + { + m_subnetIds.push_back(subnetIdsJsonList[subnetIdsIndex].AsString()); + } + m_subnetIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("securityGroups")) + { + Array securityGroupsJsonList = jsonValue.GetArray("securityGroups"); + for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex) + { + m_securityGroups.push_back(securityGroupsJsonList[securityGroupsIndex].AsString()); + } + m_securityGroupsHasBeenSet = true; + } + + if(jsonValue.ValueExists("vpcId")) + { + m_vpcId = jsonValue.GetString("vpcId"); + + m_vpcIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("roleArn")) + { + m_roleArn = jsonValue.GetString("roleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue VpcDestinationSummary::Jsonize() const +{ + JsonValue payload; + + if(m_subnetIdsHasBeenSet) + { + Array subnetIdsJsonList(m_subnetIds.size()); + for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) + { + subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]); + } + payload.WithArray("subnetIds", std::move(subnetIdsJsonList)); + + } + + if(m_securityGroupsHasBeenSet) + { + Array securityGroupsJsonList(m_securityGroups.size()); + for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex) + { + securityGroupsJsonList[securityGroupsIndex].AsString(m_securityGroups[securityGroupsIndex]); + } + payload.WithArray("securityGroups", std::move(securityGroupsJsonList)); + + } + + if(m_vpcIdHasBeenSet) + { + payload.WithString("vpcId", m_vpcId); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoT +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ChannelMessages.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ChannelMessages.h new file mode 100644 index 00000000000..2f696250bcc --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ChannelMessages.h @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTAnalytics +{ +namespace Model +{ + + /** + *

Specifies one or more sets of channel messages.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTANALYTICS_API ChannelMessages + { + public: + ChannelMessages(); + ChannelMessages(Aws::Utils::Json::JsonView jsonValue); + ChannelMessages& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline const Aws::Vector& GetS3Paths() const{ return m_s3Paths; } + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline bool S3PathsHasBeenSet() const { return m_s3PathsHasBeenSet; } + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline void SetS3Paths(const Aws::Vector& value) { m_s3PathsHasBeenSet = true; m_s3Paths = value; } + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline void SetS3Paths(Aws::Vector&& value) { m_s3PathsHasBeenSet = true; m_s3Paths = std::move(value); } + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline ChannelMessages& WithS3Paths(const Aws::Vector& value) { SetS3Paths(value); return *this;} + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline ChannelMessages& WithS3Paths(Aws::Vector&& value) { SetS3Paths(std::move(value)); return *this;} + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline ChannelMessages& AddS3Paths(const Aws::String& value) { m_s3PathsHasBeenSet = true; m_s3Paths.push_back(value); return *this; } + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline ChannelMessages& AddS3Paths(Aws::String&& value) { m_s3PathsHasBeenSet = true; m_s3Paths.push_back(std::move(value)); return *this; } + + /** + *

Specifies one or more keys that identify the Amazon Simple Storage Service + * (Amazon S3) objects that save your channel messages.

+ */ + inline ChannelMessages& AddS3Paths(const char* value) { m_s3PathsHasBeenSet = true; m_s3Paths.push_back(value); return *this; } + + private: + + Aws::Vector m_s3Paths; + bool m_s3PathsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Column.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Column.h new file mode 100644 index 00000000000..f046421851a --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Column.h @@ -0,0 +1,149 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTAnalytics +{ +namespace Model +{ + + /** + *

Contains information about a column that stores your data.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOTANALYTICS_API Column + { + public: + Column(); + Column(Aws::Utils::Json::JsonView jsonValue); + Column& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The name of the column.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the column.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the column.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the column.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the column.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the column.

+ */ + inline Column& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the column.

+ */ + inline Column& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the column.

+ */ + inline Column& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline const Aws::String& GetType() const{ return m_type; } + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline Column& WithType(const Aws::String& value) { SetType(value); return *this;} + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline Column& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} + + /** + *

The type of data. For more information about the supported data types, see Common + * data types in the AWS Glue Developer Guide.

+ */ + inline Column& WithType(const char* value) { SetType(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_type; + bool m_typeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/CreateDatastoreRequest.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/CreateDatastoreRequest.h index 8de54f9457c..926fb77eb1d 100644 --- a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/CreateDatastoreRequest.h +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/CreateDatastoreRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -209,6 +210,61 @@ namespace Model */ inline CreateDatastoreRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline const FileFormatConfiguration& GetFileFormatConfiguration() const{ return m_fileFormatConfiguration; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline bool FileFormatConfigurationHasBeenSet() const { return m_fileFormatConfigurationHasBeenSet; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline void SetFileFormatConfiguration(const FileFormatConfiguration& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = value; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline void SetFileFormatConfiguration(FileFormatConfiguration&& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = std::move(value); } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline CreateDatastoreRequest& WithFileFormatConfiguration(const FileFormatConfiguration& value) { SetFileFormatConfiguration(value); return *this;} + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline CreateDatastoreRequest& WithFileFormatConfiguration(FileFormatConfiguration&& value) { SetFileFormatConfiguration(std::move(value)); return *this;} + private: Aws::String m_datastoreName; @@ -222,6 +278,9 @@ namespace Model Aws::Vector m_tags; bool m_tagsHasBeenSet; + + FileFormatConfiguration m_fileFormatConfiguration; + bool m_fileFormatConfigurationHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Datastore.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Datastore.h index 70d819cb52e..ea5cde8407d 100644 --- a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Datastore.h +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/Datastore.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -380,6 +381,61 @@ namespace Model */ inline Datastore& WithLastMessageArrivalTime(Aws::Utils::DateTime&& value) { SetLastMessageArrivalTime(std::move(value)); return *this;} + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline const FileFormatConfiguration& GetFileFormatConfiguration() const{ return m_fileFormatConfiguration; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline bool FileFormatConfigurationHasBeenSet() const { return m_fileFormatConfigurationHasBeenSet; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline void SetFileFormatConfiguration(const FileFormatConfiguration& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = value; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline void SetFileFormatConfiguration(FileFormatConfiguration&& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = std::move(value); } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline Datastore& WithFileFormatConfiguration(const FileFormatConfiguration& value) { SetFileFormatConfiguration(value); return *this;} + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline Datastore& WithFileFormatConfiguration(FileFormatConfiguration&& value) { SetFileFormatConfiguration(std::move(value)); return *this;} + private: Aws::String m_name; @@ -405,6 +461,9 @@ namespace Model Aws::Utils::DateTime m_lastMessageArrivalTime; bool m_lastMessageArrivalTimeHasBeenSet; + + FileFormatConfiguration m_fileFormatConfiguration; + bool m_fileFormatConfigurationHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/DatastoreSummary.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/DatastoreSummary.h index 792cdaa6a82..d28efcea7da 100644 --- a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/DatastoreSummary.h +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/DatastoreSummary.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -259,6 +260,37 @@ namespace Model */ inline DatastoreSummary& WithLastMessageArrivalTime(Aws::Utils::DateTime&& value) { SetLastMessageArrivalTime(std::move(value)); return *this;} + + /** + *

The file format of the data in the data store.

+ */ + inline const FileFormatType& GetFileFormatType() const{ return m_fileFormatType; } + + /** + *

The file format of the data in the data store.

+ */ + inline bool FileFormatTypeHasBeenSet() const { return m_fileFormatTypeHasBeenSet; } + + /** + *

The file format of the data in the data store.

+ */ + inline void SetFileFormatType(const FileFormatType& value) { m_fileFormatTypeHasBeenSet = true; m_fileFormatType = value; } + + /** + *

The file format of the data in the data store.

+ */ + inline void SetFileFormatType(FileFormatType&& value) { m_fileFormatTypeHasBeenSet = true; m_fileFormatType = std::move(value); } + + /** + *

The file format of the data in the data store.

+ */ + inline DatastoreSummary& WithFileFormatType(const FileFormatType& value) { SetFileFormatType(value); return *this;} + + /** + *

The file format of the data in the data store.

+ */ + inline DatastoreSummary& WithFileFormatType(FileFormatType&& value) { SetFileFormatType(std::move(value)); return *this;} + private: Aws::String m_datastoreName; @@ -278,6 +310,9 @@ namespace Model Aws::Utils::DateTime m_lastMessageArrivalTime; bool m_lastMessageArrivalTimeHasBeenSet; + + FileFormatType m_fileFormatType; + bool m_fileFormatTypeHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatConfiguration.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatConfiguration.h new file mode 100644 index 00000000000..48e1df052d8 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatConfiguration.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTAnalytics +{ +namespace Model +{ + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTANALYTICS_API FileFormatConfiguration + { + public: + FileFormatConfiguration(); + FileFormatConfiguration(Aws::Utils::Json::JsonView jsonValue); + FileFormatConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Contains the configuration information of the JSON format.

+ */ + inline const JsonConfiguration& GetJsonConfiguration() const{ return m_jsonConfiguration; } + + /** + *

Contains the configuration information of the JSON format.

+ */ + inline bool JsonConfigurationHasBeenSet() const { return m_jsonConfigurationHasBeenSet; } + + /** + *

Contains the configuration information of the JSON format.

+ */ + inline void SetJsonConfiguration(const JsonConfiguration& value) { m_jsonConfigurationHasBeenSet = true; m_jsonConfiguration = value; } + + /** + *

Contains the configuration information of the JSON format.

+ */ + inline void SetJsonConfiguration(JsonConfiguration&& value) { m_jsonConfigurationHasBeenSet = true; m_jsonConfiguration = std::move(value); } + + /** + *

Contains the configuration information of the JSON format.

+ */ + inline FileFormatConfiguration& WithJsonConfiguration(const JsonConfiguration& value) { SetJsonConfiguration(value); return *this;} + + /** + *

Contains the configuration information of the JSON format.

+ */ + inline FileFormatConfiguration& WithJsonConfiguration(JsonConfiguration&& value) { SetJsonConfiguration(std::move(value)); return *this;} + + + /** + *

Contains the configuration information of the Parquet format.

+ */ + inline const ParquetConfiguration& GetParquetConfiguration() const{ return m_parquetConfiguration; } + + /** + *

Contains the configuration information of the Parquet format.

+ */ + inline bool ParquetConfigurationHasBeenSet() const { return m_parquetConfigurationHasBeenSet; } + + /** + *

Contains the configuration information of the Parquet format.

+ */ + inline void SetParquetConfiguration(const ParquetConfiguration& value) { m_parquetConfigurationHasBeenSet = true; m_parquetConfiguration = value; } + + /** + *

Contains the configuration information of the Parquet format.

+ */ + inline void SetParquetConfiguration(ParquetConfiguration&& value) { m_parquetConfigurationHasBeenSet = true; m_parquetConfiguration = std::move(value); } + + /** + *

Contains the configuration information of the Parquet format.

+ */ + inline FileFormatConfiguration& WithParquetConfiguration(const ParquetConfiguration& value) { SetParquetConfiguration(value); return *this;} + + /** + *

Contains the configuration information of the Parquet format.

+ */ + inline FileFormatConfiguration& WithParquetConfiguration(ParquetConfiguration&& value) { SetParquetConfiguration(std::move(value)); return *this;} + + private: + + JsonConfiguration m_jsonConfiguration; + bool m_jsonConfigurationHasBeenSet; + + ParquetConfiguration m_parquetConfiguration; + bool m_parquetConfigurationHasBeenSet; + }; + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatType.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatType.h new file mode 100644 index 00000000000..223d8b3213d --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/FileFormatType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + enum class FileFormatType + { + NOT_SET, + JSON, + PARQUET + }; + +namespace FileFormatTypeMapper +{ +AWS_IOTANALYTICS_API FileFormatType GetFileFormatTypeForName(const Aws::String& name); + +AWS_IOTANALYTICS_API Aws::String GetNameForFileFormatType(FileFormatType value); +} // namespace FileFormatTypeMapper +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/JsonConfiguration.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/JsonConfiguration.h new file mode 100644 index 00000000000..f9b07d58557 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/JsonConfiguration.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTAnalytics +{ +namespace Model +{ + + /** + *

Contains the configuration information of the JSON format.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOTANALYTICS_API JsonConfiguration + { + public: + JsonConfiguration(); + JsonConfiguration(Aws::Utils::Json::JsonView jsonValue); + JsonConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ParquetConfiguration.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ParquetConfiguration.h new file mode 100644 index 00000000000..328d42cad26 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/ParquetConfiguration.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTAnalytics +{ +namespace Model +{ + + /** + *

Contains the configuration information of the Parquet format.

See + * Also:

AWS + * API Reference

+ */ + class AWS_IOTANALYTICS_API ParquetConfiguration + { + public: + ParquetConfiguration(); + ParquetConfiguration(Aws::Utils::Json::JsonView jsonValue); + ParquetConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Information needed to define a schema.

+ */ + inline const SchemaDefinition& GetSchemaDefinition() const{ return m_schemaDefinition; } + + /** + *

Information needed to define a schema.

+ */ + inline bool SchemaDefinitionHasBeenSet() const { return m_schemaDefinitionHasBeenSet; } + + /** + *

Information needed to define a schema.

+ */ + inline void SetSchemaDefinition(const SchemaDefinition& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = value; } + + /** + *

Information needed to define a schema.

+ */ + inline void SetSchemaDefinition(SchemaDefinition&& value) { m_schemaDefinitionHasBeenSet = true; m_schemaDefinition = std::move(value); } + + /** + *

Information needed to define a schema.

+ */ + inline ParquetConfiguration& WithSchemaDefinition(const SchemaDefinition& value) { SetSchemaDefinition(value); return *this;} + + /** + *

Information needed to define a schema.

+ */ + inline ParquetConfiguration& WithSchemaDefinition(SchemaDefinition&& value) { SetSchemaDefinition(std::move(value)); return *this;} + + private: + + SchemaDefinition m_schemaDefinition; + bool m_schemaDefinitionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/SchemaDefinition.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/SchemaDefinition.h new file mode 100644 index 00000000000..4ec84e72e23 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/SchemaDefinition.h @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTAnalytics +{ +namespace Model +{ + + /** + *

Information needed to define a schema.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTANALYTICS_API SchemaDefinition + { + public: + SchemaDefinition(); + SchemaDefinition(Aws::Utils::Json::JsonView jsonValue); + SchemaDefinition& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline const Aws::Vector& GetColumns() const{ return m_columns; } + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; } + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline void SetColumns(const Aws::Vector& value) { m_columnsHasBeenSet = true; m_columns = value; } + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline void SetColumns(Aws::Vector&& value) { m_columnsHasBeenSet = true; m_columns = std::move(value); } + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline SchemaDefinition& WithColumns(const Aws::Vector& value) { SetColumns(value); return *this;} + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline SchemaDefinition& WithColumns(Aws::Vector&& value) { SetColumns(std::move(value)); return *this;} + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline SchemaDefinition& AddColumns(const Column& value) { m_columnsHasBeenSet = true; m_columns.push_back(value); return *this; } + + /** + *

Specifies one or more columns that store your data.

Each schema can + * have up to 100 columns. Each column can have up to 100 nested types

+ */ + inline SchemaDefinition& AddColumns(Column&& value) { m_columnsHasBeenSet = true; m_columns.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_columns; + bool m_columnsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/StartPipelineReprocessingRequest.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/StartPipelineReprocessingRequest.h index 568230cf11f..b2ba7d88397 100644 --- a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/StartPipelineReprocessingRequest.h +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/StartPipelineReprocessingRequest.h @@ -8,6 +8,7 @@ #include #include #include +#include #include namespace Aws @@ -75,66 +76,133 @@ namespace Model /** - *

The start time (inclusive) of raw message data that is reprocessed.

+ *

The start time (inclusive) of raw message data that is reprocessed.

If + * you specify a value for the startTime parameter, you must not use + * the channelMessages object.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** - *

The start time (inclusive) of raw message data that is reprocessed.

+ *

The start time (inclusive) of raw message data that is reprocessed.

If + * you specify a value for the startTime parameter, you must not use + * the channelMessages object.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** - *

The start time (inclusive) of raw message data that is reprocessed.

+ *

The start time (inclusive) of raw message data that is reprocessed.

If + * you specify a value for the startTime parameter, you must not use + * the channelMessages object.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** - *

The start time (inclusive) of raw message data that is reprocessed.

+ *

The start time (inclusive) of raw message data that is reprocessed.

If + * you specify a value for the startTime parameter, you must not use + * the channelMessages object.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** - *

The start time (inclusive) of raw message data that is reprocessed.

+ *

The start time (inclusive) of raw message data that is reprocessed.

If + * you specify a value for the startTime parameter, you must not use + * the channelMessages object.

*/ inline StartPipelineReprocessingRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** - *

The start time (inclusive) of raw message data that is reprocessed.

+ *

The start time (inclusive) of raw message data that is reprocessed.

If + * you specify a value for the startTime parameter, you must not use + * the channelMessages object.

*/ inline StartPipelineReprocessingRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** - *

The end time (exclusive) of raw message data that is reprocessed.

+ *

The end time (exclusive) of raw message data that is reprocessed.

If + * you specify a value for the endTime parameter, you must not use the + * channelMessages object.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** - *

The end time (exclusive) of raw message data that is reprocessed.

+ *

The end time (exclusive) of raw message data that is reprocessed.

If + * you specify a value for the endTime parameter, you must not use the + * channelMessages object.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** - *

The end time (exclusive) of raw message data that is reprocessed.

+ *

The end time (exclusive) of raw message data that is reprocessed.

If + * you specify a value for the endTime parameter, you must not use the + * channelMessages object.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** - *

The end time (exclusive) of raw message data that is reprocessed.

+ *

The end time (exclusive) of raw message data that is reprocessed.

If + * you specify a value for the endTime parameter, you must not use the + * channelMessages object.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** - *

The end time (exclusive) of raw message data that is reprocessed.

+ *

The end time (exclusive) of raw message data that is reprocessed.

If + * you specify a value for the endTime parameter, you must not use the + * channelMessages object.

*/ inline StartPipelineReprocessingRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** - *

The end time (exclusive) of raw message data that is reprocessed.

+ *

The end time (exclusive) of raw message data that is reprocessed.

If + * you specify a value for the endTime parameter, you must not use the + * channelMessages object.

*/ inline StartPipelineReprocessingRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + /** + *

Specifies one or more sets of channel messages that you want to + * reprocess.

If you use the channelMessages object, you must + * not specify a value for startTime and endTime.

+ */ + inline const ChannelMessages& GetChannelMessages() const{ return m_channelMessages; } + + /** + *

Specifies one or more sets of channel messages that you want to + * reprocess.

If you use the channelMessages object, you must + * not specify a value for startTime and endTime.

+ */ + inline bool ChannelMessagesHasBeenSet() const { return m_channelMessagesHasBeenSet; } + + /** + *

Specifies one or more sets of channel messages that you want to + * reprocess.

If you use the channelMessages object, you must + * not specify a value for startTime and endTime.

+ */ + inline void SetChannelMessages(const ChannelMessages& value) { m_channelMessagesHasBeenSet = true; m_channelMessages = value; } + + /** + *

Specifies one or more sets of channel messages that you want to + * reprocess.

If you use the channelMessages object, you must + * not specify a value for startTime and endTime.

+ */ + inline void SetChannelMessages(ChannelMessages&& value) { m_channelMessagesHasBeenSet = true; m_channelMessages = std::move(value); } + + /** + *

Specifies one or more sets of channel messages that you want to + * reprocess.

If you use the channelMessages object, you must + * not specify a value for startTime and endTime.

+ */ + inline StartPipelineReprocessingRequest& WithChannelMessages(const ChannelMessages& value) { SetChannelMessages(value); return *this;} + + /** + *

Specifies one or more sets of channel messages that you want to + * reprocess.

If you use the channelMessages object, you must + * not specify a value for startTime and endTime.

+ */ + inline StartPipelineReprocessingRequest& WithChannelMessages(ChannelMessages&& value) { SetChannelMessages(std::move(value)); return *this;} + private: Aws::String m_pipelineName; @@ -145,6 +213,9 @@ namespace Model Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet; + + ChannelMessages m_channelMessages; + bool m_channelMessagesHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/UpdateDatastoreRequest.h b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/UpdateDatastoreRequest.h index 55b8de9fed5..2e40d85f6c5 100644 --- a/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/UpdateDatastoreRequest.h +++ b/aws-cpp-sdk-iotanalytics/include/aws/iotanalytics/model/UpdateDatastoreRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -160,6 +161,61 @@ namespace Model */ inline UpdateDatastoreRequest& WithDatastoreStorage(DatastoreStorage&& value) { SetDatastoreStorage(std::move(value)); return *this;} + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline const FileFormatConfiguration& GetFileFormatConfiguration() const{ return m_fileFormatConfiguration; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline bool FileFormatConfigurationHasBeenSet() const { return m_fileFormatConfigurationHasBeenSet; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline void SetFileFormatConfiguration(const FileFormatConfiguration& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = value; } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline void SetFileFormatConfiguration(FileFormatConfiguration&& value) { m_fileFormatConfigurationHasBeenSet = true; m_fileFormatConfiguration = std::move(value); } + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline UpdateDatastoreRequest& WithFileFormatConfiguration(const FileFormatConfiguration& value) { SetFileFormatConfiguration(value); return *this;} + + /** + *

Contains the configuration information of file formats. AWS IoT Analytics + * data stores support JSON and Parquet.

The default file format + * is JSON. You can specify only one format.

You can't change the file + * format after you create the data store.

+ */ + inline UpdateDatastoreRequest& WithFileFormatConfiguration(FileFormatConfiguration&& value) { SetFileFormatConfiguration(std::move(value)); return *this;} + private: Aws::String m_datastoreName; @@ -170,6 +226,9 @@ namespace Model DatastoreStorage m_datastoreStorage; bool m_datastoreStorageHasBeenSet; + + FileFormatConfiguration m_fileFormatConfiguration; + bool m_fileFormatConfigurationHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-iotanalytics/source/model/ChannelMessages.cpp b/aws-cpp-sdk-iotanalytics/source/model/ChannelMessages.cpp new file mode 100644 index 00000000000..8c05c1e635a --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/ChannelMessages.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + +ChannelMessages::ChannelMessages() : + m_s3PathsHasBeenSet(false) +{ +} + +ChannelMessages::ChannelMessages(JsonView jsonValue) : + m_s3PathsHasBeenSet(false) +{ + *this = jsonValue; +} + +ChannelMessages& ChannelMessages::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("s3Paths")) + { + Array s3PathsJsonList = jsonValue.GetArray("s3Paths"); + for(unsigned s3PathsIndex = 0; s3PathsIndex < s3PathsJsonList.GetLength(); ++s3PathsIndex) + { + m_s3Paths.push_back(s3PathsJsonList[s3PathsIndex].AsString()); + } + m_s3PathsHasBeenSet = true; + } + + return *this; +} + +JsonValue ChannelMessages::Jsonize() const +{ + JsonValue payload; + + if(m_s3PathsHasBeenSet) + { + Array s3PathsJsonList(m_s3Paths.size()); + for(unsigned s3PathsIndex = 0; s3PathsIndex < s3PathsJsonList.GetLength(); ++s3PathsIndex) + { + s3PathsJsonList[s3PathsIndex].AsString(m_s3Paths[s3PathsIndex]); + } + payload.WithArray("s3Paths", std::move(s3PathsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/Column.cpp b/aws-cpp-sdk-iotanalytics/source/model/Column.cpp new file mode 100644 index 00000000000..3034a2eb8c6 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/Column.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + +Column::Column() : + m_nameHasBeenSet(false), + m_typeHasBeenSet(false) +{ +} + +Column::Column(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +Column& Column::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = jsonValue.GetString("type"); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue Column::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", m_type); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/CreateDatastoreRequest.cpp b/aws-cpp-sdk-iotanalytics/source/model/CreateDatastoreRequest.cpp index 1d9f4e17204..39dba90f060 100644 --- a/aws-cpp-sdk-iotanalytics/source/model/CreateDatastoreRequest.cpp +++ b/aws-cpp-sdk-iotanalytics/source/model/CreateDatastoreRequest.cpp @@ -16,7 +16,8 @@ CreateDatastoreRequest::CreateDatastoreRequest() : m_datastoreNameHasBeenSet(false), m_datastoreStorageHasBeenSet(false), m_retentionPeriodHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_fileFormatConfigurationHasBeenSet(false) { } @@ -53,6 +54,12 @@ Aws::String CreateDatastoreRequest::SerializePayload() const } + if(m_fileFormatConfigurationHasBeenSet) + { + payload.WithObject("fileFormatConfiguration", m_fileFormatConfiguration.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-iotanalytics/source/model/Datastore.cpp b/aws-cpp-sdk-iotanalytics/source/model/Datastore.cpp index 08b169a2e4e..4ede69b5a9e 100644 --- a/aws-cpp-sdk-iotanalytics/source/model/Datastore.cpp +++ b/aws-cpp-sdk-iotanalytics/source/model/Datastore.cpp @@ -27,7 +27,8 @@ Datastore::Datastore() : m_retentionPeriodHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastUpdateTimeHasBeenSet(false), - m_lastMessageArrivalTimeHasBeenSet(false) + m_lastMessageArrivalTimeHasBeenSet(false), + m_fileFormatConfigurationHasBeenSet(false) { } @@ -40,7 +41,8 @@ Datastore::Datastore(JsonView jsonValue) : m_retentionPeriodHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastUpdateTimeHasBeenSet(false), - m_lastMessageArrivalTimeHasBeenSet(false) + m_lastMessageArrivalTimeHasBeenSet(false), + m_fileFormatConfigurationHasBeenSet(false) { *this = jsonValue; } @@ -103,6 +105,13 @@ Datastore& Datastore::operator =(JsonView jsonValue) m_lastMessageArrivalTimeHasBeenSet = true; } + if(jsonValue.ValueExists("fileFormatConfiguration")) + { + m_fileFormatConfiguration = jsonValue.GetObject("fileFormatConfiguration"); + + m_fileFormatConfigurationHasBeenSet = true; + } + return *this; } @@ -154,6 +163,12 @@ JsonValue Datastore::Jsonize() const payload.WithDouble("lastMessageArrivalTime", m_lastMessageArrivalTime.SecondsWithMSPrecision()); } + if(m_fileFormatConfigurationHasBeenSet) + { + payload.WithObject("fileFormatConfiguration", m_fileFormatConfiguration.Jsonize()); + + } + return payload; } diff --git a/aws-cpp-sdk-iotanalytics/source/model/DatastoreSummary.cpp b/aws-cpp-sdk-iotanalytics/source/model/DatastoreSummary.cpp index ecdad4052eb..d85e6ebe24b 100644 --- a/aws-cpp-sdk-iotanalytics/source/model/DatastoreSummary.cpp +++ b/aws-cpp-sdk-iotanalytics/source/model/DatastoreSummary.cpp @@ -25,7 +25,9 @@ DatastoreSummary::DatastoreSummary() : m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastUpdateTimeHasBeenSet(false), - m_lastMessageArrivalTimeHasBeenSet(false) + m_lastMessageArrivalTimeHasBeenSet(false), + m_fileFormatType(FileFormatType::NOT_SET), + m_fileFormatTypeHasBeenSet(false) { } @@ -36,7 +38,9 @@ DatastoreSummary::DatastoreSummary(JsonView jsonValue) : m_statusHasBeenSet(false), m_creationTimeHasBeenSet(false), m_lastUpdateTimeHasBeenSet(false), - m_lastMessageArrivalTimeHasBeenSet(false) + m_lastMessageArrivalTimeHasBeenSet(false), + m_fileFormatType(FileFormatType::NOT_SET), + m_fileFormatTypeHasBeenSet(false) { *this = jsonValue; } @@ -85,6 +89,13 @@ DatastoreSummary& DatastoreSummary::operator =(JsonView jsonValue) m_lastMessageArrivalTimeHasBeenSet = true; } + if(jsonValue.ValueExists("fileFormatType")) + { + m_fileFormatType = FileFormatTypeMapper::GetFileFormatTypeForName(jsonValue.GetString("fileFormatType")); + + m_fileFormatTypeHasBeenSet = true; + } + return *this; } @@ -124,6 +135,11 @@ JsonValue DatastoreSummary::Jsonize() const payload.WithDouble("lastMessageArrivalTime", m_lastMessageArrivalTime.SecondsWithMSPrecision()); } + if(m_fileFormatTypeHasBeenSet) + { + payload.WithString("fileFormatType", FileFormatTypeMapper::GetNameForFileFormatType(m_fileFormatType)); + } + return payload; } diff --git a/aws-cpp-sdk-iotanalytics/source/model/FileFormatConfiguration.cpp b/aws-cpp-sdk-iotanalytics/source/model/FileFormatConfiguration.cpp new file mode 100644 index 00000000000..f1649d52b7b --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/FileFormatConfiguration.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + +FileFormatConfiguration::FileFormatConfiguration() : + m_jsonConfigurationHasBeenSet(false), + m_parquetConfigurationHasBeenSet(false) +{ +} + +FileFormatConfiguration::FileFormatConfiguration(JsonView jsonValue) : + m_jsonConfigurationHasBeenSet(false), + m_parquetConfigurationHasBeenSet(false) +{ + *this = jsonValue; +} + +FileFormatConfiguration& FileFormatConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("jsonConfiguration")) + { + m_jsonConfiguration = jsonValue.GetObject("jsonConfiguration"); + + m_jsonConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("parquetConfiguration")) + { + m_parquetConfiguration = jsonValue.GetObject("parquetConfiguration"); + + m_parquetConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue FileFormatConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_jsonConfigurationHasBeenSet) + { + payload.WithObject("jsonConfiguration", m_jsonConfiguration.Jsonize()); + + } + + if(m_parquetConfigurationHasBeenSet) + { + payload.WithObject("parquetConfiguration", m_parquetConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp b/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp new file mode 100644 index 00000000000..018eae5b454 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/FileFormatType.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTAnalytics + { + namespace Model + { + namespace FileFormatTypeMapper + { + + static const int JSON_HASH = HashingUtils::HashString("JSON"); + static const int PARQUET_HASH = HashingUtils::HashString("PARQUET"); + + + FileFormatType GetFileFormatTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == JSON_HASH) + { + return FileFormatType::JSON; + } + else if (hashCode == PARQUET_HASH) + { + return FileFormatType::PARQUET; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FileFormatType::NOT_SET; + } + + Aws::String GetNameForFileFormatType(FileFormatType enumValue) + { + switch(enumValue) + { + case FileFormatType::JSON: + return "JSON"; + case FileFormatType::PARQUET: + return "PARQUET"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FileFormatTypeMapper + } // namespace Model + } // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/JsonConfiguration.cpp b/aws-cpp-sdk-iotanalytics/source/model/JsonConfiguration.cpp new file mode 100644 index 00000000000..73906a79ad0 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/JsonConfiguration.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + +JsonConfiguration::JsonConfiguration() +{ +} + +JsonConfiguration::JsonConfiguration(JsonView jsonValue) +{ + *this = jsonValue; +} + +JsonConfiguration& JsonConfiguration::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue JsonConfiguration::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/ParquetConfiguration.cpp b/aws-cpp-sdk-iotanalytics/source/model/ParquetConfiguration.cpp new file mode 100644 index 00000000000..7509ce3986c --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/ParquetConfiguration.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + +ParquetConfiguration::ParquetConfiguration() : + m_schemaDefinitionHasBeenSet(false) +{ +} + +ParquetConfiguration::ParquetConfiguration(JsonView jsonValue) : + m_schemaDefinitionHasBeenSet(false) +{ + *this = jsonValue; +} + +ParquetConfiguration& ParquetConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("schemaDefinition")) + { + m_schemaDefinition = jsonValue.GetObject("schemaDefinition"); + + m_schemaDefinitionHasBeenSet = true; + } + + return *this; +} + +JsonValue ParquetConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_schemaDefinitionHasBeenSet) + { + payload.WithObject("schemaDefinition", m_schemaDefinition.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/SchemaDefinition.cpp b/aws-cpp-sdk-iotanalytics/source/model/SchemaDefinition.cpp new file mode 100644 index 00000000000..1e38969c039 --- /dev/null +++ b/aws-cpp-sdk-iotanalytics/source/model/SchemaDefinition.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTAnalytics +{ +namespace Model +{ + +SchemaDefinition::SchemaDefinition() : + m_columnsHasBeenSet(false) +{ +} + +SchemaDefinition::SchemaDefinition(JsonView jsonValue) : + m_columnsHasBeenSet(false) +{ + *this = jsonValue; +} + +SchemaDefinition& SchemaDefinition::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("columns")) + { + Array columnsJsonList = jsonValue.GetArray("columns"); + for(unsigned columnsIndex = 0; columnsIndex < columnsJsonList.GetLength(); ++columnsIndex) + { + m_columns.push_back(columnsJsonList[columnsIndex].AsObject()); + } + m_columnsHasBeenSet = true; + } + + return *this; +} + +JsonValue SchemaDefinition::Jsonize() const +{ + JsonValue payload; + + if(m_columnsHasBeenSet) + { + Array columnsJsonList(m_columns.size()); + for(unsigned columnsIndex = 0; columnsIndex < columnsJsonList.GetLength(); ++columnsIndex) + { + columnsJsonList[columnsIndex].AsObject(m_columns[columnsIndex].Jsonize()); + } + payload.WithArray("columns", std::move(columnsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTAnalytics +} // namespace Aws diff --git a/aws-cpp-sdk-iotanalytics/source/model/StartPipelineReprocessingRequest.cpp b/aws-cpp-sdk-iotanalytics/source/model/StartPipelineReprocessingRequest.cpp index dc45e32f982..2a68e1e68c5 100644 --- a/aws-cpp-sdk-iotanalytics/source/model/StartPipelineReprocessingRequest.cpp +++ b/aws-cpp-sdk-iotanalytics/source/model/StartPipelineReprocessingRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; StartPipelineReprocessingRequest::StartPipelineReprocessingRequest() : m_pipelineNameHasBeenSet(false), m_startTimeHasBeenSet(false), - m_endTimeHasBeenSet(false) + m_endTimeHasBeenSet(false), + m_channelMessagesHasBeenSet(false) { } @@ -33,6 +34,12 @@ Aws::String StartPipelineReprocessingRequest::SerializePayload() const payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); } + if(m_channelMessagesHasBeenSet) + { + payload.WithObject("channelMessages", m_channelMessages.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-iotanalytics/source/model/UpdateDatastoreRequest.cpp b/aws-cpp-sdk-iotanalytics/source/model/UpdateDatastoreRequest.cpp index b87e4905153..ed2a93885e8 100644 --- a/aws-cpp-sdk-iotanalytics/source/model/UpdateDatastoreRequest.cpp +++ b/aws-cpp-sdk-iotanalytics/source/model/UpdateDatastoreRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; UpdateDatastoreRequest::UpdateDatastoreRequest() : m_datastoreNameHasBeenSet(false), m_retentionPeriodHasBeenSet(false), - m_datastoreStorageHasBeenSet(false) + m_datastoreStorageHasBeenSet(false), + m_fileFormatConfigurationHasBeenSet(false) { } @@ -35,6 +36,12 @@ Aws::String UpdateDatastoreRequest::SerializePayload() const } + if(m_fileFormatConfigurationHasBeenSet) + { + payload.WithObject("fileFormatConfiguration", m_fileFormatConfiguration.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-iotdeviceadvisor/CMakeLists.txt b/aws-cpp-sdk-iotdeviceadvisor/CMakeLists.txt new file mode 100644 index 00000000000..e2e2069359d --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-iotdeviceadvisor "C++ SDK for the AWS iotdeviceadvisor service" aws-cpp-sdk-core) + +file(GLOB AWS_IOTDEVICEADVISOR_HEADERS + "include/aws/iotdeviceadvisor/*.h" +) + +file(GLOB AWS_IOTDEVICEADVISOR_MODEL_HEADERS + "include/aws/iotdeviceadvisor/model/*.h" +) + +file(GLOB AWS_IOTDEVICEADVISOR_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_IOTDEVICEADVISOR_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB IOTDEVICEADVISOR_UNIFIED_HEADERS + ${AWS_IOTDEVICEADVISOR_HEADERS} + ${AWS_IOTDEVICEADVISOR_MODEL_HEADERS} +) + +file(GLOB IOTDEVICEADVISOR_UNITY_SRC + ${AWS_IOTDEVICEADVISOR_SOURCE} + ${AWS_IOTDEVICEADVISOR_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("IOTDEVICEADVISOR" IOTDEVICEADVISOR_UNITY_SRC) +endif() + +file(GLOB IOTDEVICEADVISOR_SRC + ${IOTDEVICEADVISOR_UNIFIED_HEADERS} + ${IOTDEVICEADVISOR_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\iotdeviceadvisor" FILES ${AWS_IOTDEVICEADVISOR_HEADERS}) + source_group("Header Files\\aws\\iotdeviceadvisor\\model" FILES ${AWS_IOTDEVICEADVISOR_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_IOTDEVICEADVISOR_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_IOTDEVICEADVISOR_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(IOTDEVICEADVISOR_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${IOTDEVICEADVISOR_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_IOTDEVICEADVISOR_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_IOTDEVICEADVISOR_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iotdeviceadvisor) +install (FILES ${AWS_IOTDEVICEADVISOR_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iotdeviceadvisor/model) + +do_packaging() + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorClient.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorClient.h new file mode 100644 index 00000000000..11b896d5dc1 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorClient.h @@ -0,0 +1,540 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ + +namespace Http +{ + class HttpClient; + class HttpClientFactory; +} // namespace Http + +namespace Utils +{ + template< typename R, typename E> class Outcome; +namespace Threading +{ + class Executor; +} // namespace Threading +} // namespace Utils + +namespace Auth +{ + class AWSCredentials; + class AWSCredentialsProvider; +} // namespace Auth + +namespace Client +{ + class RetryStrategy; +} // namespace Client + +namespace IoTDeviceAdvisor +{ + +namespace Model +{ + class CreateSuiteDefinitionRequest; + class DeleteSuiteDefinitionRequest; + class GetSuiteDefinitionRequest; + class GetSuiteRunRequest; + class GetSuiteRunReportRequest; + class ListSuiteDefinitionsRequest; + class ListSuiteRunsRequest; + class ListTagsForResourceRequest; + class ListTestCasesRequest; + class StartSuiteRunRequest; + class TagResourceRequest; + class UntagResourceRequest; + class UpdateSuiteDefinitionRequest; + + typedef Aws::Utils::Outcome CreateSuiteDefinitionOutcome; + typedef Aws::Utils::Outcome DeleteSuiteDefinitionOutcome; + typedef Aws::Utils::Outcome GetSuiteDefinitionOutcome; + typedef Aws::Utils::Outcome GetSuiteRunOutcome; + typedef Aws::Utils::Outcome GetSuiteRunReportOutcome; + typedef Aws::Utils::Outcome ListSuiteDefinitionsOutcome; + typedef Aws::Utils::Outcome ListSuiteRunsOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome ListTestCasesOutcome; + typedef Aws::Utils::Outcome StartSuiteRunOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateSuiteDefinitionOutcome; + + typedef std::future CreateSuiteDefinitionOutcomeCallable; + typedef std::future DeleteSuiteDefinitionOutcomeCallable; + typedef std::future GetSuiteDefinitionOutcomeCallable; + typedef std::future GetSuiteRunOutcomeCallable; + typedef std::future GetSuiteRunReportOutcomeCallable; + typedef std::future ListSuiteDefinitionsOutcomeCallable; + typedef std::future ListSuiteRunsOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future ListTestCasesOutcomeCallable; + typedef std::future StartSuiteRunOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateSuiteDefinitionOutcomeCallable; +} // namespace Model + + class IoTDeviceAdvisorClient; + + typedef std::function&) > CreateSuiteDefinitionResponseReceivedHandler; + typedef std::function&) > DeleteSuiteDefinitionResponseReceivedHandler; + typedef std::function&) > GetSuiteDefinitionResponseReceivedHandler; + typedef std::function&) > GetSuiteRunResponseReceivedHandler; + typedef std::function&) > GetSuiteRunReportResponseReceivedHandler; + typedef std::function&) > ListSuiteDefinitionsResponseReceivedHandler; + typedef std::function&) > ListSuiteRunsResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > ListTestCasesResponseReceivedHandler; + typedef std::function&) > StartSuiteRunResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateSuiteDefinitionResponseReceivedHandler; + + /** + *

AWS IoT Core Device Advisor is a cloud-based, fully managed test capability + * for validating IoT devices during device software development. Device Advisor + * provides pre-built tests that you can use to validate IoT devices for reliable + * and secure connectivity with AWS IoT Core before deploying devices to + * production. By using Device Advisor, you can confirm that your devices can + * connect to AWS IoT Core, follow security best practices and, if applicable, + * receive software updates from IoT Device Management. You can also download + * signed qualification reports to submit to the AWS Partner Network to get your + * device qualified for the AWS Partner Device Catalog without the need to send + * your device in and wait for it to be tested.

+ */ + class AWS_IOTDEVICEADVISOR_API IoTDeviceAdvisorClient : public Aws::Client::AWSJsonClient + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + IoTDeviceAdvisorClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + IoTDeviceAdvisorClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + IoTDeviceAdvisorClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + virtual ~IoTDeviceAdvisorClient(); + + + /** + *

Creates a Device Advisor test suite.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateSuiteDefinitionOutcome CreateSuiteDefinition(const Model::CreateSuiteDefinitionRequest& request) const; + + /** + *

Creates a Device Advisor test suite.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateSuiteDefinitionOutcomeCallable CreateSuiteDefinitionCallable(const Model::CreateSuiteDefinitionRequest& request) const; + + /** + *

Creates a Device Advisor test suite.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateSuiteDefinitionAsync(const Model::CreateSuiteDefinitionRequest& request, const CreateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a Device Advisor test suite.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteSuiteDefinitionOutcome DeleteSuiteDefinition(const Model::DeleteSuiteDefinitionRequest& request) const; + + /** + *

Deletes a Device Advisor test suite.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteSuiteDefinitionOutcomeCallable DeleteSuiteDefinitionCallable(const Model::DeleteSuiteDefinitionRequest& request) const; + + /** + *

Deletes a Device Advisor test suite.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteSuiteDefinitionAsync(const Model::DeleteSuiteDefinitionRequest& request, const DeleteSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a Device Advisor test suite.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::GetSuiteDefinitionOutcome GetSuiteDefinition(const Model::GetSuiteDefinitionRequest& request) const; + + /** + *

Gets information about a Device Advisor test suite.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetSuiteDefinitionOutcomeCallable GetSuiteDefinitionCallable(const Model::GetSuiteDefinitionRequest& request) const; + + /** + *

Gets information about a Device Advisor test suite.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetSuiteDefinitionAsync(const Model::GetSuiteDefinitionRequest& request, const GetSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a Device Advisor test suite run.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::GetSuiteRunOutcome GetSuiteRun(const Model::GetSuiteRunRequest& request) const; + + /** + *

Gets information about a Device Advisor test suite run.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetSuiteRunOutcomeCallable GetSuiteRunCallable(const Model::GetSuiteRunRequest& request) const; + + /** + *

Gets information about a Device Advisor test suite run.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetSuiteRunAsync(const Model::GetSuiteRunRequest& request, const GetSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets a report download link for a successful Device Advisor qualifying test + * suite run.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetSuiteRunReportOutcome GetSuiteRunReport(const Model::GetSuiteRunReportRequest& request) const; + + /** + *

Gets a report download link for a successful Device Advisor qualifying test + * suite run.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetSuiteRunReportOutcomeCallable GetSuiteRunReportCallable(const Model::GetSuiteRunReportRequest& request) const; + + /** + *

Gets a report download link for a successful Device Advisor qualifying test + * suite run.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetSuiteRunReportAsync(const Model::GetSuiteRunReportRequest& request, const GetSuiteRunReportResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the Device Advisor test suites you have created.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListSuiteDefinitionsOutcome ListSuiteDefinitions(const Model::ListSuiteDefinitionsRequest& request) const; + + /** + *

Lists the Device Advisor test suites you have created.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListSuiteDefinitionsOutcomeCallable ListSuiteDefinitionsCallable(const Model::ListSuiteDefinitionsRequest& request) const; + + /** + *

Lists the Device Advisor test suites you have created.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListSuiteDefinitionsAsync(const Model::ListSuiteDefinitionsRequest& request, const ListSuiteDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the runs of the specified Device Advisor test suite. You can list all + * runs of the test suite, or the runs of a specific version of the test + * suite.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListSuiteRunsOutcome ListSuiteRuns(const Model::ListSuiteRunsRequest& request) const; + + /** + *

Lists the runs of the specified Device Advisor test suite. You can list all + * runs of the test suite, or the runs of a specific version of the test + * suite.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListSuiteRunsOutcomeCallable ListSuiteRunsCallable(const Model::ListSuiteRunsRequest& request) const; + + /** + *

Lists the runs of the specified Device Advisor test suite. You can list all + * runs of the test suite, or the runs of a specific version of the test + * suite.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListSuiteRunsAsync(const Model::ListSuiteRunsRequest& request, const ListSuiteRunsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the tags attached to an IoT Device Advisor resource.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Lists the tags attached to an IoT Device Advisor resource.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Lists the tags attached to an IoT Device Advisor resource.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists all the test cases in the test suite.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListTestCasesOutcome ListTestCases(const Model::ListTestCasesRequest& request) const; + + /** + *

Lists all the test cases in the test suite.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListTestCasesOutcomeCallable ListTestCasesCallable(const Model::ListTestCasesRequest& request) const; + + /** + *

Lists all the test cases in the test suite.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListTestCasesAsync(const Model::ListTestCasesRequest& request, const ListTestCasesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Starts a Device Advisor test suite run.

See Also:

AWS + * API Reference

+ */ + virtual Model::StartSuiteRunOutcome StartSuiteRun(const Model::StartSuiteRunRequest& request) const; + + /** + *

Starts a Device Advisor test suite run.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::StartSuiteRunOutcomeCallable StartSuiteRunCallable(const Model::StartSuiteRunRequest& request) const; + + /** + *

Starts a Device Advisor test suite run.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void StartSuiteRunAsync(const Model::StartSuiteRunRequest& request, const StartSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Adds to and modifies existing tags of an IoT Device Advisor + * resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + *

Adds to and modifies existing tags of an IoT Device Advisor + * resource.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const; + + /** + *

Adds to and modifies existing tags of an IoT Device Advisor + * resource.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Removes tags from an IoT Device Advisor resource.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + *

Removes tags from an IoT Device Advisor resource.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const; + + /** + *

Removes tags from an IoT Device Advisor resource.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates a Device Advisor test suite.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateSuiteDefinitionOutcome UpdateSuiteDefinition(const Model::UpdateSuiteDefinitionRequest& request) const; + + /** + *

Updates a Device Advisor test suite.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateSuiteDefinitionOutcomeCallable UpdateSuiteDefinitionCallable(const Model::UpdateSuiteDefinitionRequest& request) const; + + /** + *

Updates a Device Advisor test suite.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateSuiteDefinitionAsync(const Model::UpdateSuiteDefinitionRequest& request, const UpdateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + + void OverrideEndpoint(const Aws::String& endpoint); + private: + void init(const Aws::Client::ClientConfiguration& clientConfiguration); + void CreateSuiteDefinitionAsyncHelper(const Model::CreateSuiteDefinitionRequest& request, const CreateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteSuiteDefinitionAsyncHelper(const Model::DeleteSuiteDefinitionRequest& request, const DeleteSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetSuiteDefinitionAsyncHelper(const Model::GetSuiteDefinitionRequest& request, const GetSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetSuiteRunAsyncHelper(const Model::GetSuiteRunRequest& request, const GetSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetSuiteRunReportAsyncHelper(const Model::GetSuiteRunReportRequest& request, const GetSuiteRunReportResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListSuiteDefinitionsAsyncHelper(const Model::ListSuiteDefinitionsRequest& request, const ListSuiteDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListSuiteRunsAsyncHelper(const Model::ListSuiteRunsRequest& request, const ListSuiteRunsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListTestCasesAsyncHelper(const Model::ListTestCasesRequest& request, const ListTestCasesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void StartSuiteRunAsyncHelper(const Model::StartSuiteRunRequest& request, const StartSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateSuiteDefinitionAsyncHelper(const Model::UpdateSuiteDefinitionRequest& request, const UpdateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + + Aws::String m_uri; + Aws::String m_configScheme; + std::shared_ptr m_executor; + }; + +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorEndpoint.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorEndpoint.h new file mode 100644 index 00000000000..90517d9e62c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorEndpoint.h @@ -0,0 +1,21 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ + +namespace IoTDeviceAdvisor +{ +namespace IoTDeviceAdvisorEndpoint +{ +AWS_IOTDEVICEADVISOR_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false); +} // namespace IoTDeviceAdvisorEndpoint +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrorMarshaller.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrorMarshaller.h new file mode 100644 index 00000000000..df226ee7972 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_IOTDEVICEADVISOR_API IoTDeviceAdvisorErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrors.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrors.h new file mode 100644 index 00000000000..ab426a4fe92 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorErrors.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +enum class IoTDeviceAdvisorErrors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVER +}; + +class AWS_IOTDEVICEADVISOR_API IoTDeviceAdvisorError : public Aws::Client::AWSError +{ +public: + IoTDeviceAdvisorError() {} + IoTDeviceAdvisorError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + IoTDeviceAdvisorError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + IoTDeviceAdvisorError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + IoTDeviceAdvisorError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace IoTDeviceAdvisorErrorMapper +{ + AWS_IOTDEVICEADVISOR_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorRequest.h new file mode 100644 index 00000000000..7d26e5231d1 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisorRequest.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ + class AWS_IOTDEVICEADVISOR_API IoTDeviceAdvisorRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + virtual ~IoTDeviceAdvisorRequest () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-09-18")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h new file mode 100644 index 00000000000..e1d7512807e --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_IOTDEVICEADVISOR_EXPORTS + #define AWS_IOTDEVICEADVISOR_API __declspec(dllexport) + #else + #define AWS_IOTDEVICEADVISOR_API __declspec(dllimport) + #endif /* AWS_IOTDEVICEADVISOR_EXPORTS */ + #else + #define AWS_IOTDEVICEADVISOR_API + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_IOTDEVICEADVISOR_API +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionRequest.h new file mode 100644 index 00000000000..d93e80bfed1 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionRequest.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API CreateSuiteDefinitionRequest : public IoTDeviceAdvisorRequest + { + public: + CreateSuiteDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateSuiteDefinition"; } + + Aws::String SerializePayload() const override; + + + /** + *

Creates a Device Advisor test suite with suite definition configuration.

+ */ + inline const SuiteDefinitionConfiguration& GetSuiteDefinitionConfiguration() const{ return m_suiteDefinitionConfiguration; } + + /** + *

Creates a Device Advisor test suite with suite definition configuration.

+ */ + inline bool SuiteDefinitionConfigurationHasBeenSet() const { return m_suiteDefinitionConfigurationHasBeenSet; } + + /** + *

Creates a Device Advisor test suite with suite definition configuration.

+ */ + inline void SetSuiteDefinitionConfiguration(const SuiteDefinitionConfiguration& value) { m_suiteDefinitionConfigurationHasBeenSet = true; m_suiteDefinitionConfiguration = value; } + + /** + *

Creates a Device Advisor test suite with suite definition configuration.

+ */ + inline void SetSuiteDefinitionConfiguration(SuiteDefinitionConfiguration&& value) { m_suiteDefinitionConfigurationHasBeenSet = true; m_suiteDefinitionConfiguration = std::move(value); } + + /** + *

Creates a Device Advisor test suite with suite definition configuration.

+ */ + inline CreateSuiteDefinitionRequest& WithSuiteDefinitionConfiguration(const SuiteDefinitionConfiguration& value) { SetSuiteDefinitionConfiguration(value); return *this;} + + /** + *

Creates a Device Advisor test suite with suite definition configuration.

+ */ + inline CreateSuiteDefinitionRequest& WithSuiteDefinitionConfiguration(SuiteDefinitionConfiguration&& value) { SetSuiteDefinitionConfiguration(std::move(value)); return *this;} + + + /** + *

The tags to be attached to the suite definition.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags to be attached to the suite definition.

+ */ + inline CreateSuiteDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + SuiteDefinitionConfiguration m_suiteDefinitionConfiguration; + bool m_suiteDefinitionConfigurationHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionResult.h new file mode 100644 index 00000000000..4b0c031c130 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/CreateSuiteDefinitionResult.h @@ -0,0 +1,187 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API CreateSuiteDefinitionResult + { + public: + CreateSuiteDefinitionResult(); + CreateSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result); + CreateSuiteDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionId = value; } + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionId = std::move(value); } + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionId.assign(value); } + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Creates a Device Advisor test suite with suite UUID.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline const Aws::String& GetSuiteDefinitionArn() const{ return m_suiteDefinitionArn; } + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline void SetSuiteDefinitionArn(const Aws::String& value) { m_suiteDefinitionArn = value; } + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline void SetSuiteDefinitionArn(Aws::String&& value) { m_suiteDefinitionArn = std::move(value); } + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline void SetSuiteDefinitionArn(const char* value) { m_suiteDefinitionArn.assign(value); } + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionArn(const Aws::String& value) { SetSuiteDefinitionArn(value); return *this;} + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionArn(Aws::String&& value) { SetSuiteDefinitionArn(std::move(value)); return *this;} + + /** + *

Creates a Device Advisor test suite with Amazon Resource name.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionArn(const char* value) { SetSuiteDefinitionArn(value); return *this;} + + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline const Aws::String& GetSuiteDefinitionName() const{ return m_suiteDefinitionName; } + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline void SetSuiteDefinitionName(const Aws::String& value) { m_suiteDefinitionName = value; } + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline void SetSuiteDefinitionName(Aws::String&& value) { m_suiteDefinitionName = std::move(value); } + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline void SetSuiteDefinitionName(const char* value) { m_suiteDefinitionName.assign(value); } + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionName(const Aws::String& value) { SetSuiteDefinitionName(value); return *this;} + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionName(Aws::String&& value) { SetSuiteDefinitionName(std::move(value)); return *this;} + + /** + *

Creates a Device Advisor test suite with suite definition name.

+ */ + inline CreateSuiteDefinitionResult& WithSuiteDefinitionName(const char* value) { SetSuiteDefinitionName(value); return *this;} + + + /** + *

Creates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

Creates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + + /** + *

Creates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + + /** + *

Creates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline CreateSuiteDefinitionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

Creates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline CreateSuiteDefinitionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + + Aws::String m_suiteDefinitionArn; + + Aws::String m_suiteDefinitionName; + + Aws::Utils::DateTime m_createdAt; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionRequest.h new file mode 100644 index 00000000000..71c8b2f97aa --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API DeleteSuiteDefinitionRequest : public IoTDeviceAdvisorRequest + { + public: + DeleteSuiteDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteSuiteDefinition"; } + + Aws::String SerializePayload() const override; + + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline DeleteSuiteDefinitionRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline DeleteSuiteDefinitionRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Deletes a Device Advisor test suite with defined suite Id.

+ */ + inline DeleteSuiteDefinitionRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionResult.h new file mode 100644 index 00000000000..177ccc0b6b2 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeleteSuiteDefinitionResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API DeleteSuiteDefinitionResult + { + public: + DeleteSuiteDefinitionResult(); + DeleteSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result); + DeleteSuiteDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeviceUnderTest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeviceUnderTest.h new file mode 100644 index 00000000000..f808ce45021 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/DeviceUnderTest.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Lists all the devices under test

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API DeviceUnderTest + { + public: + DeviceUnderTest(); + DeviceUnderTest(Aws::Utils::Json::JsonView jsonValue); + DeviceUnderTest& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Lists devices thing arn

+ */ + inline const Aws::String& GetThingArn() const{ return m_thingArn; } + + /** + *

Lists devices thing arn

+ */ + inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; } + + /** + *

Lists devices thing arn

+ */ + inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; } + + /** + *

Lists devices thing arn

+ */ + inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); } + + /** + *

Lists devices thing arn

+ */ + inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); } + + /** + *

Lists devices thing arn

+ */ + inline DeviceUnderTest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} + + /** + *

Lists devices thing arn

+ */ + inline DeviceUnderTest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} + + /** + *

Lists devices thing arn

+ */ + inline DeviceUnderTest& WithThingArn(const char* value) { SetThingArn(value); return *this;} + + + /** + *

Lists devices certificate arn

+ */ + inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } + + /** + *

Lists devices certificate arn

+ */ + inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } + + /** + *

Lists devices certificate arn

+ */ + inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } + + /** + *

Lists devices certificate arn

+ */ + inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } + + /** + *

Lists devices certificate arn

+ */ + inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } + + /** + *

Lists devices certificate arn

+ */ + inline DeviceUnderTest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} + + /** + *

Lists devices certificate arn

+ */ + inline DeviceUnderTest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} + + /** + *

Lists devices certificate arn

+ */ + inline DeviceUnderTest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} + + private: + + Aws::String m_thingArn; + bool m_thingArnHasBeenSet; + + Aws::String m_certificateArn; + bool m_certificateArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionRequest.h new file mode 100644 index 00000000000..b4d30576d76 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionRequest.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API GetSuiteDefinitionRequest : public IoTDeviceAdvisorRequest + { + public: + GetSuiteDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetSuiteDefinition"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Requests suite definition Id with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline bool SuiteDefinitionVersionHasBeenSet() const { return m_suiteDefinitionVersionHasBeenSet; } + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = value; } + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = std::move(value); } + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion.assign(value); } + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline GetSuiteDefinitionRequest& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline GetSuiteDefinitionRequest& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Requests the suite definition version of a test suite.

+ */ + inline GetSuiteDefinitionRequest& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteDefinitionVersion; + bool m_suiteDefinitionVersionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionResult.h new file mode 100644 index 00000000000..bfcad5e92d2 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteDefinitionResult.h @@ -0,0 +1,351 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API GetSuiteDefinitionResult + { + public: + GetSuiteDefinitionResult(); + GetSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result); + GetSuiteDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionId = value; } + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionId = std::move(value); } + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionId.assign(value); } + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Gets suite definition Id with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

The ARN of the suite definition.

+ */ + inline const Aws::String& GetSuiteDefinitionArn() const{ return m_suiteDefinitionArn; } + + /** + *

The ARN of the suite definition.

+ */ + inline void SetSuiteDefinitionArn(const Aws::String& value) { m_suiteDefinitionArn = value; } + + /** + *

The ARN of the suite definition.

+ */ + inline void SetSuiteDefinitionArn(Aws::String&& value) { m_suiteDefinitionArn = std::move(value); } + + /** + *

The ARN of the suite definition.

+ */ + inline void SetSuiteDefinitionArn(const char* value) { m_suiteDefinitionArn.assign(value); } + + /** + *

The ARN of the suite definition.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionArn(const Aws::String& value) { SetSuiteDefinitionArn(value); return *this;} + + /** + *

The ARN of the suite definition.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionArn(Aws::String&& value) { SetSuiteDefinitionArn(std::move(value)); return *this;} + + /** + *

The ARN of the suite definition.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionArn(const char* value) { SetSuiteDefinitionArn(value); return *this;} + + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersion = value; } + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersion = std::move(value); } + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersion.assign(value); } + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Gets suite definition version with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; } + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; } + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); } + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); } + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;} + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;} + + /** + *

Gets latest suite definition version with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;} + + + /** + *

Gets the suite configuration with GetSuiteDefinition API call.

+ */ + inline const SuiteDefinitionConfiguration& GetSuiteDefinitionConfiguration() const{ return m_suiteDefinitionConfiguration; } + + /** + *

Gets the suite configuration with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionConfiguration(const SuiteDefinitionConfiguration& value) { m_suiteDefinitionConfiguration = value; } + + /** + *

Gets the suite configuration with GetSuiteDefinition API call.

+ */ + inline void SetSuiteDefinitionConfiguration(SuiteDefinitionConfiguration&& value) { m_suiteDefinitionConfiguration = std::move(value); } + + /** + *

Gets the suite configuration with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionConfiguration(const SuiteDefinitionConfiguration& value) { SetSuiteDefinitionConfiguration(value); return *this;} + + /** + *

Gets the suite configuration with GetSuiteDefinition API call.

+ */ + inline GetSuiteDefinitionResult& WithSuiteDefinitionConfiguration(SuiteDefinitionConfiguration&& value) { SetSuiteDefinitionConfiguration(std::move(value)); return *this;} + + + /** + *

Gets the timestamp of the time suite was created with GetSuiteDefinition API + * call.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

Gets the timestamp of the time suite was created with GetSuiteDefinition API + * call.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + + /** + *

Gets the timestamp of the time suite was created with GetSuiteDefinition API + * call.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + + /** + *

Gets the timestamp of the time suite was created with GetSuiteDefinition API + * call.

+ */ + inline GetSuiteDefinitionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

Gets the timestamp of the time suite was created with GetSuiteDefinition API + * call.

+ */ + inline GetSuiteDefinitionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

Gets the timestamp of the time suite was modified with GetSuiteDefinition API + * call.

+ */ + inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; } + + /** + *

Gets the timestamp of the time suite was modified with GetSuiteDefinition API + * call.

+ */ + inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAt = value; } + + /** + *

Gets the timestamp of the time suite was modified with GetSuiteDefinition API + * call.

+ */ + inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAt = std::move(value); } + + /** + *

Gets the timestamp of the time suite was modified with GetSuiteDefinition API + * call.

+ */ + inline GetSuiteDefinitionResult& WithLastModifiedAt(const Aws::Utils::DateTime& value) { SetLastModifiedAt(value); return *this;} + + /** + *

Gets the timestamp of the time suite was modified with GetSuiteDefinition API + * call.

+ */ + inline GetSuiteDefinitionResult& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;} + + + /** + *

Tags attached to the suite definition.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

Tags attached to the suite definition.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

Tags attached to the suite definition.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

Tags attached to the suite definition.

+ */ + inline GetSuiteDefinitionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_suiteDefinitionId; + + Aws::String m_suiteDefinitionArn; + + Aws::String m_suiteDefinitionVersion; + + Aws::String m_latestVersion; + + SuiteDefinitionConfiguration m_suiteDefinitionConfiguration; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_lastModifiedAt; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportRequest.h new file mode 100644 index 00000000000..dcd55cf7769 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportRequest.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API GetSuiteRunReportRequest : public IoTDeviceAdvisorRequest + { + public: + GetSuiteRunReportRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetSuiteRunReport"; } + + Aws::String SerializePayload() const override; + + + /** + *

Device Advisor suite definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Device Advisor suite definition Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Device Advisor suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Device Advisor suite definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Device Advisor suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Device Advisor suite definition Id.

+ */ + inline GetSuiteRunReportRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Device Advisor suite definition Id.

+ */ + inline GetSuiteRunReportRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Device Advisor suite definition Id.

+ */ + inline GetSuiteRunReportRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Device Advisor suite run Id.

+ */ + inline const Aws::String& GetSuiteRunId() const{ return m_suiteRunId; } + + /** + *

Device Advisor suite run Id.

+ */ + inline bool SuiteRunIdHasBeenSet() const { return m_suiteRunIdHasBeenSet; } + + /** + *

Device Advisor suite run Id.

+ */ + inline void SetSuiteRunId(const Aws::String& value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId = value; } + + /** + *

Device Advisor suite run Id.

+ */ + inline void SetSuiteRunId(Aws::String&& value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId = std::move(value); } + + /** + *

Device Advisor suite run Id.

+ */ + inline void SetSuiteRunId(const char* value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId.assign(value); } + + /** + *

Device Advisor suite run Id.

+ */ + inline GetSuiteRunReportRequest& WithSuiteRunId(const Aws::String& value) { SetSuiteRunId(value); return *this;} + + /** + *

Device Advisor suite run Id.

+ */ + inline GetSuiteRunReportRequest& WithSuiteRunId(Aws::String&& value) { SetSuiteRunId(std::move(value)); return *this;} + + /** + *

Device Advisor suite run Id.

+ */ + inline GetSuiteRunReportRequest& WithSuiteRunId(const char* value) { SetSuiteRunId(value); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteRunId; + bool m_suiteRunIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportResult.h new file mode 100644 index 00000000000..9a80a2a4e83 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunReportResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API GetSuiteRunReportResult + { + public: + GetSuiteRunReportResult(); + GetSuiteRunReportResult(const Aws::AmazonWebServiceResult& result); + GetSuiteRunReportResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Gets the download URL of the qualification report.

+ */ + inline const Aws::String& GetQualificationReportDownloadUrl() const{ return m_qualificationReportDownloadUrl; } + + /** + *

Gets the download URL of the qualification report.

+ */ + inline void SetQualificationReportDownloadUrl(const Aws::String& value) { m_qualificationReportDownloadUrl = value; } + + /** + *

Gets the download URL of the qualification report.

+ */ + inline void SetQualificationReportDownloadUrl(Aws::String&& value) { m_qualificationReportDownloadUrl = std::move(value); } + + /** + *

Gets the download URL of the qualification report.

+ */ + inline void SetQualificationReportDownloadUrl(const char* value) { m_qualificationReportDownloadUrl.assign(value); } + + /** + *

Gets the download URL of the qualification report.

+ */ + inline GetSuiteRunReportResult& WithQualificationReportDownloadUrl(const Aws::String& value) { SetQualificationReportDownloadUrl(value); return *this;} + + /** + *

Gets the download URL of the qualification report.

+ */ + inline GetSuiteRunReportResult& WithQualificationReportDownloadUrl(Aws::String&& value) { SetQualificationReportDownloadUrl(std::move(value)); return *this;} + + /** + *

Gets the download URL of the qualification report.

+ */ + inline GetSuiteRunReportResult& WithQualificationReportDownloadUrl(const char* value) { SetQualificationReportDownloadUrl(value); return *this;} + + private: + + Aws::String m_qualificationReportDownloadUrl; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunRequest.h new file mode 100644 index 00000000000..8887b0a1219 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunRequest.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API GetSuiteRunRequest : public IoTDeviceAdvisorRequest + { + public: + GetSuiteRunRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetSuiteRun"; } + + Aws::String SerializePayload() const override; + + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline GetSuiteRunRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline GetSuiteRunRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Requests the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline GetSuiteRunRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline const Aws::String& GetSuiteRunId() const{ return m_suiteRunId; } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline bool SuiteRunIdHasBeenSet() const { return m_suiteRunIdHasBeenSet; } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline void SetSuiteRunId(const Aws::String& value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId = value; } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline void SetSuiteRunId(Aws::String&& value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId = std::move(value); } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline void SetSuiteRunId(const char* value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId.assign(value); } + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline GetSuiteRunRequest& WithSuiteRunId(const Aws::String& value) { SetSuiteRunId(value); return *this;} + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline GetSuiteRunRequest& WithSuiteRunId(Aws::String&& value) { SetSuiteRunId(std::move(value)); return *this;} + + /** + *

Requests the information about Device Advisor test suite run based on suite + * run Id.

+ */ + inline GetSuiteRunRequest& WithSuiteRunId(const char* value) { SetSuiteRunId(value); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteRunId; + bool m_suiteRunIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunResult.h new file mode 100644 index 00000000000..12b73baca52 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GetSuiteRunResult.h @@ -0,0 +1,483 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API GetSuiteRunResult + { + public: + GetSuiteRunResult(); + GetSuiteRunResult(const Aws::AmazonWebServiceResult& result); + GetSuiteRunResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionId = value; } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionId = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionId.assign(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline GetSuiteRunResult& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline GetSuiteRunResult& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition Id.

+ */ + inline GetSuiteRunResult& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersion = value; } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersion = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersion.assign(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline GetSuiteRunResult& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline GetSuiteRunResult& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite + * definition version.

+ */ + inline GetSuiteRunResult& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline const Aws::String& GetSuiteRunId() const{ return m_suiteRunId; } + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline void SetSuiteRunId(const Aws::String& value) { m_suiteRunId = value; } + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline void SetSuiteRunId(Aws::String&& value) { m_suiteRunId = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline void SetSuiteRunId(const char* value) { m_suiteRunId.assign(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline GetSuiteRunResult& WithSuiteRunId(const Aws::String& value) { SetSuiteRunId(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline GetSuiteRunResult& WithSuiteRunId(Aws::String&& value) { SetSuiteRunId(std::move(value)); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite run + * Id.

+ */ + inline GetSuiteRunResult& WithSuiteRunId(const char* value) { SetSuiteRunId(value); return *this;} + + + /** + *

The ARN of the suite run.

+ */ + inline const Aws::String& GetSuiteRunArn() const{ return m_suiteRunArn; } + + /** + *

The ARN of the suite run.

+ */ + inline void SetSuiteRunArn(const Aws::String& value) { m_suiteRunArn = value; } + + /** + *

The ARN of the suite run.

+ */ + inline void SetSuiteRunArn(Aws::String&& value) { m_suiteRunArn = std::move(value); } + + /** + *

The ARN of the suite run.

+ */ + inline void SetSuiteRunArn(const char* value) { m_suiteRunArn.assign(value); } + + /** + *

The ARN of the suite run.

+ */ + inline GetSuiteRunResult& WithSuiteRunArn(const Aws::String& value) { SetSuiteRunArn(value); return *this;} + + /** + *

The ARN of the suite run.

+ */ + inline GetSuiteRunResult& WithSuiteRunArn(Aws::String&& value) { SetSuiteRunArn(std::move(value)); return *this;} + + /** + *

The ARN of the suite run.

+ */ + inline GetSuiteRunResult& WithSuiteRunArn(const char* value) { SetSuiteRunArn(value); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on suite + * configuration.

+ */ + inline const SuiteRunConfiguration& GetSuiteRunConfiguration() const{ return m_suiteRunConfiguration; } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * configuration.

+ */ + inline void SetSuiteRunConfiguration(const SuiteRunConfiguration& value) { m_suiteRunConfiguration = value; } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * configuration.

+ */ + inline void SetSuiteRunConfiguration(SuiteRunConfiguration&& value) { m_suiteRunConfiguration = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on suite + * configuration.

+ */ + inline GetSuiteRunResult& WithSuiteRunConfiguration(const SuiteRunConfiguration& value) { SetSuiteRunConfiguration(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on suite + * configuration.

+ */ + inline GetSuiteRunResult& WithSuiteRunConfiguration(SuiteRunConfiguration&& value) { SetSuiteRunConfiguration(std::move(value)); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on test case + * runs.

+ */ + inline const TestResult& GetTestResult() const{ return m_testResult; } + + /** + *

Gets the information about Device Advisor test suite run based on test case + * runs.

+ */ + inline void SetTestResult(const TestResult& value) { m_testResult = value; } + + /** + *

Gets the information about Device Advisor test suite run based on test case + * runs.

+ */ + inline void SetTestResult(TestResult&& value) { m_testResult = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on test case + * runs.

+ */ + inline GetSuiteRunResult& WithTestResult(const TestResult& value) { SetTestResult(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on test case + * runs.

+ */ + inline GetSuiteRunResult& WithTestResult(TestResult&& value) { SetTestResult(std::move(value)); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on start + * time.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

Gets the information about Device Advisor test suite run based on start + * time.

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } + + /** + *

Gets the information about Device Advisor test suite run based on start + * time.

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on start + * time.

+ */ + inline GetSuiteRunResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on start + * time.

+ */ + inline GetSuiteRunResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on end + * time.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

Gets the information about Device Advisor test suite run based on end + * time.

+ */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; } + + /** + *

Gets the information about Device Advisor test suite run based on end + * time.

+ */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on end + * time.

+ */ + inline GetSuiteRunResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on end + * time.

+ */ + inline GetSuiteRunResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on its + * status.

+ */ + inline const SuiteRunStatus& GetStatus() const{ return m_status; } + + /** + *

Gets the information about Device Advisor test suite run based on its + * status.

+ */ + inline void SetStatus(const SuiteRunStatus& value) { m_status = value; } + + /** + *

Gets the information about Device Advisor test suite run based on its + * status.

+ */ + inline void SetStatus(SuiteRunStatus&& value) { m_status = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on its + * status.

+ */ + inline GetSuiteRunResult& WithStatus(const SuiteRunStatus& value) { SetStatus(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on its + * status.

+ */ + inline GetSuiteRunResult& WithStatus(SuiteRunStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline const Aws::String& GetErrorReason() const{ return m_errorReason; } + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline void SetErrorReason(const Aws::String& value) { m_errorReason = value; } + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline void SetErrorReason(Aws::String&& value) { m_errorReason = std::move(value); } + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline void SetErrorReason(const char* value) { m_errorReason.assign(value); } + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline GetSuiteRunResult& WithErrorReason(const Aws::String& value) { SetErrorReason(value); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline GetSuiteRunResult& WithErrorReason(Aws::String&& value) { SetErrorReason(std::move(value)); return *this;} + + /** + *

Gets the information about Device Advisor test suite run based on error.

+ */ + inline GetSuiteRunResult& WithErrorReason(const char* value) { SetErrorReason(value); return *this;} + + + /** + *

The tags attached to the suite run.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The tags attached to the suite run.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

The tags attached to the suite run.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags attached to the suite run.

+ */ + inline GetSuiteRunResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_suiteDefinitionId; + + Aws::String m_suiteDefinitionVersion; + + Aws::String m_suiteRunId; + + Aws::String m_suiteRunArn; + + SuiteRunConfiguration m_suiteRunConfiguration; + + TestResult m_testResult; + + Aws::Utils::DateTime m_startTime; + + Aws::Utils::DateTime m_endTime; + + SuiteRunStatus m_status; + + Aws::String m_errorReason; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GroupResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GroupResult.h new file mode 100644 index 00000000000..0011254668b --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/GroupResult.h @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Show Group Result.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API GroupResult + { + public: + GroupResult(); + GroupResult(Aws::Utils::Json::JsonView jsonValue); + GroupResult& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Show Group Result Id.

+ */ + inline const Aws::String& GetGroupId() const{ return m_groupId; } + + /** + *

Show Group Result Id.

+ */ + inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } + + /** + *

Show Group Result Id.

+ */ + inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } + + /** + *

Show Group Result Id.

+ */ + inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } + + /** + *

Show Group Result Id.

+ */ + inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } + + /** + *

Show Group Result Id.

+ */ + inline GroupResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} + + /** + *

Show Group Result Id.

+ */ + inline GroupResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} + + /** + *

Show Group Result Id.

+ */ + inline GroupResult& WithGroupId(const char* value) { SetGroupId(value); return *this;} + + + /** + *

Show Group Result Name.

+ */ + inline const Aws::String& GetGroupName() const{ return m_groupName; } + + /** + *

Show Group Result Name.

+ */ + inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } + + /** + *

Show Group Result Name.

+ */ + inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } + + /** + *

Show Group Result Name.

+ */ + inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } + + /** + *

Show Group Result Name.

+ */ + inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } + + /** + *

Show Group Result Name.

+ */ + inline GroupResult& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} + + /** + *

Show Group Result Name.

+ */ + inline GroupResult& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} + + /** + *

Show Group Result Name.

+ */ + inline GroupResult& WithGroupName(const char* value) { SetGroupName(value); return *this;} + + + /** + *

Show Group Result.

+ */ + inline const Aws::Vector& GetTests() const{ return m_tests; } + + /** + *

Show Group Result.

+ */ + inline bool TestsHasBeenSet() const { return m_testsHasBeenSet; } + + /** + *

Show Group Result.

+ */ + inline void SetTests(const Aws::Vector& value) { m_testsHasBeenSet = true; m_tests = value; } + + /** + *

Show Group Result.

+ */ + inline void SetTests(Aws::Vector&& value) { m_testsHasBeenSet = true; m_tests = std::move(value); } + + /** + *

Show Group Result.

+ */ + inline GroupResult& WithTests(const Aws::Vector& value) { SetTests(value); return *this;} + + /** + *

Show Group Result.

+ */ + inline GroupResult& WithTests(Aws::Vector&& value) { SetTests(std::move(value)); return *this;} + + /** + *

Show Group Result.

+ */ + inline GroupResult& AddTests(const TestCaseRun& value) { m_testsHasBeenSet = true; m_tests.push_back(value); return *this; } + + /** + *

Show Group Result.

+ */ + inline GroupResult& AddTests(TestCaseRun&& value) { m_testsHasBeenSet = true; m_tests.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_groupId; + bool m_groupIdHasBeenSet; + + Aws::String m_groupName; + bool m_groupNameHasBeenSet; + + Aws::Vector m_tests; + bool m_testsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsRequest.h new file mode 100644 index 00000000000..7d348c03b57 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsRequest.h @@ -0,0 +1,113 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API ListSuiteDefinitionsRequest : public IoTDeviceAdvisorRequest + { + public: + ListSuiteDefinitionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListSuiteDefinitions"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

Request the list of all the Device Advisor test suites.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

Request the list of all the Device Advisor test suites.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

Request the list of all the Device Advisor test suites.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

Request the list of all the Device Advisor test suites.

+ */ + inline ListSuiteDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline ListSuiteDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline ListSuiteDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Requests the Device Advisor test suites next token.

+ */ + inline ListSuiteDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsResult.h new file mode 100644 index 00000000000..dbbd3c1b8dc --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteDefinitionsResult.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API ListSuiteDefinitionsResult + { + public: + ListSuiteDefinitionsResult(); + ListSuiteDefinitionsResult(const Aws::AmazonWebServiceResult& result); + ListSuiteDefinitionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Lists test suite information using List suite definition.

+ */ + inline const Aws::Vector& GetSuiteDefinitionInformationList() const{ return m_suiteDefinitionInformationList; } + + /** + *

Lists test suite information using List suite definition.

+ */ + inline void SetSuiteDefinitionInformationList(const Aws::Vector& value) { m_suiteDefinitionInformationList = value; } + + /** + *

Lists test suite information using List suite definition.

+ */ + inline void SetSuiteDefinitionInformationList(Aws::Vector&& value) { m_suiteDefinitionInformationList = std::move(value); } + + /** + *

Lists test suite information using List suite definition.

+ */ + inline ListSuiteDefinitionsResult& WithSuiteDefinitionInformationList(const Aws::Vector& value) { SetSuiteDefinitionInformationList(value); return *this;} + + /** + *

Lists test suite information using List suite definition.

+ */ + inline ListSuiteDefinitionsResult& WithSuiteDefinitionInformationList(Aws::Vector&& value) { SetSuiteDefinitionInformationList(std::move(value)); return *this;} + + /** + *

Lists test suite information using List suite definition.

+ */ + inline ListSuiteDefinitionsResult& AddSuiteDefinitionInformationList(const SuiteDefinitionInformation& value) { m_suiteDefinitionInformationList.push_back(value); return *this; } + + /** + *

Lists test suite information using List suite definition.

+ */ + inline ListSuiteDefinitionsResult& AddSuiteDefinitionInformationList(SuiteDefinitionInformation&& value) { m_suiteDefinitionInformationList.push_back(std::move(value)); return *this; } + + + /** + *

Creates a Device Advisor test suite.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Creates a Device Advisor test suite.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

Creates a Device Advisor test suite.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

Creates a Device Advisor test suite.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

Creates a Device Advisor test suite.

+ */ + inline ListSuiteDefinitionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Creates a Device Advisor test suite.

+ */ + inline ListSuiteDefinitionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Creates a Device Advisor test suite.

+ */ + inline ListSuiteDefinitionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_suiteDefinitionInformationList; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsRequest.h new file mode 100644 index 00000000000..cf0a3660876 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsRequest.h @@ -0,0 +1,217 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API ListSuiteRunsRequest : public IoTDeviceAdvisorRequest + { + public: + ListSuiteRunsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListSuiteRuns"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline ListSuiteRunsRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline ListSuiteRunsRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition Id.

+ */ + inline ListSuiteRunsRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline bool SuiteDefinitionVersionHasBeenSet() const { return m_suiteDefinitionVersionHasBeenSet; } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = value; } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = std::move(value); } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion.assign(value); } + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline ListSuiteRunsRequest& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline ListSuiteRunsRequest& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Lists the runs of the specified Device Advisor test suite based on suite + * definition version.

+ */ + inline ListSuiteRunsRequest& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + + /** + *

MaxResults for list suite run API request.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

MaxResults for list suite run API request.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

MaxResults for list suite run API request.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

MaxResults for list suite run API request.

+ */ + inline ListSuiteRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

Next pagination token for list suite run request.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Next pagination token for list suite run request.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

Next pagination token for list suite run request.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

Next pagination token for list suite run request.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

Next pagination token for list suite run request.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

Next pagination token for list suite run request.

+ */ + inline ListSuiteRunsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Next pagination token for list suite run request.

+ */ + inline ListSuiteRunsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Next pagination token for list suite run request.

+ */ + inline ListSuiteRunsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteDefinitionVersion; + bool m_suiteDefinitionVersionHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsResult.h new file mode 100644 index 00000000000..91ca25dcb6a --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListSuiteRunsResult.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API ListSuiteRunsResult + { + public: + ListSuiteRunsResult(); + ListSuiteRunsResult(const Aws::AmazonWebServiceResult& result); + ListSuiteRunsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline const Aws::Vector& GetSuiteRunsList() const{ return m_suiteRunsList; } + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline void SetSuiteRunsList(const Aws::Vector& value) { m_suiteRunsList = value; } + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline void SetSuiteRunsList(Aws::Vector&& value) { m_suiteRunsList = std::move(value); } + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline ListSuiteRunsResult& WithSuiteRunsList(const Aws::Vector& value) { SetSuiteRunsList(value); return *this;} + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline ListSuiteRunsResult& WithSuiteRunsList(Aws::Vector&& value) { SetSuiteRunsList(std::move(value)); return *this;} + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline ListSuiteRunsResult& AddSuiteRunsList(const SuiteRunInformation& value) { m_suiteRunsList.push_back(value); return *this; } + + /** + *

Lists the runs of the specified Device Advisor test suite.

+ */ + inline ListSuiteRunsResult& AddSuiteRunsList(SuiteRunInformation&& value) { m_suiteRunsList.push_back(std::move(value)); return *this; } + + + /** + *

Next pagination token for list suite run response.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Next pagination token for list suite run response.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

Next pagination token for list suite run response.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

Next pagination token for list suite run response.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

Next pagination token for list suite run response.

+ */ + inline ListSuiteRunsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Next pagination token for list suite run response.

+ */ + inline ListSuiteRunsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Next pagination token for list suite run response.

+ */ + inline ListSuiteRunsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_suiteRunsList; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..7dec47e9ba5 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API ListTagsForResourceRequest : public IoTDeviceAdvisorRequest + { + public: + ListTagsForResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..a7985d7d742 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTagsForResourceResult.h @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API ListTagsForResourceResult + { + public: + ListTagsForResourceResult(); + ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags attached to the IoT Device Advisor resource.

+ */ + inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesRequest.h new file mode 100644 index 00000000000..4212cc4a2db --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesRequest.h @@ -0,0 +1,137 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API ListTestCasesRequest : public IoTDeviceAdvisorRequest + { + public: + ListTestCasesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListTestCases"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

Lists all the qualification test cases in the test suite.

+ */ + inline bool GetIntendedForQualification() const{ return m_intendedForQualification; } + + /** + *

Lists all the qualification test cases in the test suite.

+ */ + inline bool IntendedForQualificationHasBeenSet() const { return m_intendedForQualificationHasBeenSet; } + + /** + *

Lists all the qualification test cases in the test suite.

+ */ + inline void SetIntendedForQualification(bool value) { m_intendedForQualificationHasBeenSet = true; m_intendedForQualification = value; } + + /** + *

Lists all the qualification test cases in the test suite.

+ */ + inline ListTestCasesRequest& WithIntendedForQualification(bool value) { SetIntendedForQualification(value); return *this;} + + + /** + *

Requests the test cases max results.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

Requests the test cases max results.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

Requests the test cases max results.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

Requests the test cases max results.

+ */ + inline ListTestCasesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

Requests the test cases next token.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Requests the test cases next token.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

Requests the test cases next token.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

Requests the test cases next token.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

Requests the test cases next token.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

Requests the test cases next token.

+ */ + inline ListTestCasesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Requests the test cases next token.

+ */ + inline ListTestCasesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Requests the test cases next token.

+ */ + inline ListTestCasesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + bool m_intendedForQualification; + bool m_intendedForQualificationHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesResult.h new file mode 100644 index 00000000000..554db4f877c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/ListTestCasesResult.h @@ -0,0 +1,244 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API ListTestCasesResult + { + public: + ListTestCasesResult(); + ListTestCasesResult(const Aws::AmazonWebServiceResult& result); + ListTestCasesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Gets the category of test case.

+ */ + inline const Aws::Vector& GetCategories() const{ return m_categories; } + + /** + *

Gets the category of test case.

+ */ + inline void SetCategories(const Aws::Vector& value) { m_categories = value; } + + /** + *

Gets the category of test case.

+ */ + inline void SetCategories(Aws::Vector&& value) { m_categories = std::move(value); } + + /** + *

Gets the category of test case.

+ */ + inline ListTestCasesResult& WithCategories(const Aws::Vector& value) { SetCategories(value); return *this;} + + /** + *

Gets the category of test case.

+ */ + inline ListTestCasesResult& WithCategories(Aws::Vector&& value) { SetCategories(std::move(value)); return *this;} + + /** + *

Gets the category of test case.

+ */ + inline ListTestCasesResult& AddCategories(const TestCaseCategory& value) { m_categories.push_back(value); return *this; } + + /** + *

Gets the category of test case.

+ */ + inline ListTestCasesResult& AddCategories(TestCaseCategory&& value) { m_categories.push_back(std::move(value)); return *this; } + + + /** + *

Gets the configuration of root test group.

+ */ + inline const Aws::Map& GetRootGroupConfiguration() const{ return m_rootGroupConfiguration; } + + /** + *

Gets the configuration of root test group.

+ */ + inline void SetRootGroupConfiguration(const Aws::Map& value) { m_rootGroupConfiguration = value; } + + /** + *

Gets the configuration of root test group.

+ */ + inline void SetRootGroupConfiguration(Aws::Map&& value) { m_rootGroupConfiguration = std::move(value); } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& WithRootGroupConfiguration(const Aws::Map& value) { SetRootGroupConfiguration(value); return *this;} + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& WithRootGroupConfiguration(Aws::Map&& value) { SetRootGroupConfiguration(std::move(value)); return *this;} + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(const Aws::String& key, const Aws::String& value) { m_rootGroupConfiguration.emplace(key, value); return *this; } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(Aws::String&& key, const Aws::String& value) { m_rootGroupConfiguration.emplace(std::move(key), value); return *this; } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(const Aws::String& key, Aws::String&& value) { m_rootGroupConfiguration.emplace(key, std::move(value)); return *this; } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(Aws::String&& key, Aws::String&& value) { m_rootGroupConfiguration.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(const char* key, Aws::String&& value) { m_rootGroupConfiguration.emplace(key, std::move(value)); return *this; } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(Aws::String&& key, const char* value) { m_rootGroupConfiguration.emplace(std::move(key), value); return *this; } + + /** + *

Gets the configuration of root test group.

+ */ + inline ListTestCasesResult& AddRootGroupConfiguration(const char* key, const char* value) { m_rootGroupConfiguration.emplace(key, value); return *this; } + + + /** + *

Gets the configuration of test group.

+ */ + inline const Aws::Map& GetGroupConfiguration() const{ return m_groupConfiguration; } + + /** + *

Gets the configuration of test group.

+ */ + inline void SetGroupConfiguration(const Aws::Map& value) { m_groupConfiguration = value; } + + /** + *

Gets the configuration of test group.

+ */ + inline void SetGroupConfiguration(Aws::Map&& value) { m_groupConfiguration = std::move(value); } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& WithGroupConfiguration(const Aws::Map& value) { SetGroupConfiguration(value); return *this;} + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& WithGroupConfiguration(Aws::Map&& value) { SetGroupConfiguration(std::move(value)); return *this;} + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(const Aws::String& key, const Aws::String& value) { m_groupConfiguration.emplace(key, value); return *this; } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(Aws::String&& key, const Aws::String& value) { m_groupConfiguration.emplace(std::move(key), value); return *this; } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(const Aws::String& key, Aws::String&& value) { m_groupConfiguration.emplace(key, std::move(value)); return *this; } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(Aws::String&& key, Aws::String&& value) { m_groupConfiguration.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(const char* key, Aws::String&& value) { m_groupConfiguration.emplace(key, std::move(value)); return *this; } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(Aws::String&& key, const char* value) { m_groupConfiguration.emplace(std::move(key), value); return *this; } + + /** + *

Gets the configuration of test group.

+ */ + inline ListTestCasesResult& AddGroupConfiguration(const char* key, const char* value) { m_groupConfiguration.emplace(key, value); return *this; } + + + /** + *

Test cases next token response.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

Test cases next token response.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

Test cases next token response.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

Test cases next token response.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

Test cases next token response.

+ */ + inline ListTestCasesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

Test cases next token response.

+ */ + inline ListTestCasesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

Test cases next token response.

+ */ + inline ListTestCasesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_categories; + + Aws::Map m_rootGroupConfiguration; + + Aws::Map m_groupConfiguration; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunRequest.h new file mode 100644 index 00000000000..69081c894c0 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunRequest.h @@ -0,0 +1,232 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API StartSuiteRunRequest : public IoTDeviceAdvisorRequest + { + public: + StartSuiteRunRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "StartSuiteRun"; } + + Aws::String SerializePayload() const override; + + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline StartSuiteRunRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline StartSuiteRunRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Request to start suite run based on suite definition Id.

+ */ + inline StartSuiteRunRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline bool SuiteDefinitionVersionHasBeenSet() const { return m_suiteDefinitionVersionHasBeenSet; } + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = value; } + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = std::move(value); } + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion.assign(value); } + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline StartSuiteRunRequest& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline StartSuiteRunRequest& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Request to start suite run based on suite definition version.

+ */ + inline StartSuiteRunRequest& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + + /** + *

Request to start suite run based on suite configuration.

+ */ + inline const SuiteRunConfiguration& GetSuiteRunConfiguration() const{ return m_suiteRunConfiguration; } + + /** + *

Request to start suite run based on suite configuration.

+ */ + inline bool SuiteRunConfigurationHasBeenSet() const { return m_suiteRunConfigurationHasBeenSet; } + + /** + *

Request to start suite run based on suite configuration.

+ */ + inline void SetSuiteRunConfiguration(const SuiteRunConfiguration& value) { m_suiteRunConfigurationHasBeenSet = true; m_suiteRunConfiguration = value; } + + /** + *

Request to start suite run based on suite configuration.

+ */ + inline void SetSuiteRunConfiguration(SuiteRunConfiguration&& value) { m_suiteRunConfigurationHasBeenSet = true; m_suiteRunConfiguration = std::move(value); } + + /** + *

Request to start suite run based on suite configuration.

+ */ + inline StartSuiteRunRequest& WithSuiteRunConfiguration(const SuiteRunConfiguration& value) { SetSuiteRunConfiguration(value); return *this;} + + /** + *

Request to start suite run based on suite configuration.

+ */ + inline StartSuiteRunRequest& WithSuiteRunConfiguration(SuiteRunConfiguration&& value) { SetSuiteRunConfiguration(std::move(value)); return *this;} + + + /** + *

The tags to be attached to the suite run.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags to be attached to the suite run.

+ */ + inline StartSuiteRunRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteDefinitionVersion; + bool m_suiteDefinitionVersionHasBeenSet; + + SuiteRunConfiguration m_suiteRunConfiguration; + bool m_suiteRunConfigurationHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunResult.h new file mode 100644 index 00000000000..ce976b1d159 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/StartSuiteRunResult.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API StartSuiteRunResult + { + public: + StartSuiteRunResult(); + StartSuiteRunResult(const Aws::AmazonWebServiceResult& result); + StartSuiteRunResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline const Aws::String& GetSuiteRunId() const{ return m_suiteRunId; } + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline void SetSuiteRunId(const Aws::String& value) { m_suiteRunId = value; } + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline void SetSuiteRunId(Aws::String&& value) { m_suiteRunId = std::move(value); } + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline void SetSuiteRunId(const char* value) { m_suiteRunId.assign(value); } + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline StartSuiteRunResult& WithSuiteRunId(const Aws::String& value) { SetSuiteRunId(value); return *this;} + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline StartSuiteRunResult& WithSuiteRunId(Aws::String&& value) { SetSuiteRunId(std::move(value)); return *this;} + + /** + *

Starts a Device Advisor test suite run based on suite Run Id.

+ */ + inline StartSuiteRunResult& WithSuiteRunId(const char* value) { SetSuiteRunId(value); return *this;} + + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline const Aws::String& GetSuiteRunArn() const{ return m_suiteRunArn; } + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline void SetSuiteRunArn(const Aws::String& value) { m_suiteRunArn = value; } + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline void SetSuiteRunArn(Aws::String&& value) { m_suiteRunArn = std::move(value); } + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline void SetSuiteRunArn(const char* value) { m_suiteRunArn.assign(value); } + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline StartSuiteRunResult& WithSuiteRunArn(const Aws::String& value) { SetSuiteRunArn(value); return *this;} + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline StartSuiteRunResult& WithSuiteRunArn(Aws::String&& value) { SetSuiteRunArn(std::move(value)); return *this;} + + /** + *

Starts a Device Advisor test suite run based on suite run arn.

+ */ + inline StartSuiteRunResult& WithSuiteRunArn(const char* value) { SetSuiteRunArn(value); return *this;} + + + /** + *

Starts a Device Advisor test suite run based on suite create time.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

Starts a Device Advisor test suite run based on suite create time.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + + /** + *

Starts a Device Advisor test suite run based on suite create time.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + + /** + *

Starts a Device Advisor test suite run based on suite create time.

+ */ + inline StartSuiteRunResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

Starts a Device Advisor test suite run based on suite create time.

+ */ + inline StartSuiteRunResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + private: + + Aws::String m_suiteRunId; + + Aws::String m_suiteRunArn; + + Aws::Utils::DateTime m_createdAt; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/Status.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/Status.h new file mode 100644 index 00000000000..93deb3b0898 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/Status.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + enum class Status + { + NOT_SET, + PASS, + FAIL, + CANCELED, + PENDING, + RUNNING, + PASS_WITH_WARNINGS, + ERROR_ + }; + +namespace StatusMapper +{ +AWS_IOTDEVICEADVISOR_API Status GetStatusForName(const Aws::String& name); + +AWS_IOTDEVICEADVISOR_API Aws::String GetNameForStatus(Status value); +} // namespace StatusMapper +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionConfiguration.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionConfiguration.h new file mode 100644 index 00000000000..98f6fad7e4b --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionConfiguration.h @@ -0,0 +1,246 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Gets Suite Definition Configuration.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API SuiteDefinitionConfiguration + { + public: + SuiteDefinitionConfiguration(); + SuiteDefinitionConfiguration(Aws::Utils::Json::JsonView jsonValue); + SuiteDefinitionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline const Aws::String& GetSuiteDefinitionName() const{ return m_suiteDefinitionName; } + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline bool SuiteDefinitionNameHasBeenSet() const { return m_suiteDefinitionNameHasBeenSet; } + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline void SetSuiteDefinitionName(const Aws::String& value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName = value; } + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline void SetSuiteDefinitionName(Aws::String&& value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName = std::move(value); } + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline void SetSuiteDefinitionName(const char* value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName.assign(value); } + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline SuiteDefinitionConfiguration& WithSuiteDefinitionName(const Aws::String& value) { SetSuiteDefinitionName(value); return *this;} + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline SuiteDefinitionConfiguration& WithSuiteDefinitionName(Aws::String&& value) { SetSuiteDefinitionName(std::move(value)); return *this;} + + /** + *

Gets Suite Definition Configuration name.

+ */ + inline SuiteDefinitionConfiguration& WithSuiteDefinitionName(const char* value) { SetSuiteDefinitionName(value); return *this;} + + + /** + *

Gets the devices configured.

+ */ + inline const Aws::Vector& GetDevices() const{ return m_devices; } + + /** + *

Gets the devices configured.

+ */ + inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; } + + /** + *

Gets the devices configured.

+ */ + inline void SetDevices(const Aws::Vector& value) { m_devicesHasBeenSet = true; m_devices = value; } + + /** + *

Gets the devices configured.

+ */ + inline void SetDevices(Aws::Vector&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); } + + /** + *

Gets the devices configured.

+ */ + inline SuiteDefinitionConfiguration& WithDevices(const Aws::Vector& value) { SetDevices(value); return *this;} + + /** + *

Gets the devices configured.

+ */ + inline SuiteDefinitionConfiguration& WithDevices(Aws::Vector&& value) { SetDevices(std::move(value)); return *this;} + + /** + *

Gets the devices configured.

+ */ + inline SuiteDefinitionConfiguration& AddDevices(const DeviceUnderTest& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; } + + /** + *

Gets the devices configured.

+ */ + inline SuiteDefinitionConfiguration& AddDevices(DeviceUnderTest&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; } + + + /** + *

Gets the tests intended for qualification in a suite.

+ */ + inline bool GetIntendedForQualification() const{ return m_intendedForQualification; } + + /** + *

Gets the tests intended for qualification in a suite.

+ */ + inline bool IntendedForQualificationHasBeenSet() const { return m_intendedForQualificationHasBeenSet; } + + /** + *

Gets the tests intended for qualification in a suite.

+ */ + inline void SetIntendedForQualification(bool value) { m_intendedForQualificationHasBeenSet = true; m_intendedForQualification = value; } + + /** + *

Gets the tests intended for qualification in a suite.

+ */ + inline SuiteDefinitionConfiguration& WithIntendedForQualification(bool value) { SetIntendedForQualification(value); return *this;} + + + /** + *

Gets test suite root group.

+ */ + inline const Aws::String& GetRootGroup() const{ return m_rootGroup; } + + /** + *

Gets test suite root group.

+ */ + inline bool RootGroupHasBeenSet() const { return m_rootGroupHasBeenSet; } + + /** + *

Gets test suite root group.

+ */ + inline void SetRootGroup(const Aws::String& value) { m_rootGroupHasBeenSet = true; m_rootGroup = value; } + + /** + *

Gets test suite root group.

+ */ + inline void SetRootGroup(Aws::String&& value) { m_rootGroupHasBeenSet = true; m_rootGroup = std::move(value); } + + /** + *

Gets test suite root group.

+ */ + inline void SetRootGroup(const char* value) { m_rootGroupHasBeenSet = true; m_rootGroup.assign(value); } + + /** + *

Gets test suite root group.

+ */ + inline SuiteDefinitionConfiguration& WithRootGroup(const Aws::String& value) { SetRootGroup(value); return *this;} + + /** + *

Gets test suite root group.

+ */ + inline SuiteDefinitionConfiguration& WithRootGroup(Aws::String&& value) { SetRootGroup(std::move(value)); return *this;} + + /** + *

Gets test suite root group.

+ */ + inline SuiteDefinitionConfiguration& WithRootGroup(const char* value) { SetRootGroup(value); return *this;} + + + /** + *

Gets device permission arn.

+ */ + inline const Aws::String& GetDevicePermissionRoleArn() const{ return m_devicePermissionRoleArn; } + + /** + *

Gets device permission arn.

+ */ + inline bool DevicePermissionRoleArnHasBeenSet() const { return m_devicePermissionRoleArnHasBeenSet; } + + /** + *

Gets device permission arn.

+ */ + inline void SetDevicePermissionRoleArn(const Aws::String& value) { m_devicePermissionRoleArnHasBeenSet = true; m_devicePermissionRoleArn = value; } + + /** + *

Gets device permission arn.

+ */ + inline void SetDevicePermissionRoleArn(Aws::String&& value) { m_devicePermissionRoleArnHasBeenSet = true; m_devicePermissionRoleArn = std::move(value); } + + /** + *

Gets device permission arn.

+ */ + inline void SetDevicePermissionRoleArn(const char* value) { m_devicePermissionRoleArnHasBeenSet = true; m_devicePermissionRoleArn.assign(value); } + + /** + *

Gets device permission arn.

+ */ + inline SuiteDefinitionConfiguration& WithDevicePermissionRoleArn(const Aws::String& value) { SetDevicePermissionRoleArn(value); return *this;} + + /** + *

Gets device permission arn.

+ */ + inline SuiteDefinitionConfiguration& WithDevicePermissionRoleArn(Aws::String&& value) { SetDevicePermissionRoleArn(std::move(value)); return *this;} + + /** + *

Gets device permission arn.

+ */ + inline SuiteDefinitionConfiguration& WithDevicePermissionRoleArn(const char* value) { SetDevicePermissionRoleArn(value); return *this;} + + private: + + Aws::String m_suiteDefinitionName; + bool m_suiteDefinitionNameHasBeenSet; + + Aws::Vector m_devices; + bool m_devicesHasBeenSet; + + bool m_intendedForQualification; + bool m_intendedForQualificationHasBeenSet; + + Aws::String m_rootGroup; + bool m_rootGroupHasBeenSet; + + Aws::String m_devicePermissionRoleArn; + bool m_devicePermissionRoleArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionInformation.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionInformation.h new file mode 100644 index 00000000000..a17542feecf --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteDefinitionInformation.h @@ -0,0 +1,237 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Get suite definition information.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API SuiteDefinitionInformation + { + public: + SuiteDefinitionInformation(); + SuiteDefinitionInformation(Aws::Utils::Json::JsonView jsonValue); + SuiteDefinitionInformation& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Get suite definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Get suite definition Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Get suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Get suite definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Get suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Get suite definition Id.

+ */ + inline SuiteDefinitionInformation& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Get suite definition Id.

+ */ + inline SuiteDefinitionInformation& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Get suite definition Id.

+ */ + inline SuiteDefinitionInformation& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Get test suite name.

+ */ + inline const Aws::String& GetSuiteDefinitionName() const{ return m_suiteDefinitionName; } + + /** + *

Get test suite name.

+ */ + inline bool SuiteDefinitionNameHasBeenSet() const { return m_suiteDefinitionNameHasBeenSet; } + + /** + *

Get test suite name.

+ */ + inline void SetSuiteDefinitionName(const Aws::String& value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName = value; } + + /** + *

Get test suite name.

+ */ + inline void SetSuiteDefinitionName(Aws::String&& value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName = std::move(value); } + + /** + *

Get test suite name.

+ */ + inline void SetSuiteDefinitionName(const char* value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName.assign(value); } + + /** + *

Get test suite name.

+ */ + inline SuiteDefinitionInformation& WithSuiteDefinitionName(const Aws::String& value) { SetSuiteDefinitionName(value); return *this;} + + /** + *

Get test suite name.

+ */ + inline SuiteDefinitionInformation& WithSuiteDefinitionName(Aws::String&& value) { SetSuiteDefinitionName(std::move(value)); return *this;} + + /** + *

Get test suite name.

+ */ + inline SuiteDefinitionInformation& WithSuiteDefinitionName(const char* value) { SetSuiteDefinitionName(value); return *this;} + + + /** + *

Specifies the devices under test.

+ */ + inline const Aws::Vector& GetDefaultDevices() const{ return m_defaultDevices; } + + /** + *

Specifies the devices under test.

+ */ + inline bool DefaultDevicesHasBeenSet() const { return m_defaultDevicesHasBeenSet; } + + /** + *

Specifies the devices under test.

+ */ + inline void SetDefaultDevices(const Aws::Vector& value) { m_defaultDevicesHasBeenSet = true; m_defaultDevices = value; } + + /** + *

Specifies the devices under test.

+ */ + inline void SetDefaultDevices(Aws::Vector&& value) { m_defaultDevicesHasBeenSet = true; m_defaultDevices = std::move(value); } + + /** + *

Specifies the devices under test.

+ */ + inline SuiteDefinitionInformation& WithDefaultDevices(const Aws::Vector& value) { SetDefaultDevices(value); return *this;} + + /** + *

Specifies the devices under test.

+ */ + inline SuiteDefinitionInformation& WithDefaultDevices(Aws::Vector&& value) { SetDefaultDevices(std::move(value)); return *this;} + + /** + *

Specifies the devices under test.

+ */ + inline SuiteDefinitionInformation& AddDefaultDevices(const DeviceUnderTest& value) { m_defaultDevicesHasBeenSet = true; m_defaultDevices.push_back(value); return *this; } + + /** + *

Specifies the devices under test.

+ */ + inline SuiteDefinitionInformation& AddDefaultDevices(DeviceUnderTest&& value) { m_defaultDevicesHasBeenSet = true; m_defaultDevices.push_back(std::move(value)); return *this; } + + + /** + *

Gets the test suites which will be used for qualification.

+ */ + inline bool GetIntendedForQualification() const{ return m_intendedForQualification; } + + /** + *

Gets the test suites which will be used for qualification.

+ */ + inline bool IntendedForQualificationHasBeenSet() const { return m_intendedForQualificationHasBeenSet; } + + /** + *

Gets the test suites which will be used for qualification.

+ */ + inline void SetIntendedForQualification(bool value) { m_intendedForQualificationHasBeenSet = true; m_intendedForQualification = value; } + + /** + *

Gets the test suites which will be used for qualification.

+ */ + inline SuiteDefinitionInformation& WithIntendedForQualification(bool value) { SetIntendedForQualification(value); return *this;} + + + /** + *

Gets the information of when the test suite was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

Gets the information of when the test suite was created.

+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

Gets the information of when the test suite was created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

Gets the information of when the test suite was created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

Gets the information of when the test suite was created.

+ */ + inline SuiteDefinitionInformation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

Gets the information of when the test suite was created.

+ */ + inline SuiteDefinitionInformation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteDefinitionName; + bool m_suiteDefinitionNameHasBeenSet; + + Aws::Vector m_defaultDevices; + bool m_defaultDevicesHasBeenSet; + + bool m_intendedForQualification; + bool m_intendedForQualificationHasBeenSet; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunConfiguration.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunConfiguration.h new file mode 100644 index 00000000000..214a43d90e7 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunConfiguration.h @@ -0,0 +1,163 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Gets suite run configuration.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API SuiteRunConfiguration + { + public: + SuiteRunConfiguration(); + SuiteRunConfiguration(Aws::Utils::Json::JsonView jsonValue); + SuiteRunConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Gets the primary device for suite run.

+ */ + inline const DeviceUnderTest& GetPrimaryDevice() const{ return m_primaryDevice; } + + /** + *

Gets the primary device for suite run.

+ */ + inline bool PrimaryDeviceHasBeenSet() const { return m_primaryDeviceHasBeenSet; } + + /** + *

Gets the primary device for suite run.

+ */ + inline void SetPrimaryDevice(const DeviceUnderTest& value) { m_primaryDeviceHasBeenSet = true; m_primaryDevice = value; } + + /** + *

Gets the primary device for suite run.

+ */ + inline void SetPrimaryDevice(DeviceUnderTest&& value) { m_primaryDeviceHasBeenSet = true; m_primaryDevice = std::move(value); } + + /** + *

Gets the primary device for suite run.

+ */ + inline SuiteRunConfiguration& WithPrimaryDevice(const DeviceUnderTest& value) { SetPrimaryDevice(value); return *this;} + + /** + *

Gets the primary device for suite run.

+ */ + inline SuiteRunConfiguration& WithPrimaryDevice(DeviceUnderTest&& value) { SetPrimaryDevice(std::move(value)); return *this;} + + + /** + *

Gets the secondary device for suite run.

+ */ + inline const DeviceUnderTest& GetSecondaryDevice() const{ return m_secondaryDevice; } + + /** + *

Gets the secondary device for suite run.

+ */ + inline bool SecondaryDeviceHasBeenSet() const { return m_secondaryDeviceHasBeenSet; } + + /** + *

Gets the secondary device for suite run.

+ */ + inline void SetSecondaryDevice(const DeviceUnderTest& value) { m_secondaryDeviceHasBeenSet = true; m_secondaryDevice = value; } + + /** + *

Gets the secondary device for suite run.

+ */ + inline void SetSecondaryDevice(DeviceUnderTest&& value) { m_secondaryDeviceHasBeenSet = true; m_secondaryDevice = std::move(value); } + + /** + *

Gets the secondary device for suite run.

+ */ + inline SuiteRunConfiguration& WithSecondaryDevice(const DeviceUnderTest& value) { SetSecondaryDevice(value); return *this;} + + /** + *

Gets the secondary device for suite run.

+ */ + inline SuiteRunConfiguration& WithSecondaryDevice(DeviceUnderTest&& value) { SetSecondaryDevice(std::move(value)); return *this;} + + + /** + *

Gets test case list.

+ */ + inline const Aws::Vector& GetSelectedTestList() const{ return m_selectedTestList; } + + /** + *

Gets test case list.

+ */ + inline bool SelectedTestListHasBeenSet() const { return m_selectedTestListHasBeenSet; } + + /** + *

Gets test case list.

+ */ + inline void SetSelectedTestList(const Aws::Vector& value) { m_selectedTestListHasBeenSet = true; m_selectedTestList = value; } + + /** + *

Gets test case list.

+ */ + inline void SetSelectedTestList(Aws::Vector&& value) { m_selectedTestListHasBeenSet = true; m_selectedTestList = std::move(value); } + + /** + *

Gets test case list.

+ */ + inline SuiteRunConfiguration& WithSelectedTestList(const Aws::Vector& value) { SetSelectedTestList(value); return *this;} + + /** + *

Gets test case list.

+ */ + inline SuiteRunConfiguration& WithSelectedTestList(Aws::Vector&& value) { SetSelectedTestList(std::move(value)); return *this;} + + /** + *

Gets test case list.

+ */ + inline SuiteRunConfiguration& AddSelectedTestList(const Aws::String& value) { m_selectedTestListHasBeenSet = true; m_selectedTestList.push_back(value); return *this; } + + /** + *

Gets test case list.

+ */ + inline SuiteRunConfiguration& AddSelectedTestList(Aws::String&& value) { m_selectedTestListHasBeenSet = true; m_selectedTestList.push_back(std::move(value)); return *this; } + + /** + *

Gets test case list.

+ */ + inline SuiteRunConfiguration& AddSelectedTestList(const char* value) { m_selectedTestListHasBeenSet = true; m_selectedTestList.push_back(value); return *this; } + + private: + + DeviceUnderTest m_primaryDevice; + bool m_primaryDeviceHasBeenSet; + + DeviceUnderTest m_secondaryDevice; + bool m_secondaryDeviceHasBeenSet; + + Aws::Vector m_selectedTestList; + bool m_selectedTestListHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunInformation.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunInformation.h new file mode 100644 index 00000000000..c75b0bc505e --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunInformation.h @@ -0,0 +1,406 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Get suite run information.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API SuiteRunInformation + { + public: + SuiteRunInformation(); + SuiteRunInformation(Aws::Utils::Json::JsonView jsonValue); + SuiteRunInformation& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Get suite run information based on suite definition Id.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Get suite run information based on suite definition version.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Get suite run information based on suite definition version.

+ */ + inline bool SuiteDefinitionVersionHasBeenSet() const { return m_suiteDefinitionVersionHasBeenSet; } + + /** + *

Get suite run information based on suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = value; } + + /** + *

Get suite run information based on suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion = std::move(value); } + + /** + *

Get suite run information based on suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersionHasBeenSet = true; m_suiteDefinitionVersion.assign(value); } + + /** + *

Get suite run information based on suite definition version.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Get suite run information based on suite definition version.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Get suite run information based on suite definition version.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + + /** + *

Get suite run information based on suite definition name.

+ */ + inline const Aws::String& GetSuiteDefinitionName() const{ return m_suiteDefinitionName; } + + /** + *

Get suite run information based on suite definition name.

+ */ + inline bool SuiteDefinitionNameHasBeenSet() const { return m_suiteDefinitionNameHasBeenSet; } + + /** + *

Get suite run information based on suite definition name.

+ */ + inline void SetSuiteDefinitionName(const Aws::String& value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName = value; } + + /** + *

Get suite run information based on suite definition name.

+ */ + inline void SetSuiteDefinitionName(Aws::String&& value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName = std::move(value); } + + /** + *

Get suite run information based on suite definition name.

+ */ + inline void SetSuiteDefinitionName(const char* value) { m_suiteDefinitionNameHasBeenSet = true; m_suiteDefinitionName.assign(value); } + + /** + *

Get suite run information based on suite definition name.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionName(const Aws::String& value) { SetSuiteDefinitionName(value); return *this;} + + /** + *

Get suite run information based on suite definition name.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionName(Aws::String&& value) { SetSuiteDefinitionName(std::move(value)); return *this;} + + /** + *

Get suite run information based on suite definition name.

+ */ + inline SuiteRunInformation& WithSuiteDefinitionName(const char* value) { SetSuiteDefinitionName(value); return *this;} + + + /** + *

Get suite run information based on suite run Id.

+ */ + inline const Aws::String& GetSuiteRunId() const{ return m_suiteRunId; } + + /** + *

Get suite run information based on suite run Id.

+ */ + inline bool SuiteRunIdHasBeenSet() const { return m_suiteRunIdHasBeenSet; } + + /** + *

Get suite run information based on suite run Id.

+ */ + inline void SetSuiteRunId(const Aws::String& value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId = value; } + + /** + *

Get suite run information based on suite run Id.

+ */ + inline void SetSuiteRunId(Aws::String&& value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId = std::move(value); } + + /** + *

Get suite run information based on suite run Id.

+ */ + inline void SetSuiteRunId(const char* value) { m_suiteRunIdHasBeenSet = true; m_suiteRunId.assign(value); } + + /** + *

Get suite run information based on suite run Id.

+ */ + inline SuiteRunInformation& WithSuiteRunId(const Aws::String& value) { SetSuiteRunId(value); return *this;} + + /** + *

Get suite run information based on suite run Id.

+ */ + inline SuiteRunInformation& WithSuiteRunId(Aws::String&& value) { SetSuiteRunId(std::move(value)); return *this;} + + /** + *

Get suite run information based on suite run Id.

+ */ + inline SuiteRunInformation& WithSuiteRunId(const char* value) { SetSuiteRunId(value); return *this;} + + + /** + *

Get suite run information based on time suite was created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

Get suite run information based on time suite was created.

+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *

Get suite run information based on time suite was created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *

Get suite run information based on time suite was created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *

Get suite run information based on time suite was created.

+ */ + inline SuiteRunInformation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

Get suite run information based on time suite was created.

+ */ + inline SuiteRunInformation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

Get suite run information based on start time of the run.

+ */ + inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } + + /** + *

Get suite run information based on start time of the run.

+ */ + inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } + + /** + *

Get suite run information based on start time of the run.

+ */ + inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } + + /** + *

Get suite run information based on start time of the run.

+ */ + inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } + + /** + *

Get suite run information based on start time of the run.

+ */ + inline SuiteRunInformation& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} + + /** + *

Get suite run information based on start time of the run.

+ */ + inline SuiteRunInformation& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} + + + /** + *

Get suite run information based on end time of the run.

+ */ + inline const Aws::Utils::DateTime& GetEndAt() const{ return m_endAt; } + + /** + *

Get suite run information based on end time of the run.

+ */ + inline bool EndAtHasBeenSet() const { return m_endAtHasBeenSet; } + + /** + *

Get suite run information based on end time of the run.

+ */ + inline void SetEndAt(const Aws::Utils::DateTime& value) { m_endAtHasBeenSet = true; m_endAt = value; } + + /** + *

Get suite run information based on end time of the run.

+ */ + inline void SetEndAt(Aws::Utils::DateTime&& value) { m_endAtHasBeenSet = true; m_endAt = std::move(value); } + + /** + *

Get suite run information based on end time of the run.

+ */ + inline SuiteRunInformation& WithEndAt(const Aws::Utils::DateTime& value) { SetEndAt(value); return *this;} + + /** + *

Get suite run information based on end time of the run.

+ */ + inline SuiteRunInformation& WithEndAt(Aws::Utils::DateTime&& value) { SetEndAt(std::move(value)); return *this;} + + + /** + *

Get suite run information based on test run status.

+ */ + inline const SuiteRunStatus& GetStatus() const{ return m_status; } + + /** + *

Get suite run information based on test run status.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

Get suite run information based on test run status.

+ */ + inline void SetStatus(const SuiteRunStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

Get suite run information based on test run status.

+ */ + inline void SetStatus(SuiteRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

Get suite run information based on test run status.

+ */ + inline SuiteRunInformation& WithStatus(const SuiteRunStatus& value) { SetStatus(value); return *this;} + + /** + *

Get suite run information based on test run status.

+ */ + inline SuiteRunInformation& WithStatus(SuiteRunStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline int GetPassed() const{ return m_passed; } + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline bool PassedHasBeenSet() const { return m_passedHasBeenSet; } + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline void SetPassed(int value) { m_passedHasBeenSet = true; m_passed = value; } + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline SuiteRunInformation& WithPassed(int value) { SetPassed(value); return *this;} + + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline int GetFailed() const{ return m_failed; } + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; } + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline void SetFailed(int value) { m_failedHasBeenSet = true; m_failed = value; } + + /** + *

Get suite run information based on result of the test suite run.

+ */ + inline SuiteRunInformation& WithFailed(int value) { SetFailed(value); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + Aws::String m_suiteDefinitionVersion; + bool m_suiteDefinitionVersionHasBeenSet; + + Aws::String m_suiteDefinitionName; + bool m_suiteDefinitionNameHasBeenSet; + + Aws::String m_suiteRunId; + bool m_suiteRunIdHasBeenSet; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + Aws::Utils::DateTime m_startedAt; + bool m_startedAtHasBeenSet; + + Aws::Utils::DateTime m_endAt; + bool m_endAtHasBeenSet; + + SuiteRunStatus m_status; + bool m_statusHasBeenSet; + + int m_passed; + bool m_passedHasBeenSet; + + int m_failed; + bool m_failedHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunStatus.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunStatus.h new file mode 100644 index 00000000000..fc3dec84f85 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/SuiteRunStatus.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + enum class SuiteRunStatus + { + NOT_SET, + PASS, + FAIL, + CANCELED, + PENDING, + RUNNING, + PASS_WITH_WARNINGS, + ERROR_ + }; + +namespace SuiteRunStatusMapper +{ +AWS_IOTDEVICEADVISOR_API SuiteRunStatus GetSuiteRunStatusForName(const Aws::String& name); + +AWS_IOTDEVICEADVISOR_API Aws::String GetNameForSuiteRunStatus(SuiteRunStatus value); +} // namespace SuiteRunStatusMapper +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceRequest.h new file mode 100644 index 00000000000..49853c9fb9b --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceRequest.h @@ -0,0 +1,153 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API TagResourceRequest : public IoTDeviceAdvisorRequest + { + public: + TagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "TagResource"; } + + Aws::String SerializePayload() const override; + + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The tags to be attached to the IoT Device Advisor resource.

+ */ + inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceResult.h new file mode 100644 index 00000000000..2b32f3195e3 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API TagResourceResult + { + public: + TagResourceResult(); + TagResourceResult(const Aws::AmazonWebServiceResult& result); + TagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCase.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCase.h new file mode 100644 index 00000000000..b22e5c4d7b7 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCase.h @@ -0,0 +1,193 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Shows tests in a test group.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API TestCase + { + public: + TestCase(); + TestCase(Aws::Utils::Json::JsonView jsonValue); + TestCase& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Shows test case name.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

Shows test case name.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

Shows test case name.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

Shows test case name.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

Shows test case name.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

Shows test case name.

+ */ + inline TestCase& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

Shows test case name.

+ */ + inline TestCase& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

Shows test case name.

+ */ + inline TestCase& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

Shows test case configuration.

+ */ + inline const Aws::Map& GetConfiguration() const{ return m_configuration; } + + /** + *

Shows test case configuration.

+ */ + inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } + + /** + *

Shows test case configuration.

+ */ + inline void SetConfiguration(const Aws::Map& value) { m_configurationHasBeenSet = true; m_configuration = value; } + + /** + *

Shows test case configuration.

+ */ + inline void SetConfiguration(Aws::Map&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& WithConfiguration(const Aws::Map& value) { SetConfiguration(value); return *this;} + + /** + *

Shows test case configuration.

+ */ + inline TestCase& WithConfiguration(Aws::Map&& value) { SetConfiguration(std::move(value)); return *this;} + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; } + + /** + *

Shows test case configuration.

+ */ + inline TestCase& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; } + + + /** + *

Specifies a test.

+ */ + inline const TestCaseDefinition& GetTest() const{ return m_test; } + + /** + *

Specifies a test.

+ */ + inline bool TestHasBeenSet() const { return m_testHasBeenSet; } + + /** + *

Specifies a test.

+ */ + inline void SetTest(const TestCaseDefinition& value) { m_testHasBeenSet = true; m_test = value; } + + /** + *

Specifies a test.

+ */ + inline void SetTest(TestCaseDefinition&& value) { m_testHasBeenSet = true; m_test = std::move(value); } + + /** + *

Specifies a test.

+ */ + inline TestCase& WithTest(const TestCaseDefinition& value) { SetTest(value); return *this;} + + /** + *

Specifies a test.

+ */ + inline TestCase& WithTest(TestCaseDefinition&& value) { SetTest(std::move(value)); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::Map m_configuration; + bool m_configurationHasBeenSet; + + TestCaseDefinition m_test; + bool m_testHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseCategory.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseCategory.h new file mode 100644 index 00000000000..7e154c7b5d5 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseCategory.h @@ -0,0 +1,134 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Gets the test case category.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API TestCaseCategory + { + public: + TestCaseCategory(); + TestCaseCategory(Aws::Utils::Json::JsonView jsonValue); + TestCaseCategory& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Lists all the tests name in the specified category.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

Lists all the tests name in the specified category.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

Lists all the tests name in the specified category.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

Lists all the tests name in the specified category.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

Lists all the tests name in the specified category.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

Lists all the tests name in the specified category.

+ */ + inline TestCaseCategory& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

Lists all the tests name in the specified category.

+ */ + inline TestCaseCategory& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

Lists all the tests name in the specified category.

+ */ + inline TestCaseCategory& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

Lists all the tests in the specified category.

+ */ + inline const Aws::Vector& GetTests() const{ return m_tests; } + + /** + *

Lists all the tests in the specified category.

+ */ + inline bool TestsHasBeenSet() const { return m_testsHasBeenSet; } + + /** + *

Lists all the tests in the specified category.

+ */ + inline void SetTests(const Aws::Vector& value) { m_testsHasBeenSet = true; m_tests = value; } + + /** + *

Lists all the tests in the specified category.

+ */ + inline void SetTests(Aws::Vector&& value) { m_testsHasBeenSet = true; m_tests = std::move(value); } + + /** + *

Lists all the tests in the specified category.

+ */ + inline TestCaseCategory& WithTests(const Aws::Vector& value) { SetTests(value); return *this;} + + /** + *

Lists all the tests in the specified category.

+ */ + inline TestCaseCategory& WithTests(Aws::Vector&& value) { SetTests(std::move(value)); return *this;} + + /** + *

Lists all the tests in the specified category.

+ */ + inline TestCaseCategory& AddTests(const TestCase& value) { m_testsHasBeenSet = true; m_tests.push_back(value); return *this; } + + /** + *

Lists all the tests in the specified category.

+ */ + inline TestCaseCategory& AddTests(TestCase&& value) { m_testsHasBeenSet = true; m_tests.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::Vector m_tests; + bool m_testsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseDefinition.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseDefinition.h new file mode 100644 index 00000000000..85204875540 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseDefinition.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Provides test case definition.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API TestCaseDefinition + { + public: + TestCaseDefinition(); + TestCaseDefinition(Aws::Utils::Json::JsonView jsonValue); + TestCaseDefinition& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Provides test case definition Id.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

Provides test case definition Id.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

Provides test case definition Id.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

Provides test case definition Id.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

Provides test case definition Id.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

Provides test case definition Id.

+ */ + inline TestCaseDefinition& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

Provides test case definition Id.

+ */ + inline TestCaseDefinition& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

Provides test case definition Id.

+ */ + inline TestCaseDefinition& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

Provides test case definition version.

+ */ + inline const Aws::String& GetTestCaseVersion() const{ return m_testCaseVersion; } + + /** + *

Provides test case definition version.

+ */ + inline bool TestCaseVersionHasBeenSet() const { return m_testCaseVersionHasBeenSet; } + + /** + *

Provides test case definition version.

+ */ + inline void SetTestCaseVersion(const Aws::String& value) { m_testCaseVersionHasBeenSet = true; m_testCaseVersion = value; } + + /** + *

Provides test case definition version.

+ */ + inline void SetTestCaseVersion(Aws::String&& value) { m_testCaseVersionHasBeenSet = true; m_testCaseVersion = std::move(value); } + + /** + *

Provides test case definition version.

+ */ + inline void SetTestCaseVersion(const char* value) { m_testCaseVersionHasBeenSet = true; m_testCaseVersion.assign(value); } + + /** + *

Provides test case definition version.

+ */ + inline TestCaseDefinition& WithTestCaseVersion(const Aws::String& value) { SetTestCaseVersion(value); return *this;} + + /** + *

Provides test case definition version.

+ */ + inline TestCaseDefinition& WithTestCaseVersion(Aws::String&& value) { SetTestCaseVersion(std::move(value)); return *this;} + + /** + *

Provides test case definition version.

+ */ + inline TestCaseDefinition& WithTestCaseVersion(const char* value) { SetTestCaseVersion(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_testCaseVersion; + bool m_testCaseVersionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseRun.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseRun.h new file mode 100644 index 00000000000..de4fef025ac --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestCaseRun.h @@ -0,0 +1,412 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Provides test case run.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API TestCaseRun + { + public: + TestCaseRun(); + TestCaseRun(Aws::Utils::Json::JsonView jsonValue); + TestCaseRun& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Provides test case run Id.

+ */ + inline const Aws::String& GetTestCaseRunId() const{ return m_testCaseRunId; } + + /** + *

Provides test case run Id.

+ */ + inline bool TestCaseRunIdHasBeenSet() const { return m_testCaseRunIdHasBeenSet; } + + /** + *

Provides test case run Id.

+ */ + inline void SetTestCaseRunId(const Aws::String& value) { m_testCaseRunIdHasBeenSet = true; m_testCaseRunId = value; } + + /** + *

Provides test case run Id.

+ */ + inline void SetTestCaseRunId(Aws::String&& value) { m_testCaseRunIdHasBeenSet = true; m_testCaseRunId = std::move(value); } + + /** + *

Provides test case run Id.

+ */ + inline void SetTestCaseRunId(const char* value) { m_testCaseRunIdHasBeenSet = true; m_testCaseRunId.assign(value); } + + /** + *

Provides test case run Id.

+ */ + inline TestCaseRun& WithTestCaseRunId(const Aws::String& value) { SetTestCaseRunId(value); return *this;} + + /** + *

Provides test case run Id.

+ */ + inline TestCaseRun& WithTestCaseRunId(Aws::String&& value) { SetTestCaseRunId(std::move(value)); return *this;} + + /** + *

Provides test case run Id.

+ */ + inline TestCaseRun& WithTestCaseRunId(const char* value) { SetTestCaseRunId(value); return *this;} + + + /** + *

Provides test case run definition Id.

+ */ + inline const Aws::String& GetTestCaseDefinitionId() const{ return m_testCaseDefinitionId; } + + /** + *

Provides test case run definition Id.

+ */ + inline bool TestCaseDefinitionIdHasBeenSet() const { return m_testCaseDefinitionIdHasBeenSet; } + + /** + *

Provides test case run definition Id.

+ */ + inline void SetTestCaseDefinitionId(const Aws::String& value) { m_testCaseDefinitionIdHasBeenSet = true; m_testCaseDefinitionId = value; } + + /** + *

Provides test case run definition Id.

+ */ + inline void SetTestCaseDefinitionId(Aws::String&& value) { m_testCaseDefinitionIdHasBeenSet = true; m_testCaseDefinitionId = std::move(value); } + + /** + *

Provides test case run definition Id.

+ */ + inline void SetTestCaseDefinitionId(const char* value) { m_testCaseDefinitionIdHasBeenSet = true; m_testCaseDefinitionId.assign(value); } + + /** + *

Provides test case run definition Id.

+ */ + inline TestCaseRun& WithTestCaseDefinitionId(const Aws::String& value) { SetTestCaseDefinitionId(value); return *this;} + + /** + *

Provides test case run definition Id.

+ */ + inline TestCaseRun& WithTestCaseDefinitionId(Aws::String&& value) { SetTestCaseDefinitionId(std::move(value)); return *this;} + + /** + *

Provides test case run definition Id.

+ */ + inline TestCaseRun& WithTestCaseDefinitionId(const char* value) { SetTestCaseDefinitionId(value); return *this;} + + + /** + *

Provides test case run definition Name.

+ */ + inline const Aws::String& GetTestCaseDefinitionName() const{ return m_testCaseDefinitionName; } + + /** + *

Provides test case run definition Name.

+ */ + inline bool TestCaseDefinitionNameHasBeenSet() const { return m_testCaseDefinitionNameHasBeenSet; } + + /** + *

Provides test case run definition Name.

+ */ + inline void SetTestCaseDefinitionName(const Aws::String& value) { m_testCaseDefinitionNameHasBeenSet = true; m_testCaseDefinitionName = value; } + + /** + *

Provides test case run definition Name.

+ */ + inline void SetTestCaseDefinitionName(Aws::String&& value) { m_testCaseDefinitionNameHasBeenSet = true; m_testCaseDefinitionName = std::move(value); } + + /** + *

Provides test case run definition Name.

+ */ + inline void SetTestCaseDefinitionName(const char* value) { m_testCaseDefinitionNameHasBeenSet = true; m_testCaseDefinitionName.assign(value); } + + /** + *

Provides test case run definition Name.

+ */ + inline TestCaseRun& WithTestCaseDefinitionName(const Aws::String& value) { SetTestCaseDefinitionName(value); return *this;} + + /** + *

Provides test case run definition Name.

+ */ + inline TestCaseRun& WithTestCaseDefinitionName(Aws::String&& value) { SetTestCaseDefinitionName(std::move(value)); return *this;} + + /** + *

Provides test case run definition Name.

+ */ + inline TestCaseRun& WithTestCaseDefinitionName(const char* value) { SetTestCaseDefinitionName(value); return *this;} + + + /** + *

Provides test case run status.

+ */ + inline const Status& GetStatus() const{ return m_status; } + + /** + *

Provides test case run status.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

Provides test case run status.

+ */ + inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

Provides test case run status.

+ */ + inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

Provides test case run status.

+ */ + inline TestCaseRun& WithStatus(const Status& value) { SetStatus(value); return *this;} + + /** + *

Provides test case run status.

+ */ + inline TestCaseRun& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

Provides test case run start time.

+ */ + inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } + + /** + *

Provides test case run start time.

+ */ + inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } + + /** + *

Provides test case run start time.

+ */ + inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } + + /** + *

Provides test case run start time.

+ */ + inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } + + /** + *

Provides test case run start time.

+ */ + inline TestCaseRun& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} + + /** + *

Provides test case run start time.

+ */ + inline TestCaseRun& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} + + + /** + *

Provides test case run end time.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + + /** + *

Provides test case run end time.

+ */ + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + + /** + *

Provides test case run end time.

+ */ + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + + /** + *

Provides test case run end time.

+ */ + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + + /** + *

Provides test case run end time.

+ */ + inline TestCaseRun& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + + /** + *

Provides test case run end time.

+ */ + inline TestCaseRun& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + + + /** + *

Provides test case run log Url.

+ */ + inline const Aws::String& GetLogUrl() const{ return m_logUrl; } + + /** + *

Provides test case run log Url.

+ */ + inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; } + + /** + *

Provides test case run log Url.

+ */ + inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; } + + /** + *

Provides test case run log Url.

+ */ + inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); } + + /** + *

Provides test case run log Url.

+ */ + inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); } + + /** + *

Provides test case run log Url.

+ */ + inline TestCaseRun& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;} + + /** + *

Provides test case run log Url.

+ */ + inline TestCaseRun& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;} + + /** + *

Provides test case run log Url.

+ */ + inline TestCaseRun& WithLogUrl(const char* value) { SetLogUrl(value); return *this;} + + + /** + *

Provides test case run warnings.

+ */ + inline const Aws::String& GetWarnings() const{ return m_warnings; } + + /** + *

Provides test case run warnings.

+ */ + inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; } + + /** + *

Provides test case run warnings.

+ */ + inline void SetWarnings(const Aws::String& value) { m_warningsHasBeenSet = true; m_warnings = value; } + + /** + *

Provides test case run warnings.

+ */ + inline void SetWarnings(Aws::String&& value) { m_warningsHasBeenSet = true; m_warnings = std::move(value); } + + /** + *

Provides test case run warnings.

+ */ + inline void SetWarnings(const char* value) { m_warningsHasBeenSet = true; m_warnings.assign(value); } + + /** + *

Provides test case run warnings.

+ */ + inline TestCaseRun& WithWarnings(const Aws::String& value) { SetWarnings(value); return *this;} + + /** + *

Provides test case run warnings.

+ */ + inline TestCaseRun& WithWarnings(Aws::String&& value) { SetWarnings(std::move(value)); return *this;} + + /** + *

Provides test case run warnings.

+ */ + inline TestCaseRun& WithWarnings(const char* value) { SetWarnings(value); return *this;} + + + /** + *

Provides test case run failure result.

+ */ + inline const Aws::String& GetFailure() const{ return m_failure; } + + /** + *

Provides test case run failure result.

+ */ + inline bool FailureHasBeenSet() const { return m_failureHasBeenSet; } + + /** + *

Provides test case run failure result.

+ */ + inline void SetFailure(const Aws::String& value) { m_failureHasBeenSet = true; m_failure = value; } + + /** + *

Provides test case run failure result.

+ */ + inline void SetFailure(Aws::String&& value) { m_failureHasBeenSet = true; m_failure = std::move(value); } + + /** + *

Provides test case run failure result.

+ */ + inline void SetFailure(const char* value) { m_failureHasBeenSet = true; m_failure.assign(value); } + + /** + *

Provides test case run failure result.

+ */ + inline TestCaseRun& WithFailure(const Aws::String& value) { SetFailure(value); return *this;} + + /** + *

Provides test case run failure result.

+ */ + inline TestCaseRun& WithFailure(Aws::String&& value) { SetFailure(std::move(value)); return *this;} + + /** + *

Provides test case run failure result.

+ */ + inline TestCaseRun& WithFailure(const char* value) { SetFailure(value); return *this;} + + private: + + Aws::String m_testCaseRunId; + bool m_testCaseRunIdHasBeenSet; + + Aws::String m_testCaseDefinitionId; + bool m_testCaseDefinitionIdHasBeenSet; + + Aws::String m_testCaseDefinitionName; + bool m_testCaseDefinitionNameHasBeenSet; + + Status m_status; + bool m_statusHasBeenSet; + + Aws::Utils::DateTime m_startTime; + bool m_startTimeHasBeenSet; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet; + + Aws::String m_logUrl; + bool m_logUrlHasBeenSet; + + Aws::String m_warnings; + bool m_warningsHasBeenSet; + + Aws::String m_failure; + bool m_failureHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestResult.h new file mode 100644 index 00000000000..e7438483394 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/TestResult.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + *

Show each group result.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTDEVICEADVISOR_API TestResult + { + public: + TestResult(); + TestResult(Aws::Utils::Json::JsonView jsonValue); + TestResult& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

Show each group of test results.

+ */ + inline const Aws::Vector& GetGroups() const{ return m_groups; } + + /** + *

Show each group of test results.

+ */ + inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } + + /** + *

Show each group of test results.

+ */ + inline void SetGroups(const Aws::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } + + /** + *

Show each group of test results.

+ */ + inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } + + /** + *

Show each group of test results.

+ */ + inline TestResult& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} + + /** + *

Show each group of test results.

+ */ + inline TestResult& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} + + /** + *

Show each group of test results.

+ */ + inline TestResult& AddGroups(const GroupResult& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } + + /** + *

Show each group of test results.

+ */ + inline TestResult& AddGroups(GroupResult&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_groups; + bool m_groupsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceRequest.h new file mode 100644 index 00000000000..012f4e73c6b --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceRequest.h @@ -0,0 +1,139 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API UntagResourceRequest : public IoTDeviceAdvisorRequest + { + public: + UntagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The resource ARN of an IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *

List of tag keys to remove from the IoT Device Advisor resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceResult.h new file mode 100644 index 00000000000..9f7b3172c30 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UntagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API UntagResourceResult + { + public: + UntagResourceResult(); + UntagResourceResult(const Aws::AmazonWebServiceResult& result); + UntagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionRequest.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionRequest.h new file mode 100644 index 00000000000..d1652480be5 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionRequest.h @@ -0,0 +1,118 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + + /** + */ + class AWS_IOTDEVICEADVISOR_API UpdateSuiteDefinitionRequest : public IoTDeviceAdvisorRequest + { + public: + UpdateSuiteDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateSuiteDefinition"; } + + Aws::String SerializePayload() const override; + + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline bool SuiteDefinitionIdHasBeenSet() const { return m_suiteDefinitionIdHasBeenSet; } + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = value; } + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId = std::move(value); } + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionIdHasBeenSet = true; m_suiteDefinitionId.assign(value); } + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline UpdateSuiteDefinitionRequest& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline UpdateSuiteDefinitionRequest& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition id.

+ */ + inline UpdateSuiteDefinitionRequest& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Updates a Device Advisor test suite with suite definition configuration.

+ */ + inline const SuiteDefinitionConfiguration& GetSuiteDefinitionConfiguration() const{ return m_suiteDefinitionConfiguration; } + + /** + *

Updates a Device Advisor test suite with suite definition configuration.

+ */ + inline bool SuiteDefinitionConfigurationHasBeenSet() const { return m_suiteDefinitionConfigurationHasBeenSet; } + + /** + *

Updates a Device Advisor test suite with suite definition configuration.

+ */ + inline void SetSuiteDefinitionConfiguration(const SuiteDefinitionConfiguration& value) { m_suiteDefinitionConfigurationHasBeenSet = true; m_suiteDefinitionConfiguration = value; } + + /** + *

Updates a Device Advisor test suite with suite definition configuration.

+ */ + inline void SetSuiteDefinitionConfiguration(SuiteDefinitionConfiguration&& value) { m_suiteDefinitionConfigurationHasBeenSet = true; m_suiteDefinitionConfiguration = std::move(value); } + + /** + *

Updates a Device Advisor test suite with suite definition configuration.

+ */ + inline UpdateSuiteDefinitionRequest& WithSuiteDefinitionConfiguration(const SuiteDefinitionConfiguration& value) { SetSuiteDefinitionConfiguration(value); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition configuration.

+ */ + inline UpdateSuiteDefinitionRequest& WithSuiteDefinitionConfiguration(SuiteDefinitionConfiguration&& value) { SetSuiteDefinitionConfiguration(std::move(value)); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + bool m_suiteDefinitionIdHasBeenSet; + + SuiteDefinitionConfiguration m_suiteDefinitionConfiguration; + bool m_suiteDefinitionConfigurationHasBeenSet; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionResult.h b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionResult.h new file mode 100644 index 00000000000..8ee07ff4aad --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/include/aws/iotdeviceadvisor/model/UpdateSuiteDefinitionResult.h @@ -0,0 +1,258 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTDeviceAdvisor +{ +namespace Model +{ + class AWS_IOTDEVICEADVISOR_API UpdateSuiteDefinitionResult + { + public: + UpdateSuiteDefinitionResult(); + UpdateSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result); + UpdateSuiteDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline const Aws::String& GetSuiteDefinitionId() const{ return m_suiteDefinitionId; } + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline void SetSuiteDefinitionId(const Aws::String& value) { m_suiteDefinitionId = value; } + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline void SetSuiteDefinitionId(Aws::String&& value) { m_suiteDefinitionId = std::move(value); } + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline void SetSuiteDefinitionId(const char* value) { m_suiteDefinitionId.assign(value); } + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionId(const Aws::String& value) { SetSuiteDefinitionId(value); return *this;} + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionId(Aws::String&& value) { SetSuiteDefinitionId(std::move(value)); return *this;} + + /** + *

Updates a Device Advisor test suite with suite UUID.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionId(const char* value) { SetSuiteDefinitionId(value); return *this;} + + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline const Aws::String& GetSuiteDefinitionArn() const{ return m_suiteDefinitionArn; } + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline void SetSuiteDefinitionArn(const Aws::String& value) { m_suiteDefinitionArn = value; } + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline void SetSuiteDefinitionArn(Aws::String&& value) { m_suiteDefinitionArn = std::move(value); } + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline void SetSuiteDefinitionArn(const char* value) { m_suiteDefinitionArn.assign(value); } + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionArn(const Aws::String& value) { SetSuiteDefinitionArn(value); return *this;} + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionArn(Aws::String&& value) { SetSuiteDefinitionArn(std::move(value)); return *this;} + + /** + *

Updates a Device Advisor test suite with Amazon Resource name.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionArn(const char* value) { SetSuiteDefinitionArn(value); return *this;} + + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline const Aws::String& GetSuiteDefinitionName() const{ return m_suiteDefinitionName; } + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline void SetSuiteDefinitionName(const Aws::String& value) { m_suiteDefinitionName = value; } + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline void SetSuiteDefinitionName(Aws::String&& value) { m_suiteDefinitionName = std::move(value); } + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline void SetSuiteDefinitionName(const char* value) { m_suiteDefinitionName.assign(value); } + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionName(const Aws::String& value) { SetSuiteDefinitionName(value); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionName(Aws::String&& value) { SetSuiteDefinitionName(std::move(value)); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition name.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionName(const char* value) { SetSuiteDefinitionName(value); return *this;} + + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline const Aws::String& GetSuiteDefinitionVersion() const{ return m_suiteDefinitionVersion; } + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(const Aws::String& value) { m_suiteDefinitionVersion = value; } + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(Aws::String&& value) { m_suiteDefinitionVersion = std::move(value); } + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline void SetSuiteDefinitionVersion(const char* value) { m_suiteDefinitionVersion.assign(value); } + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionVersion(const Aws::String& value) { SetSuiteDefinitionVersion(value); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionVersion(Aws::String&& value) { SetSuiteDefinitionVersion(std::move(value)); return *this;} + + /** + *

Updates a Device Advisor test suite with suite definition version.

+ */ + inline UpdateSuiteDefinitionResult& WithSuiteDefinitionVersion(const char* value) { SetSuiteDefinitionVersion(value); return *this;} + + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline UpdateSuiteDefinitionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * created.

+ */ + inline UpdateSuiteDefinitionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * updated.

+ */ + inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * updated.

+ */ + inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; } + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * updated.

+ */ + inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); } + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * updated.

+ */ + inline UpdateSuiteDefinitionResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} + + /** + *

Updates a Device Advisor test suite with TimeStamp of when it was + * updated.

+ */ + inline UpdateSuiteDefinitionResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} + + private: + + Aws::String m_suiteDefinitionId; + + Aws::String m_suiteDefinitionArn; + + Aws::String m_suiteDefinitionName; + + Aws::String m_suiteDefinitionVersion; + + Aws::Utils::DateTime m_createdAt; + + Aws::Utils::DateTime m_lastUpdatedAt; + }; + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp new file mode 100644 index 00000000000..315e54db4fa --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorClient.cpp @@ -0,0 +1,535 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::IoTDeviceAdvisor; +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; + +static const char* SERVICE_NAME = "iotdeviceadvisor"; +static const char* ALLOCATION_TAG = "IoTDeviceAdvisorClient"; + + +IoTDeviceAdvisorClient::IoTDeviceAdvisorClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTDeviceAdvisorClient::IoTDeviceAdvisorClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTDeviceAdvisorClient::IoTDeviceAdvisorClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, credentialsProvider, + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTDeviceAdvisorClient::~IoTDeviceAdvisorClient() +{ +} + +void IoTDeviceAdvisorClient::init(const ClientConfiguration& config) +{ + SetServiceClientName("IotDeviceAdvisor"); + m_configScheme = SchemeMapper::ToString(config.scheme); + if (config.endpointOverride.empty()) + { + m_uri = m_configScheme + "://" + IoTDeviceAdvisorEndpoint::ForRegion(config.region, config.useDualStack); + } + else + { + OverrideEndpoint(config.endpointOverride); + } +} + +void IoTDeviceAdvisorClient::OverrideEndpoint(const Aws::String& endpoint) +{ + if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0) + { + m_uri = endpoint; + } + else + { + m_uri = m_configScheme + "://" + endpoint; + } +} + +CreateSuiteDefinitionOutcome IoTDeviceAdvisorClient::CreateSuiteDefinition(const CreateSuiteDefinitionRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateSuiteDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateSuiteDefinitionOutcomeCallable IoTDeviceAdvisorClient::CreateSuiteDefinitionCallable(const CreateSuiteDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateSuiteDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateSuiteDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::CreateSuiteDefinitionAsync(const CreateSuiteDefinitionRequest& request, const CreateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateSuiteDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::CreateSuiteDefinitionAsyncHelper(const CreateSuiteDefinitionRequest& request, const CreateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateSuiteDefinition(request), context); +} + +DeleteSuiteDefinitionOutcome IoTDeviceAdvisorClient::DeleteSuiteDefinition(const DeleteSuiteDefinitionRequest& request) const +{ + if (!request.SuiteDefinitionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteSuiteDefinition", "Required field: SuiteDefinitionId, is not set"); + return DeleteSuiteDefinitionOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteDefinitionId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions/"; + ss << request.GetSuiteDefinitionId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteSuiteDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteSuiteDefinitionOutcomeCallable IoTDeviceAdvisorClient::DeleteSuiteDefinitionCallable(const DeleteSuiteDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteSuiteDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteSuiteDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::DeleteSuiteDefinitionAsync(const DeleteSuiteDefinitionRequest& request, const DeleteSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteSuiteDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::DeleteSuiteDefinitionAsyncHelper(const DeleteSuiteDefinitionRequest& request, const DeleteSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteSuiteDefinition(request), context); +} + +GetSuiteDefinitionOutcome IoTDeviceAdvisorClient::GetSuiteDefinition(const GetSuiteDefinitionRequest& request) const +{ + if (!request.SuiteDefinitionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSuiteDefinition", "Required field: SuiteDefinitionId, is not set"); + return GetSuiteDefinitionOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteDefinitionId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions/"; + ss << request.GetSuiteDefinitionId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetSuiteDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetSuiteDefinitionOutcomeCallable IoTDeviceAdvisorClient::GetSuiteDefinitionCallable(const GetSuiteDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetSuiteDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSuiteDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::GetSuiteDefinitionAsync(const GetSuiteDefinitionRequest& request, const GetSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetSuiteDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::GetSuiteDefinitionAsyncHelper(const GetSuiteDefinitionRequest& request, const GetSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetSuiteDefinition(request), context); +} + +GetSuiteRunOutcome IoTDeviceAdvisorClient::GetSuiteRun(const GetSuiteRunRequest& request) const +{ + if (!request.SuiteDefinitionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSuiteRun", "Required field: SuiteDefinitionId, is not set"); + return GetSuiteRunOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteDefinitionId]", false)); + } + if (!request.SuiteRunIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSuiteRun", "Required field: SuiteRunId, is not set"); + return GetSuiteRunOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteRunId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions/"; + ss << request.GetSuiteDefinitionId(); + ss << "/suiteRuns/"; + ss << request.GetSuiteRunId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetSuiteRunOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetSuiteRunOutcomeCallable IoTDeviceAdvisorClient::GetSuiteRunCallable(const GetSuiteRunRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetSuiteRunOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSuiteRun(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::GetSuiteRunAsync(const GetSuiteRunRequest& request, const GetSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetSuiteRunAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::GetSuiteRunAsyncHelper(const GetSuiteRunRequest& request, const GetSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetSuiteRun(request), context); +} + +GetSuiteRunReportOutcome IoTDeviceAdvisorClient::GetSuiteRunReport(const GetSuiteRunReportRequest& request) const +{ + if (!request.SuiteDefinitionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSuiteRunReport", "Required field: SuiteDefinitionId, is not set"); + return GetSuiteRunReportOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteDefinitionId]", false)); + } + if (!request.SuiteRunIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetSuiteRunReport", "Required field: SuiteRunId, is not set"); + return GetSuiteRunReportOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteRunId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions/"; + ss << request.GetSuiteDefinitionId(); + ss << "/suiteRuns/"; + ss << request.GetSuiteRunId(); + ss << "/report"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetSuiteRunReportOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetSuiteRunReportOutcomeCallable IoTDeviceAdvisorClient::GetSuiteRunReportCallable(const GetSuiteRunReportRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetSuiteRunReportOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetSuiteRunReport(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::GetSuiteRunReportAsync(const GetSuiteRunReportRequest& request, const GetSuiteRunReportResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetSuiteRunReportAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::GetSuiteRunReportAsyncHelper(const GetSuiteRunReportRequest& request, const GetSuiteRunReportResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetSuiteRunReport(request), context); +} + +ListSuiteDefinitionsOutcome IoTDeviceAdvisorClient::ListSuiteDefinitions(const ListSuiteDefinitionsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListSuiteDefinitionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListSuiteDefinitionsOutcomeCallable IoTDeviceAdvisorClient::ListSuiteDefinitionsCallable(const ListSuiteDefinitionsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListSuiteDefinitionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListSuiteDefinitions(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::ListSuiteDefinitionsAsync(const ListSuiteDefinitionsRequest& request, const ListSuiteDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListSuiteDefinitionsAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::ListSuiteDefinitionsAsyncHelper(const ListSuiteDefinitionsRequest& request, const ListSuiteDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListSuiteDefinitions(request), context); +} + +ListSuiteRunsOutcome IoTDeviceAdvisorClient::ListSuiteRuns(const ListSuiteRunsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteRuns"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListSuiteRunsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListSuiteRunsOutcomeCallable IoTDeviceAdvisorClient::ListSuiteRunsCallable(const ListSuiteRunsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListSuiteRunsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListSuiteRuns(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::ListSuiteRunsAsync(const ListSuiteRunsRequest& request, const ListSuiteRunsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListSuiteRunsAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::ListSuiteRunsAsyncHelper(const ListSuiteRunsRequest& request, const ListSuiteRunsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListSuiteRuns(request), context); +} + +ListTagsForResourceOutcome IoTDeviceAdvisorClient::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListTagsForResourceOutcomeCallable IoTDeviceAdvisorClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListTagsForResource(request), context); +} + +ListTestCasesOutcome IoTDeviceAdvisorClient::ListTestCases(const ListTestCasesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/testCases"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListTestCasesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListTestCasesOutcomeCallable IoTDeviceAdvisorClient::ListTestCasesCallable(const ListTestCasesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListTestCasesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTestCases(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::ListTestCasesAsync(const ListTestCasesRequest& request, const ListTestCasesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListTestCasesAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::ListTestCasesAsyncHelper(const ListTestCasesRequest& request, const ListTestCasesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListTestCases(request), context); +} + +StartSuiteRunOutcome IoTDeviceAdvisorClient::StartSuiteRun(const StartSuiteRunRequest& request) const +{ + if (!request.SuiteDefinitionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("StartSuiteRun", "Required field: SuiteDefinitionId, is not set"); + return StartSuiteRunOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteDefinitionId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions/"; + ss << request.GetSuiteDefinitionId(); + ss << "/suiteRuns"; + uri.SetPath(uri.GetPath() + ss.str()); + return StartSuiteRunOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +StartSuiteRunOutcomeCallable IoTDeviceAdvisorClient::StartSuiteRunCallable(const StartSuiteRunRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< StartSuiteRunOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartSuiteRun(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::StartSuiteRunAsync(const StartSuiteRunRequest& request, const StartSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->StartSuiteRunAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::StartSuiteRunAsyncHelper(const StartSuiteRunRequest& request, const StartSuiteRunResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, StartSuiteRun(request), context); +} + +TagResourceOutcome IoTDeviceAdvisorClient::TagResource(const TagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set"); + return TagResourceOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +TagResourceOutcomeCallable IoTDeviceAdvisorClient::TagResourceCallable(const TagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, TagResource(request), context); +} + +UntagResourceOutcome IoTDeviceAdvisorClient::UntagResource(const UntagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +UntagResourceOutcomeCallable IoTDeviceAdvisorClient::UntagResourceCallable(const UntagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UntagResource(request), context); +} + +UpdateSuiteDefinitionOutcome IoTDeviceAdvisorClient::UpdateSuiteDefinition(const UpdateSuiteDefinitionRequest& request) const +{ + if (!request.SuiteDefinitionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateSuiteDefinition", "Required field: SuiteDefinitionId, is not set"); + return UpdateSuiteDefinitionOutcome(Aws::Client::AWSError(IoTDeviceAdvisorErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SuiteDefinitionId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/suiteDefinitions/"; + ss << request.GetSuiteDefinitionId(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateSuiteDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateSuiteDefinitionOutcomeCallable IoTDeviceAdvisorClient::UpdateSuiteDefinitionCallable(const UpdateSuiteDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateSuiteDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateSuiteDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTDeviceAdvisorClient::UpdateSuiteDefinitionAsync(const UpdateSuiteDefinitionRequest& request, const UpdateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateSuiteDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTDeviceAdvisorClient::UpdateSuiteDefinitionAsyncHelper(const UpdateSuiteDefinitionRequest& request, const UpdateSuiteDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateSuiteDefinition(request), context); +} + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorEndpoint.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorEndpoint.cpp new file mode 100644 index 00000000000..cd3aeae39a4 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorEndpoint.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws; +using namespace Aws::IoTDeviceAdvisor; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace IoTDeviceAdvisorEndpoint +{ + static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1"); + static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1"); + static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1"); + static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1"); + + + Aws::String ForRegion(const Aws::String& regionName, bool useDualStack) + { + // Fallback to us-east-1 if global endpoint does not exists. + Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName; + auto hash = Aws::Utils::HashingUtils::HashString(region.c_str()); + + Aws::StringStream ss; + ss << "api.iotdeviceadvisor" << "."; + + if(useDualStack) + { + ss << "dualstack."; + } + + ss << region; + + if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH) + { + ss << ".amazonaws.com.cn"; + } + else if (hash == US_ISO_EAST_1_HASH) + { + ss << ".c2s.ic.gov"; + } + else if (hash == US_ISOB_EAST_1_HASH) + { + ss << ".sc2s.sgov.gov"; + } + else + { + ss << ".amazonaws.com"; + } + + return ss.str(); + } + +} // namespace IoTDeviceAdvisorEndpoint +} // namespace IoTDeviceAdvisor +} // namespace Aws + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrorMarshaller.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrorMarshaller.cpp new file mode 100644 index 00000000000..47e3fe4695c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::IoTDeviceAdvisor; + +AWSError IoTDeviceAdvisorErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = IoTDeviceAdvisorErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp new file mode 100644 index 00000000000..e0e06ee727b --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/IoTDeviceAdvisorErrors.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::IoTDeviceAdvisor; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace IoTDeviceAdvisorErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(IoTDeviceAdvisorErrors::CONFLICT), false); + } + else if (hashCode == INTERNAL_SERVER_HASH) + { + return AWSError(static_cast(IoTDeviceAdvisorErrors::INTERNAL_SERVER), false); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace IoTDeviceAdvisorErrorMapper +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionRequest.cpp new file mode 100644 index 00000000000..d63ae5c5123 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionRequest.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateSuiteDefinitionRequest::CreateSuiteDefinitionRequest() : + m_suiteDefinitionConfigurationHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateSuiteDefinitionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_suiteDefinitionConfigurationHasBeenSet) + { + payload.WithObject("suiteDefinitionConfiguration", m_suiteDefinitionConfiguration.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionResult.cpp new file mode 100644 index 00000000000..8436f7a038e --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/CreateSuiteDefinitionResult.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateSuiteDefinitionResult::CreateSuiteDefinitionResult() +{ +} + +CreateSuiteDefinitionResult::CreateSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateSuiteDefinitionResult& CreateSuiteDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteDefinitionId")) + { + m_suiteDefinitionId = jsonValue.GetString("suiteDefinitionId"); + + } + + if(jsonValue.ValueExists("suiteDefinitionArn")) + { + m_suiteDefinitionArn = jsonValue.GetString("suiteDefinitionArn"); + + } + + if(jsonValue.ValueExists("suiteDefinitionName")) + { + m_suiteDefinitionName = jsonValue.GetString("suiteDefinitionName"); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionRequest.cpp new file mode 100644 index 00000000000..8db0292cb06 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteSuiteDefinitionRequest::DeleteSuiteDefinitionRequest() : + m_suiteDefinitionIdHasBeenSet(false) +{ +} + +Aws::String DeleteSuiteDefinitionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionResult.cpp new file mode 100644 index 00000000000..1285384f731 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/DeleteSuiteDefinitionResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteSuiteDefinitionResult::DeleteSuiteDefinitionResult() +{ +} + +DeleteSuiteDefinitionResult::DeleteSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteSuiteDefinitionResult& DeleteSuiteDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/DeviceUnderTest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/DeviceUnderTest.cpp new file mode 100644 index 00000000000..9cb92ac50d2 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/DeviceUnderTest.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +DeviceUnderTest::DeviceUnderTest() : + m_thingArnHasBeenSet(false), + m_certificateArnHasBeenSet(false) +{ +} + +DeviceUnderTest::DeviceUnderTest(JsonView jsonValue) : + m_thingArnHasBeenSet(false), + m_certificateArnHasBeenSet(false) +{ + *this = jsonValue; +} + +DeviceUnderTest& DeviceUnderTest::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("thingArn")) + { + m_thingArn = jsonValue.GetString("thingArn"); + + m_thingArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("certificateArn")) + { + m_certificateArn = jsonValue.GetString("certificateArn"); + + m_certificateArnHasBeenSet = true; + } + + return *this; +} + +JsonValue DeviceUnderTest::Jsonize() const +{ + JsonValue payload; + + if(m_thingArnHasBeenSet) + { + payload.WithString("thingArn", m_thingArn); + + } + + if(m_certificateArnHasBeenSet) + { + payload.WithString("certificateArn", m_certificateArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionRequest.cpp new file mode 100644 index 00000000000..36ff1d8c902 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetSuiteDefinitionRequest::GetSuiteDefinitionRequest() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionVersionHasBeenSet(false) +{ +} + +Aws::String GetSuiteDefinitionRequest::SerializePayload() const +{ + return {}; +} + +void GetSuiteDefinitionRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_suiteDefinitionVersionHasBeenSet) + { + ss << m_suiteDefinitionVersion; + uri.AddQueryStringParameter("suiteDefinitionVersion", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionResult.cpp new file mode 100644 index 00000000000..8ecdb4b328d --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteDefinitionResult.cpp @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetSuiteDefinitionResult::GetSuiteDefinitionResult() +{ +} + +GetSuiteDefinitionResult::GetSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetSuiteDefinitionResult& GetSuiteDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteDefinitionId")) + { + m_suiteDefinitionId = jsonValue.GetString("suiteDefinitionId"); + + } + + if(jsonValue.ValueExists("suiteDefinitionArn")) + { + m_suiteDefinitionArn = jsonValue.GetString("suiteDefinitionArn"); + + } + + if(jsonValue.ValueExists("suiteDefinitionVersion")) + { + m_suiteDefinitionVersion = jsonValue.GetString("suiteDefinitionVersion"); + + } + + if(jsonValue.ValueExists("latestVersion")) + { + m_latestVersion = jsonValue.GetString("latestVersion"); + + } + + if(jsonValue.ValueExists("suiteDefinitionConfiguration")) + { + m_suiteDefinitionConfiguration = jsonValue.GetObject("suiteDefinitionConfiguration"); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + if(jsonValue.ValueExists("lastModifiedAt")) + { + m_lastModifiedAt = jsonValue.GetDouble("lastModifiedAt"); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportRequest.cpp new file mode 100644 index 00000000000..20506709802 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetSuiteRunReportRequest::GetSuiteRunReportRequest() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteRunIdHasBeenSet(false) +{ +} + +Aws::String GetSuiteRunReportRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportResult.cpp new file mode 100644 index 00000000000..d9e19b92e2b --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunReportResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetSuiteRunReportResult::GetSuiteRunReportResult() +{ +} + +GetSuiteRunReportResult::GetSuiteRunReportResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetSuiteRunReportResult& GetSuiteRunReportResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("qualificationReportDownloadUrl")) + { + m_qualificationReportDownloadUrl = jsonValue.GetString("qualificationReportDownloadUrl"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunRequest.cpp new file mode 100644 index 00000000000..5fd27cb2a9c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetSuiteRunRequest::GetSuiteRunRequest() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteRunIdHasBeenSet(false) +{ +} + +Aws::String GetSuiteRunRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunResult.cpp new file mode 100644 index 00000000000..d02ba9018a3 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GetSuiteRunResult.cpp @@ -0,0 +1,105 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetSuiteRunResult::GetSuiteRunResult() : + m_status(SuiteRunStatus::NOT_SET) +{ +} + +GetSuiteRunResult::GetSuiteRunResult(const Aws::AmazonWebServiceResult& result) : + m_status(SuiteRunStatus::NOT_SET) +{ + *this = result; +} + +GetSuiteRunResult& GetSuiteRunResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteDefinitionId")) + { + m_suiteDefinitionId = jsonValue.GetString("suiteDefinitionId"); + + } + + if(jsonValue.ValueExists("suiteDefinitionVersion")) + { + m_suiteDefinitionVersion = jsonValue.GetString("suiteDefinitionVersion"); + + } + + if(jsonValue.ValueExists("suiteRunId")) + { + m_suiteRunId = jsonValue.GetString("suiteRunId"); + + } + + if(jsonValue.ValueExists("suiteRunArn")) + { + m_suiteRunArn = jsonValue.GetString("suiteRunArn"); + + } + + if(jsonValue.ValueExists("suiteRunConfiguration")) + { + m_suiteRunConfiguration = jsonValue.GetObject("suiteRunConfiguration"); + + } + + if(jsonValue.ValueExists("testResult")) + { + m_testResult = jsonValue.GetObject("testResult"); + + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetDouble("endTime"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = SuiteRunStatusMapper::GetSuiteRunStatusForName(jsonValue.GetString("status")); + + } + + if(jsonValue.ValueExists("errorReason")) + { + m_errorReason = jsonValue.GetString("errorReason"); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/GroupResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/GroupResult.cpp new file mode 100644 index 00000000000..75e8ed77f05 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/GroupResult.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +GroupResult::GroupResult() : + m_groupIdHasBeenSet(false), + m_groupNameHasBeenSet(false), + m_testsHasBeenSet(false) +{ +} + +GroupResult::GroupResult(JsonView jsonValue) : + m_groupIdHasBeenSet(false), + m_groupNameHasBeenSet(false), + m_testsHasBeenSet(false) +{ + *this = jsonValue; +} + +GroupResult& GroupResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("groupId")) + { + m_groupId = jsonValue.GetString("groupId"); + + m_groupIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("groupName")) + { + m_groupName = jsonValue.GetString("groupName"); + + m_groupNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("tests")) + { + Array testsJsonList = jsonValue.GetArray("tests"); + for(unsigned testsIndex = 0; testsIndex < testsJsonList.GetLength(); ++testsIndex) + { + m_tests.push_back(testsJsonList[testsIndex].AsObject()); + } + m_testsHasBeenSet = true; + } + + return *this; +} + +JsonValue GroupResult::Jsonize() const +{ + JsonValue payload; + + if(m_groupIdHasBeenSet) + { + payload.WithString("groupId", m_groupId); + + } + + if(m_groupNameHasBeenSet) + { + payload.WithString("groupName", m_groupName); + + } + + if(m_testsHasBeenSet) + { + Array testsJsonList(m_tests.size()); + for(unsigned testsIndex = 0; testsIndex < testsJsonList.GetLength(); ++testsIndex) + { + testsJsonList[testsIndex].AsObject(m_tests[testsIndex].Jsonize()); + } + payload.WithArray("tests", std::move(testsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsRequest.cpp new file mode 100644 index 00000000000..29c73e873e0 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListSuiteDefinitionsRequest::ListSuiteDefinitionsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListSuiteDefinitionsRequest::SerializePayload() const +{ + return {}; +} + +void ListSuiteDefinitionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsResult.cpp new file mode 100644 index 00000000000..75562507280 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteDefinitionsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListSuiteDefinitionsResult::ListSuiteDefinitionsResult() +{ +} + +ListSuiteDefinitionsResult::ListSuiteDefinitionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListSuiteDefinitionsResult& ListSuiteDefinitionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteDefinitionInformationList")) + { + Array suiteDefinitionInformationListJsonList = jsonValue.GetArray("suiteDefinitionInformationList"); + for(unsigned suiteDefinitionInformationListIndex = 0; suiteDefinitionInformationListIndex < suiteDefinitionInformationListJsonList.GetLength(); ++suiteDefinitionInformationListIndex) + { + m_suiteDefinitionInformationList.push_back(suiteDefinitionInformationListJsonList[suiteDefinitionInformationListIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsRequest.cpp new file mode 100644 index 00000000000..a501c075f3e --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsRequest.cpp @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListSuiteRunsRequest::ListSuiteRunsRequest() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionVersionHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListSuiteRunsRequest::SerializePayload() const +{ + return {}; +} + +void ListSuiteRunsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_suiteDefinitionIdHasBeenSet) + { + ss << m_suiteDefinitionId; + uri.AddQueryStringParameter("suiteDefinitionId", ss.str()); + ss.str(""); + } + + if(m_suiteDefinitionVersionHasBeenSet) + { + ss << m_suiteDefinitionVersion; + uri.AddQueryStringParameter("suiteDefinitionVersion", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsResult.cpp new file mode 100644 index 00000000000..cffdec6e9e4 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListSuiteRunsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListSuiteRunsResult::ListSuiteRunsResult() +{ +} + +ListSuiteRunsResult::ListSuiteRunsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListSuiteRunsResult& ListSuiteRunsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteRunsList")) + { + Array suiteRunsListJsonList = jsonValue.GetArray("suiteRunsList"); + for(unsigned suiteRunsListIndex = 0; suiteRunsListIndex < suiteRunsListJsonList.GetLength(); ++suiteRunsListIndex) + { + m_suiteRunsList.push_back(suiteRunsListJsonList[suiteRunsListIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..083e69b1c35 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..dc8c1950a58 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesRequest.cpp new file mode 100644 index 00000000000..12cab88f03a --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListTestCasesRequest::ListTestCasesRequest() : + m_intendedForQualification(false), + m_intendedForQualificationHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListTestCasesRequest::SerializePayload() const +{ + return {}; +} + +void ListTestCasesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_intendedForQualificationHasBeenSet) + { + ss << m_intendedForQualification; + uri.AddQueryStringParameter("intendedForQualification", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesResult.cpp new file mode 100644 index 00000000000..733dcbcab5d --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/ListTestCasesResult.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTestCasesResult::ListTestCasesResult() +{ +} + +ListTestCasesResult::ListTestCasesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTestCasesResult& ListTestCasesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("categories")) + { + Array categoriesJsonList = jsonValue.GetArray("categories"); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + m_categories.push_back(categoriesJsonList[categoriesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("rootGroupConfiguration")) + { + Aws::Map rootGroupConfigurationJsonMap = jsonValue.GetObject("rootGroupConfiguration").GetAllObjects(); + for(auto& rootGroupConfigurationItem : rootGroupConfigurationJsonMap) + { + m_rootGroupConfiguration[rootGroupConfigurationItem.first] = rootGroupConfigurationItem.second.AsString(); + } + } + + if(jsonValue.ValueExists("groupConfiguration")) + { + Aws::Map groupConfigurationJsonMap = jsonValue.GetObject("groupConfiguration").GetAllObjects(); + for(auto& groupConfigurationItem : groupConfigurationJsonMap) + { + m_groupConfiguration[groupConfigurationItem.first] = groupConfigurationItem.second.AsString(); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunRequest.cpp new file mode 100644 index 00000000000..26a1a4173bf --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunRequest.cpp @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartSuiteRunRequest::StartSuiteRunRequest() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionVersionHasBeenSet(false), + m_suiteRunConfigurationHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String StartSuiteRunRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_suiteDefinitionVersionHasBeenSet) + { + payload.WithString("suiteDefinitionVersion", m_suiteDefinitionVersion); + + } + + if(m_suiteRunConfigurationHasBeenSet) + { + payload.WithObject("suiteRunConfiguration", m_suiteRunConfiguration.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunResult.cpp new file mode 100644 index 00000000000..a091f488f56 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/StartSuiteRunResult.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartSuiteRunResult::StartSuiteRunResult() +{ +} + +StartSuiteRunResult::StartSuiteRunResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartSuiteRunResult& StartSuiteRunResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteRunId")) + { + m_suiteRunId = jsonValue.GetString("suiteRunId"); + + } + + if(jsonValue.ValueExists("suiteRunArn")) + { + m_suiteRunArn = jsonValue.GetString("suiteRunArn"); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp new file mode 100644 index 00000000000..e16c6af9a92 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/Status.cpp @@ -0,0 +1,105 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTDeviceAdvisor + { + namespace Model + { + namespace StatusMapper + { + + static const int PASS_HASH = HashingUtils::HashString("PASS"); + static const int FAIL_HASH = HashingUtils::HashString("FAIL"); + static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static const int PASS_WITH_WARNINGS_HASH = HashingUtils::HashString("PASS_WITH_WARNINGS"); + static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + + + Status GetStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PASS_HASH) + { + return Status::PASS; + } + else if (hashCode == FAIL_HASH) + { + return Status::FAIL; + } + else if (hashCode == CANCELED_HASH) + { + return Status::CANCELED; + } + else if (hashCode == PENDING_HASH) + { + return Status::PENDING; + } + else if (hashCode == RUNNING_HASH) + { + return Status::RUNNING; + } + else if (hashCode == PASS_WITH_WARNINGS_HASH) + { + return Status::PASS_WITH_WARNINGS; + } + else if (hashCode == ERROR__HASH) + { + return Status::ERROR_; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Status::NOT_SET; + } + + Aws::String GetNameForStatus(Status enumValue) + { + switch(enumValue) + { + case Status::PASS: + return "PASS"; + case Status::FAIL: + return "FAIL"; + case Status::CANCELED: + return "CANCELED"; + case Status::PENDING: + return "PENDING"; + case Status::RUNNING: + return "RUNNING"; + case Status::PASS_WITH_WARNINGS: + return "PASS_WITH_WARNINGS"; + case Status::ERROR_: + return "ERROR"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace StatusMapper + } // namespace Model + } // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionConfiguration.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionConfiguration.cpp new file mode 100644 index 00000000000..ab2c2b23b9c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionConfiguration.cpp @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +SuiteDefinitionConfiguration::SuiteDefinitionConfiguration() : + m_suiteDefinitionNameHasBeenSet(false), + m_devicesHasBeenSet(false), + m_intendedForQualification(false), + m_intendedForQualificationHasBeenSet(false), + m_rootGroupHasBeenSet(false), + m_devicePermissionRoleArnHasBeenSet(false) +{ +} + +SuiteDefinitionConfiguration::SuiteDefinitionConfiguration(JsonView jsonValue) : + m_suiteDefinitionNameHasBeenSet(false), + m_devicesHasBeenSet(false), + m_intendedForQualification(false), + m_intendedForQualificationHasBeenSet(false), + m_rootGroupHasBeenSet(false), + m_devicePermissionRoleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +SuiteDefinitionConfiguration& SuiteDefinitionConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("suiteDefinitionName")) + { + m_suiteDefinitionName = jsonValue.GetString("suiteDefinitionName"); + + m_suiteDefinitionNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("devices")) + { + Array devicesJsonList = jsonValue.GetArray("devices"); + for(unsigned devicesIndex = 0; devicesIndex < devicesJsonList.GetLength(); ++devicesIndex) + { + m_devices.push_back(devicesJsonList[devicesIndex].AsObject()); + } + m_devicesHasBeenSet = true; + } + + if(jsonValue.ValueExists("intendedForQualification")) + { + m_intendedForQualification = jsonValue.GetBool("intendedForQualification"); + + m_intendedForQualificationHasBeenSet = true; + } + + if(jsonValue.ValueExists("rootGroup")) + { + m_rootGroup = jsonValue.GetString("rootGroup"); + + m_rootGroupHasBeenSet = true; + } + + if(jsonValue.ValueExists("devicePermissionRoleArn")) + { + m_devicePermissionRoleArn = jsonValue.GetString("devicePermissionRoleArn"); + + m_devicePermissionRoleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue SuiteDefinitionConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_suiteDefinitionNameHasBeenSet) + { + payload.WithString("suiteDefinitionName", m_suiteDefinitionName); + + } + + if(m_devicesHasBeenSet) + { + Array devicesJsonList(m_devices.size()); + for(unsigned devicesIndex = 0; devicesIndex < devicesJsonList.GetLength(); ++devicesIndex) + { + devicesJsonList[devicesIndex].AsObject(m_devices[devicesIndex].Jsonize()); + } + payload.WithArray("devices", std::move(devicesJsonList)); + + } + + if(m_intendedForQualificationHasBeenSet) + { + payload.WithBool("intendedForQualification", m_intendedForQualification); + + } + + if(m_rootGroupHasBeenSet) + { + payload.WithString("rootGroup", m_rootGroup); + + } + + if(m_devicePermissionRoleArnHasBeenSet) + { + payload.WithString("devicePermissionRoleArn", m_devicePermissionRoleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionInformation.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionInformation.cpp new file mode 100644 index 00000000000..20e56ba83a0 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteDefinitionInformation.cpp @@ -0,0 +1,128 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +SuiteDefinitionInformation::SuiteDefinitionInformation() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionNameHasBeenSet(false), + m_defaultDevicesHasBeenSet(false), + m_intendedForQualification(false), + m_intendedForQualificationHasBeenSet(false), + m_createdAtHasBeenSet(false) +{ +} + +SuiteDefinitionInformation::SuiteDefinitionInformation(JsonView jsonValue) : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionNameHasBeenSet(false), + m_defaultDevicesHasBeenSet(false), + m_intendedForQualification(false), + m_intendedForQualificationHasBeenSet(false), + m_createdAtHasBeenSet(false) +{ + *this = jsonValue; +} + +SuiteDefinitionInformation& SuiteDefinitionInformation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("suiteDefinitionId")) + { + m_suiteDefinitionId = jsonValue.GetString("suiteDefinitionId"); + + m_suiteDefinitionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("suiteDefinitionName")) + { + m_suiteDefinitionName = jsonValue.GetString("suiteDefinitionName"); + + m_suiteDefinitionNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("defaultDevices")) + { + Array defaultDevicesJsonList = jsonValue.GetArray("defaultDevices"); + for(unsigned defaultDevicesIndex = 0; defaultDevicesIndex < defaultDevicesJsonList.GetLength(); ++defaultDevicesIndex) + { + m_defaultDevices.push_back(defaultDevicesJsonList[defaultDevicesIndex].AsObject()); + } + m_defaultDevicesHasBeenSet = true; + } + + if(jsonValue.ValueExists("intendedForQualification")) + { + m_intendedForQualification = jsonValue.GetBool("intendedForQualification"); + + m_intendedForQualificationHasBeenSet = true; + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + m_createdAtHasBeenSet = true; + } + + return *this; +} + +JsonValue SuiteDefinitionInformation::Jsonize() const +{ + JsonValue payload; + + if(m_suiteDefinitionIdHasBeenSet) + { + payload.WithString("suiteDefinitionId", m_suiteDefinitionId); + + } + + if(m_suiteDefinitionNameHasBeenSet) + { + payload.WithString("suiteDefinitionName", m_suiteDefinitionName); + + } + + if(m_defaultDevicesHasBeenSet) + { + Array defaultDevicesJsonList(m_defaultDevices.size()); + for(unsigned defaultDevicesIndex = 0; defaultDevicesIndex < defaultDevicesJsonList.GetLength(); ++defaultDevicesIndex) + { + defaultDevicesJsonList[defaultDevicesIndex].AsObject(m_defaultDevices[defaultDevicesIndex].Jsonize()); + } + payload.WithArray("defaultDevices", std::move(defaultDevicesJsonList)); + + } + + if(m_intendedForQualificationHasBeenSet) + { + payload.WithBool("intendedForQualification", m_intendedForQualification); + + } + + if(m_createdAtHasBeenSet) + { + payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunConfiguration.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunConfiguration.cpp new file mode 100644 index 00000000000..ca585e0eb5c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunConfiguration.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +SuiteRunConfiguration::SuiteRunConfiguration() : + m_primaryDeviceHasBeenSet(false), + m_secondaryDeviceHasBeenSet(false), + m_selectedTestListHasBeenSet(false) +{ +} + +SuiteRunConfiguration::SuiteRunConfiguration(JsonView jsonValue) : + m_primaryDeviceHasBeenSet(false), + m_secondaryDeviceHasBeenSet(false), + m_selectedTestListHasBeenSet(false) +{ + *this = jsonValue; +} + +SuiteRunConfiguration& SuiteRunConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("primaryDevice")) + { + m_primaryDevice = jsonValue.GetObject("primaryDevice"); + + m_primaryDeviceHasBeenSet = true; + } + + if(jsonValue.ValueExists("secondaryDevice")) + { + m_secondaryDevice = jsonValue.GetObject("secondaryDevice"); + + m_secondaryDeviceHasBeenSet = true; + } + + if(jsonValue.ValueExists("selectedTestList")) + { + Array selectedTestListJsonList = jsonValue.GetArray("selectedTestList"); + for(unsigned selectedTestListIndex = 0; selectedTestListIndex < selectedTestListJsonList.GetLength(); ++selectedTestListIndex) + { + m_selectedTestList.push_back(selectedTestListJsonList[selectedTestListIndex].AsString()); + } + m_selectedTestListHasBeenSet = true; + } + + return *this; +} + +JsonValue SuiteRunConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_primaryDeviceHasBeenSet) + { + payload.WithObject("primaryDevice", m_primaryDevice.Jsonize()); + + } + + if(m_secondaryDeviceHasBeenSet) + { + payload.WithObject("secondaryDevice", m_secondaryDevice.Jsonize()); + + } + + if(m_selectedTestListHasBeenSet) + { + Array selectedTestListJsonList(m_selectedTestList.size()); + for(unsigned selectedTestListIndex = 0; selectedTestListIndex < selectedTestListJsonList.GetLength(); ++selectedTestListIndex) + { + selectedTestListJsonList[selectedTestListIndex].AsString(m_selectedTestList[selectedTestListIndex]); + } + payload.WithArray("selectedTestList", std::move(selectedTestListJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunInformation.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunInformation.cpp new file mode 100644 index 00000000000..724854be3b1 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunInformation.cpp @@ -0,0 +1,196 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +SuiteRunInformation::SuiteRunInformation() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionVersionHasBeenSet(false), + m_suiteDefinitionNameHasBeenSet(false), + m_suiteRunIdHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_startedAtHasBeenSet(false), + m_endAtHasBeenSet(false), + m_status(SuiteRunStatus::NOT_SET), + m_statusHasBeenSet(false), + m_passed(0), + m_passedHasBeenSet(false), + m_failed(0), + m_failedHasBeenSet(false) +{ +} + +SuiteRunInformation::SuiteRunInformation(JsonView jsonValue) : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionVersionHasBeenSet(false), + m_suiteDefinitionNameHasBeenSet(false), + m_suiteRunIdHasBeenSet(false), + m_createdAtHasBeenSet(false), + m_startedAtHasBeenSet(false), + m_endAtHasBeenSet(false), + m_status(SuiteRunStatus::NOT_SET), + m_statusHasBeenSet(false), + m_passed(0), + m_passedHasBeenSet(false), + m_failed(0), + m_failedHasBeenSet(false) +{ + *this = jsonValue; +} + +SuiteRunInformation& SuiteRunInformation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("suiteDefinitionId")) + { + m_suiteDefinitionId = jsonValue.GetString("suiteDefinitionId"); + + m_suiteDefinitionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("suiteDefinitionVersion")) + { + m_suiteDefinitionVersion = jsonValue.GetString("suiteDefinitionVersion"); + + m_suiteDefinitionVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("suiteDefinitionName")) + { + m_suiteDefinitionName = jsonValue.GetString("suiteDefinitionName"); + + m_suiteDefinitionNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("suiteRunId")) + { + m_suiteRunId = jsonValue.GetString("suiteRunId"); + + m_suiteRunIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + m_createdAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("startedAt")) + { + m_startedAt = jsonValue.GetDouble("startedAt"); + + m_startedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("endAt")) + { + m_endAt = jsonValue.GetDouble("endAt"); + + m_endAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = SuiteRunStatusMapper::GetSuiteRunStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("passed")) + { + m_passed = jsonValue.GetInteger("passed"); + + m_passedHasBeenSet = true; + } + + if(jsonValue.ValueExists("failed")) + { + m_failed = jsonValue.GetInteger("failed"); + + m_failedHasBeenSet = true; + } + + return *this; +} + +JsonValue SuiteRunInformation::Jsonize() const +{ + JsonValue payload; + + if(m_suiteDefinitionIdHasBeenSet) + { + payload.WithString("suiteDefinitionId", m_suiteDefinitionId); + + } + + if(m_suiteDefinitionVersionHasBeenSet) + { + payload.WithString("suiteDefinitionVersion", m_suiteDefinitionVersion); + + } + + if(m_suiteDefinitionNameHasBeenSet) + { + payload.WithString("suiteDefinitionName", m_suiteDefinitionName); + + } + + if(m_suiteRunIdHasBeenSet) + { + payload.WithString("suiteRunId", m_suiteRunId); + + } + + if(m_createdAtHasBeenSet) + { + payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); + } + + if(m_startedAtHasBeenSet) + { + payload.WithDouble("startedAt", m_startedAt.SecondsWithMSPrecision()); + } + + if(m_endAtHasBeenSet) + { + payload.WithDouble("endAt", m_endAt.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", SuiteRunStatusMapper::GetNameForSuiteRunStatus(m_status)); + } + + if(m_passedHasBeenSet) + { + payload.WithInteger("passed", m_passed); + + } + + if(m_failedHasBeenSet) + { + payload.WithInteger("failed", m_failed); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp new file mode 100644 index 00000000000..913188cf7fe --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/SuiteRunStatus.cpp @@ -0,0 +1,105 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTDeviceAdvisor + { + namespace Model + { + namespace SuiteRunStatusMapper + { + + static const int PASS_HASH = HashingUtils::HashString("PASS"); + static const int FAIL_HASH = HashingUtils::HashString("FAIL"); + static const int CANCELED_HASH = HashingUtils::HashString("CANCELED"); + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static const int PASS_WITH_WARNINGS_HASH = HashingUtils::HashString("PASS_WITH_WARNINGS"); + static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + + + SuiteRunStatus GetSuiteRunStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PASS_HASH) + { + return SuiteRunStatus::PASS; + } + else if (hashCode == FAIL_HASH) + { + return SuiteRunStatus::FAIL; + } + else if (hashCode == CANCELED_HASH) + { + return SuiteRunStatus::CANCELED; + } + else if (hashCode == PENDING_HASH) + { + return SuiteRunStatus::PENDING; + } + else if (hashCode == RUNNING_HASH) + { + return SuiteRunStatus::RUNNING; + } + else if (hashCode == PASS_WITH_WARNINGS_HASH) + { + return SuiteRunStatus::PASS_WITH_WARNINGS; + } + else if (hashCode == ERROR__HASH) + { + return SuiteRunStatus::ERROR_; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SuiteRunStatus::NOT_SET; + } + + Aws::String GetNameForSuiteRunStatus(SuiteRunStatus enumValue) + { + switch(enumValue) + { + case SuiteRunStatus::PASS: + return "PASS"; + case SuiteRunStatus::FAIL: + return "FAIL"; + case SuiteRunStatus::CANCELED: + return "CANCELED"; + case SuiteRunStatus::PENDING: + return "PENDING"; + case SuiteRunStatus::RUNNING: + return "RUNNING"; + case SuiteRunStatus::PASS_WITH_WARNINGS: + return "PASS_WITH_WARNINGS"; + case SuiteRunStatus::ERROR_: + return "ERROR"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SuiteRunStatusMapper + } // namespace Model + } // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..40bcf8227ef --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TagResourceRequest::TagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceResult.cpp new file mode 100644 index 00000000000..42e29355fad --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TagResourceResult::TagResourceResult() +{ +} + +TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCase.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCase.cpp new file mode 100644 index 00000000000..d1ef2a0599a --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCase.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +TestCase::TestCase() : + m_nameHasBeenSet(false), + m_configurationHasBeenSet(false), + m_testHasBeenSet(false) +{ +} + +TestCase::TestCase(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_configurationHasBeenSet(false), + m_testHasBeenSet(false) +{ + *this = jsonValue; +} + +TestCase& TestCase::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("configuration")) + { + Aws::Map configurationJsonMap = jsonValue.GetObject("configuration").GetAllObjects(); + for(auto& configurationItem : configurationJsonMap) + { + m_configuration[configurationItem.first] = configurationItem.second.AsString(); + } + m_configurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("test")) + { + m_test = jsonValue.GetObject("test"); + + m_testHasBeenSet = true; + } + + return *this; +} + +JsonValue TestCase::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_configurationHasBeenSet) + { + JsonValue configurationJsonMap; + for(auto& configurationItem : m_configuration) + { + configurationJsonMap.WithString(configurationItem.first, configurationItem.second); + } + payload.WithObject("configuration", std::move(configurationJsonMap)); + + } + + if(m_testHasBeenSet) + { + payload.WithObject("test", m_test.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseCategory.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseCategory.cpp new file mode 100644 index 00000000000..36e0612f43a --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseCategory.cpp @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +TestCaseCategory::TestCaseCategory() : + m_nameHasBeenSet(false), + m_testsHasBeenSet(false) +{ +} + +TestCaseCategory::TestCaseCategory(JsonView jsonValue) : + m_nameHasBeenSet(false), + m_testsHasBeenSet(false) +{ + *this = jsonValue; +} + +TestCaseCategory& TestCaseCategory::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("tests")) + { + Array testsJsonList = jsonValue.GetArray("tests"); + for(unsigned testsIndex = 0; testsIndex < testsJsonList.GetLength(); ++testsIndex) + { + m_tests.push_back(testsJsonList[testsIndex].AsObject()); + } + m_testsHasBeenSet = true; + } + + return *this; +} + +JsonValue TestCaseCategory::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_testsHasBeenSet) + { + Array testsJsonList(m_tests.size()); + for(unsigned testsIndex = 0; testsIndex < testsJsonList.GetLength(); ++testsIndex) + { + testsJsonList[testsIndex].AsObject(m_tests[testsIndex].Jsonize()); + } + payload.WithArray("tests", std::move(testsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseDefinition.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseDefinition.cpp new file mode 100644 index 00000000000..a1691cf14f1 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseDefinition.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +TestCaseDefinition::TestCaseDefinition() : + m_idHasBeenSet(false), + m_testCaseVersionHasBeenSet(false) +{ +} + +TestCaseDefinition::TestCaseDefinition(JsonView jsonValue) : + m_idHasBeenSet(false), + m_testCaseVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +TestCaseDefinition& TestCaseDefinition::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("id")) + { + m_id = jsonValue.GetString("id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("testCaseVersion")) + { + m_testCaseVersion = jsonValue.GetString("testCaseVersion"); + + m_testCaseVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue TestCaseDefinition::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_testCaseVersionHasBeenSet) + { + payload.WithString("testCaseVersion", m_testCaseVersion); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseRun.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseRun.cpp new file mode 100644 index 00000000000..e4bc13de651 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestCaseRun.cpp @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +TestCaseRun::TestCaseRun() : + m_testCaseRunIdHasBeenSet(false), + m_testCaseDefinitionIdHasBeenSet(false), + m_testCaseDefinitionNameHasBeenSet(false), + m_status(Status::NOT_SET), + m_statusHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_logUrlHasBeenSet(false), + m_warningsHasBeenSet(false), + m_failureHasBeenSet(false) +{ +} + +TestCaseRun::TestCaseRun(JsonView jsonValue) : + m_testCaseRunIdHasBeenSet(false), + m_testCaseDefinitionIdHasBeenSet(false), + m_testCaseDefinitionNameHasBeenSet(false), + m_status(Status::NOT_SET), + m_statusHasBeenSet(false), + m_startTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_logUrlHasBeenSet(false), + m_warningsHasBeenSet(false), + m_failureHasBeenSet(false) +{ + *this = jsonValue; +} + +TestCaseRun& TestCaseRun::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("testCaseRunId")) + { + m_testCaseRunId = jsonValue.GetString("testCaseRunId"); + + m_testCaseRunIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("testCaseDefinitionId")) + { + m_testCaseDefinitionId = jsonValue.GetString("testCaseDefinitionId"); + + m_testCaseDefinitionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("testCaseDefinitionName")) + { + m_testCaseDefinitionName = jsonValue.GetString("testCaseDefinitionName"); + + m_testCaseDefinitionNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = StatusMapper::GetStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("startTime")) + { + m_startTime = jsonValue.GetDouble("startTime"); + + m_startTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetDouble("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("logUrl")) + { + m_logUrl = jsonValue.GetString("logUrl"); + + m_logUrlHasBeenSet = true; + } + + if(jsonValue.ValueExists("warnings")) + { + m_warnings = jsonValue.GetString("warnings"); + + m_warningsHasBeenSet = true; + } + + if(jsonValue.ValueExists("failure")) + { + m_failure = jsonValue.GetString("failure"); + + m_failureHasBeenSet = true; + } + + return *this; +} + +JsonValue TestCaseRun::Jsonize() const +{ + JsonValue payload; + + if(m_testCaseRunIdHasBeenSet) + { + payload.WithString("testCaseRunId", m_testCaseRunId); + + } + + if(m_testCaseDefinitionIdHasBeenSet) + { + payload.WithString("testCaseDefinitionId", m_testCaseDefinitionId); + + } + + if(m_testCaseDefinitionNameHasBeenSet) + { + payload.WithString("testCaseDefinitionName", m_testCaseDefinitionName); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", StatusMapper::GetNameForStatus(m_status)); + } + + if(m_startTimeHasBeenSet) + { + payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); + } + + if(m_endTimeHasBeenSet) + { + payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); + } + + if(m_logUrlHasBeenSet) + { + payload.WithString("logUrl", m_logUrl); + + } + + if(m_warningsHasBeenSet) + { + payload.WithString("warnings", m_warnings); + + } + + if(m_failureHasBeenSet) + { + payload.WithString("failure", m_failure); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/TestResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestResult.cpp new file mode 100644 index 00000000000..6419441669c --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/TestResult.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTDeviceAdvisor +{ +namespace Model +{ + +TestResult::TestResult() : + m_groupsHasBeenSet(false) +{ +} + +TestResult::TestResult(JsonView jsonValue) : + m_groupsHasBeenSet(false) +{ + *this = jsonValue; +} + +TestResult& TestResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("groups")) + { + Array groupsJsonList = jsonValue.GetArray("groups"); + for(unsigned groupsIndex = 0; groupsIndex < groupsJsonList.GetLength(); ++groupsIndex) + { + m_groups.push_back(groupsJsonList[groupsIndex].AsObject()); + } + m_groupsHasBeenSet = true; + } + + return *this; +} + +JsonValue TestResult::Jsonize() const +{ + JsonValue payload; + + if(m_groupsHasBeenSet) + { + Array groupsJsonList(m_groups.size()); + for(unsigned groupsIndex = 0; groupsIndex < groupsJsonList.GetLength(); ++groupsIndex) + { + groupsJsonList[groupsIndex].AsObject(m_groups[groupsIndex].Jsonize()); + } + payload.WithArray("groups", std::move(groupsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTDeviceAdvisor +} // namespace Aws diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..33b1d1aedb7 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceRequest.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UntagResourceRequest::UntagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + return {}; +} + +void UntagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_tagKeysHasBeenSet) + { + for(const auto& item : m_tagKeys) + { + ss << item; + uri.AddQueryStringParameter("tagKeys", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceResult.cpp new file mode 100644 index 00000000000..a1429d89fd9 --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/UntagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UntagResourceResult::UntagResourceResult() +{ +} + +UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionRequest.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionRequest.cpp new file mode 100644 index 00000000000..3dd819c241a --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateSuiteDefinitionRequest::UpdateSuiteDefinitionRequest() : + m_suiteDefinitionIdHasBeenSet(false), + m_suiteDefinitionConfigurationHasBeenSet(false) +{ +} + +Aws::String UpdateSuiteDefinitionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_suiteDefinitionConfigurationHasBeenSet) + { + payload.WithObject("suiteDefinitionConfiguration", m_suiteDefinitionConfiguration.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionResult.cpp b/aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionResult.cpp new file mode 100644 index 00000000000..42f8a62e76d --- /dev/null +++ b/aws-cpp-sdk-iotdeviceadvisor/source/model/UpdateSuiteDefinitionResult.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTDeviceAdvisor::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateSuiteDefinitionResult::UpdateSuiteDefinitionResult() +{ +} + +UpdateSuiteDefinitionResult::UpdateSuiteDefinitionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateSuiteDefinitionResult& UpdateSuiteDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("suiteDefinitionId")) + { + m_suiteDefinitionId = jsonValue.GetString("suiteDefinitionId"); + + } + + if(jsonValue.ValueExists("suiteDefinitionArn")) + { + m_suiteDefinitionArn = jsonValue.GetString("suiteDefinitionArn"); + + } + + if(jsonValue.ValueExists("suiteDefinitionName")) + { + m_suiteDefinitionName = jsonValue.GetString("suiteDefinitionName"); + + } + + if(jsonValue.ValueExists("suiteDefinitionVersion")) + { + m_suiteDefinitionVersion = jsonValue.GetString("suiteDefinitionVersion"); + + } + + if(jsonValue.ValueExists("createdAt")) + { + m_createdAt = jsonValue.GetDouble("createdAt"); + + } + + if(jsonValue.ValueExists("lastUpdatedAt")) + { + m_lastUpdatedAt = jsonValue.GetDouble("lastUpdatedAt"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/CMakeLists.txt b/aws-cpp-sdk-iotfleethub/CMakeLists.txt new file mode 100644 index 00000000000..5a1717bf051 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-iotfleethub "C++ SDK for the AWS iotfleethub service" aws-cpp-sdk-core) + +file(GLOB AWS_IOTFLEETHUB_HEADERS + "include/aws/iotfleethub/*.h" +) + +file(GLOB AWS_IOTFLEETHUB_MODEL_HEADERS + "include/aws/iotfleethub/model/*.h" +) + +file(GLOB AWS_IOTFLEETHUB_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_IOTFLEETHUB_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB IOTFLEETHUB_UNIFIED_HEADERS + ${AWS_IOTFLEETHUB_HEADERS} + ${AWS_IOTFLEETHUB_MODEL_HEADERS} +) + +file(GLOB IOTFLEETHUB_UNITY_SRC + ${AWS_IOTFLEETHUB_SOURCE} + ${AWS_IOTFLEETHUB_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("IOTFLEETHUB" IOTFLEETHUB_UNITY_SRC) +endif() + +file(GLOB IOTFLEETHUB_SRC + ${IOTFLEETHUB_UNIFIED_HEADERS} + ${IOTFLEETHUB_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\iotfleethub" FILES ${AWS_IOTFLEETHUB_HEADERS}) + source_group("Header Files\\aws\\iotfleethub\\model" FILES ${AWS_IOTFLEETHUB_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_IOTFLEETHUB_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_IOTFLEETHUB_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(IOTFLEETHUB_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${IOTFLEETHUB_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_IOTFLEETHUB_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_IOTFLEETHUB_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iotfleethub) +install (FILES ${AWS_IOTFLEETHUB_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iotfleethub/model) + +do_packaging() + + diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubClient.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubClient.h new file mode 100644 index 00000000000..b616da896f1 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubClient.h @@ -0,0 +1,403 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ + +namespace Http +{ + class HttpClient; + class HttpClientFactory; +} // namespace Http + +namespace Utils +{ + template< typename R, typename E> class Outcome; +namespace Threading +{ + class Executor; +} // namespace Threading +} // namespace Utils + +namespace Auth +{ + class AWSCredentials; + class AWSCredentialsProvider; +} // namespace Auth + +namespace Client +{ + class RetryStrategy; +} // namespace Client + +namespace IoTFleetHub +{ + +namespace Model +{ + class CreateApplicationRequest; + class DeleteApplicationRequest; + class DescribeApplicationRequest; + class ListApplicationsRequest; + class ListTagsForResourceRequest; + class TagResourceRequest; + class UntagResourceRequest; + class UpdateApplicationRequest; + + typedef Aws::Utils::Outcome CreateApplicationOutcome; + typedef Aws::Utils::Outcome DeleteApplicationOutcome; + typedef Aws::Utils::Outcome DescribeApplicationOutcome; + typedef Aws::Utils::Outcome ListApplicationsOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateApplicationOutcome; + + typedef std::future CreateApplicationOutcomeCallable; + typedef std::future DeleteApplicationOutcomeCallable; + typedef std::future DescribeApplicationOutcomeCallable; + typedef std::future ListApplicationsOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateApplicationOutcomeCallable; +} // namespace Model + + class IoTFleetHubClient; + + typedef std::function&) > CreateApplicationResponseReceivedHandler; + typedef std::function&) > DeleteApplicationResponseReceivedHandler; + typedef std::function&) > DescribeApplicationResponseReceivedHandler; + typedef std::function&) > ListApplicationsResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateApplicationResponseReceivedHandler; + + /** + *

With Fleet Hub for AWS IoT Device Management you can build stand-alone web + * applications for monitoring the health of your device fleets.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

+ */ + class AWS_IOTFLEETHUB_API IoTFleetHubClient : public Aws::Client::AWSJsonClient + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + IoTFleetHubClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + IoTFleetHubClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + IoTFleetHubClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + virtual ~IoTFleetHubClient(); + + + /** + *

Creates a Fleet Hub for AWS IoT Device Management web application.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateApplicationOutcome CreateApplication(const Model::CreateApplicationRequest& request) const; + + /** + *

Creates a Fleet Hub for AWS IoT Device Management web application.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateApplicationOutcomeCallable CreateApplicationCallable(const Model::CreateApplicationRequest& request) const; + + /** + *

Creates a Fleet Hub for AWS IoT Device Management web application.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a Fleet Hub for AWS IoT Device Management web application.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteApplicationOutcome DeleteApplication(const Model::DeleteApplicationRequest& request) const; + + /** + *

Deletes a Fleet Hub for AWS IoT Device Management web application.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteApplicationOutcomeCallable DeleteApplicationCallable(const Model::DeleteApplicationRequest& request) const; + + /** + *

Deletes a Fleet Hub for AWS IoT Device Management web application.

+ *

Fleet Hub for AWS IoT Device Management is in public preview and is subject + * to change.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteApplicationAsync(const Model::DeleteApplicationRequest& request, const DeleteApplicationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a Fleet Hub for AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ */ + virtual Model::DescribeApplicationOutcome DescribeApplication(const Model::DescribeApplicationRequest& request) const; + + /** + *

Gets information about a Fleet Hub for AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DescribeApplicationOutcomeCallable DescribeApplicationCallable(const Model::DescribeApplicationRequest& request) const; + + /** + *

Gets information about a Fleet Hub for AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DescribeApplicationAsync(const Model::DescribeApplicationRequest& request, const DescribeApplicationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets a list of Fleet Hub for AWS IoT Device Management web applications for + * the current account.

Fleet Hub for AWS IoT Device Management is in + * public preview and is subject to change.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListApplicationsOutcome ListApplications(const Model::ListApplicationsRequest& request) const; + + /** + *

Gets a list of Fleet Hub for AWS IoT Device Management web applications for + * the current account.

Fleet Hub for AWS IoT Device Management is in + * public preview and is subject to change.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListApplicationsOutcomeCallable ListApplicationsCallable(const Model::ListApplicationsRequest& request) const; + + /** + *

Gets a list of Fleet Hub for AWS IoT Device Management web applications for + * the current account.

Fleet Hub for AWS IoT Device Management is in + * public preview and is subject to change.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListApplicationsAsync(const Model::ListApplicationsRequest& request, const ListApplicationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the tags for the specified resource.

Fleet Hub for AWS + * IoT Device Management is in public preview and is subject to change.

+ *

See Also:

AWS + * API Reference

+ */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Lists the tags for the specified resource.

Fleet Hub for AWS + * IoT Device Management is in public preview and is subject to change.

+ *

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Lists the tags for the specified resource.

Fleet Hub for AWS + * IoT Device Management is in public preview and is subject to change.

+ *

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Adds to or modifies the tags of the specified resource. Tags are metadata + * which can be used to manage a resource.

Fleet Hub for AWS IoT + * Device Management is in public preview and is subject to change.

+ *

See Also:

AWS + * API Reference

+ */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + *

Adds to or modifies the tags of the specified resource. Tags are metadata + * which can be used to manage a resource.

Fleet Hub for AWS IoT + * Device Management is in public preview and is subject to change.

+ *

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const; + + /** + *

Adds to or modifies the tags of the specified resource. Tags are metadata + * which can be used to manage a resource.

Fleet Hub for AWS IoT + * Device Management is in public preview and is subject to change.

+ *

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Removes the specified tags (metadata) from the resource.

Fleet + * Hub for AWS IoT Device Management is in public preview and is subject to + * change.

See Also:

AWS + * API Reference

+ */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + *

Removes the specified tags (metadata) from the resource.

Fleet + * Hub for AWS IoT Device Management is in public preview and is subject to + * change.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const; + + /** + *

Removes the specified tags (metadata) from the resource.

Fleet + * Hub for AWS IoT Device Management is in public preview and is subject to + * change.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates information about a Fleet Hub for a AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateApplicationOutcome UpdateApplication(const Model::UpdateApplicationRequest& request) const; + + /** + *

Updates information about a Fleet Hub for a AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateApplicationOutcomeCallable UpdateApplicationCallable(const Model::UpdateApplicationRequest& request) const; + + /** + *

Updates information about a Fleet Hub for a AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateApplicationAsync(const Model::UpdateApplicationRequest& request, const UpdateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + + void OverrideEndpoint(const Aws::String& endpoint); + private: + void init(const Aws::Client::ClientConfiguration& clientConfiguration); + void CreateApplicationAsyncHelper(const Model::CreateApplicationRequest& request, const CreateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteApplicationAsyncHelper(const Model::DeleteApplicationRequest& request, const DeleteApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DescribeApplicationAsyncHelper(const Model::DescribeApplicationRequest& request, const DescribeApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListApplicationsAsyncHelper(const Model::ListApplicationsRequest& request, const ListApplicationsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateApplicationAsyncHelper(const Model::UpdateApplicationRequest& request, const UpdateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + + Aws::String m_uri; + Aws::String m_configScheme; + std::shared_ptr m_executor; + }; + +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubEndpoint.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubEndpoint.h new file mode 100644 index 00000000000..9ed3d8c8422 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubEndpoint.h @@ -0,0 +1,21 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ + +namespace IoTFleetHub +{ +namespace IoTFleetHubEndpoint +{ +AWS_IOTFLEETHUB_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false); +} // namespace IoTFleetHubEndpoint +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrorMarshaller.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrorMarshaller.h new file mode 100644 index 00000000000..ad69f403c16 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_IOTFLEETHUB_API IoTFleetHubErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrors.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrors.h new file mode 100644 index 00000000000..6e096939bb6 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubErrors.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +enum class IoTFleetHubErrors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INVALID_REQUEST, + LIMIT_EXCEEDED +}; + +class AWS_IOTFLEETHUB_API IoTFleetHubError : public Aws::Client::AWSError +{ +public: + IoTFleetHubError() {} + IoTFleetHubError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + IoTFleetHubError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + IoTFleetHubError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + IoTFleetHubError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace IoTFleetHubErrorMapper +{ + AWS_IOTFLEETHUB_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubRequest.h new file mode 100644 index 00000000000..bb20ff7d1d6 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHubRequest.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ + class AWS_IOTFLEETHUB_API IoTFleetHubRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + virtual ~IoTFleetHubRequest () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-11-03")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHub_EXPORTS.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHub_EXPORTS.h new file mode 100644 index 00000000000..ae2a7ec7145 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/IoTFleetHub_EXPORTS.h @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_IOTFLEETHUB_EXPORTS + #define AWS_IOTFLEETHUB_API __declspec(dllexport) + #else + #define AWS_IOTFLEETHUB_API __declspec(dllimport) + #endif /* AWS_IOTFLEETHUB_EXPORTS */ + #else + #define AWS_IOTFLEETHUB_API + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_IOTFLEETHUB_API +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationState.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationState.h new file mode 100644 index 00000000000..a362e465f49 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationState.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + enum class ApplicationState + { + NOT_SET, + CREATING, + DELETING, + ACTIVE, + CREATE_FAILED, + DELETE_FAILED + }; + +namespace ApplicationStateMapper +{ +AWS_IOTFLEETHUB_API ApplicationState GetApplicationStateForName(const Aws::String& name); + +AWS_IOTFLEETHUB_API Aws::String GetNameForApplicationState(ApplicationState value); +} // namespace ApplicationStateMapper +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationSummary.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationSummary.h new file mode 100644 index 00000000000..e6a0ce12b92 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ApplicationSummary.h @@ -0,0 +1,305 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + + /** + *

A summary of information about a AWS IoT Device Management web + * application.

Fleet Hub for AWS IoT Device Management is in public + * preview and is subject to change.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTFLEETHUB_API ApplicationSummary + { + public: + ApplicationSummary(); + ApplicationSummary(Aws::Utils::Json::JsonView jsonValue); + ApplicationSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The unique Id of the web application.

+ */ + inline const Aws::String& GetApplicationId() const{ return m_applicationId; } + + /** + *

The unique Id of the web application.

+ */ + inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } + + /** + *

The unique Id of the web application.

+ */ + inline ApplicationSummary& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline ApplicationSummary& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline ApplicationSummary& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} + + + /** + *

The name of the web application.

+ */ + inline const Aws::String& GetApplicationName() const{ return m_applicationName; } + + /** + *

The name of the web application.

+ */ + inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } + + /** + *

The name of the web application.

+ */ + inline ApplicationSummary& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} + + /** + *

The name of the web application.

+ */ + inline ApplicationSummary& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} + + /** + *

The name of the web application.

+ */ + inline ApplicationSummary& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} + + + /** + *

An optional description of the web application.

+ */ + inline const Aws::String& GetApplicationDescription() const{ return m_applicationDescription; } + + /** + *

An optional description of the web application.

+ */ + inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const Aws::String& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = value; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(Aws::String&& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = std::move(value); } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const char* value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription.assign(value); } + + /** + *

An optional description of the web application.

+ */ + inline ApplicationSummary& WithApplicationDescription(const Aws::String& value) { SetApplicationDescription(value); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline ApplicationSummary& WithApplicationDescription(Aws::String&& value) { SetApplicationDescription(std::move(value)); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline ApplicationSummary& WithApplicationDescription(const char* value) { SetApplicationDescription(value); return *this;} + + + /** + *

The URL of the web application.

+ */ + inline const Aws::String& GetApplicationUrl() const{ return m_applicationUrl; } + + /** + *

The URL of the web application.

+ */ + inline bool ApplicationUrlHasBeenSet() const { return m_applicationUrlHasBeenSet; } + + /** + *

The URL of the web application.

+ */ + inline void SetApplicationUrl(const Aws::String& value) { m_applicationUrlHasBeenSet = true; m_applicationUrl = value; } + + /** + *

The URL of the web application.

+ */ + inline void SetApplicationUrl(Aws::String&& value) { m_applicationUrlHasBeenSet = true; m_applicationUrl = std::move(value); } + + /** + *

The URL of the web application.

+ */ + inline void SetApplicationUrl(const char* value) { m_applicationUrlHasBeenSet = true; m_applicationUrl.assign(value); } + + /** + *

The URL of the web application.

+ */ + inline ApplicationSummary& WithApplicationUrl(const Aws::String& value) { SetApplicationUrl(value); return *this;} + + /** + *

The URL of the web application.

+ */ + inline ApplicationSummary& WithApplicationUrl(Aws::String&& value) { SetApplicationUrl(std::move(value)); return *this;} + + /** + *

The URL of the web application.

+ */ + inline ApplicationSummary& WithApplicationUrl(const char* value) { SetApplicationUrl(value); return *this;} + + + /** + *

The date (in Unix epoch time) when the web application was created.

+ */ + inline long long GetApplicationCreationDate() const{ return m_applicationCreationDate; } + + /** + *

The date (in Unix epoch time) when the web application was created.

+ */ + inline bool ApplicationCreationDateHasBeenSet() const { return m_applicationCreationDateHasBeenSet; } + + /** + *

The date (in Unix epoch time) when the web application was created.

+ */ + inline void SetApplicationCreationDate(long long value) { m_applicationCreationDateHasBeenSet = true; m_applicationCreationDate = value; } + + /** + *

The date (in Unix epoch time) when the web application was created.

+ */ + inline ApplicationSummary& WithApplicationCreationDate(long long value) { SetApplicationCreationDate(value); return *this;} + + + /** + *

The date (in Unix epoch time) when the web application was last updated.

+ */ + inline long long GetApplicationLastUpdateDate() const{ return m_applicationLastUpdateDate; } + + /** + *

The date (in Unix epoch time) when the web application was last updated.

+ */ + inline bool ApplicationLastUpdateDateHasBeenSet() const { return m_applicationLastUpdateDateHasBeenSet; } + + /** + *

The date (in Unix epoch time) when the web application was last updated.

+ */ + inline void SetApplicationLastUpdateDate(long long value) { m_applicationLastUpdateDateHasBeenSet = true; m_applicationLastUpdateDate = value; } + + /** + *

The date (in Unix epoch time) when the web application was last updated.

+ */ + inline ApplicationSummary& WithApplicationLastUpdateDate(long long value) { SetApplicationLastUpdateDate(value); return *this;} + + + /** + *

The current state of the web application.

+ */ + inline const ApplicationState& GetApplicationState() const{ return m_applicationState; } + + /** + *

The current state of the web application.

+ */ + inline bool ApplicationStateHasBeenSet() const { return m_applicationStateHasBeenSet; } + + /** + *

The current state of the web application.

+ */ + inline void SetApplicationState(const ApplicationState& value) { m_applicationStateHasBeenSet = true; m_applicationState = value; } + + /** + *

The current state of the web application.

+ */ + inline void SetApplicationState(ApplicationState&& value) { m_applicationStateHasBeenSet = true; m_applicationState = std::move(value); } + + /** + *

The current state of the web application.

+ */ + inline ApplicationSummary& WithApplicationState(const ApplicationState& value) { SetApplicationState(value); return *this;} + + /** + *

The current state of the web application.

+ */ + inline ApplicationSummary& WithApplicationState(ApplicationState&& value) { SetApplicationState(std::move(value)); return *this;} + + private: + + Aws::String m_applicationId; + bool m_applicationIdHasBeenSet; + + Aws::String m_applicationName; + bool m_applicationNameHasBeenSet; + + Aws::String m_applicationDescription; + bool m_applicationDescriptionHasBeenSet; + + Aws::String m_applicationUrl; + bool m_applicationUrlHasBeenSet; + + long long m_applicationCreationDate; + bool m_applicationCreationDateHasBeenSet; + + long long m_applicationLastUpdateDate; + bool m_applicationLastUpdateDateHasBeenSet; + + ApplicationState m_applicationState; + bool m_applicationStateHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationRequest.h new file mode 100644 index 00000000000..cebd9831884 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationRequest.h @@ -0,0 +1,331 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API CreateApplicationRequest : public IoTFleetHubRequest + { + public: + CreateApplicationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the web application.

+ */ + inline const Aws::String& GetApplicationName() const{ return m_applicationName; } + + /** + *

The name of the web application.

+ */ + inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } + + /** + *

The name of the web application.

+ */ + inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} + + /** + *

The name of the web application.

+ */ + inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} + + /** + *

The name of the web application.

+ */ + inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} + + + /** + *

An optional description of the web application.

+ */ + inline const Aws::String& GetApplicationDescription() const{ return m_applicationDescription; } + + /** + *

An optional description of the web application.

+ */ + inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const Aws::String& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = value; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(Aws::String&& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = std::move(value); } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const char* value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription.assign(value); } + + /** + *

An optional description of the web application.

+ */ + inline CreateApplicationRequest& WithApplicationDescription(const Aws::String& value) { SetApplicationDescription(value); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline CreateApplicationRequest& WithApplicationDescription(Aws::String&& value) { SetApplicationDescription(std::move(value)); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline CreateApplicationRequest& WithApplicationDescription(const char* value) { SetApplicationDescription(value); return *this;} + + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline CreateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline CreateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline CreateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline CreateApplicationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline CreateApplicationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

The name of the role must be in the form + * AWSIotFleetHub_random_string .

+ */ + inline CreateApplicationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_applicationName; + bool m_applicationNameHasBeenSet; + + Aws::String m_applicationDescription; + bool m_applicationDescriptionHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationResult.h new file mode 100644 index 00000000000..69fdc15e094 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/CreateApplicationResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API CreateApplicationResult + { + public: + CreateApplicationResult(); + CreateApplicationResult(const Aws::AmazonWebServiceResult& result); + CreateApplicationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The unique Id of the web application.

+ */ + inline const Aws::String& GetApplicationId() const{ return m_applicationId; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const char* value) { m_applicationId.assign(value); } + + /** + *

The unique Id of the web application.

+ */ + inline CreateApplicationResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline CreateApplicationResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline CreateApplicationResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} + + + /** + *

The ARN of the web application.

+ */ + inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; } + + /** + *

The ARN of the web application.

+ */ + inline void SetApplicationArn(const Aws::String& value) { m_applicationArn = value; } + + /** + *

The ARN of the web application.

+ */ + inline void SetApplicationArn(Aws::String&& value) { m_applicationArn = std::move(value); } + + /** + *

The ARN of the web application.

+ */ + inline void SetApplicationArn(const char* value) { m_applicationArn.assign(value); } + + /** + *

The ARN of the web application.

+ */ + inline CreateApplicationResult& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;} + + /** + *

The ARN of the web application.

+ */ + inline CreateApplicationResult& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;} + + /** + *

The ARN of the web application.

+ */ + inline CreateApplicationResult& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;} + + private: + + Aws::String m_applicationId; + + Aws::String m_applicationArn; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationRequest.h new file mode 100644 index 00000000000..54a1135b489 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationRequest.h @@ -0,0 +1,150 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API DeleteApplicationRequest : public IoTFleetHubRequest + { + public: + DeleteApplicationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteApplication"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The unique Id of the web application.

+ */ + inline const Aws::String& GetApplicationId() const{ return m_applicationId; } + + /** + *

The unique Id of the web application.

+ */ + inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } + + /** + *

The unique Id of the web application.

+ */ + inline DeleteApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline DeleteApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline DeleteApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} + + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline DeleteApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline DeleteApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline DeleteApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + private: + + Aws::String m_applicationId; + bool m_applicationIdHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationResult.h new file mode 100644 index 00000000000..095b7d9dd20 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DeleteApplicationResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API DeleteApplicationResult + { + public: + DeleteApplicationResult(); + DeleteApplicationResult(const Aws::AmazonWebServiceResult& result); + DeleteApplicationResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationRequest.h new file mode 100644 index 00000000000..4ca43ba9ec0 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API DescribeApplicationRequest : public IoTFleetHubRequest + { + public: + DescribeApplicationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DescribeApplication"; } + + Aws::String SerializePayload() const override; + + + /** + *

The unique Id of the web application.

+ */ + inline const Aws::String& GetApplicationId() const{ return m_applicationId; } + + /** + *

The unique Id of the web application.

+ */ + inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } + + /** + *

The unique Id of the web application.

+ */ + inline DescribeApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline DescribeApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline DescribeApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} + + private: + + Aws::String m_applicationId; + bool m_applicationIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationResult.h new file mode 100644 index 00000000000..6387f9516da --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/DescribeApplicationResult.h @@ -0,0 +1,498 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API DescribeApplicationResult + { + public: + DescribeApplicationResult(); + DescribeApplicationResult(const Aws::AmazonWebServiceResult& result); + DescribeApplicationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The unique Id of the web application.

+ */ + inline const Aws::String& GetApplicationId() const{ return m_applicationId; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const char* value) { m_applicationId.assign(value); } + + /** + *

The unique Id of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} + + + /** + *

The ARN of the web application.

+ */ + inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; } + + /** + *

The ARN of the web application.

+ */ + inline void SetApplicationArn(const Aws::String& value) { m_applicationArn = value; } + + /** + *

The ARN of the web application.

+ */ + inline void SetApplicationArn(Aws::String&& value) { m_applicationArn = std::move(value); } + + /** + *

The ARN of the web application.

+ */ + inline void SetApplicationArn(const char* value) { m_applicationArn.assign(value); } + + /** + *

The ARN of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;} + + /** + *

The ARN of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;} + + /** + *

The ARN of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;} + + + /** + *

The name of the web application.

+ */ + inline const Aws::String& GetApplicationName() const{ return m_applicationName; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const Aws::String& value) { m_applicationName = value; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(Aws::String&& value) { m_applicationName = std::move(value); } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const char* value) { m_applicationName.assign(value); } + + /** + *

The name of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} + + /** + *

The name of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} + + /** + *

The name of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} + + + /** + *

An optional description of the web application.

+ */ + inline const Aws::String& GetApplicationDescription() const{ return m_applicationDescription; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const Aws::String& value) { m_applicationDescription = value; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(Aws::String&& value) { m_applicationDescription = std::move(value); } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const char* value) { m_applicationDescription.assign(value); } + + /** + *

An optional description of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationDescription(const Aws::String& value) { SetApplicationDescription(value); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationDescription(Aws::String&& value) { SetApplicationDescription(std::move(value)); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationDescription(const char* value) { SetApplicationDescription(value); return *this;} + + + /** + *

The URL of the web application.

+ */ + inline const Aws::String& GetApplicationUrl() const{ return m_applicationUrl; } + + /** + *

The URL of the web application.

+ */ + inline void SetApplicationUrl(const Aws::String& value) { m_applicationUrl = value; } + + /** + *

The URL of the web application.

+ */ + inline void SetApplicationUrl(Aws::String&& value) { m_applicationUrl = std::move(value); } + + /** + *

The URL of the web application.

+ */ + inline void SetApplicationUrl(const char* value) { m_applicationUrl.assign(value); } + + /** + *

The URL of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationUrl(const Aws::String& value) { SetApplicationUrl(value); return *this;} + + /** + *

The URL of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationUrl(Aws::String&& value) { SetApplicationUrl(std::move(value)); return *this;} + + /** + *

The URL of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationUrl(const char* value) { SetApplicationUrl(value); return *this;} + + + /** + *

The current state of the web application.

+ */ + inline const ApplicationState& GetApplicationState() const{ return m_applicationState; } + + /** + *

The current state of the web application.

+ */ + inline void SetApplicationState(const ApplicationState& value) { m_applicationState = value; } + + /** + *

The current state of the web application.

+ */ + inline void SetApplicationState(ApplicationState&& value) { m_applicationState = std::move(value); } + + /** + *

The current state of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationState(const ApplicationState& value) { SetApplicationState(value); return *this;} + + /** + *

The current state of the web application.

+ */ + inline DescribeApplicationResult& WithApplicationState(ApplicationState&& value) { SetApplicationState(std::move(value)); return *this;} + + + /** + *

The date (in Unix epoch time) when the application was created.

+ */ + inline long long GetApplicationCreationDate() const{ return m_applicationCreationDate; } + + /** + *

The date (in Unix epoch time) when the application was created.

+ */ + inline void SetApplicationCreationDate(long long value) { m_applicationCreationDate = value; } + + /** + *

The date (in Unix epoch time) when the application was created.

+ */ + inline DescribeApplicationResult& WithApplicationCreationDate(long long value) { SetApplicationCreationDate(value); return *this;} + + + /** + *

The date (in Unix epoch time) when the application was last updated.

+ */ + inline long long GetApplicationLastUpdateDate() const{ return m_applicationLastUpdateDate; } + + /** + *

The date (in Unix epoch time) when the application was last updated.

+ */ + inline void SetApplicationLastUpdateDate(long long value) { m_applicationLastUpdateDate = value; } + + /** + *

The date (in Unix epoch time) when the application was last updated.

+ */ + inline DescribeApplicationResult& WithApplicationLastUpdateDate(long long value) { SetApplicationLastUpdateDate(value); return *this;} + + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline DescribeApplicationResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline DescribeApplicationResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of the role that the web application assumes when it interacts with + * AWS IoT Core.

+ */ + inline DescribeApplicationResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline const Aws::String& GetSsoClientId() const{ return m_ssoClientId; } + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline void SetSsoClientId(const Aws::String& value) { m_ssoClientId = value; } + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline void SetSsoClientId(Aws::String&& value) { m_ssoClientId = std::move(value); } + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline void SetSsoClientId(const char* value) { m_ssoClientId.assign(value); } + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline DescribeApplicationResult& WithSsoClientId(const Aws::String& value) { SetSsoClientId(value); return *this;} + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline DescribeApplicationResult& WithSsoClientId(Aws::String&& value) { SetSsoClientId(std::move(value)); return *this;} + + /** + *

The Id of the single sign-on client that you use to authenticate and + * authorize users on the web application.

+ */ + inline DescribeApplicationResult& WithSsoClientId(const char* value) { SetSsoClientId(value); return *this;} + + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline DescribeApplicationResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline DescribeApplicationResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} + + /** + *

A message indicating why the DescribeApplication API failed.

+ */ + inline DescribeApplicationResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} + + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

A set of key/value pairs that you can use to manage the web application + * resource.

+ */ + inline DescribeApplicationResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_applicationId; + + Aws::String m_applicationArn; + + Aws::String m_applicationName; + + Aws::String m_applicationDescription; + + Aws::String m_applicationUrl; + + ApplicationState m_applicationState; + + long long m_applicationCreationDate; + + long long m_applicationLastUpdateDate; + + Aws::String m_roleArn; + + Aws::String m_ssoClientId; + + Aws::String m_errorMessage; + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsRequest.h new file mode 100644 index 00000000000..99d9d066760 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API ListApplicationsRequest : public IoTFleetHubRequest + { + public: + ListApplicationsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListApplications"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

A token used to get the next set of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

A token used to get the next set of results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

A token used to get the next set of results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

A token used to get the next set of results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

A token used to get the next set of results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

A token used to get the next set of results.

+ */ + inline ListApplicationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

A token used to get the next set of results.

+ */ + inline ListApplicationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

A token used to get the next set of results.

+ */ + inline ListApplicationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsResult.h new file mode 100644 index 00000000000..1ba8f8bc2d1 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListApplicationsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API ListApplicationsResult + { + public: + ListApplicationsResult(); + ListApplicationsResult(const Aws::AmazonWebServiceResult& result); + ListApplicationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline const Aws::Vector& GetApplicationSummaries() const{ return m_applicationSummaries; } + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline void SetApplicationSummaries(const Aws::Vector& value) { m_applicationSummaries = value; } + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline void SetApplicationSummaries(Aws::Vector&& value) { m_applicationSummaries = std::move(value); } + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline ListApplicationsResult& WithApplicationSummaries(const Aws::Vector& value) { SetApplicationSummaries(value); return *this;} + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline ListApplicationsResult& WithApplicationSummaries(Aws::Vector&& value) { SetApplicationSummaries(std::move(value)); return *this;} + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline ListApplicationsResult& AddApplicationSummaries(const ApplicationSummary& value) { m_applicationSummaries.push_back(value); return *this; } + + /** + *

An array of objects that provide summaries of information about the web + * applications in the list.

+ */ + inline ListApplicationsResult& AddApplicationSummaries(ApplicationSummary&& value) { m_applicationSummaries.push_back(std::move(value)); return *this; } + + + /** + *

A token used to get the next set of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

A token used to get the next set of results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

A token used to get the next set of results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

A token used to get the next set of results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

A token used to get the next set of results.

+ */ + inline ListApplicationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

A token used to get the next set of results.

+ */ + inline ListApplicationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

A token used to get the next set of results.

+ */ + inline ListApplicationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_applicationSummaries; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..80b72b4f8ae --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API ListTagsForResourceRequest : public IoTFleetHubRequest + { + public: + ListTagsForResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN of the resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the resource.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..3b8ebc60b03 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/ListTagsForResourceResult.h @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API ListTagsForResourceResult + { + public: + ListTagsForResourceResult(); + ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The list of tags assigned to the resource.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline void SetTags(const Aws::Map& value) { m_tags = value; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The list of tags assigned to the resource.

+ */ + inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } + + private: + + Aws::Map m_tags; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceRequest.h new file mode 100644 index 00000000000..9283394bd7c --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceRequest.h @@ -0,0 +1,153 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API TagResourceRequest : public IoTFleetHubRequest + { + public: + TagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "TagResource"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ARN of the resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the resource.

+ */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the resource.

+ */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the resource.

+ */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

The new or modified tags for the resource.

+ */ + inline const Aws::Map& GetTags() const{ return m_tags; } + + /** + *

The new or modified tags for the resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The new or modified tags for the resource.

+ */ + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The new or modified tags for the resource.

+ */ + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + + /** + *

The new or modified tags for the resource.

+ */ + inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Map m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceResult.h new file mode 100644 index 00000000000..976af8a4315 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/TagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API TagResourceResult + { + public: + TagResourceResult(); + TagResourceResult(const Aws::AmazonWebServiceResult& result); + TagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceRequest.h new file mode 100644 index 00000000000..60e42bb62cb --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceRequest.h @@ -0,0 +1,139 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API UntagResourceRequest : public IoTFleetHubRequest + { + public: + UntagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN of the resource.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the resource.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the resource.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the resource.

+ */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the resource.

+ */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the resource.

+ */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *

A list of the keys of the tags to be removed from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceResult.h new file mode 100644 index 00000000000..fb138e34aaa --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UntagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API UntagResourceResult + { + public: + UntagResourceResult(); + UntagResourceResult(const Aws::AmazonWebServiceResult& result); + UntagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationRequest.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationRequest.h new file mode 100644 index 00000000000..f8bff188c5e --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationRequest.h @@ -0,0 +1,232 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + + /** + */ + class AWS_IOTFLEETHUB_API UpdateApplicationRequest : public IoTFleetHubRequest + { + public: + UpdateApplicationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; } + + Aws::String SerializePayload() const override; + + + /** + *

The unique Id of the web application.

+ */ + inline const Aws::String& GetApplicationId() const{ return m_applicationId; } + + /** + *

The unique Id of the web application.

+ */ + inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } + + /** + *

The unique Id of the web application.

+ */ + inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } + + /** + *

The unique Id of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} + + /** + *

The unique Id of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} + + + /** + *

The name of the web application.

+ */ + inline const Aws::String& GetApplicationName() const{ return m_applicationName; } + + /** + *

The name of the web application.

+ */ + inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } + + /** + *

The name of the web application.

+ */ + inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } + + /** + *

The name of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} + + /** + *

The name of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} + + /** + *

The name of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} + + + /** + *

An optional description of the web application.

+ */ + inline const Aws::String& GetApplicationDescription() const{ return m_applicationDescription; } + + /** + *

An optional description of the web application.

+ */ + inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const Aws::String& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = value; } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(Aws::String&& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = std::move(value); } + + /** + *

An optional description of the web application.

+ */ + inline void SetApplicationDescription(const char* value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription.assign(value); } + + /** + *

An optional description of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationDescription(const Aws::String& value) { SetApplicationDescription(value); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationDescription(Aws::String&& value) { SetApplicationDescription(std::move(value)); return *this;} + + /** + *

An optional description of the web application.

+ */ + inline UpdateApplicationRequest& WithApplicationDescription(const char* value) { SetApplicationDescription(value); return *this;} + + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline UpdateApplicationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline UpdateApplicationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

A unique case-sensitive identifier that you can provide to ensure the + * idempotency of the request. Don't reuse this client token if a new idempotent + * request is required.

+ */ + inline UpdateApplicationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + private: + + Aws::String m_applicationId; + bool m_applicationIdHasBeenSet; + + Aws::String m_applicationName; + bool m_applicationNameHasBeenSet; + + Aws::String m_applicationDescription; + bool m_applicationDescriptionHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationResult.h b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationResult.h new file mode 100644 index 00000000000..5b6bb95dc90 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/include/aws/iotfleethub/model/UpdateApplicationResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTFleetHub +{ +namespace Model +{ + class AWS_IOTFLEETHUB_API UpdateApplicationResult + { + public: + UpdateApplicationResult(); + UpdateApplicationResult(const Aws::AmazonWebServiceResult& result); + UpdateApplicationResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/source/IoTFleetHubClient.cpp b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubClient.cpp new file mode 100644 index 00000000000..4f07e16d0e7 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubClient.cpp @@ -0,0 +1,361 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::IoTFleetHub; +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; + +static const char* SERVICE_NAME = "iotfleethub"; +static const char* ALLOCATION_TAG = "IoTFleetHubClient"; + + +IoTFleetHubClient::IoTFleetHubClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTFleetHubClient::IoTFleetHubClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTFleetHubClient::IoTFleetHubClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, credentialsProvider, + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTFleetHubClient::~IoTFleetHubClient() +{ +} + +void IoTFleetHubClient::init(const ClientConfiguration& config) +{ + SetServiceClientName("IoTFleetHub"); + m_configScheme = SchemeMapper::ToString(config.scheme); + if (config.endpointOverride.empty()) + { + m_uri = m_configScheme + "://" + IoTFleetHubEndpoint::ForRegion(config.region, config.useDualStack); + } + else + { + OverrideEndpoint(config.endpointOverride); + } +} + +void IoTFleetHubClient::OverrideEndpoint(const Aws::String& endpoint) +{ + if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0) + { + m_uri = endpoint; + } + else + { + m_uri = m_configScheme + "://" + endpoint; + } +} + +CreateApplicationOutcome IoTFleetHubClient::CreateApplication(const CreateApplicationRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/applications"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateApplicationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateApplicationOutcomeCallable IoTFleetHubClient::CreateApplicationCallable(const CreateApplicationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateApplicationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateApplication(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::CreateApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateApplicationAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::CreateApplicationAsyncHelper(const CreateApplicationRequest& request, const CreateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateApplication(request), context); +} + +DeleteApplicationOutcome IoTFleetHubClient::DeleteApplication(const DeleteApplicationRequest& request) const +{ + if (!request.ApplicationIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteApplication", "Required field: ApplicationId, is not set"); + return DeleteApplicationOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ApplicationId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/applications/"; + ss << request.GetApplicationId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteApplicationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteApplicationOutcomeCallable IoTFleetHubClient::DeleteApplicationCallable(const DeleteApplicationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteApplicationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteApplication(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::DeleteApplicationAsync(const DeleteApplicationRequest& request, const DeleteApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteApplicationAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::DeleteApplicationAsyncHelper(const DeleteApplicationRequest& request, const DeleteApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteApplication(request), context); +} + +DescribeApplicationOutcome IoTFleetHubClient::DescribeApplication(const DescribeApplicationRequest& request) const +{ + if (!request.ApplicationIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeApplication", "Required field: ApplicationId, is not set"); + return DescribeApplicationOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ApplicationId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/applications/"; + ss << request.GetApplicationId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DescribeApplicationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +DescribeApplicationOutcomeCallable IoTFleetHubClient::DescribeApplicationCallable(const DescribeApplicationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DescribeApplicationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeApplication(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::DescribeApplicationAsync(const DescribeApplicationRequest& request, const DescribeApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DescribeApplicationAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::DescribeApplicationAsyncHelper(const DescribeApplicationRequest& request, const DescribeApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DescribeApplication(request), context); +} + +ListApplicationsOutcome IoTFleetHubClient::ListApplications(const ListApplicationsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/applications"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListApplicationsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListApplicationsOutcomeCallable IoTFleetHubClient::ListApplicationsCallable(const ListApplicationsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListApplicationsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListApplications(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::ListApplicationsAsync(const ListApplicationsRequest& request, const ListApplicationsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListApplicationsAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::ListApplicationsAsyncHelper(const ListApplicationsRequest& request, const ListApplicationsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListApplications(request), context); +} + +ListTagsForResourceOutcome IoTFleetHubClient::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListTagsForResourceOutcomeCallable IoTFleetHubClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListTagsForResource(request), context); +} + +TagResourceOutcome IoTFleetHubClient::TagResource(const TagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set"); + return TagResourceOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +TagResourceOutcomeCallable IoTFleetHubClient::TagResourceCallable(const TagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, TagResource(request), context); +} + +UntagResourceOutcome IoTFleetHubClient::UntagResource(const UntagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags/"; + ss << request.GetResourceArn(); + uri.SetPath(uri.GetPath() + ss.str()); + return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +UntagResourceOutcomeCallable IoTFleetHubClient::UntagResourceCallable(const UntagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UntagResource(request), context); +} + +UpdateApplicationOutcome IoTFleetHubClient::UpdateApplication(const UpdateApplicationRequest& request) const +{ + if (!request.ApplicationIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateApplication", "Required field: ApplicationId, is not set"); + return UpdateApplicationOutcome(Aws::Client::AWSError(IoTFleetHubErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ApplicationId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/applications/"; + ss << request.GetApplicationId(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateApplicationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateApplicationOutcomeCallable IoTFleetHubClient::UpdateApplicationCallable(const UpdateApplicationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateApplicationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateApplication(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTFleetHubClient::UpdateApplicationAsync(const UpdateApplicationRequest& request, const UpdateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateApplicationAsyncHelper( request, handler, context ); } ); +} + +void IoTFleetHubClient::UpdateApplicationAsyncHelper(const UpdateApplicationRequest& request, const UpdateApplicationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateApplication(request), context); +} + diff --git a/aws-cpp-sdk-iotfleethub/source/IoTFleetHubEndpoint.cpp b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubEndpoint.cpp new file mode 100644 index 00000000000..5da693c02bf --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubEndpoint.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws; +using namespace Aws::IoTFleetHub; + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace IoTFleetHubEndpoint +{ + static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1"); + static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1"); + static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1"); + static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1"); + + + Aws::String ForRegion(const Aws::String& regionName, bool useDualStack) + { + // Fallback to us-east-1 if global endpoint does not exists. + Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName; + auto hash = Aws::Utils::HashingUtils::HashString(region.c_str()); + + Aws::StringStream ss; + ss << "api.fleethub.iot" << "."; + + if(useDualStack) + { + ss << "dualstack."; + } + + ss << region; + + if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH) + { + ss << ".amazonaws.com.cn"; + } + else if (hash == US_ISO_EAST_1_HASH) + { + ss << ".c2s.ic.gov"; + } + else if (hash == US_ISOB_EAST_1_HASH) + { + ss << ".sc2s.sgov.gov"; + } + else + { + ss << ".amazonaws.com"; + } + + return ss.str(); + } + +} // namespace IoTFleetHubEndpoint +} // namespace IoTFleetHub +} // namespace Aws + diff --git a/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrorMarshaller.cpp b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrorMarshaller.cpp new file mode 100644 index 00000000000..6ca53e11529 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::IoTFleetHub; + +AWSError IoTFleetHubErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = IoTFleetHubErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp new file mode 100644 index 00000000000..3eb36518a0d --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/IoTFleetHubErrors.cpp @@ -0,0 +1,47 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::IoTFleetHub; + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace IoTFleetHubErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); +static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(IoTFleetHubErrors::CONFLICT), false); + } + else if (hashCode == LIMIT_EXCEEDED_HASH) + { + return AWSError(static_cast(IoTFleetHubErrors::LIMIT_EXCEEDED), true); + } + else if (hashCode == INVALID_REQUEST_HASH) + { + return AWSError(static_cast(IoTFleetHubErrors::INVALID_REQUEST), false); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace IoTFleetHubErrorMapper +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp b/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp new file mode 100644 index 00000000000..2d8dd9aa2a1 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/ApplicationState.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTFleetHub + { + namespace Model + { + namespace ApplicationStateMapper + { + + static const int CREATING_HASH = HashingUtils::HashString("CREATING"); + static const int DELETING_HASH = HashingUtils::HashString("DELETING"); + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); + static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + + + ApplicationState GetApplicationStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CREATING_HASH) + { + return ApplicationState::CREATING; + } + else if (hashCode == DELETING_HASH) + { + return ApplicationState::DELETING; + } + else if (hashCode == ACTIVE_HASH) + { + return ApplicationState::ACTIVE; + } + else if (hashCode == CREATE_FAILED_HASH) + { + return ApplicationState::CREATE_FAILED; + } + else if (hashCode == DELETE_FAILED_HASH) + { + return ApplicationState::DELETE_FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ApplicationState::NOT_SET; + } + + Aws::String GetNameForApplicationState(ApplicationState enumValue) + { + switch(enumValue) + { + case ApplicationState::CREATING: + return "CREATING"; + case ApplicationState::DELETING: + return "DELETING"; + case ApplicationState::ACTIVE: + return "ACTIVE"; + case ApplicationState::CREATE_FAILED: + return "CREATE_FAILED"; + case ApplicationState::DELETE_FAILED: + return "DELETE_FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ApplicationStateMapper + } // namespace Model + } // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/source/model/ApplicationSummary.cpp b/aws-cpp-sdk-iotfleethub/source/model/ApplicationSummary.cpp new file mode 100644 index 00000000000..5e355edbd62 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/ApplicationSummary.cpp @@ -0,0 +1,154 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTFleetHub +{ +namespace Model +{ + +ApplicationSummary::ApplicationSummary() : + m_applicationIdHasBeenSet(false), + m_applicationNameHasBeenSet(false), + m_applicationDescriptionHasBeenSet(false), + m_applicationUrlHasBeenSet(false), + m_applicationCreationDate(0), + m_applicationCreationDateHasBeenSet(false), + m_applicationLastUpdateDate(0), + m_applicationLastUpdateDateHasBeenSet(false), + m_applicationState(ApplicationState::NOT_SET), + m_applicationStateHasBeenSet(false) +{ +} + +ApplicationSummary::ApplicationSummary(JsonView jsonValue) : + m_applicationIdHasBeenSet(false), + m_applicationNameHasBeenSet(false), + m_applicationDescriptionHasBeenSet(false), + m_applicationUrlHasBeenSet(false), + m_applicationCreationDate(0), + m_applicationCreationDateHasBeenSet(false), + m_applicationLastUpdateDate(0), + m_applicationLastUpdateDateHasBeenSet(false), + m_applicationState(ApplicationState::NOT_SET), + m_applicationStateHasBeenSet(false) +{ + *this = jsonValue; +} + +ApplicationSummary& ApplicationSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("applicationId")) + { + m_applicationId = jsonValue.GetString("applicationId"); + + m_applicationIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("applicationName")) + { + m_applicationName = jsonValue.GetString("applicationName"); + + m_applicationNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("applicationDescription")) + { + m_applicationDescription = jsonValue.GetString("applicationDescription"); + + m_applicationDescriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("applicationUrl")) + { + m_applicationUrl = jsonValue.GetString("applicationUrl"); + + m_applicationUrlHasBeenSet = true; + } + + if(jsonValue.ValueExists("applicationCreationDate")) + { + m_applicationCreationDate = jsonValue.GetInt64("applicationCreationDate"); + + m_applicationCreationDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("applicationLastUpdateDate")) + { + m_applicationLastUpdateDate = jsonValue.GetInt64("applicationLastUpdateDate"); + + m_applicationLastUpdateDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("applicationState")) + { + m_applicationState = ApplicationStateMapper::GetApplicationStateForName(jsonValue.GetString("applicationState")); + + m_applicationStateHasBeenSet = true; + } + + return *this; +} + +JsonValue ApplicationSummary::Jsonize() const +{ + JsonValue payload; + + if(m_applicationIdHasBeenSet) + { + payload.WithString("applicationId", m_applicationId); + + } + + if(m_applicationNameHasBeenSet) + { + payload.WithString("applicationName", m_applicationName); + + } + + if(m_applicationDescriptionHasBeenSet) + { + payload.WithString("applicationDescription", m_applicationDescription); + + } + + if(m_applicationUrlHasBeenSet) + { + payload.WithString("applicationUrl", m_applicationUrl); + + } + + if(m_applicationCreationDateHasBeenSet) + { + payload.WithInt64("applicationCreationDate", m_applicationCreationDate); + + } + + if(m_applicationLastUpdateDateHasBeenSet) + { + payload.WithInt64("applicationLastUpdateDate", m_applicationLastUpdateDate); + + } + + if(m_applicationStateHasBeenSet) + { + payload.WithString("applicationState", ApplicationStateMapper::GetNameForApplicationState(m_applicationState)); + } + + return payload; +} + +} // namespace Model +} // namespace IoTFleetHub +} // namespace Aws diff --git a/aws-cpp-sdk-iotfleethub/source/model/CreateApplicationRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/CreateApplicationRequest.cpp new file mode 100644 index 00000000000..487259e0aa9 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/CreateApplicationRequest.cpp @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateApplicationRequest::CreateApplicationRequest() : + m_applicationNameHasBeenSet(false), + m_applicationDescriptionHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::RandomUUID()), + m_clientTokenHasBeenSet(true), + m_roleArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateApplicationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_applicationNameHasBeenSet) + { + payload.WithString("applicationName", m_applicationName); + + } + + if(m_applicationDescriptionHasBeenSet) + { + payload.WithString("applicationDescription", m_applicationDescription); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/CreateApplicationResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/CreateApplicationResult.cpp new file mode 100644 index 00000000000..6ad2ea8adc6 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/CreateApplicationResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateApplicationResult::CreateApplicationResult() +{ +} + +CreateApplicationResult::CreateApplicationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateApplicationResult& CreateApplicationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("applicationId")) + { + m_applicationId = jsonValue.GetString("applicationId"); + + } + + if(jsonValue.ValueExists("applicationArn")) + { + m_applicationArn = jsonValue.GetString("applicationArn"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationRequest.cpp new file mode 100644 index 00000000000..dc436abcb3c --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DeleteApplicationRequest::DeleteApplicationRequest() : + m_applicationIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::RandomUUID()), + m_clientTokenHasBeenSet(true) +{ +} + +Aws::String DeleteApplicationRequest::SerializePayload() const +{ + return {}; +} + +void DeleteApplicationRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_clientTokenHasBeenSet) + { + ss << m_clientToken; + uri.AddQueryStringParameter("clientToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationResult.cpp new file mode 100644 index 00000000000..94497a615f4 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/DeleteApplicationResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteApplicationResult::DeleteApplicationResult() +{ +} + +DeleteApplicationResult::DeleteApplicationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteApplicationResult& DeleteApplicationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationRequest.cpp new file mode 100644 index 00000000000..266a6952a9e --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeApplicationRequest::DescribeApplicationRequest() : + m_applicationIdHasBeenSet(false) +{ +} + +Aws::String DescribeApplicationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationResult.cpp new file mode 100644 index 00000000000..8c17c427b66 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/DescribeApplicationResult.cpp @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeApplicationResult::DescribeApplicationResult() : + m_applicationState(ApplicationState::NOT_SET), + m_applicationCreationDate(0), + m_applicationLastUpdateDate(0) +{ +} + +DescribeApplicationResult::DescribeApplicationResult(const Aws::AmazonWebServiceResult& result) : + m_applicationState(ApplicationState::NOT_SET), + m_applicationCreationDate(0), + m_applicationLastUpdateDate(0) +{ + *this = result; +} + +DescribeApplicationResult& DescribeApplicationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("applicationId")) + { + m_applicationId = jsonValue.GetString("applicationId"); + + } + + if(jsonValue.ValueExists("applicationArn")) + { + m_applicationArn = jsonValue.GetString("applicationArn"); + + } + + if(jsonValue.ValueExists("applicationName")) + { + m_applicationName = jsonValue.GetString("applicationName"); + + } + + if(jsonValue.ValueExists("applicationDescription")) + { + m_applicationDescription = jsonValue.GetString("applicationDescription"); + + } + + if(jsonValue.ValueExists("applicationUrl")) + { + m_applicationUrl = jsonValue.GetString("applicationUrl"); + + } + + if(jsonValue.ValueExists("applicationState")) + { + m_applicationState = ApplicationStateMapper::GetApplicationStateForName(jsonValue.GetString("applicationState")); + + } + + if(jsonValue.ValueExists("applicationCreationDate")) + { + m_applicationCreationDate = jsonValue.GetInt64("applicationCreationDate"); + + } + + if(jsonValue.ValueExists("applicationLastUpdateDate")) + { + m_applicationLastUpdateDate = jsonValue.GetInt64("applicationLastUpdateDate"); + + } + + if(jsonValue.ValueExists("roleArn")) + { + m_roleArn = jsonValue.GetString("roleArn"); + + } + + if(jsonValue.ValueExists("ssoClientId")) + { + m_ssoClientId = jsonValue.GetString("ssoClientId"); + + } + + if(jsonValue.ValueExists("errorMessage")) + { + m_errorMessage = jsonValue.GetString("errorMessage"); + + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/ListApplicationsRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/ListApplicationsRequest.cpp new file mode 100644 index 00000000000..f07df74ce95 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/ListApplicationsRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListApplicationsRequest::ListApplicationsRequest() : + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListApplicationsRequest::SerializePayload() const +{ + return {}; +} + +void ListApplicationsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/ListApplicationsResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/ListApplicationsResult.cpp new file mode 100644 index 00000000000..1878d46d21f --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/ListApplicationsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListApplicationsResult::ListApplicationsResult() +{ +} + +ListApplicationsResult::ListApplicationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListApplicationsResult& ListApplicationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("applicationSummaries")) + { + Array applicationSummariesJsonList = jsonValue.GetArray("applicationSummaries"); + for(unsigned applicationSummariesIndex = 0; applicationSummariesIndex < applicationSummariesJsonList.GetLength(); ++applicationSummariesIndex) + { + m_applicationSummaries.push_back(applicationSummariesJsonList[applicationSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..b7f19e796ce --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..704dda1734e --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/TagResourceRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..9cd602f2474 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/TagResourceRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TagResourceRequest::TagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/TagResourceResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/TagResourceResult.cpp new file mode 100644 index 00000000000..801352d4839 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/TagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TagResourceResult::TagResourceResult() +{ +} + +TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/UntagResourceRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..b64dc00dd64 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/UntagResourceRequest.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UntagResourceRequest::UntagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + return {}; +} + +void UntagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_tagKeysHasBeenSet) + { + for(const auto& item : m_tagKeys) + { + ss << item; + uri.AddQueryStringParameter("tagKeys", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/UntagResourceResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/UntagResourceResult.cpp new file mode 100644 index 00000000000..0e93caf6531 --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/UntagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UntagResourceResult::UntagResourceResult() +{ +} + +UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationRequest.cpp b/aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationRequest.cpp new file mode 100644 index 00000000000..62ef9ed115d --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateApplicationRequest::UpdateApplicationRequest() : + m_applicationIdHasBeenSet(false), + m_applicationNameHasBeenSet(false), + m_applicationDescriptionHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::RandomUUID()), + m_clientTokenHasBeenSet(true) +{ +} + +Aws::String UpdateApplicationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_applicationNameHasBeenSet) + { + payload.WithString("applicationName", m_applicationName); + + } + + if(m_applicationDescriptionHasBeenSet) + { + payload.WithString("applicationDescription", m_applicationDescription); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationResult.cpp b/aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationResult.cpp new file mode 100644 index 00000000000..952442cc15a --- /dev/null +++ b/aws-cpp-sdk-iotfleethub/source/model/UpdateApplicationResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTFleetHub::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateApplicationResult::UpdateApplicationResult() +{ +} + +UpdateApplicationResult::UpdateApplicationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateApplicationResult& UpdateApplicationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/CMakeLists.txt b/aws-cpp-sdk-iotwireless/CMakeLists.txt new file mode 100644 index 00000000000..00d8ed58a13 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-iotwireless "C++ SDK for the AWS iotwireless service" aws-cpp-sdk-core) + +file(GLOB AWS_IOTWIRELESS_HEADERS + "include/aws/iotwireless/*.h" +) + +file(GLOB AWS_IOTWIRELESS_MODEL_HEADERS + "include/aws/iotwireless/model/*.h" +) + +file(GLOB AWS_IOTWIRELESS_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_IOTWIRELESS_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB IOTWIRELESS_UNIFIED_HEADERS + ${AWS_IOTWIRELESS_HEADERS} + ${AWS_IOTWIRELESS_MODEL_HEADERS} +) + +file(GLOB IOTWIRELESS_UNITY_SRC + ${AWS_IOTWIRELESS_SOURCE} + ${AWS_IOTWIRELESS_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("IOTWIRELESS" IOTWIRELESS_UNITY_SRC) +endif() + +file(GLOB IOTWIRELESS_SRC + ${IOTWIRELESS_UNIFIED_HEADERS} + ${IOTWIRELESS_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\iotwireless" FILES ${AWS_IOTWIRELESS_HEADERS}) + source_group("Header Files\\aws\\iotwireless\\model" FILES ${AWS_IOTWIRELESS_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_IOTWIRELESS_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_IOTWIRELESS_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(IOTWIRELESS_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${IOTWIRELESS_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_IOTWIRELESS_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_IOTWIRELESS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iotwireless) +install (FILES ${AWS_IOTWIRELESS_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iotwireless/model) + +do_packaging() + + diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessClient.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessClient.h new file mode 100644 index 00000000000..04d356e96ae --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessClient.h @@ -0,0 +1,1772 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ + +namespace Http +{ + class HttpClient; + class HttpClientFactory; +} // namespace Http + +namespace Utils +{ + template< typename R, typename E> class Outcome; +namespace Threading +{ + class Executor; +} // namespace Threading +} // namespace Utils + +namespace Auth +{ + class AWSCredentials; + class AWSCredentialsProvider; +} // namespace Auth + +namespace Client +{ + class RetryStrategy; +} // namespace Client + +namespace IoTWireless +{ + +namespace Model +{ + class AssociateAwsAccountWithPartnerAccountRequest; + class AssociateWirelessDeviceWithThingRequest; + class AssociateWirelessGatewayWithCertificateRequest; + class AssociateWirelessGatewayWithThingRequest; + class CreateDestinationRequest; + class CreateDeviceProfileRequest; + class CreateServiceProfileRequest; + class CreateWirelessDeviceRequest; + class CreateWirelessGatewayRequest; + class CreateWirelessGatewayTaskRequest; + class CreateWirelessGatewayTaskDefinitionRequest; + class DeleteDestinationRequest; + class DeleteDeviceProfileRequest; + class DeleteServiceProfileRequest; + class DeleteWirelessDeviceRequest; + class DeleteWirelessGatewayRequest; + class DeleteWirelessGatewayTaskRequest; + class DeleteWirelessGatewayTaskDefinitionRequest; + class DisassociateAwsAccountFromPartnerAccountRequest; + class DisassociateWirelessDeviceFromThingRequest; + class DisassociateWirelessGatewayFromCertificateRequest; + class DisassociateWirelessGatewayFromThingRequest; + class GetDestinationRequest; + class GetDeviceProfileRequest; + class GetPartnerAccountRequest; + class GetServiceEndpointRequest; + class GetServiceProfileRequest; + class GetWirelessDeviceRequest; + class GetWirelessDeviceStatisticsRequest; + class GetWirelessGatewayRequest; + class GetWirelessGatewayCertificateRequest; + class GetWirelessGatewayFirmwareInformationRequest; + class GetWirelessGatewayStatisticsRequest; + class GetWirelessGatewayTaskRequest; + class GetWirelessGatewayTaskDefinitionRequest; + class ListDestinationsRequest; + class ListDeviceProfilesRequest; + class ListPartnerAccountsRequest; + class ListServiceProfilesRequest; + class ListTagsForResourceRequest; + class ListWirelessDevicesRequest; + class ListWirelessGatewayTaskDefinitionsRequest; + class ListWirelessGatewaysRequest; + class SendDataToWirelessDeviceRequest; + class TagResourceRequest; + class TestWirelessDeviceRequest; + class UntagResourceRequest; + class UpdateDestinationRequest; + class UpdatePartnerAccountRequest; + class UpdateWirelessDeviceRequest; + class UpdateWirelessGatewayRequest; + + typedef Aws::Utils::Outcome AssociateAwsAccountWithPartnerAccountOutcome; + typedef Aws::Utils::Outcome AssociateWirelessDeviceWithThingOutcome; + typedef Aws::Utils::Outcome AssociateWirelessGatewayWithCertificateOutcome; + typedef Aws::Utils::Outcome AssociateWirelessGatewayWithThingOutcome; + typedef Aws::Utils::Outcome CreateDestinationOutcome; + typedef Aws::Utils::Outcome CreateDeviceProfileOutcome; + typedef Aws::Utils::Outcome CreateServiceProfileOutcome; + typedef Aws::Utils::Outcome CreateWirelessDeviceOutcome; + typedef Aws::Utils::Outcome CreateWirelessGatewayOutcome; + typedef Aws::Utils::Outcome CreateWirelessGatewayTaskOutcome; + typedef Aws::Utils::Outcome CreateWirelessGatewayTaskDefinitionOutcome; + typedef Aws::Utils::Outcome DeleteDestinationOutcome; + typedef Aws::Utils::Outcome DeleteDeviceProfileOutcome; + typedef Aws::Utils::Outcome DeleteServiceProfileOutcome; + typedef Aws::Utils::Outcome DeleteWirelessDeviceOutcome; + typedef Aws::Utils::Outcome DeleteWirelessGatewayOutcome; + typedef Aws::Utils::Outcome DeleteWirelessGatewayTaskOutcome; + typedef Aws::Utils::Outcome DeleteWirelessGatewayTaskDefinitionOutcome; + typedef Aws::Utils::Outcome DisassociateAwsAccountFromPartnerAccountOutcome; + typedef Aws::Utils::Outcome DisassociateWirelessDeviceFromThingOutcome; + typedef Aws::Utils::Outcome DisassociateWirelessGatewayFromCertificateOutcome; + typedef Aws::Utils::Outcome DisassociateWirelessGatewayFromThingOutcome; + typedef Aws::Utils::Outcome GetDestinationOutcome; + typedef Aws::Utils::Outcome GetDeviceProfileOutcome; + typedef Aws::Utils::Outcome GetPartnerAccountOutcome; + typedef Aws::Utils::Outcome GetServiceEndpointOutcome; + typedef Aws::Utils::Outcome GetServiceProfileOutcome; + typedef Aws::Utils::Outcome GetWirelessDeviceOutcome; + typedef Aws::Utils::Outcome GetWirelessDeviceStatisticsOutcome; + typedef Aws::Utils::Outcome GetWirelessGatewayOutcome; + typedef Aws::Utils::Outcome GetWirelessGatewayCertificateOutcome; + typedef Aws::Utils::Outcome GetWirelessGatewayFirmwareInformationOutcome; + typedef Aws::Utils::Outcome GetWirelessGatewayStatisticsOutcome; + typedef Aws::Utils::Outcome GetWirelessGatewayTaskOutcome; + typedef Aws::Utils::Outcome GetWirelessGatewayTaskDefinitionOutcome; + typedef Aws::Utils::Outcome ListDestinationsOutcome; + typedef Aws::Utils::Outcome ListDeviceProfilesOutcome; + typedef Aws::Utils::Outcome ListPartnerAccountsOutcome; + typedef Aws::Utils::Outcome ListServiceProfilesOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome ListWirelessDevicesOutcome; + typedef Aws::Utils::Outcome ListWirelessGatewayTaskDefinitionsOutcome; + typedef Aws::Utils::Outcome ListWirelessGatewaysOutcome; + typedef Aws::Utils::Outcome SendDataToWirelessDeviceOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome TestWirelessDeviceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateDestinationOutcome; + typedef Aws::Utils::Outcome UpdatePartnerAccountOutcome; + typedef Aws::Utils::Outcome UpdateWirelessDeviceOutcome; + typedef Aws::Utils::Outcome UpdateWirelessGatewayOutcome; + + typedef std::future AssociateAwsAccountWithPartnerAccountOutcomeCallable; + typedef std::future AssociateWirelessDeviceWithThingOutcomeCallable; + typedef std::future AssociateWirelessGatewayWithCertificateOutcomeCallable; + typedef std::future AssociateWirelessGatewayWithThingOutcomeCallable; + typedef std::future CreateDestinationOutcomeCallable; + typedef std::future CreateDeviceProfileOutcomeCallable; + typedef std::future CreateServiceProfileOutcomeCallable; + typedef std::future CreateWirelessDeviceOutcomeCallable; + typedef std::future CreateWirelessGatewayOutcomeCallable; + typedef std::future CreateWirelessGatewayTaskOutcomeCallable; + typedef std::future CreateWirelessGatewayTaskDefinitionOutcomeCallable; + typedef std::future DeleteDestinationOutcomeCallable; + typedef std::future DeleteDeviceProfileOutcomeCallable; + typedef std::future DeleteServiceProfileOutcomeCallable; + typedef std::future DeleteWirelessDeviceOutcomeCallable; + typedef std::future DeleteWirelessGatewayOutcomeCallable; + typedef std::future DeleteWirelessGatewayTaskOutcomeCallable; + typedef std::future DeleteWirelessGatewayTaskDefinitionOutcomeCallable; + typedef std::future DisassociateAwsAccountFromPartnerAccountOutcomeCallable; + typedef std::future DisassociateWirelessDeviceFromThingOutcomeCallable; + typedef std::future DisassociateWirelessGatewayFromCertificateOutcomeCallable; + typedef std::future DisassociateWirelessGatewayFromThingOutcomeCallable; + typedef std::future GetDestinationOutcomeCallable; + typedef std::future GetDeviceProfileOutcomeCallable; + typedef std::future GetPartnerAccountOutcomeCallable; + typedef std::future GetServiceEndpointOutcomeCallable; + typedef std::future GetServiceProfileOutcomeCallable; + typedef std::future GetWirelessDeviceOutcomeCallable; + typedef std::future GetWirelessDeviceStatisticsOutcomeCallable; + typedef std::future GetWirelessGatewayOutcomeCallable; + typedef std::future GetWirelessGatewayCertificateOutcomeCallable; + typedef std::future GetWirelessGatewayFirmwareInformationOutcomeCallable; + typedef std::future GetWirelessGatewayStatisticsOutcomeCallable; + typedef std::future GetWirelessGatewayTaskOutcomeCallable; + typedef std::future GetWirelessGatewayTaskDefinitionOutcomeCallable; + typedef std::future ListDestinationsOutcomeCallable; + typedef std::future ListDeviceProfilesOutcomeCallable; + typedef std::future ListPartnerAccountsOutcomeCallable; + typedef std::future ListServiceProfilesOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future ListWirelessDevicesOutcomeCallable; + typedef std::future ListWirelessGatewayTaskDefinitionsOutcomeCallable; + typedef std::future ListWirelessGatewaysOutcomeCallable; + typedef std::future SendDataToWirelessDeviceOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future TestWirelessDeviceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateDestinationOutcomeCallable; + typedef std::future UpdatePartnerAccountOutcomeCallable; + typedef std::future UpdateWirelessDeviceOutcomeCallable; + typedef std::future UpdateWirelessGatewayOutcomeCallable; +} // namespace Model + + class IoTWirelessClient; + + typedef std::function&) > AssociateAwsAccountWithPartnerAccountResponseReceivedHandler; + typedef std::function&) > AssociateWirelessDeviceWithThingResponseReceivedHandler; + typedef std::function&) > AssociateWirelessGatewayWithCertificateResponseReceivedHandler; + typedef std::function&) > AssociateWirelessGatewayWithThingResponseReceivedHandler; + typedef std::function&) > CreateDestinationResponseReceivedHandler; + typedef std::function&) > CreateDeviceProfileResponseReceivedHandler; + typedef std::function&) > CreateServiceProfileResponseReceivedHandler; + typedef std::function&) > CreateWirelessDeviceResponseReceivedHandler; + typedef std::function&) > CreateWirelessGatewayResponseReceivedHandler; + typedef std::function&) > CreateWirelessGatewayTaskResponseReceivedHandler; + typedef std::function&) > CreateWirelessGatewayTaskDefinitionResponseReceivedHandler; + typedef std::function&) > DeleteDestinationResponseReceivedHandler; + typedef std::function&) > DeleteDeviceProfileResponseReceivedHandler; + typedef std::function&) > DeleteServiceProfileResponseReceivedHandler; + typedef std::function&) > DeleteWirelessDeviceResponseReceivedHandler; + typedef std::function&) > DeleteWirelessGatewayResponseReceivedHandler; + typedef std::function&) > DeleteWirelessGatewayTaskResponseReceivedHandler; + typedef std::function&) > DeleteWirelessGatewayTaskDefinitionResponseReceivedHandler; + typedef std::function&) > DisassociateAwsAccountFromPartnerAccountResponseReceivedHandler; + typedef std::function&) > DisassociateWirelessDeviceFromThingResponseReceivedHandler; + typedef std::function&) > DisassociateWirelessGatewayFromCertificateResponseReceivedHandler; + typedef std::function&) > DisassociateWirelessGatewayFromThingResponseReceivedHandler; + typedef std::function&) > GetDestinationResponseReceivedHandler; + typedef std::function&) > GetDeviceProfileResponseReceivedHandler; + typedef std::function&) > GetPartnerAccountResponseReceivedHandler; + typedef std::function&) > GetServiceEndpointResponseReceivedHandler; + typedef std::function&) > GetServiceProfileResponseReceivedHandler; + typedef std::function&) > GetWirelessDeviceResponseReceivedHandler; + typedef std::function&) > GetWirelessDeviceStatisticsResponseReceivedHandler; + typedef std::function&) > GetWirelessGatewayResponseReceivedHandler; + typedef std::function&) > GetWirelessGatewayCertificateResponseReceivedHandler; + typedef std::function&) > GetWirelessGatewayFirmwareInformationResponseReceivedHandler; + typedef std::function&) > GetWirelessGatewayStatisticsResponseReceivedHandler; + typedef std::function&) > GetWirelessGatewayTaskResponseReceivedHandler; + typedef std::function&) > GetWirelessGatewayTaskDefinitionResponseReceivedHandler; + typedef std::function&) > ListDestinationsResponseReceivedHandler; + typedef std::function&) > ListDeviceProfilesResponseReceivedHandler; + typedef std::function&) > ListPartnerAccountsResponseReceivedHandler; + typedef std::function&) > ListServiceProfilesResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > ListWirelessDevicesResponseReceivedHandler; + typedef std::function&) > ListWirelessGatewayTaskDefinitionsResponseReceivedHandler; + typedef std::function&) > ListWirelessGatewaysResponseReceivedHandler; + typedef std::function&) > SendDataToWirelessDeviceResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > TestWirelessDeviceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateDestinationResponseReceivedHandler; + typedef std::function&) > UpdatePartnerAccountResponseReceivedHandler; + typedef std::function&) > UpdateWirelessDeviceResponseReceivedHandler; + typedef std::function&) > UpdateWirelessGatewayResponseReceivedHandler; + + /** + *

AWS IoT Wireless API documentation

+ */ + class AWS_IOTWIRELESS_API IoTWirelessClient : public Aws::Client::AWSJsonClient + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + IoTWirelessClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + IoTWirelessClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + IoTWirelessClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); + + virtual ~IoTWirelessClient(); + + + /** + *

Associates a partner account with your AWS account.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::AssociateAwsAccountWithPartnerAccountOutcome AssociateAwsAccountWithPartnerAccount(const Model::AssociateAwsAccountWithPartnerAccountRequest& request) const; + + /** + *

Associates a partner account with your AWS account.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::AssociateAwsAccountWithPartnerAccountOutcomeCallable AssociateAwsAccountWithPartnerAccountCallable(const Model::AssociateAwsAccountWithPartnerAccountRequest& request) const; + + /** + *

Associates a partner account with your AWS account.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void AssociateAwsAccountWithPartnerAccountAsync(const Model::AssociateAwsAccountWithPartnerAccountRequest& request, const AssociateAwsAccountWithPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Associates a wireless device with a thing.

See Also:

AWS + * API Reference

+ */ + virtual Model::AssociateWirelessDeviceWithThingOutcome AssociateWirelessDeviceWithThing(const Model::AssociateWirelessDeviceWithThingRequest& request) const; + + /** + *

Associates a wireless device with a thing.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::AssociateWirelessDeviceWithThingOutcomeCallable AssociateWirelessDeviceWithThingCallable(const Model::AssociateWirelessDeviceWithThingRequest& request) const; + + /** + *

Associates a wireless device with a thing.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void AssociateWirelessDeviceWithThingAsync(const Model::AssociateWirelessDeviceWithThingRequest& request, const AssociateWirelessDeviceWithThingResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Associates a wireless gateway with a certificate.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::AssociateWirelessGatewayWithCertificateOutcome AssociateWirelessGatewayWithCertificate(const Model::AssociateWirelessGatewayWithCertificateRequest& request) const; + + /** + *

Associates a wireless gateway with a certificate.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::AssociateWirelessGatewayWithCertificateOutcomeCallable AssociateWirelessGatewayWithCertificateCallable(const Model::AssociateWirelessGatewayWithCertificateRequest& request) const; + + /** + *

Associates a wireless gateway with a certificate.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void AssociateWirelessGatewayWithCertificateAsync(const Model::AssociateWirelessGatewayWithCertificateRequest& request, const AssociateWirelessGatewayWithCertificateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Associates a wireless gateway with a thing.

See Also:

AWS + * API Reference

+ */ + virtual Model::AssociateWirelessGatewayWithThingOutcome AssociateWirelessGatewayWithThing(const Model::AssociateWirelessGatewayWithThingRequest& request) const; + + /** + *

Associates a wireless gateway with a thing.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::AssociateWirelessGatewayWithThingOutcomeCallable AssociateWirelessGatewayWithThingCallable(const Model::AssociateWirelessGatewayWithThingRequest& request) const; + + /** + *

Associates a wireless gateway with a thing.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void AssociateWirelessGatewayWithThingAsync(const Model::AssociateWirelessGatewayWithThingRequest& request, const AssociateWirelessGatewayWithThingResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a new destination that maps a device message to an AWS IoT + * rule.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateDestinationOutcome CreateDestination(const Model::CreateDestinationRequest& request) const; + + /** + *

Creates a new destination that maps a device message to an AWS IoT + * rule.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateDestinationOutcomeCallable CreateDestinationCallable(const Model::CreateDestinationRequest& request) const; + + /** + *

Creates a new destination that maps a device message to an AWS IoT + * rule.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateDestinationAsync(const Model::CreateDestinationRequest& request, const CreateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a new device profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateDeviceProfileOutcome CreateDeviceProfile(const Model::CreateDeviceProfileRequest& request) const; + + /** + *

Creates a new device profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateDeviceProfileOutcomeCallable CreateDeviceProfileCallable(const Model::CreateDeviceProfileRequest& request) const; + + /** + *

Creates a new device profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateDeviceProfileAsync(const Model::CreateDeviceProfileRequest& request, const CreateDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a new service profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateServiceProfileOutcome CreateServiceProfile(const Model::CreateServiceProfileRequest& request) const; + + /** + *

Creates a new service profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateServiceProfileOutcomeCallable CreateServiceProfileCallable(const Model::CreateServiceProfileRequest& request) const; + + /** + *

Creates a new service profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateServiceProfileAsync(const Model::CreateServiceProfileRequest& request, const CreateServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Provisions a wireless device.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateWirelessDeviceOutcome CreateWirelessDevice(const Model::CreateWirelessDeviceRequest& request) const; + + /** + *

Provisions a wireless device.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateWirelessDeviceOutcomeCallable CreateWirelessDeviceCallable(const Model::CreateWirelessDeviceRequest& request) const; + + /** + *

Provisions a wireless device.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateWirelessDeviceAsync(const Model::CreateWirelessDeviceRequest& request, const CreateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Provisions a wireless gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateWirelessGatewayOutcome CreateWirelessGateway(const Model::CreateWirelessGatewayRequest& request) const; + + /** + *

Provisions a wireless gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateWirelessGatewayOutcomeCallable CreateWirelessGatewayCallable(const Model::CreateWirelessGatewayRequest& request) const; + + /** + *

Provisions a wireless gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateWirelessGatewayAsync(const Model::CreateWirelessGatewayRequest& request, const CreateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a task for a wireless gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateWirelessGatewayTaskOutcome CreateWirelessGatewayTask(const Model::CreateWirelessGatewayTaskRequest& request) const; + + /** + *

Creates a task for a wireless gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateWirelessGatewayTaskOutcomeCallable CreateWirelessGatewayTaskCallable(const Model::CreateWirelessGatewayTaskRequest& request) const; + + /** + *

Creates a task for a wireless gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateWirelessGatewayTaskAsync(const Model::CreateWirelessGatewayTaskRequest& request, const CreateWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Creates a gateway task definition.

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateWirelessGatewayTaskDefinitionOutcome CreateWirelessGatewayTaskDefinition(const Model::CreateWirelessGatewayTaskDefinitionRequest& request) const; + + /** + *

Creates a gateway task definition.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::CreateWirelessGatewayTaskDefinitionOutcomeCallable CreateWirelessGatewayTaskDefinitionCallable(const Model::CreateWirelessGatewayTaskDefinitionRequest& request) const; + + /** + *

Creates a gateway task definition.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void CreateWirelessGatewayTaskDefinitionAsync(const Model::CreateWirelessGatewayTaskDefinitionRequest& request, const CreateWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a destination.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteDestinationOutcome DeleteDestination(const Model::DeleteDestinationRequest& request) const; + + /** + *

Deletes a destination.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteDestinationOutcomeCallable DeleteDestinationCallable(const Model::DeleteDestinationRequest& request) const; + + /** + *

Deletes a destination.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteDestinationAsync(const Model::DeleteDestinationRequest& request, const DeleteDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a device profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteDeviceProfileOutcome DeleteDeviceProfile(const Model::DeleteDeviceProfileRequest& request) const; + + /** + *

Deletes a device profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteDeviceProfileOutcomeCallable DeleteDeviceProfileCallable(const Model::DeleteDeviceProfileRequest& request) const; + + /** + *

Deletes a device profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteDeviceProfileAsync(const Model::DeleteDeviceProfileRequest& request, const DeleteDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a service profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteServiceProfileOutcome DeleteServiceProfile(const Model::DeleteServiceProfileRequest& request) const; + + /** + *

Deletes a service profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteServiceProfileOutcomeCallable DeleteServiceProfileCallable(const Model::DeleteServiceProfileRequest& request) const; + + /** + *

Deletes a service profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteServiceProfileAsync(const Model::DeleteServiceProfileRequest& request, const DeleteServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a wireless device.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteWirelessDeviceOutcome DeleteWirelessDevice(const Model::DeleteWirelessDeviceRequest& request) const; + + /** + *

Deletes a wireless device.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteWirelessDeviceOutcomeCallable DeleteWirelessDeviceCallable(const Model::DeleteWirelessDeviceRequest& request) const; + + /** + *

Deletes a wireless device.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteWirelessDeviceAsync(const Model::DeleteWirelessDeviceRequest& request, const DeleteWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a wireless gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteWirelessGatewayOutcome DeleteWirelessGateway(const Model::DeleteWirelessGatewayRequest& request) const; + + /** + *

Deletes a wireless gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteWirelessGatewayOutcomeCallable DeleteWirelessGatewayCallable(const Model::DeleteWirelessGatewayRequest& request) const; + + /** + *

Deletes a wireless gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteWirelessGatewayAsync(const Model::DeleteWirelessGatewayRequest& request, const DeleteWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a wireless gateway task.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteWirelessGatewayTaskOutcome DeleteWirelessGatewayTask(const Model::DeleteWirelessGatewayTaskRequest& request) const; + + /** + *

Deletes a wireless gateway task.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteWirelessGatewayTaskOutcomeCallable DeleteWirelessGatewayTaskCallable(const Model::DeleteWirelessGatewayTaskRequest& request) const; + + /** + *

Deletes a wireless gateway task.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteWirelessGatewayTaskAsync(const Model::DeleteWirelessGatewayTaskRequest& request, const DeleteWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Deletes a wireless gateway task definition. Deleting this task definition + * does not affect tasks that are currently in progress.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::DeleteWirelessGatewayTaskDefinitionOutcome DeleteWirelessGatewayTaskDefinition(const Model::DeleteWirelessGatewayTaskDefinitionRequest& request) const; + + /** + *

Deletes a wireless gateway task definition. Deleting this task definition + * does not affect tasks that are currently in progress.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DeleteWirelessGatewayTaskDefinitionOutcomeCallable DeleteWirelessGatewayTaskDefinitionCallable(const Model::DeleteWirelessGatewayTaskDefinitionRequest& request) const; + + /** + *

Deletes a wireless gateway task definition. Deleting this task definition + * does not affect tasks that are currently in progress.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DeleteWirelessGatewayTaskDefinitionAsync(const Model::DeleteWirelessGatewayTaskDefinitionRequest& request, const DeleteWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Disassociates your AWS account from a partner account. If + * PartnerAccountId and PartnerType are + * null, disassociates your AWS account from all partner + * accounts.

See Also:

AWS + * API Reference

+ */ + virtual Model::DisassociateAwsAccountFromPartnerAccountOutcome DisassociateAwsAccountFromPartnerAccount(const Model::DisassociateAwsAccountFromPartnerAccountRequest& request) const; + + /** + *

Disassociates your AWS account from a partner account. If + * PartnerAccountId and PartnerType are + * null, disassociates your AWS account from all partner + * accounts.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DisassociateAwsAccountFromPartnerAccountOutcomeCallable DisassociateAwsAccountFromPartnerAccountCallable(const Model::DisassociateAwsAccountFromPartnerAccountRequest& request) const; + + /** + *

Disassociates your AWS account from a partner account. If + * PartnerAccountId and PartnerType are + * null, disassociates your AWS account from all partner + * accounts.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DisassociateAwsAccountFromPartnerAccountAsync(const Model::DisassociateAwsAccountFromPartnerAccountRequest& request, const DisassociateAwsAccountFromPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Disassociates a wireless device from its currently associated + * thing.

See Also:

AWS + * API Reference

+ */ + virtual Model::DisassociateWirelessDeviceFromThingOutcome DisassociateWirelessDeviceFromThing(const Model::DisassociateWirelessDeviceFromThingRequest& request) const; + + /** + *

Disassociates a wireless device from its currently associated + * thing.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DisassociateWirelessDeviceFromThingOutcomeCallable DisassociateWirelessDeviceFromThingCallable(const Model::DisassociateWirelessDeviceFromThingRequest& request) const; + + /** + *

Disassociates a wireless device from its currently associated + * thing.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DisassociateWirelessDeviceFromThingAsync(const Model::DisassociateWirelessDeviceFromThingRequest& request, const DisassociateWirelessDeviceFromThingResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Disassociates a wireless gateway from its currently associated + * certificate.

See Also:

AWS + * API Reference

+ */ + virtual Model::DisassociateWirelessGatewayFromCertificateOutcome DisassociateWirelessGatewayFromCertificate(const Model::DisassociateWirelessGatewayFromCertificateRequest& request) const; + + /** + *

Disassociates a wireless gateway from its currently associated + * certificate.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DisassociateWirelessGatewayFromCertificateOutcomeCallable DisassociateWirelessGatewayFromCertificateCallable(const Model::DisassociateWirelessGatewayFromCertificateRequest& request) const; + + /** + *

Disassociates a wireless gateway from its currently associated + * certificate.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DisassociateWirelessGatewayFromCertificateAsync(const Model::DisassociateWirelessGatewayFromCertificateRequest& request, const DisassociateWirelessGatewayFromCertificateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Disassociates a wireless gateway from its currently associated + * thing.

See Also:

AWS + * API Reference

+ */ + virtual Model::DisassociateWirelessGatewayFromThingOutcome DisassociateWirelessGatewayFromThing(const Model::DisassociateWirelessGatewayFromThingRequest& request) const; + + /** + *

Disassociates a wireless gateway from its currently associated + * thing.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::DisassociateWirelessGatewayFromThingOutcomeCallable DisassociateWirelessGatewayFromThingCallable(const Model::DisassociateWirelessGatewayFromThingRequest& request) const; + + /** + *

Disassociates a wireless gateway from its currently associated + * thing.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void DisassociateWirelessGatewayFromThingAsync(const Model::DisassociateWirelessGatewayFromThingRequest& request, const DisassociateWirelessGatewayFromThingResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a destination.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetDestinationOutcome GetDestination(const Model::GetDestinationRequest& request) const; + + /** + *

Gets information about a destination.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetDestinationOutcomeCallable GetDestinationCallable(const Model::GetDestinationRequest& request) const; + + /** + *

Gets information about a destination.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetDestinationAsync(const Model::GetDestinationRequest& request, const GetDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a device profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetDeviceProfileOutcome GetDeviceProfile(const Model::GetDeviceProfileRequest& request) const; + + /** + *

Gets information about a device profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetDeviceProfileOutcomeCallable GetDeviceProfileCallable(const Model::GetDeviceProfileRequest& request) const; + + /** + *

Gets information about a device profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetDeviceProfileAsync(const Model::GetDeviceProfileRequest& request, const GetDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a partner account. If PartnerAccountId + * and PartnerType are null, returns all partner + * accounts.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetPartnerAccountOutcome GetPartnerAccount(const Model::GetPartnerAccountRequest& request) const; + + /** + *

Gets information about a partner account. If PartnerAccountId + * and PartnerType are null, returns all partner + * accounts.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetPartnerAccountOutcomeCallable GetPartnerAccountCallable(const Model::GetPartnerAccountRequest& request) const; + + /** + *

Gets information about a partner account. If PartnerAccountId + * and PartnerType are null, returns all partner + * accounts.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetPartnerAccountAsync(const Model::GetPartnerAccountRequest& request, const GetPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets the account-specific endpoint for Configuration and Update Server (CUPS) + * protocol or LoRaWAN Network Server (LNS) connections.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::GetServiceEndpointOutcome GetServiceEndpoint(const Model::GetServiceEndpointRequest& request) const; + + /** + *

Gets the account-specific endpoint for Configuration and Update Server (CUPS) + * protocol or LoRaWAN Network Server (LNS) connections.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetServiceEndpointOutcomeCallable GetServiceEndpointCallable(const Model::GetServiceEndpointRequest& request) const; + + /** + *

Gets the account-specific endpoint for Configuration and Update Server (CUPS) + * protocol or LoRaWAN Network Server (LNS) connections.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetServiceEndpointAsync(const Model::GetServiceEndpointRequest& request, const GetServiceEndpointResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a service profile.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetServiceProfileOutcome GetServiceProfile(const Model::GetServiceProfileRequest& request) const; + + /** + *

Gets information about a service profile.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetServiceProfileOutcomeCallable GetServiceProfileCallable(const Model::GetServiceProfileRequest& request) const; + + /** + *

Gets information about a service profile.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetServiceProfileAsync(const Model::GetServiceProfileRequest& request, const GetServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a wireless device.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetWirelessDeviceOutcome GetWirelessDevice(const Model::GetWirelessDeviceRequest& request) const; + + /** + *

Gets information about a wireless device.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessDeviceOutcomeCallable GetWirelessDeviceCallable(const Model::GetWirelessDeviceRequest& request) const; + + /** + *

Gets information about a wireless device.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessDeviceAsync(const Model::GetWirelessDeviceRequest& request, const GetWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets operating information about a wireless device.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::GetWirelessDeviceStatisticsOutcome GetWirelessDeviceStatistics(const Model::GetWirelessDeviceStatisticsRequest& request) const; + + /** + *

Gets operating information about a wireless device.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessDeviceStatisticsOutcomeCallable GetWirelessDeviceStatisticsCallable(const Model::GetWirelessDeviceStatisticsRequest& request) const; + + /** + *

Gets operating information about a wireless device.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessDeviceStatisticsAsync(const Model::GetWirelessDeviceStatisticsRequest& request, const GetWirelessDeviceStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a wireless gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetWirelessGatewayOutcome GetWirelessGateway(const Model::GetWirelessGatewayRequest& request) const; + + /** + *

Gets information about a wireless gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessGatewayOutcomeCallable GetWirelessGatewayCallable(const Model::GetWirelessGatewayRequest& request) const; + + /** + *

Gets information about a wireless gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessGatewayAsync(const Model::GetWirelessGatewayRequest& request, const GetWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets the ID of the certificate that is currently associated with a wireless + * gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetWirelessGatewayCertificateOutcome GetWirelessGatewayCertificate(const Model::GetWirelessGatewayCertificateRequest& request) const; + + /** + *

Gets the ID of the certificate that is currently associated with a wireless + * gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessGatewayCertificateOutcomeCallable GetWirelessGatewayCertificateCallable(const Model::GetWirelessGatewayCertificateRequest& request) const; + + /** + *

Gets the ID of the certificate that is currently associated with a wireless + * gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessGatewayCertificateAsync(const Model::GetWirelessGatewayCertificateRequest& request, const GetWirelessGatewayCertificateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets the firmware version and other information about a wireless + * gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetWirelessGatewayFirmwareInformationOutcome GetWirelessGatewayFirmwareInformation(const Model::GetWirelessGatewayFirmwareInformationRequest& request) const; + + /** + *

Gets the firmware version and other information about a wireless + * gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessGatewayFirmwareInformationOutcomeCallable GetWirelessGatewayFirmwareInformationCallable(const Model::GetWirelessGatewayFirmwareInformationRequest& request) const; + + /** + *

Gets the firmware version and other information about a wireless + * gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessGatewayFirmwareInformationAsync(const Model::GetWirelessGatewayFirmwareInformationRequest& request, const GetWirelessGatewayFirmwareInformationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets operating information about a wireless gateway.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::GetWirelessGatewayStatisticsOutcome GetWirelessGatewayStatistics(const Model::GetWirelessGatewayStatisticsRequest& request) const; + + /** + *

Gets operating information about a wireless gateway.

See Also:

+ * AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessGatewayStatisticsOutcomeCallable GetWirelessGatewayStatisticsCallable(const Model::GetWirelessGatewayStatisticsRequest& request) const; + + /** + *

Gets operating information about a wireless gateway.

See Also:

+ * AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessGatewayStatisticsAsync(const Model::GetWirelessGatewayStatisticsRequest& request, const GetWirelessGatewayStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a wireless gateway task.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetWirelessGatewayTaskOutcome GetWirelessGatewayTask(const Model::GetWirelessGatewayTaskRequest& request) const; + + /** + *

Gets information about a wireless gateway task.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessGatewayTaskOutcomeCallable GetWirelessGatewayTaskCallable(const Model::GetWirelessGatewayTaskRequest& request) const; + + /** + *

Gets information about a wireless gateway task.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessGatewayTaskAsync(const Model::GetWirelessGatewayTaskRequest& request, const GetWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Gets information about a wireless gateway task definition.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::GetWirelessGatewayTaskDefinitionOutcome GetWirelessGatewayTaskDefinition(const Model::GetWirelessGatewayTaskDefinitionRequest& request) const; + + /** + *

Gets information about a wireless gateway task definition.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::GetWirelessGatewayTaskDefinitionOutcomeCallable GetWirelessGatewayTaskDefinitionCallable(const Model::GetWirelessGatewayTaskDefinitionRequest& request) const; + + /** + *

Gets information about a wireless gateway task definition.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void GetWirelessGatewayTaskDefinitionAsync(const Model::GetWirelessGatewayTaskDefinitionRequest& request, const GetWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the destinations registered to your AWS account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListDestinationsOutcome ListDestinations(const Model::ListDestinationsRequest& request) const; + + /** + *

Lists the destinations registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListDestinationsOutcomeCallable ListDestinationsCallable(const Model::ListDestinationsRequest& request) const; + + /** + *

Lists the destinations registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListDestinationsAsync(const Model::ListDestinationsRequest& request, const ListDestinationsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the device profiles registered to your AWS account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListDeviceProfilesOutcome ListDeviceProfiles(const Model::ListDeviceProfilesRequest& request) const; + + /** + *

Lists the device profiles registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListDeviceProfilesOutcomeCallable ListDeviceProfilesCallable(const Model::ListDeviceProfilesRequest& request) const; + + /** + *

Lists the device profiles registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListDeviceProfilesAsync(const Model::ListDeviceProfilesRequest& request, const ListDeviceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the partner accounts associated with your AWS account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListPartnerAccountsOutcome ListPartnerAccounts(const Model::ListPartnerAccountsRequest& request) const; + + /** + *

Lists the partner accounts associated with your AWS account.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListPartnerAccountsOutcomeCallable ListPartnerAccountsCallable(const Model::ListPartnerAccountsRequest& request) const; + + /** + *

Lists the partner accounts associated with your AWS account.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListPartnerAccountsAsync(const Model::ListPartnerAccountsRequest& request, const ListPartnerAccountsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the service profiles registered to your AWS account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListServiceProfilesOutcome ListServiceProfiles(const Model::ListServiceProfilesRequest& request) const; + + /** + *

Lists the service profiles registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListServiceProfilesOutcomeCallable ListServiceProfilesCallable(const Model::ListServiceProfilesRequest& request) const; + + /** + *

Lists the service profiles registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListServiceProfilesAsync(const Model::ListServiceProfilesRequest& request, const ListServiceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the tags (metadata) you have assigned to the resource.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Lists the tags (metadata) you have assigned to the resource.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const; + + /** + *

Lists the tags (metadata) you have assigned to the resource.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the wireless devices registered to your AWS account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListWirelessDevicesOutcome ListWirelessDevices(const Model::ListWirelessDevicesRequest& request) const; + + /** + *

Lists the wireless devices registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListWirelessDevicesOutcomeCallable ListWirelessDevicesCallable(const Model::ListWirelessDevicesRequest& request) const; + + /** + *

Lists the wireless devices registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListWirelessDevicesAsync(const Model::ListWirelessDevicesRequest& request, const ListWirelessDevicesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

List the wireless gateway tasks definitions registered to your AWS + * account.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListWirelessGatewayTaskDefinitionsOutcome ListWirelessGatewayTaskDefinitions(const Model::ListWirelessGatewayTaskDefinitionsRequest& request) const; + + /** + *

List the wireless gateway tasks definitions registered to your AWS + * account.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListWirelessGatewayTaskDefinitionsOutcomeCallable ListWirelessGatewayTaskDefinitionsCallable(const Model::ListWirelessGatewayTaskDefinitionsRequest& request) const; + + /** + *

List the wireless gateway tasks definitions registered to your AWS + * account.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListWirelessGatewayTaskDefinitionsAsync(const Model::ListWirelessGatewayTaskDefinitionsRequest& request, const ListWirelessGatewayTaskDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Lists the wireless gateways registered to your AWS account.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::ListWirelessGatewaysOutcome ListWirelessGateways(const Model::ListWirelessGatewaysRequest& request) const; + + /** + *

Lists the wireless gateways registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListWirelessGatewaysOutcomeCallable ListWirelessGatewaysCallable(const Model::ListWirelessGatewaysRequest& request) const; + + /** + *

Lists the wireless gateways registered to your AWS account.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListWirelessGatewaysAsync(const Model::ListWirelessGatewaysRequest& request, const ListWirelessGatewaysResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Sends a decrypted application data frame to a device.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::SendDataToWirelessDeviceOutcome SendDataToWirelessDevice(const Model::SendDataToWirelessDeviceRequest& request) const; + + /** + *

Sends a decrypted application data frame to a device.

See + * Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::SendDataToWirelessDeviceOutcomeCallable SendDataToWirelessDeviceCallable(const Model::SendDataToWirelessDeviceRequest& request) const; + + /** + *

Sends a decrypted application data frame to a device.

See + * Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void SendDataToWirelessDeviceAsync(const Model::SendDataToWirelessDeviceRequest& request, const SendDataToWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Adds a tag to a resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + *

Adds a tag to a resource.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const; + + /** + *

Adds a tag to a resource.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Simulates a provisioned device by sending an uplink data payload of + * Hello.

See Also:

AWS + * API Reference

+ */ + virtual Model::TestWirelessDeviceOutcome TestWirelessDevice(const Model::TestWirelessDeviceRequest& request) const; + + /** + *

Simulates a provisioned device by sending an uplink data payload of + * Hello.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::TestWirelessDeviceOutcomeCallable TestWirelessDeviceCallable(const Model::TestWirelessDeviceRequest& request) const; + + /** + *

Simulates a provisioned device by sending an uplink data payload of + * Hello.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void TestWirelessDeviceAsync(const Model::TestWirelessDeviceRequest& request, const TestWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Removes one or more tags from a resource.

See Also:

AWS + * API Reference

+ */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + *

Removes one or more tags from a resource.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const; + + /** + *

Removes one or more tags from a resource.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates properties of a destination.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateDestinationOutcome UpdateDestination(const Model::UpdateDestinationRequest& request) const; + + /** + *

Updates properties of a destination.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateDestinationOutcomeCallable UpdateDestinationCallable(const Model::UpdateDestinationRequest& request) const; + + /** + *

Updates properties of a destination.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateDestinationAsync(const Model::UpdateDestinationRequest& request, const UpdateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates properties of a partner account.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdatePartnerAccountOutcome UpdatePartnerAccount(const Model::UpdatePartnerAccountRequest& request) const; + + /** + *

Updates properties of a partner account.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdatePartnerAccountOutcomeCallable UpdatePartnerAccountCallable(const Model::UpdatePartnerAccountRequest& request) const; + + /** + *

Updates properties of a partner account.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdatePartnerAccountAsync(const Model::UpdatePartnerAccountRequest& request, const UpdatePartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates properties of a wireless device.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateWirelessDeviceOutcome UpdateWirelessDevice(const Model::UpdateWirelessDeviceRequest& request) const; + + /** + *

Updates properties of a wireless device.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateWirelessDeviceOutcomeCallable UpdateWirelessDeviceCallable(const Model::UpdateWirelessDeviceRequest& request) const; + + /** + *

Updates properties of a wireless device.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateWirelessDeviceAsync(const Model::UpdateWirelessDeviceRequest& request, const UpdateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

Updates properties of a wireless gateway.

See Also:

AWS + * API Reference

+ */ + virtual Model::UpdateWirelessGatewayOutcome UpdateWirelessGateway(const Model::UpdateWirelessGatewayRequest& request) const; + + /** + *

Updates properties of a wireless gateway.

See Also:

AWS + * API Reference

+ * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateWirelessGatewayOutcomeCallable UpdateWirelessGatewayCallable(const Model::UpdateWirelessGatewayRequest& request) const; + + /** + *

Updates properties of a wireless gateway.

See Also:

AWS + * API Reference

+ * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateWirelessGatewayAsync(const Model::UpdateWirelessGatewayRequest& request, const UpdateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + + void OverrideEndpoint(const Aws::String& endpoint); + private: + void init(const Aws::Client::ClientConfiguration& clientConfiguration); + void AssociateAwsAccountWithPartnerAccountAsyncHelper(const Model::AssociateAwsAccountWithPartnerAccountRequest& request, const AssociateAwsAccountWithPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void AssociateWirelessDeviceWithThingAsyncHelper(const Model::AssociateWirelessDeviceWithThingRequest& request, const AssociateWirelessDeviceWithThingResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void AssociateWirelessGatewayWithCertificateAsyncHelper(const Model::AssociateWirelessGatewayWithCertificateRequest& request, const AssociateWirelessGatewayWithCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void AssociateWirelessGatewayWithThingAsyncHelper(const Model::AssociateWirelessGatewayWithThingRequest& request, const AssociateWirelessGatewayWithThingResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateDestinationAsyncHelper(const Model::CreateDestinationRequest& request, const CreateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateDeviceProfileAsyncHelper(const Model::CreateDeviceProfileRequest& request, const CreateDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateServiceProfileAsyncHelper(const Model::CreateServiceProfileRequest& request, const CreateServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateWirelessDeviceAsyncHelper(const Model::CreateWirelessDeviceRequest& request, const CreateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateWirelessGatewayAsyncHelper(const Model::CreateWirelessGatewayRequest& request, const CreateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateWirelessGatewayTaskAsyncHelper(const Model::CreateWirelessGatewayTaskRequest& request, const CreateWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void CreateWirelessGatewayTaskDefinitionAsyncHelper(const Model::CreateWirelessGatewayTaskDefinitionRequest& request, const CreateWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteDestinationAsyncHelper(const Model::DeleteDestinationRequest& request, const DeleteDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteDeviceProfileAsyncHelper(const Model::DeleteDeviceProfileRequest& request, const DeleteDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteServiceProfileAsyncHelper(const Model::DeleteServiceProfileRequest& request, const DeleteServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteWirelessDeviceAsyncHelper(const Model::DeleteWirelessDeviceRequest& request, const DeleteWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteWirelessGatewayAsyncHelper(const Model::DeleteWirelessGatewayRequest& request, const DeleteWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteWirelessGatewayTaskAsyncHelper(const Model::DeleteWirelessGatewayTaskRequest& request, const DeleteWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DeleteWirelessGatewayTaskDefinitionAsyncHelper(const Model::DeleteWirelessGatewayTaskDefinitionRequest& request, const DeleteWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DisassociateAwsAccountFromPartnerAccountAsyncHelper(const Model::DisassociateAwsAccountFromPartnerAccountRequest& request, const DisassociateAwsAccountFromPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DisassociateWirelessDeviceFromThingAsyncHelper(const Model::DisassociateWirelessDeviceFromThingRequest& request, const DisassociateWirelessDeviceFromThingResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DisassociateWirelessGatewayFromCertificateAsyncHelper(const Model::DisassociateWirelessGatewayFromCertificateRequest& request, const DisassociateWirelessGatewayFromCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void DisassociateWirelessGatewayFromThingAsyncHelper(const Model::DisassociateWirelessGatewayFromThingRequest& request, const DisassociateWirelessGatewayFromThingResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetDestinationAsyncHelper(const Model::GetDestinationRequest& request, const GetDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetDeviceProfileAsyncHelper(const Model::GetDeviceProfileRequest& request, const GetDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetPartnerAccountAsyncHelper(const Model::GetPartnerAccountRequest& request, const GetPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetServiceEndpointAsyncHelper(const Model::GetServiceEndpointRequest& request, const GetServiceEndpointResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetServiceProfileAsyncHelper(const Model::GetServiceProfileRequest& request, const GetServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessDeviceAsyncHelper(const Model::GetWirelessDeviceRequest& request, const GetWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessDeviceStatisticsAsyncHelper(const Model::GetWirelessDeviceStatisticsRequest& request, const GetWirelessDeviceStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessGatewayAsyncHelper(const Model::GetWirelessGatewayRequest& request, const GetWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessGatewayCertificateAsyncHelper(const Model::GetWirelessGatewayCertificateRequest& request, const GetWirelessGatewayCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessGatewayFirmwareInformationAsyncHelper(const Model::GetWirelessGatewayFirmwareInformationRequest& request, const GetWirelessGatewayFirmwareInformationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessGatewayStatisticsAsyncHelper(const Model::GetWirelessGatewayStatisticsRequest& request, const GetWirelessGatewayStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessGatewayTaskAsyncHelper(const Model::GetWirelessGatewayTaskRequest& request, const GetWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void GetWirelessGatewayTaskDefinitionAsyncHelper(const Model::GetWirelessGatewayTaskDefinitionRequest& request, const GetWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListDestinationsAsyncHelper(const Model::ListDestinationsRequest& request, const ListDestinationsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListDeviceProfilesAsyncHelper(const Model::ListDeviceProfilesRequest& request, const ListDeviceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListPartnerAccountsAsyncHelper(const Model::ListPartnerAccountsRequest& request, const ListPartnerAccountsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListServiceProfilesAsyncHelper(const Model::ListServiceProfilesRequest& request, const ListServiceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListWirelessDevicesAsyncHelper(const Model::ListWirelessDevicesRequest& request, const ListWirelessDevicesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListWirelessGatewayTaskDefinitionsAsyncHelper(const Model::ListWirelessGatewayTaskDefinitionsRequest& request, const ListWirelessGatewayTaskDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListWirelessGatewaysAsyncHelper(const Model::ListWirelessGatewaysRequest& request, const ListWirelessGatewaysResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void SendDataToWirelessDeviceAsyncHelper(const Model::SendDataToWirelessDeviceRequest& request, const SendDataToWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void TestWirelessDeviceAsyncHelper(const Model::TestWirelessDeviceRequest& request, const TestWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateDestinationAsyncHelper(const Model::UpdateDestinationRequest& request, const UpdateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdatePartnerAccountAsyncHelper(const Model::UpdatePartnerAccountRequest& request, const UpdatePartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateWirelessDeviceAsyncHelper(const Model::UpdateWirelessDeviceRequest& request, const UpdateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateWirelessGatewayAsyncHelper(const Model::UpdateWirelessGatewayRequest& request, const UpdateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const; + + Aws::String m_uri; + Aws::String m_configScheme; + std::shared_ptr m_executor; + }; + +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessEndpoint.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessEndpoint.h new file mode 100644 index 00000000000..ed0ad83210b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessEndpoint.h @@ -0,0 +1,21 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ + +namespace IoTWireless +{ +namespace IoTWirelessEndpoint +{ +AWS_IOTWIRELESS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false); +} // namespace IoTWirelessEndpoint +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrorMarshaller.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrorMarshaller.h new file mode 100644 index 00000000000..fcb5529057f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_IOTWIRELESS_API IoTWirelessErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrors.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrors.h new file mode 100644 index 00000000000..d66b4296df0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessErrors.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +enum class IoTWirelessErrors +{ + //From Core// + ////////////////////////////////////////////////////////////////////////////////////////// + INCOMPLETE_SIGNATURE = 0, + INTERNAL_FAILURE = 1, + INVALID_ACTION = 2, + INVALID_CLIENT_TOKEN_ID = 3, + INVALID_PARAMETER_COMBINATION = 4, + INVALID_QUERY_PARAMETER = 5, + INVALID_PARAMETER_VALUE = 6, + MISSING_ACTION = 7, // SDK should never allow + MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow + MISSING_PARAMETER = 9, // SDK should never allow + OPT_IN_REQUIRED = 10, + REQUEST_EXPIRED = 11, + SERVICE_UNAVAILABLE = 12, + THROTTLING = 13, + VALIDATION = 14, + ACCESS_DENIED = 15, + RESOURCE_NOT_FOUND = 16, + UNRECOGNIZED_CLIENT = 17, + MALFORMED_QUERY_STRING = 18, + SLOW_DOWN = 19, + REQUEST_TIME_TOO_SKEWED = 20, + INVALID_SIGNATURE = 21, + SIGNATURE_DOES_NOT_MATCH = 22, + INVALID_ACCESS_KEY_ID = 23, + REQUEST_TIMEOUT = 24, + NETWORK_CONNECTION = 99, + + UNKNOWN = 100, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + INTERNAL_SERVER, + TOO_MANY_TAGS +}; + +class AWS_IOTWIRELESS_API IoTWirelessError : public Aws::Client::AWSError +{ +public: + IoTWirelessError() {} + IoTWirelessError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + IoTWirelessError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + IoTWirelessError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + IoTWirelessError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace IoTWirelessErrorMapper +{ + AWS_IOTWIRELESS_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessRequest.h new file mode 100644 index 00000000000..9ed6c2b5c13 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWirelessRequest.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ + class AWS_IOTWIRELESS_API IoTWirelessRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + virtual ~IoTWirelessRequest () {} + + void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); } + + inline Aws::Http::HeaderValueCollection GetHeaders() const override + { + auto headers = GetRequestSpecificHeaders(); + + if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0)) + { + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2020-11-22")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWireless_EXPORTS.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWireless_EXPORTS.h new file mode 100644 index 00000000000..aa2a7e8eac9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/IoTWireless_EXPORTS.h @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#ifdef _MSC_VER + //disable windows complaining about max template size. + #pragma warning (disable : 4503) +#endif // _MSC_VER + +#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32) + #ifdef _MSC_VER + #pragma warning(disable : 4251) + #endif // _MSC_VER + + #ifdef USE_IMPORT_EXPORT + #ifdef AWS_IOTWIRELESS_EXPORTS + #define AWS_IOTWIRELESS_API __declspec(dllexport) + #else + #define AWS_IOTWIRELESS_API __declspec(dllimport) + #endif /* AWS_IOTWIRELESS_EXPORTS */ + #else + #define AWS_IOTWIRELESS_API + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_IOTWIRELESS_API +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_0_x.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_0_x.h new file mode 100644 index 00000000000..6a10b7e3394 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_0_x.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

ABP device object for LoRaWAN specification v1.0.x

See Also:

+ * AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API AbpV1_0_x + { + public: + AbpV1_0_x(); + AbpV1_0_x(Aws::Utils::Json::JsonView jsonValue); + AbpV1_0_x& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The DevAddr value.

+ */ + inline const Aws::String& GetDevAddr() const{ return m_devAddr; } + + /** + *

The DevAddr value.

+ */ + inline bool DevAddrHasBeenSet() const { return m_devAddrHasBeenSet; } + + /** + *

The DevAddr value.

+ */ + inline void SetDevAddr(const Aws::String& value) { m_devAddrHasBeenSet = true; m_devAddr = value; } + + /** + *

The DevAddr value.

+ */ + inline void SetDevAddr(Aws::String&& value) { m_devAddrHasBeenSet = true; m_devAddr = std::move(value); } + + /** + *

The DevAddr value.

+ */ + inline void SetDevAddr(const char* value) { m_devAddrHasBeenSet = true; m_devAddr.assign(value); } + + /** + *

The DevAddr value.

+ */ + inline AbpV1_0_x& WithDevAddr(const Aws::String& value) { SetDevAddr(value); return *this;} + + /** + *

The DevAddr value.

+ */ + inline AbpV1_0_x& WithDevAddr(Aws::String&& value) { SetDevAddr(std::move(value)); return *this;} + + /** + *

The DevAddr value.

+ */ + inline AbpV1_0_x& WithDevAddr(const char* value) { SetDevAddr(value); return *this;} + + + /** + *

Session keys for ABP v1.0.x

+ */ + inline const SessionKeysAbpV1_0_x& GetSessionKeys() const{ return m_sessionKeys; } + + /** + *

Session keys for ABP v1.0.x

+ */ + inline bool SessionKeysHasBeenSet() const { return m_sessionKeysHasBeenSet; } + + /** + *

Session keys for ABP v1.0.x

+ */ + inline void SetSessionKeys(const SessionKeysAbpV1_0_x& value) { m_sessionKeysHasBeenSet = true; m_sessionKeys = value; } + + /** + *

Session keys for ABP v1.0.x

+ */ + inline void SetSessionKeys(SessionKeysAbpV1_0_x&& value) { m_sessionKeysHasBeenSet = true; m_sessionKeys = std::move(value); } + + /** + *

Session keys for ABP v1.0.x

+ */ + inline AbpV1_0_x& WithSessionKeys(const SessionKeysAbpV1_0_x& value) { SetSessionKeys(value); return *this;} + + /** + *

Session keys for ABP v1.0.x

+ */ + inline AbpV1_0_x& WithSessionKeys(SessionKeysAbpV1_0_x&& value) { SetSessionKeys(std::move(value)); return *this;} + + private: + + Aws::String m_devAddr; + bool m_devAddrHasBeenSet; + + SessionKeysAbpV1_0_x m_sessionKeys; + bool m_sessionKeysHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_1.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_1.h new file mode 100644 index 00000000000..ba26bf5a1f7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AbpV1_1.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

ABP device object for LoRaWAN specification v1.1

See Also:

+ * AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API AbpV1_1 + { + public: + AbpV1_1(); + AbpV1_1(Aws::Utils::Json::JsonView jsonValue); + AbpV1_1& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The DevAddr value.

+ */ + inline const Aws::String& GetDevAddr() const{ return m_devAddr; } + + /** + *

The DevAddr value.

+ */ + inline bool DevAddrHasBeenSet() const { return m_devAddrHasBeenSet; } + + /** + *

The DevAddr value.

+ */ + inline void SetDevAddr(const Aws::String& value) { m_devAddrHasBeenSet = true; m_devAddr = value; } + + /** + *

The DevAddr value.

+ */ + inline void SetDevAddr(Aws::String&& value) { m_devAddrHasBeenSet = true; m_devAddr = std::move(value); } + + /** + *

The DevAddr value.

+ */ + inline void SetDevAddr(const char* value) { m_devAddrHasBeenSet = true; m_devAddr.assign(value); } + + /** + *

The DevAddr value.

+ */ + inline AbpV1_1& WithDevAddr(const Aws::String& value) { SetDevAddr(value); return *this;} + + /** + *

The DevAddr value.

+ */ + inline AbpV1_1& WithDevAddr(Aws::String&& value) { SetDevAddr(std::move(value)); return *this;} + + /** + *

The DevAddr value.

+ */ + inline AbpV1_1& WithDevAddr(const char* value) { SetDevAddr(value); return *this;} + + + /** + *

Session keys for ABP v1.1

+ */ + inline const SessionKeysAbpV1_1& GetSessionKeys() const{ return m_sessionKeys; } + + /** + *

Session keys for ABP v1.1

+ */ + inline bool SessionKeysHasBeenSet() const { return m_sessionKeysHasBeenSet; } + + /** + *

Session keys for ABP v1.1

+ */ + inline void SetSessionKeys(const SessionKeysAbpV1_1& value) { m_sessionKeysHasBeenSet = true; m_sessionKeys = value; } + + /** + *

Session keys for ABP v1.1

+ */ + inline void SetSessionKeys(SessionKeysAbpV1_1&& value) { m_sessionKeysHasBeenSet = true; m_sessionKeys = std::move(value); } + + /** + *

Session keys for ABP v1.1

+ */ + inline AbpV1_1& WithSessionKeys(const SessionKeysAbpV1_1& value) { SetSessionKeys(value); return *this;} + + /** + *

Session keys for ABP v1.1

+ */ + inline AbpV1_1& WithSessionKeys(SessionKeysAbpV1_1&& value) { SetSessionKeys(std::move(value)); return *this;} + + private: + + Aws::String m_devAddr; + bool m_devAddrHasBeenSet; + + SessionKeysAbpV1_1 m_sessionKeys; + bool m_sessionKeysHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountRequest.h new file mode 100644 index 00000000000..0af14021140 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountRequest.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API AssociateAwsAccountWithPartnerAccountRequest : public IoTWirelessRequest + { + public: + AssociateAwsAccountWithPartnerAccountRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "AssociateAwsAccountWithPartnerAccount"; } + + Aws::String SerializePayload() const override; + + + /** + *

The Sidewalk account credentials.

+ */ + inline const SidewalkAccountInfo& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

+ */ + inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(const SidewalkAccountInfo& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(SidewalkAccountInfo&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

+ */ + inline AssociateAwsAccountWithPartnerAccountRequest& WithSidewalk(const SidewalkAccountInfo& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

+ */ + inline AssociateAwsAccountWithPartnerAccountRequest& WithSidewalk(SidewalkAccountInfo&& value) { SetSidewalk(std::move(value)); return *this;} + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline AssociateAwsAccountWithPartnerAccountRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline AssociateAwsAccountWithPartnerAccountRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline AssociateAwsAccountWithPartnerAccountRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + SidewalkAccountInfo m_sidewalk; + bool m_sidewalkHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountResult.h new file mode 100644 index 00000000000..5da03ab6803 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateAwsAccountWithPartnerAccountResult.h @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API AssociateAwsAccountWithPartnerAccountResult + { + public: + AssociateAwsAccountWithPartnerAccountResult(); + AssociateAwsAccountWithPartnerAccountResult(const Aws::AmazonWebServiceResult& result); + AssociateAwsAccountWithPartnerAccountResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Sidewalk account credentials.

+ */ + inline const SidewalkAccountInfo& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(const SidewalkAccountInfo& value) { m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(SidewalkAccountInfo&& value) { m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

+ */ + inline AssociateAwsAccountWithPartnerAccountResult& WithSidewalk(const SidewalkAccountInfo& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

+ */ + inline AssociateAwsAccountWithPartnerAccountResult& WithSidewalk(SidewalkAccountInfo&& value) { SetSidewalk(std::move(value)); return *this;} + + private: + + SidewalkAccountInfo m_sidewalk; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingRequest.h new file mode 100644 index 00000000000..54b1230e9ef --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingRequest.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API AssociateWirelessDeviceWithThingRequest : public IoTWirelessRequest + { + public: + AssociateWirelessDeviceWithThingRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "AssociateWirelessDeviceWithThing"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessDeviceWithThingRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessDeviceWithThingRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessDeviceWithThingRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline const Aws::String& GetThingArn() const{ return m_thingArn; } + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; } + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; } + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); } + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); } + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline AssociateWirelessDeviceWithThingRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline AssociateWirelessDeviceWithThingRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} + + /** + *

The ARN of the thing to associate with the wireless device.

+ */ + inline AssociateWirelessDeviceWithThingRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_thingArn; + bool m_thingArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingResult.h new file mode 100644 index 00000000000..18c5f232f72 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessDeviceWithThingResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API AssociateWirelessDeviceWithThingResult + { + public: + AssociateWirelessDeviceWithThingResult(); + AssociateWirelessDeviceWithThingResult(const Aws::AmazonWebServiceResult& result); + AssociateWirelessDeviceWithThingResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateRequest.h new file mode 100644 index 00000000000..ea79a32d32d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateRequest.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API AssociateWirelessGatewayWithCertificateRequest : public IoTWirelessRequest + { + public: + AssociateWirelessGatewayWithCertificateRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "AssociateWirelessGatewayWithCertificate"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessGatewayWithCertificateRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessGatewayWithCertificateRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessGatewayWithCertificateRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline const Aws::String& GetIotCertificateId() const{ return m_iotCertificateId; } + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline bool IotCertificateIdHasBeenSet() const { return m_iotCertificateIdHasBeenSet; } + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline void SetIotCertificateId(const Aws::String& value) { m_iotCertificateIdHasBeenSet = true; m_iotCertificateId = value; } + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline void SetIotCertificateId(Aws::String&& value) { m_iotCertificateIdHasBeenSet = true; m_iotCertificateId = std::move(value); } + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline void SetIotCertificateId(const char* value) { m_iotCertificateIdHasBeenSet = true; m_iotCertificateId.assign(value); } + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithCertificateRequest& WithIotCertificateId(const Aws::String& value) { SetIotCertificateId(value); return *this;} + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithCertificateRequest& WithIotCertificateId(Aws::String&& value) { SetIotCertificateId(std::move(value)); return *this;} + + /** + *

The ID of the certificate to associate with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithCertificateRequest& WithIotCertificateId(const char* value) { SetIotCertificateId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_iotCertificateId; + bool m_iotCertificateIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateResult.h new file mode 100644 index 00000000000..00391dda663 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithCertificateResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API AssociateWirelessGatewayWithCertificateResult + { + public: + AssociateWirelessGatewayWithCertificateResult(); + AssociateWirelessGatewayWithCertificateResult(const Aws::AmazonWebServiceResult& result); + AssociateWirelessGatewayWithCertificateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline const Aws::String& GetIotCertificateId() const{ return m_iotCertificateId; } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline void SetIotCertificateId(const Aws::String& value) { m_iotCertificateId = value; } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline void SetIotCertificateId(Aws::String&& value) { m_iotCertificateId = std::move(value); } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline void SetIotCertificateId(const char* value) { m_iotCertificateId.assign(value); } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithCertificateResult& WithIotCertificateId(const Aws::String& value) { SetIotCertificateId(value); return *this;} + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithCertificateResult& WithIotCertificateId(Aws::String&& value) { SetIotCertificateId(std::move(value)); return *this;} + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithCertificateResult& WithIotCertificateId(const char* value) { SetIotCertificateId(value); return *this;} + + private: + + Aws::String m_iotCertificateId; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingRequest.h new file mode 100644 index 00000000000..0cfdbc5c265 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingRequest.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API AssociateWirelessGatewayWithThingRequest : public IoTWirelessRequest + { + public: + AssociateWirelessGatewayWithThingRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "AssociateWirelessGatewayWithThing"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessGatewayWithThingRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessGatewayWithThingRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline AssociateWirelessGatewayWithThingRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline const Aws::String& GetThingArn() const{ return m_thingArn; } + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; } + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; } + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); } + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); } + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithThingRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithThingRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} + + /** + *

The ARN of the thing to associate with the wireless gateway.

+ */ + inline AssociateWirelessGatewayWithThingRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_thingArn; + bool m_thingArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingResult.h new file mode 100644 index 00000000000..3aa3dc349c7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/AssociateWirelessGatewayWithThingResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API AssociateWirelessGatewayWithThingResult + { + public: + AssociateWirelessGatewayWithThingResult(); + AssociateWirelessGatewayWithThingResult(const Aws::AmazonWebServiceResult& result); + AssociateWirelessGatewayWithThingResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ConflictException.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ConflictException.h new file mode 100644 index 00000000000..b5bb9f60071 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ConflictException.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Adding, updating, or deleting the resource can cause an inconsistent + * state.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API ConflictException + { + public: + ConflictException(); + ConflictException(Aws::Utils::Json::JsonView jsonValue); + ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + + inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + + inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + + inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + + inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + + inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + + inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationRequest.h new file mode 100644 index 00000000000..72ade6df894 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationRequest.h @@ -0,0 +1,373 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateDestinationRequest : public IoTWirelessRequest + { + public: + CreateDestinationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateDestination"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateDestinationRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The type of value in Expression.

+ */ + inline const ExpressionType& GetExpressionType() const{ return m_expressionType; } + + /** + *

The type of value in Expression.

+ */ + inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(const ExpressionType& value) { m_expressionTypeHasBeenSet = true; m_expressionType = value; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(ExpressionType&& value) { m_expressionTypeHasBeenSet = true; m_expressionType = std::move(value); } + + /** + *

The type of value in Expression.

+ */ + inline CreateDestinationRequest& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;} + + /** + *

The type of value in Expression.

+ */ + inline CreateDestinationRequest& WithExpressionType(ExpressionType&& value) { SetExpressionType(std::move(value)); return *this;} + + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline const Aws::String& GetExpression() const{ return m_expression; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline CreateDestinationRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline CreateDestinationRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline CreateDestinationRequest& WithExpression(const char* value) { SetExpression(value); return *this;} + + + /** + *

The description of the new resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the new resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the new resource.

+ */ + inline CreateDestinationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the new resource.

+ */ + inline CreateDestinationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the new resource.

+ */ + inline CreateDestinationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline CreateDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline CreateDestinationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline CreateDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline CreateDestinationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline CreateDestinationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline CreateDestinationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

The tags to attach to the new destination. Tags are metadata that can be used + * to manage a resource.

+ */ + inline CreateDestinationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateDestinationRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateDestinationRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateDestinationRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + ExpressionType m_expressionType; + bool m_expressionTypeHasBeenSet; + + Aws::String m_expression; + bool m_expressionHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationResult.h new file mode 100644 index 00000000000..20973346b24 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDestinationResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateDestinationResult + { + public: + CreateDestinationResult(); + CreateDestinationResult(const Aws::AmazonWebServiceResult& result); + CreateDestinationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateDestinationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateDestinationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateDestinationResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateDestinationResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateDestinationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateDestinationResult& WithName(const char* value) { SetName(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileRequest.h new file mode 100644 index 00000000000..7399d5b0328 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileRequest.h @@ -0,0 +1,241 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateDeviceProfileRequest : public IoTWirelessRequest + { + public: + CreateDeviceProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceProfile"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateDeviceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateDeviceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateDeviceProfileRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The device profile information to use to create the device profile.

+ */ + inline const LoRaWANDeviceProfile& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The device profile information to use to create the device profile.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The device profile information to use to create the device profile.

+ */ + inline void SetLoRaWAN(const LoRaWANDeviceProfile& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The device profile information to use to create the device profile.

+ */ + inline void SetLoRaWAN(LoRaWANDeviceProfile&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The device profile information to use to create the device profile.

+ */ + inline CreateDeviceProfileRequest& WithLoRaWAN(const LoRaWANDeviceProfile& value) { SetLoRaWAN(value); return *this;} + + /** + *

The device profile information to use to create the device profile.

+ */ + inline CreateDeviceProfileRequest& WithLoRaWAN(LoRaWANDeviceProfile&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateDeviceProfileRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateDeviceProfileRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateDeviceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

The tags to attach to the new device profile Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateDeviceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateDeviceProfileRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateDeviceProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateDeviceProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + LoRaWANDeviceProfile m_loRaWAN; + bool m_loRaWANHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileResult.h new file mode 100644 index 00000000000..52645b11725 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateDeviceProfileResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateDeviceProfileResult + { + public: + CreateDeviceProfileResult(); + CreateDeviceProfileResult(const Aws::AmazonWebServiceResult& result); + CreateDeviceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateDeviceProfileResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateDeviceProfileResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateDeviceProfileResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The ID of the new device profile.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the new device profile.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the new device profile.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the new device profile.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the new device profile.

+ */ + inline CreateDeviceProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the new device profile.

+ */ + inline CreateDeviceProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the new device profile.

+ */ + inline CreateDeviceProfileResult& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_id; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileRequest.h new file mode 100644 index 00000000000..260bbaa6113 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileRequest.h @@ -0,0 +1,241 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateServiceProfileRequest : public IoTWirelessRequest + { + public: + CreateServiceProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateServiceProfile"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateServiceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateServiceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateServiceProfileRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The service profile information to use to create the service profile.

+ */ + inline const LoRaWANServiceProfile& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The service profile information to use to create the service profile.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The service profile information to use to create the service profile.

+ */ + inline void SetLoRaWAN(const LoRaWANServiceProfile& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The service profile information to use to create the service profile.

+ */ + inline void SetLoRaWAN(LoRaWANServiceProfile&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The service profile information to use to create the service profile.

+ */ + inline CreateServiceProfileRequest& WithLoRaWAN(const LoRaWANServiceProfile& value) { SetLoRaWAN(value); return *this;} + + /** + *

The service profile information to use to create the service profile.

+ */ + inline CreateServiceProfileRequest& WithLoRaWAN(LoRaWANServiceProfile&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateServiceProfileRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateServiceProfileRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateServiceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

The tags to attach to the new service profile. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateServiceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateServiceProfileRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateServiceProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateServiceProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + LoRaWANServiceProfile m_loRaWAN; + bool m_loRaWANHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileResult.h new file mode 100644 index 00000000000..fb857ebf576 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateServiceProfileResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateServiceProfileResult + { + public: + CreateServiceProfileResult(); + CreateServiceProfileResult(const Aws::AmazonWebServiceResult& result); + CreateServiceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateServiceProfileResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateServiceProfileResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateServiceProfileResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The ID of the new service profile.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the new service profile.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the new service profile.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the new service profile.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the new service profile.

+ */ + inline CreateServiceProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the new service profile.

+ */ + inline CreateServiceProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the new service profile.

+ */ + inline CreateServiceProfileResult& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_id; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceRequest.h new file mode 100644 index 00000000000..c189d186140 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceRequest.h @@ -0,0 +1,316 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateWirelessDeviceRequest : public IoTWirelessRequest + { + public: + CreateWirelessDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The wireless device type.

+ */ + inline const WirelessDeviceType& GetType() const{ return m_type; } + + /** + *

The wireless device type.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The wireless device type.

+ */ + inline void SetType(const WirelessDeviceType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The wireless device type.

+ */ + inline void SetType(WirelessDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The wireless device type.

+ */ + inline CreateWirelessDeviceRequest& WithType(const WirelessDeviceType& value) { SetType(value); return *this;} + + /** + *

The wireless device type.

+ */ + inline CreateWirelessDeviceRequest& WithType(WirelessDeviceType&& value) { SetType(std::move(value)); return *this;} + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessDeviceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessDeviceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessDeviceRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The description of the new resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the new resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the new resource.

+ */ + inline CreateWirelessDeviceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the new resource.

+ */ + inline CreateWirelessDeviceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the new resource.

+ */ + inline CreateWirelessDeviceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline const Aws::String& GetDestinationName() const{ return m_destinationName; } + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline CreateWirelessDeviceRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline CreateWirelessDeviceRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} + + /** + *

The name of the destination to assign to the new wireless device.

+ */ + inline CreateWirelessDeviceRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessDeviceRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessDeviceRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessDeviceRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + + /** + *

The device configuration information to use to create the wireless + * device.

+ */ + inline const LoRaWANDevice& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The device configuration information to use to create the wireless + * device.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The device configuration information to use to create the wireless + * device.

+ */ + inline void SetLoRaWAN(const LoRaWANDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The device configuration information to use to create the wireless + * device.

+ */ + inline void SetLoRaWAN(LoRaWANDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The device configuration information to use to create the wireless + * device.

+ */ + inline CreateWirelessDeviceRequest& WithLoRaWAN(const LoRaWANDevice& value) { SetLoRaWAN(value); return *this;} + + /** + *

The device configuration information to use to create the wireless + * device.

+ */ + inline CreateWirelessDeviceRequest& WithLoRaWAN(LoRaWANDevice&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + WirelessDeviceType m_type; + bool m_typeHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + Aws::String m_destinationName; + bool m_destinationNameHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + + LoRaWANDevice m_loRaWAN; + bool m_loRaWANHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceResult.h new file mode 100644 index 00000000000..12d14ad2445 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessDeviceResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateWirelessDeviceResult + { + public: + CreateWirelessDeviceResult(); + CreateWirelessDeviceResult(const Aws::AmazonWebServiceResult& result); + CreateWirelessDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateWirelessDeviceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateWirelessDeviceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateWirelessDeviceResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The ID of the new wireless device.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the new wireless device.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the new wireless device.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the new wireless device.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the new wireless device.

+ */ + inline CreateWirelessDeviceResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the new wireless device.

+ */ + inline CreateWirelessDeviceResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the new wireless device.

+ */ + inline CreateWirelessDeviceResult& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_id; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayRequest.h new file mode 100644 index 00000000000..b3d06f6b416 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayRequest.h @@ -0,0 +1,291 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateWirelessGatewayRequest : public IoTWirelessRequest + { + public: + CreateWirelessGatewayRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessGateway"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessGatewayRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessGatewayRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessGatewayRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The description of the new resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the new resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the new resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the new resource.

+ */ + inline CreateWirelessGatewayRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the new resource.

+ */ + inline CreateWirelessGatewayRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the new resource.

+ */ + inline CreateWirelessGatewayRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The gateway configuration information to use to create the wireless + * gateway.

+ */ + inline const LoRaWANGateway& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The gateway configuration information to use to create the wireless + * gateway.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The gateway configuration information to use to create the wireless + * gateway.

+ */ + inline void SetLoRaWAN(const LoRaWANGateway& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The gateway configuration information to use to create the wireless + * gateway.

+ */ + inline void SetLoRaWAN(LoRaWANGateway&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The gateway configuration information to use to create the wireless + * gateway.

+ */ + inline CreateWirelessGatewayRequest& WithLoRaWAN(const LoRaWANGateway& value) { SetLoRaWAN(value); return *this;} + + /** + *

The gateway configuration information to use to create the wireless + * gateway.

+ */ + inline CreateWirelessGatewayRequest& WithLoRaWAN(LoRaWANGateway&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateWirelessGatewayRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateWirelessGatewayRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateWirelessGatewayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

The tags to attach to the new wireless gateway. Tags are metadata that can be + * used to manage a resource.

+ */ + inline CreateWirelessGatewayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessGatewayRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessGatewayRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessGatewayRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + LoRaWANGateway m_loRaWAN; + bool m_loRaWANHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayResult.h new file mode 100644 index 00000000000..ba18b4c322a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateWirelessGatewayResult + { + public: + CreateWirelessGatewayResult(); + CreateWirelessGatewayResult(const Aws::AmazonWebServiceResult& result); + CreateWirelessGatewayResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateWirelessGatewayResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateWirelessGatewayResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the new resource.

+ */ + inline CreateWirelessGatewayResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The ID of the new wireless gateway.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the new wireless gateway.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the new wireless gateway.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the new wireless gateway.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the new wireless gateway.

+ */ + inline CreateWirelessGatewayResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the new wireless gateway.

+ */ + inline CreateWirelessGatewayResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the new wireless gateway.

+ */ + inline CreateWirelessGatewayResult& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_id; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionRequest.h new file mode 100644 index 00000000000..97d241857e9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionRequest.h @@ -0,0 +1,219 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateWirelessGatewayTaskDefinitionRequest : public IoTWirelessRequest + { + public: + CreateWirelessGatewayTaskDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessGatewayTaskDefinition"; } + + Aws::String SerializePayload() const override; + + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline bool GetAutoCreateTasks() const{ return m_autoCreateTasks; } + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline bool AutoCreateTasksHasBeenSet() const { return m_autoCreateTasksHasBeenSet; } + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline void SetAutoCreateTasks(bool value) { m_autoCreateTasksHasBeenSet = true; m_autoCreateTasks = value; } + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithAutoCreateTasks(bool value) { SetAutoCreateTasks(value); return *this;} + + + /** + *

The name of the new resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the new resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the new resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the new resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the new resource.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

Information about the gateways to update.

+ */ + inline const UpdateWirelessGatewayTaskCreate& GetUpdate() const{ return m_update; } + + /** + *

Information about the gateways to update.

+ */ + inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; } + + /** + *

Information about the gateways to update.

+ */ + inline void SetUpdate(const UpdateWirelessGatewayTaskCreate& value) { m_updateHasBeenSet = true; m_update = value; } + + /** + *

Information about the gateways to update.

+ */ + inline void SetUpdate(UpdateWirelessGatewayTaskCreate&& value) { m_updateHasBeenSet = true; m_update = std::move(value); } + + /** + *

Information about the gateways to update.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithUpdate(const UpdateWirelessGatewayTaskCreate& value) { SetUpdate(value); return *this;} + + /** + *

Information about the gateways to update.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithUpdate(UpdateWirelessGatewayTaskCreate&& value) { SetUpdate(std::move(value)); return *this;} + + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + + /** + *

Each resource must have a unique client request token. If you try to create a + * new resource with the same token as a resource that already exists, an exception + * occurs. If you omit this value, AWS SDKs will automatically generate a unique + * client request.

+ */ + inline CreateWirelessGatewayTaskDefinitionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + + private: + + bool m_autoCreateTasks; + bool m_autoCreateTasksHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + UpdateWirelessGatewayTaskCreate m_update; + bool m_updateHasBeenSet; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionResult.h new file mode 100644 index 00000000000..0c3084a4708 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskDefinitionResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateWirelessGatewayTaskDefinitionResult + { + public: + CreateWirelessGatewayTaskDefinitionResult(); + CreateWirelessGatewayTaskDefinitionResult(const Aws::AmazonWebServiceResult& result); + CreateWirelessGatewayTaskDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline CreateWirelessGatewayTaskDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline CreateWirelessGatewayTaskDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the new wireless gateway task definition.

+ */ + inline CreateWirelessGatewayTaskDefinitionResult& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskRequest.h new file mode 100644 index 00000000000..087ad7997b2 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskRequest.h @@ -0,0 +1,127 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API CreateWirelessGatewayTaskRequest : public IoTWirelessRequest + { + public: + CreateWirelessGatewayTaskRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessGatewayTask"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline CreateWirelessGatewayTaskRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline CreateWirelessGatewayTaskRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline CreateWirelessGatewayTaskRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline const Aws::String& GetWirelessGatewayTaskDefinitionId() const{ return m_wirelessGatewayTaskDefinitionId; } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline bool WirelessGatewayTaskDefinitionIdHasBeenSet() const { return m_wirelessGatewayTaskDefinitionIdHasBeenSet; } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(const Aws::String& value) { m_wirelessGatewayTaskDefinitionIdHasBeenSet = true; m_wirelessGatewayTaskDefinitionId = value; } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(Aws::String&& value) { m_wirelessGatewayTaskDefinitionIdHasBeenSet = true; m_wirelessGatewayTaskDefinitionId = std::move(value); } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(const char* value) { m_wirelessGatewayTaskDefinitionIdHasBeenSet = true; m_wirelessGatewayTaskDefinitionId.assign(value); } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline CreateWirelessGatewayTaskRequest& WithWirelessGatewayTaskDefinitionId(const Aws::String& value) { SetWirelessGatewayTaskDefinitionId(value); return *this;} + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline CreateWirelessGatewayTaskRequest& WithWirelessGatewayTaskDefinitionId(Aws::String&& value) { SetWirelessGatewayTaskDefinitionId(std::move(value)); return *this;} + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline CreateWirelessGatewayTaskRequest& WithWirelessGatewayTaskDefinitionId(const char* value) { SetWirelessGatewayTaskDefinitionId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_wirelessGatewayTaskDefinitionId; + bool m_wirelessGatewayTaskDefinitionIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskResult.h new file mode 100644 index 00000000000..b6d3c5a83dd --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/CreateWirelessGatewayTaskResult.h @@ -0,0 +1,106 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API CreateWirelessGatewayTaskResult + { + public: + CreateWirelessGatewayTaskResult(); + CreateWirelessGatewayTaskResult(const Aws::AmazonWebServiceResult& result); + CreateWirelessGatewayTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline const Aws::String& GetWirelessGatewayTaskDefinitionId() const{ return m_wirelessGatewayTaskDefinitionId; } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(const Aws::String& value) { m_wirelessGatewayTaskDefinitionId = value; } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(Aws::String&& value) { m_wirelessGatewayTaskDefinitionId = std::move(value); } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(const char* value) { m_wirelessGatewayTaskDefinitionId.assign(value); } + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline CreateWirelessGatewayTaskResult& WithWirelessGatewayTaskDefinitionId(const Aws::String& value) { SetWirelessGatewayTaskDefinitionId(value); return *this;} + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline CreateWirelessGatewayTaskResult& WithWirelessGatewayTaskDefinitionId(Aws::String&& value) { SetWirelessGatewayTaskDefinitionId(std::move(value)); return *this;} + + /** + *

The ID of the WirelessGatewayTaskDefinition.

+ */ + inline CreateWirelessGatewayTaskResult& WithWirelessGatewayTaskDefinitionId(const char* value) { SetWirelessGatewayTaskDefinitionId(value); return *this;} + + + /** + *

The status of the request.

+ */ + inline const WirelessGatewayTaskStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the request.

+ */ + inline void SetStatus(const WirelessGatewayTaskStatus& value) { m_status = value; } + + /** + *

The status of the request.

+ */ + inline void SetStatus(WirelessGatewayTaskStatus&& value) { m_status = std::move(value); } + + /** + *

The status of the request.

+ */ + inline CreateWirelessGatewayTaskResult& WithStatus(const WirelessGatewayTaskStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the request.

+ */ + inline CreateWirelessGatewayTaskResult& WithStatus(WirelessGatewayTaskStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + Aws::String m_wirelessGatewayTaskDefinitionId; + + WirelessGatewayTaskStatus m_status; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationRequest.h new file mode 100644 index 00000000000..95f72a88937 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteDestinationRequest : public IoTWirelessRequest + { + public: + DeleteDestinationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteDestination"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the resource to delete.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource to delete.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource to delete.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource to delete.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource to delete.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource to delete.

+ */ + inline DeleteDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource to delete.

+ */ + inline DeleteDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource to delete.

+ */ + inline DeleteDestinationRequest& WithName(const char* value) { SetName(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationResult.h new file mode 100644 index 00000000000..f833a72e11d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDestinationResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteDestinationResult + { + public: + DeleteDestinationResult(); + DeleteDestinationResult(const Aws::AmazonWebServiceResult& result); + DeleteDestinationResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileRequest.h new file mode 100644 index 00000000000..5f176d52ba9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteDeviceProfileRequest : public IoTWirelessRequest + { + public: + DeleteDeviceProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteDeviceProfile"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to delete.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to delete.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteDeviceProfileRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteDeviceProfileRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteDeviceProfileRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileResult.h new file mode 100644 index 00000000000..75ac9f99631 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteDeviceProfileResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteDeviceProfileResult + { + public: + DeleteDeviceProfileResult(); + DeleteDeviceProfileResult(const Aws::AmazonWebServiceResult& result); + DeleteDeviceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileRequest.h new file mode 100644 index 00000000000..53099b68228 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteServiceProfileRequest : public IoTWirelessRequest + { + public: + DeleteServiceProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteServiceProfile"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to delete.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to delete.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteServiceProfileRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteServiceProfileRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteServiceProfileRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileResult.h new file mode 100644 index 00000000000..992cd8dbebf --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteServiceProfileResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteServiceProfileResult + { + public: + DeleteServiceProfileResult(); + DeleteServiceProfileResult(const Aws::AmazonWebServiceResult& result); + DeleteServiceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceRequest.h new file mode 100644 index 00000000000..3a86b68aa3c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteWirelessDeviceRequest : public IoTWirelessRequest + { + public: + DeleteWirelessDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteWirelessDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to delete.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to delete.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessDeviceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessDeviceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessDeviceRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceResult.h new file mode 100644 index 00000000000..3bad03c568d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessDeviceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteWirelessDeviceResult + { + public: + DeleteWirelessDeviceResult(); + DeleteWirelessDeviceResult(const Aws::AmazonWebServiceResult& result); + DeleteWirelessDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayRequest.h new file mode 100644 index 00000000000..6de5c05736c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteWirelessGatewayRequest : public IoTWirelessRequest + { + public: + DeleteWirelessGatewayRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteWirelessGateway"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to delete.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to delete.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayResult.h new file mode 100644 index 00000000000..99849dd6865 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteWirelessGatewayResult + { + public: + DeleteWirelessGatewayResult(); + DeleteWirelessGatewayResult(const Aws::AmazonWebServiceResult& result); + DeleteWirelessGatewayResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionRequest.h new file mode 100644 index 00000000000..a2ecd4cc1f1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteWirelessGatewayTaskDefinitionRequest : public IoTWirelessRequest + { + public: + DeleteWirelessGatewayTaskDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteWirelessGatewayTaskDefinition"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to delete.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to delete.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayTaskDefinitionRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayTaskDefinitionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayTaskDefinitionRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionResult.h new file mode 100644 index 00000000000..6da03479ae2 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskDefinitionResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteWirelessGatewayTaskDefinitionResult + { + public: + DeleteWirelessGatewayTaskDefinitionResult(); + DeleteWirelessGatewayTaskDefinitionResult(const Aws::AmazonWebServiceResult& result); + DeleteWirelessGatewayTaskDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskRequest.h new file mode 100644 index 00000000000..8486e641c36 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DeleteWirelessGatewayTaskRequest : public IoTWirelessRequest + { + public: + DeleteWirelessGatewayTaskRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteWirelessGatewayTask"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to delete.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to delete.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayTaskRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayTaskRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to delete.

+ */ + inline DeleteWirelessGatewayTaskRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskResult.h new file mode 100644 index 00000000000..0e1f30fd6d0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeleteWirelessGatewayTaskResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DeleteWirelessGatewayTaskResult + { + public: + DeleteWirelessGatewayTaskResult(); + DeleteWirelessGatewayTaskResult(const Aws::AmazonWebServiceResult& result); + DeleteWirelessGatewayTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Destinations.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Destinations.h new file mode 100644 index 00000000000..badf191a5bc --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Destinations.h @@ -0,0 +1,299 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Describes a destination.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API Destinations + { + public: + Destinations(); + Destinations(Aws::Utils::Json::JsonView jsonValue); + Destinations& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline Destinations& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline Destinations& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline Destinations& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline Destinations& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline Destinations& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline Destinations& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The type of value in Expression.

+ */ + inline const ExpressionType& GetExpressionType() const{ return m_expressionType; } + + /** + *

The type of value in Expression.

+ */ + inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(const ExpressionType& value) { m_expressionTypeHasBeenSet = true; m_expressionType = value; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(ExpressionType&& value) { m_expressionTypeHasBeenSet = true; m_expressionType = std::move(value); } + + /** + *

The type of value in Expression.

+ */ + inline Destinations& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;} + + /** + *

The type of value in Expression.

+ */ + inline Destinations& WithExpressionType(ExpressionType&& value) { SetExpressionType(std::move(value)); return *this;} + + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline const Aws::String& GetExpression() const{ return m_expression; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline Destinations& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline Destinations& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline Destinations& WithExpression(const char* value) { SetExpression(value); return *this;} + + + /** + *

The description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the resource.

+ */ + inline Destinations& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the resource.

+ */ + inline Destinations& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the resource.

+ */ + inline Destinations& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline Destinations& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline Destinations& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline Destinations& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + ExpressionType m_expressionType; + bool m_expressionTypeHasBeenSet; + + Aws::String m_expression; + bool m_expressionHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeviceProfile.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeviceProfile.h new file mode 100644 index 00000000000..7b4eccadd1a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DeviceProfile.h @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Describes a device profile.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API DeviceProfile + { + public: + DeviceProfile(); + DeviceProfile(Aws::Utils::Json::JsonView jsonValue); + DeviceProfile& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline DeviceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline DeviceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline DeviceProfile& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline DeviceProfile& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline DeviceProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline DeviceProfile& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The ID of the device profile.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the device profile.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the device profile.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the device profile.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the device profile.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the device profile.

+ */ + inline DeviceProfile& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the device profile.

+ */ + inline DeviceProfile& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the device profile.

+ */ + inline DeviceProfile& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountRequest.h new file mode 100644 index 00000000000..61569e7e4a1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountRequest.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DisassociateAwsAccountFromPartnerAccountRequest : public IoTWirelessRequest + { + public: + DisassociateAwsAccountFromPartnerAccountRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DisassociateAwsAccountFromPartnerAccount"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline const Aws::String& GetPartnerAccountId() const{ return m_partnerAccountId; } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline bool PartnerAccountIdHasBeenSet() const { return m_partnerAccountIdHasBeenSet; } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline void SetPartnerAccountId(const Aws::String& value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId = value; } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline void SetPartnerAccountId(Aws::String&& value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId = std::move(value); } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline void SetPartnerAccountId(const char* value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId.assign(value); } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline DisassociateAwsAccountFromPartnerAccountRequest& WithPartnerAccountId(const Aws::String& value) { SetPartnerAccountId(value); return *this;} + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline DisassociateAwsAccountFromPartnerAccountRequest& WithPartnerAccountId(Aws::String&& value) { SetPartnerAccountId(std::move(value)); return *this;} + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline DisassociateAwsAccountFromPartnerAccountRequest& WithPartnerAccountId(const char* value) { SetPartnerAccountId(value); return *this;} + + + /** + *

The partner type.

+ */ + inline const PartnerType& GetPartnerType() const{ return m_partnerType; } + + /** + *

The partner type.

+ */ + inline bool PartnerTypeHasBeenSet() const { return m_partnerTypeHasBeenSet; } + + /** + *

The partner type.

+ */ + inline void SetPartnerType(const PartnerType& value) { m_partnerTypeHasBeenSet = true; m_partnerType = value; } + + /** + *

The partner type.

+ */ + inline void SetPartnerType(PartnerType&& value) { m_partnerTypeHasBeenSet = true; m_partnerType = std::move(value); } + + /** + *

The partner type.

+ */ + inline DisassociateAwsAccountFromPartnerAccountRequest& WithPartnerType(const PartnerType& value) { SetPartnerType(value); return *this;} + + /** + *

The partner type.

+ */ + inline DisassociateAwsAccountFromPartnerAccountRequest& WithPartnerType(PartnerType&& value) { SetPartnerType(std::move(value)); return *this;} + + private: + + Aws::String m_partnerAccountId; + bool m_partnerAccountIdHasBeenSet; + + PartnerType m_partnerType; + bool m_partnerTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountResult.h new file mode 100644 index 00000000000..7e2462dbceb --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateAwsAccountFromPartnerAccountResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DisassociateAwsAccountFromPartnerAccountResult + { + public: + DisassociateAwsAccountFromPartnerAccountResult(); + DisassociateAwsAccountFromPartnerAccountResult(const Aws::AmazonWebServiceResult& result); + DisassociateAwsAccountFromPartnerAccountResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingRequest.h new file mode 100644 index 00000000000..fabeb9966da --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DisassociateWirelessDeviceFromThingRequest : public IoTWirelessRequest + { + public: + DisassociateWirelessDeviceFromThingRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DisassociateWirelessDeviceFromThing"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessDeviceFromThingRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessDeviceFromThingRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessDeviceFromThingRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingResult.h new file mode 100644 index 00000000000..70e63efda2d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessDeviceFromThingResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DisassociateWirelessDeviceFromThingResult + { + public: + DisassociateWirelessDeviceFromThingResult(); + DisassociateWirelessDeviceFromThingResult(const Aws::AmazonWebServiceResult& result); + DisassociateWirelessDeviceFromThingResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateRequest.h new file mode 100644 index 00000000000..8406af0f6da --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DisassociateWirelessGatewayFromCertificateRequest : public IoTWirelessRequest + { + public: + DisassociateWirelessGatewayFromCertificateRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DisassociateWirelessGatewayFromCertificate"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessGatewayFromCertificateRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessGatewayFromCertificateRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessGatewayFromCertificateRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateResult.h new file mode 100644 index 00000000000..fb50e9577f4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromCertificateResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DisassociateWirelessGatewayFromCertificateResult + { + public: + DisassociateWirelessGatewayFromCertificateResult(); + DisassociateWirelessGatewayFromCertificateResult(const Aws::AmazonWebServiceResult& result); + DisassociateWirelessGatewayFromCertificateResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingRequest.h new file mode 100644 index 00000000000..f673be8a9ea --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API DisassociateWirelessGatewayFromThingRequest : public IoTWirelessRequest + { + public: + DisassociateWirelessGatewayFromThingRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DisassociateWirelessGatewayFromThing"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessGatewayFromThingRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessGatewayFromThingRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline DisassociateWirelessGatewayFromThingRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingResult.h new file mode 100644 index 00000000000..c46571f4d05 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/DisassociateWirelessGatewayFromThingResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API DisassociateWirelessGatewayFromThingResult + { + public: + DisassociateWirelessGatewayFromThingResult(); + DisassociateWirelessGatewayFromThingResult(const Aws::AmazonWebServiceResult& result); + DisassociateWirelessGatewayFromThingResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ExpressionType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ExpressionType.h new file mode 100644 index 00000000000..cfd8f8507c6 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ExpressionType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class ExpressionType + { + NOT_SET, + RuleName + }; + +namespace ExpressionTypeMapper +{ +AWS_IOTWIRELESS_API ExpressionType GetExpressionTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForExpressionType(ExpressionType value); +} // namespace ExpressionTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationRequest.h new file mode 100644 index 00000000000..3844975597c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetDestinationRequest : public IoTWirelessRequest + { + public: + GetDestinationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetDestination"; } + + Aws::String SerializePayload() const override; + + + /** + *

The name of the resource to get.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource to get.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource to get.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource to get.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource to get.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource to get.

+ */ + inline GetDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource to get.

+ */ + inline GetDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource to get.

+ */ + inline GetDestinationRequest& WithName(const char* value) { SetName(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationResult.h new file mode 100644 index 00000000000..1cba2c30a50 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDestinationResult.h @@ -0,0 +1,258 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetDestinationResult + { + public: + GetDestinationResult(); + GetDestinationResult(const Aws::AmazonWebServiceResult& result); + GetDestinationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetDestinationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetDestinationResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetDestinationResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline GetDestinationResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetDestinationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetDestinationResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline const Aws::String& GetExpression() const{ return m_expression; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const Aws::String& value) { m_expression = value; } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(Aws::String&& value) { m_expression = std::move(value); } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const char* value) { m_expression.assign(value); } + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline GetDestinationResult& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline GetDestinationResult& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} + + /** + *

The rule name or topic rule to send messages to.

+ */ + inline GetDestinationResult& WithExpression(const char* value) { SetExpression(value); return *this;} + + + /** + *

The type of value in Expression.

+ */ + inline const ExpressionType& GetExpressionType() const{ return m_expressionType; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(const ExpressionType& value) { m_expressionType = value; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(ExpressionType&& value) { m_expressionType = std::move(value); } + + /** + *

The type of value in Expression.

+ */ + inline GetDestinationResult& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;} + + /** + *

The type of value in Expression.

+ */ + inline GetDestinationResult& WithExpressionType(ExpressionType&& value) { SetExpressionType(std::move(value)); return *this;} + + + /** + *

The description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_description = value; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const char* value) { m_description.assign(value); } + + /** + *

The description of the resource.

+ */ + inline GetDestinationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the resource.

+ */ + inline GetDestinationResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the resource.

+ */ + inline GetDestinationResult& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline GetDestinationResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline GetDestinationResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline GetDestinationResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + + Aws::String m_expression; + + ExpressionType m_expressionType; + + Aws::String m_description; + + Aws::String m_roleArn; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileRequest.h new file mode 100644 index 00000000000..1fe8d43b636 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetDeviceProfileRequest : public IoTWirelessRequest + { + public: + GetDeviceProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetDeviceProfile"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to get.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to get.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to get.

+ */ + inline GetDeviceProfileRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetDeviceProfileRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetDeviceProfileRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileResult.h new file mode 100644 index 00000000000..6e16ac24e11 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetDeviceProfileResult.h @@ -0,0 +1,182 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetDeviceProfileResult + { + public: + GetDeviceProfileResult(); + GetDeviceProfileResult(const Aws::AmazonWebServiceResult& result); + GetDeviceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetDeviceProfileResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetDeviceProfileResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetDeviceProfileResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline GetDeviceProfileResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetDeviceProfileResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetDeviceProfileResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The ID of the device profile.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the device profile.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the device profile.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the device profile.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the device profile.

+ */ + inline GetDeviceProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the device profile.

+ */ + inline GetDeviceProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the device profile.

+ */ + inline GetDeviceProfileResult& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

Information about the device profile.

+ */ + inline const LoRaWANDeviceProfile& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

Information about the device profile.

+ */ + inline void SetLoRaWAN(const LoRaWANDeviceProfile& value) { m_loRaWAN = value; } + + /** + *

Information about the device profile.

+ */ + inline void SetLoRaWAN(LoRaWANDeviceProfile&& value) { m_loRaWAN = std::move(value); } + + /** + *

Information about the device profile.

+ */ + inline GetDeviceProfileResult& WithLoRaWAN(const LoRaWANDeviceProfile& value) { SetLoRaWAN(value); return *this;} + + /** + *

Information about the device profile.

+ */ + inline GetDeviceProfileResult& WithLoRaWAN(LoRaWANDeviceProfile&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + + Aws::String m_id; + + LoRaWANDeviceProfile m_loRaWAN; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountRequest.h new file mode 100644 index 00000000000..94301fd64cf --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountRequest.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetPartnerAccountRequest : public IoTWirelessRequest + { + public: + GetPartnerAccountRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetPartnerAccount"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline const Aws::String& GetPartnerAccountId() const{ return m_partnerAccountId; } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline bool PartnerAccountIdHasBeenSet() const { return m_partnerAccountIdHasBeenSet; } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline void SetPartnerAccountId(const Aws::String& value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId = value; } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline void SetPartnerAccountId(Aws::String&& value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId = std::move(value); } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline void SetPartnerAccountId(const char* value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId.assign(value); } + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline GetPartnerAccountRequest& WithPartnerAccountId(const Aws::String& value) { SetPartnerAccountId(value); return *this;} + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline GetPartnerAccountRequest& WithPartnerAccountId(Aws::String&& value) { SetPartnerAccountId(std::move(value)); return *this;} + + /** + *

The partner account ID to disassociate from the AWS account.

+ */ + inline GetPartnerAccountRequest& WithPartnerAccountId(const char* value) { SetPartnerAccountId(value); return *this;} + + + /** + *

The partner type.

+ */ + inline const PartnerType& GetPartnerType() const{ return m_partnerType; } + + /** + *

The partner type.

+ */ + inline bool PartnerTypeHasBeenSet() const { return m_partnerTypeHasBeenSet; } + + /** + *

The partner type.

+ */ + inline void SetPartnerType(const PartnerType& value) { m_partnerTypeHasBeenSet = true; m_partnerType = value; } + + /** + *

The partner type.

+ */ + inline void SetPartnerType(PartnerType&& value) { m_partnerTypeHasBeenSet = true; m_partnerType = std::move(value); } + + /** + *

The partner type.

+ */ + inline GetPartnerAccountRequest& WithPartnerType(const PartnerType& value) { SetPartnerType(value); return *this;} + + /** + *

The partner type.

+ */ + inline GetPartnerAccountRequest& WithPartnerType(PartnerType&& value) { SetPartnerType(std::move(value)); return *this;} + + private: + + Aws::String m_partnerAccountId; + bool m_partnerAccountIdHasBeenSet; + + PartnerType m_partnerType; + bool m_partnerTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountResult.h new file mode 100644 index 00000000000..4f4d8e26e8f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetPartnerAccountResult.h @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetPartnerAccountResult + { + public: + GetPartnerAccountResult(); + GetPartnerAccountResult(const Aws::AmazonWebServiceResult& result); + GetPartnerAccountResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline const SidewalkAccountInfoWithFingerprint& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline void SetSidewalk(const SidewalkAccountInfoWithFingerprint& value) { m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline void SetSidewalk(SidewalkAccountInfoWithFingerprint&& value) { m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline GetPartnerAccountResult& WithSidewalk(const SidewalkAccountInfoWithFingerprint& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline GetPartnerAccountResult& WithSidewalk(SidewalkAccountInfoWithFingerprint&& value) { SetSidewalk(std::move(value)); return *this;} + + + /** + *

Whether the partner account is linked to the AWS account.

+ */ + inline bool GetAccountLinked() const{ return m_accountLinked; } + + /** + *

Whether the partner account is linked to the AWS account.

+ */ + inline void SetAccountLinked(bool value) { m_accountLinked = value; } + + /** + *

Whether the partner account is linked to the AWS account.

+ */ + inline GetPartnerAccountResult& WithAccountLinked(bool value) { SetAccountLinked(value); return *this;} + + private: + + SidewalkAccountInfoWithFingerprint m_sidewalk; + + bool m_accountLinked; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointRequest.h new file mode 100644 index 00000000000..5baf2750adc --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointRequest.h @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetServiceEndpointRequest : public IoTWirelessRequest + { + public: + GetServiceEndpointRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetServiceEndpoint"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The service type for which to get endpoint information about. Can be + * CUPS for the Configuration and Update Server endpoint, or + * LNS for the LoRaWAN Network Server endpoint.

+ */ + inline const WirelessGatewayServiceType& GetServiceType() const{ return m_serviceType; } + + /** + *

The service type for which to get endpoint information about. Can be + * CUPS for the Configuration and Update Server endpoint, or + * LNS for the LoRaWAN Network Server endpoint.

+ */ + inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; } + + /** + *

The service type for which to get endpoint information about. Can be + * CUPS for the Configuration and Update Server endpoint, or + * LNS for the LoRaWAN Network Server endpoint.

+ */ + inline void SetServiceType(const WirelessGatewayServiceType& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; } + + /** + *

The service type for which to get endpoint information about. Can be + * CUPS for the Configuration and Update Server endpoint, or + * LNS for the LoRaWAN Network Server endpoint.

+ */ + inline void SetServiceType(WirelessGatewayServiceType&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); } + + /** + *

The service type for which to get endpoint information about. Can be + * CUPS for the Configuration and Update Server endpoint, or + * LNS for the LoRaWAN Network Server endpoint.

+ */ + inline GetServiceEndpointRequest& WithServiceType(const WirelessGatewayServiceType& value) { SetServiceType(value); return *this;} + + /** + *

The service type for which to get endpoint information about. Can be + * CUPS for the Configuration and Update Server endpoint, or + * LNS for the LoRaWAN Network Server endpoint.

+ */ + inline GetServiceEndpointRequest& WithServiceType(WirelessGatewayServiceType&& value) { SetServiceType(std::move(value)); return *this;} + + private: + + WirelessGatewayServiceType m_serviceType; + bool m_serviceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointResult.h new file mode 100644 index 00000000000..6bde84718f4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceEndpointResult.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetServiceEndpointResult + { + public: + GetServiceEndpointResult(); + GetServiceEndpointResult(const Aws::AmazonWebServiceResult& result); + GetServiceEndpointResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The endpoint's service type.

+ */ + inline const WirelessGatewayServiceType& GetServiceType() const{ return m_serviceType; } + + /** + *

The endpoint's service type.

+ */ + inline void SetServiceType(const WirelessGatewayServiceType& value) { m_serviceType = value; } + + /** + *

The endpoint's service type.

+ */ + inline void SetServiceType(WirelessGatewayServiceType&& value) { m_serviceType = std::move(value); } + + /** + *

The endpoint's service type.

+ */ + inline GetServiceEndpointResult& WithServiceType(const WirelessGatewayServiceType& value) { SetServiceType(value); return *this;} + + /** + *

The endpoint's service type.

+ */ + inline GetServiceEndpointResult& WithServiceType(WirelessGatewayServiceType&& value) { SetServiceType(std::move(value)); return *this;} + + + /** + *

The service endpoint value.

+ */ + inline const Aws::String& GetServiceEndpoint() const{ return m_serviceEndpoint; } + + /** + *

The service endpoint value.

+ */ + inline void SetServiceEndpoint(const Aws::String& value) { m_serviceEndpoint = value; } + + /** + *

The service endpoint value.

+ */ + inline void SetServiceEndpoint(Aws::String&& value) { m_serviceEndpoint = std::move(value); } + + /** + *

The service endpoint value.

+ */ + inline void SetServiceEndpoint(const char* value) { m_serviceEndpoint.assign(value); } + + /** + *

The service endpoint value.

+ */ + inline GetServiceEndpointResult& WithServiceEndpoint(const Aws::String& value) { SetServiceEndpoint(value); return *this;} + + /** + *

The service endpoint value.

+ */ + inline GetServiceEndpointResult& WithServiceEndpoint(Aws::String&& value) { SetServiceEndpoint(std::move(value)); return *this;} + + /** + *

The service endpoint value.

+ */ + inline GetServiceEndpointResult& WithServiceEndpoint(const char* value) { SetServiceEndpoint(value); return *this;} + + + /** + *

The Root CA of the server trust certificate.

+ */ + inline const Aws::String& GetServerTrust() const{ return m_serverTrust; } + + /** + *

The Root CA of the server trust certificate.

+ */ + inline void SetServerTrust(const Aws::String& value) { m_serverTrust = value; } + + /** + *

The Root CA of the server trust certificate.

+ */ + inline void SetServerTrust(Aws::String&& value) { m_serverTrust = std::move(value); } + + /** + *

The Root CA of the server trust certificate.

+ */ + inline void SetServerTrust(const char* value) { m_serverTrust.assign(value); } + + /** + *

The Root CA of the server trust certificate.

+ */ + inline GetServiceEndpointResult& WithServerTrust(const Aws::String& value) { SetServerTrust(value); return *this;} + + /** + *

The Root CA of the server trust certificate.

+ */ + inline GetServiceEndpointResult& WithServerTrust(Aws::String&& value) { SetServerTrust(std::move(value)); return *this;} + + /** + *

The Root CA of the server trust certificate.

+ */ + inline GetServiceEndpointResult& WithServerTrust(const char* value) { SetServerTrust(value); return *this;} + + private: + + WirelessGatewayServiceType m_serviceType; + + Aws::String m_serviceEndpoint; + + Aws::String m_serverTrust; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileRequest.h new file mode 100644 index 00000000000..15a48a447a1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetServiceProfileRequest : public IoTWirelessRequest + { + public: + GetServiceProfileRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetServiceProfile"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to get.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to get.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to get.

+ */ + inline GetServiceProfileRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetServiceProfileRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetServiceProfileRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileResult.h new file mode 100644 index 00000000000..8945488247e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetServiceProfileResult.h @@ -0,0 +1,182 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetServiceProfileResult + { + public: + GetServiceProfileResult(); + GetServiceProfileResult(const Aws::AmazonWebServiceResult& result); + GetServiceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetServiceProfileResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetServiceProfileResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetServiceProfileResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline GetServiceProfileResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetServiceProfileResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetServiceProfileResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The ID of the service profile.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the service profile.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the service profile.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the service profile.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the service profile.

+ */ + inline GetServiceProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline GetServiceProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline GetServiceProfileResult& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

Information about the service profile.

+ */ + inline const LoRaWANGetServiceProfileInfo& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

Information about the service profile.

+ */ + inline void SetLoRaWAN(const LoRaWANGetServiceProfileInfo& value) { m_loRaWAN = value; } + + /** + *

Information about the service profile.

+ */ + inline void SetLoRaWAN(LoRaWANGetServiceProfileInfo&& value) { m_loRaWAN = std::move(value); } + + /** + *

Information about the service profile.

+ */ + inline GetServiceProfileResult& WithLoRaWAN(const LoRaWANGetServiceProfileInfo& value) { SetLoRaWAN(value); return *this;} + + /** + *

Information about the service profile.

+ */ + inline GetServiceProfileResult& WithLoRaWAN(LoRaWANGetServiceProfileInfo&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + + Aws::String m_name; + + Aws::String m_id; + + LoRaWANGetServiceProfileInfo m_loRaWAN; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceRequest.h new file mode 100644 index 00000000000..d8432d1c219 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceRequest.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessDeviceRequest : public IoTWirelessRequest + { + public: + GetWirelessDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessDevice"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The identifier of the wireless device to get.

+ */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + + /** + *

The identifier of the wireless device to get.

+ */ + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + + /** + *

The identifier of the wireless device to get.

+ */ + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + + /** + *

The identifier of the wireless device to get.

+ */ + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + + /** + *

The identifier of the wireless device to get.

+ */ + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + + /** + *

The identifier of the wireless device to get.

+ */ + inline GetWirelessDeviceRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + + /** + *

The identifier of the wireless device to get.

+ */ + inline GetWirelessDeviceRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + + /** + *

The identifier of the wireless device to get.

+ */ + inline GetWirelessDeviceRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + + + /** + *

The type of identifier used in identifier.

+ */ + inline const WirelessDeviceIdType& GetIdentifierType() const{ return m_identifierType; } + + /** + *

The type of identifier used in identifier.

+ */ + inline bool IdentifierTypeHasBeenSet() const { return m_identifierTypeHasBeenSet; } + + /** + *

The type of identifier used in identifier.

+ */ + inline void SetIdentifierType(const WirelessDeviceIdType& value) { m_identifierTypeHasBeenSet = true; m_identifierType = value; } + + /** + *

The type of identifier used in identifier.

+ */ + inline void SetIdentifierType(WirelessDeviceIdType&& value) { m_identifierTypeHasBeenSet = true; m_identifierType = std::move(value); } + + /** + *

The type of identifier used in identifier.

+ */ + inline GetWirelessDeviceRequest& WithIdentifierType(const WirelessDeviceIdType& value) { SetIdentifierType(value); return *this;} + + /** + *

The type of identifier used in identifier.

+ */ + inline GetWirelessDeviceRequest& WithIdentifierType(WirelessDeviceIdType&& value) { SetIdentifierType(std::move(value)); return *this;} + + private: + + Aws::String m_identifier; + bool m_identifierHasBeenSet; + + WirelessDeviceIdType m_identifierType; + bool m_identifierTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceResult.h new file mode 100644 index 00000000000..b83e6a16f5c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceResult.h @@ -0,0 +1,363 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessDeviceResult + { + public: + GetWirelessDeviceResult(); + GetWirelessDeviceResult(const Aws::AmazonWebServiceResult& result); + GetWirelessDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The wireless device type.

+ */ + inline const WirelessDeviceType& GetType() const{ return m_type; } + + /** + *

The wireless device type.

+ */ + inline void SetType(const WirelessDeviceType& value) { m_type = value; } + + /** + *

The wireless device type.

+ */ + inline void SetType(WirelessDeviceType&& value) { m_type = std::move(value); } + + /** + *

The wireless device type.

+ */ + inline GetWirelessDeviceResult& WithType(const WirelessDeviceType& value) { SetType(value); return *this;} + + /** + *

The wireless device type.

+ */ + inline GetWirelessDeviceResult& WithType(WirelessDeviceType&& value) { SetType(std::move(value)); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline GetWirelessDeviceResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetWirelessDeviceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetWirelessDeviceResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_description = value; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const char* value) { m_description.assign(value); } + + /** + *

The description of the resource.

+ */ + inline GetWirelessDeviceResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the resource.

+ */ + inline GetWirelessDeviceResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the resource.

+ */ + inline GetWirelessDeviceResult& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline const Aws::String& GetDestinationName() const{ return m_destinationName; } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline void SetDestinationName(const Aws::String& value) { m_destinationName = value; } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline void SetDestinationName(Aws::String&& value) { m_destinationName = std::move(value); } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline void SetDestinationName(const char* value) { m_destinationName.assign(value); } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline GetWirelessDeviceResult& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline GetWirelessDeviceResult& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline GetWirelessDeviceResult& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} + + + /** + *

The ID of the wireless device.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the wireless device.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the wireless device.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the wireless device.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the wireless device.

+ */ + inline GetWirelessDeviceResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the wireless device.

+ */ + inline GetWirelessDeviceResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the wireless device.

+ */ + inline GetWirelessDeviceResult& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetWirelessDeviceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetWirelessDeviceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetWirelessDeviceResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline const Aws::String& GetThingName() const{ return m_thingName; } + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline void SetThingName(const Aws::String& value) { m_thingName = value; } + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline void SetThingName(Aws::String&& value) { m_thingName = std::move(value); } + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline void SetThingName(const char* value) { m_thingName.assign(value); } + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline GetWirelessDeviceResult& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline GetWirelessDeviceResult& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} + + /** + *

The name of the thing associated with the wireless device.

+ */ + inline GetWirelessDeviceResult& WithThingName(const char* value) { SetThingName(value); return *this;} + + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline const Aws::String& GetThingArn() const{ return m_thingArn; } + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline void SetThingArn(const Aws::String& value) { m_thingArn = value; } + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline void SetThingArn(Aws::String&& value) { m_thingArn = std::move(value); } + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline void SetThingArn(const char* value) { m_thingArn.assign(value); } + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline GetWirelessDeviceResult& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline GetWirelessDeviceResult& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} + + /** + *

The ARN of the thing associated with the wireless device.

+ */ + inline GetWirelessDeviceResult& WithThingArn(const char* value) { SetThingArn(value); return *this;} + + + /** + *

Information about the wireless device.

+ */ + inline const LoRaWANDevice& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

Information about the wireless device.

+ */ + inline void SetLoRaWAN(const LoRaWANDevice& value) { m_loRaWAN = value; } + + /** + *

Information about the wireless device.

+ */ + inline void SetLoRaWAN(LoRaWANDevice&& value) { m_loRaWAN = std::move(value); } + + /** + *

Information about the wireless device.

+ */ + inline GetWirelessDeviceResult& WithLoRaWAN(const LoRaWANDevice& value) { SetLoRaWAN(value); return *this;} + + /** + *

Information about the wireless device.

+ */ + inline GetWirelessDeviceResult& WithLoRaWAN(LoRaWANDevice&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + WirelessDeviceType m_type; + + Aws::String m_name; + + Aws::String m_description; + + Aws::String m_destinationName; + + Aws::String m_id; + + Aws::String m_arn; + + Aws::String m_thingName; + + Aws::String m_thingArn; + + LoRaWANDevice m_loRaWAN; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsRequest.h new file mode 100644 index 00000000000..5024f1faae2 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessDeviceStatisticsRequest : public IoTWirelessRequest + { + public: + GetWirelessDeviceStatisticsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessDeviceStatistics"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline const Aws::String& GetWirelessDeviceId() const{ return m_wirelessDeviceId; } + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline bool WirelessDeviceIdHasBeenSet() const { return m_wirelessDeviceIdHasBeenSet; } + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline void SetWirelessDeviceId(const Aws::String& value) { m_wirelessDeviceIdHasBeenSet = true; m_wirelessDeviceId = value; } + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline void SetWirelessDeviceId(Aws::String&& value) { m_wirelessDeviceIdHasBeenSet = true; m_wirelessDeviceId = std::move(value); } + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline void SetWirelessDeviceId(const char* value) { m_wirelessDeviceIdHasBeenSet = true; m_wirelessDeviceId.assign(value); } + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline GetWirelessDeviceStatisticsRequest& WithWirelessDeviceId(const Aws::String& value) { SetWirelessDeviceId(value); return *this;} + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline GetWirelessDeviceStatisticsRequest& WithWirelessDeviceId(Aws::String&& value) { SetWirelessDeviceId(std::move(value)); return *this;} + + /** + *

The ID of the wireless device for which to get the data.

+ */ + inline GetWirelessDeviceStatisticsRequest& WithWirelessDeviceId(const char* value) { SetWirelessDeviceId(value); return *this;} + + private: + + Aws::String m_wirelessDeviceId; + bool m_wirelessDeviceIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsResult.h new file mode 100644 index 00000000000..d5ed4df05ea --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessDeviceStatisticsResult.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessDeviceStatisticsResult + { + public: + GetWirelessDeviceStatisticsResult(); + GetWirelessDeviceStatisticsResult(const Aws::AmazonWebServiceResult& result); + GetWirelessDeviceStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the wireless device.

+ */ + inline const Aws::String& GetWirelessDeviceId() const{ return m_wirelessDeviceId; } + + /** + *

The ID of the wireless device.

+ */ + inline void SetWirelessDeviceId(const Aws::String& value) { m_wirelessDeviceId = value; } + + /** + *

The ID of the wireless device.

+ */ + inline void SetWirelessDeviceId(Aws::String&& value) { m_wirelessDeviceId = std::move(value); } + + /** + *

The ID of the wireless device.

+ */ + inline void SetWirelessDeviceId(const char* value) { m_wirelessDeviceId.assign(value); } + + /** + *

The ID of the wireless device.

+ */ + inline GetWirelessDeviceStatisticsResult& WithWirelessDeviceId(const Aws::String& value) { SetWirelessDeviceId(value); return *this;} + + /** + *

The ID of the wireless device.

+ */ + inline GetWirelessDeviceStatisticsResult& WithWirelessDeviceId(Aws::String&& value) { SetWirelessDeviceId(std::move(value)); return *this;} + + /** + *

The ID of the wireless device.

+ */ + inline GetWirelessDeviceStatisticsResult& WithWirelessDeviceId(const char* value) { SetWirelessDeviceId(value); return *this;} + + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline const Aws::String& GetLastUplinkReceivedAt() const{ return m_lastUplinkReceivedAt; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const Aws::String& value) { m_lastUplinkReceivedAt = value; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(Aws::String&& value) { m_lastUplinkReceivedAt = std::move(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const char* value) { m_lastUplinkReceivedAt.assign(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessDeviceStatisticsResult& WithLastUplinkReceivedAt(const Aws::String& value) { SetLastUplinkReceivedAt(value); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessDeviceStatisticsResult& WithLastUplinkReceivedAt(Aws::String&& value) { SetLastUplinkReceivedAt(std::move(value)); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessDeviceStatisticsResult& WithLastUplinkReceivedAt(const char* value) { SetLastUplinkReceivedAt(value); return *this;} + + + /** + *

Information about the wireless device's operations.

+ */ + inline const LoRaWANDeviceMetadata& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

Information about the wireless device's operations.

+ */ + inline void SetLoRaWAN(const LoRaWANDeviceMetadata& value) { m_loRaWAN = value; } + + /** + *

Information about the wireless device's operations.

+ */ + inline void SetLoRaWAN(LoRaWANDeviceMetadata&& value) { m_loRaWAN = std::move(value); } + + /** + *

Information about the wireless device's operations.

+ */ + inline GetWirelessDeviceStatisticsResult& WithLoRaWAN(const LoRaWANDeviceMetadata& value) { SetLoRaWAN(value); return *this;} + + /** + *

Information about the wireless device's operations.

+ */ + inline GetWirelessDeviceStatisticsResult& WithLoRaWAN(LoRaWANDeviceMetadata&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + Aws::String m_wirelessDeviceId; + + Aws::String m_lastUplinkReceivedAt; + + LoRaWANDeviceMetadata m_loRaWAN; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateRequest.h new file mode 100644 index 00000000000..422ce1bdfa3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessGatewayCertificateRequest : public IoTWirelessRequest + { + public: + GetWirelessGatewayCertificateRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessGatewayCertificate"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to get.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to get.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayCertificateRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayCertificateRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayCertificateRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateResult.h new file mode 100644 index 00000000000..d4014221937 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayCertificateResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessGatewayCertificateResult + { + public: + GetWirelessGatewayCertificateResult(); + GetWirelessGatewayCertificateResult(const Aws::AmazonWebServiceResult& result); + GetWirelessGatewayCertificateResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline const Aws::String& GetIotCertificateId() const{ return m_iotCertificateId; } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline void SetIotCertificateId(const Aws::String& value) { m_iotCertificateId = value; } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline void SetIotCertificateId(Aws::String&& value) { m_iotCertificateId = std::move(value); } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline void SetIotCertificateId(const char* value) { m_iotCertificateId.assign(value); } + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline GetWirelessGatewayCertificateResult& WithIotCertificateId(const Aws::String& value) { SetIotCertificateId(value); return *this;} + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline GetWirelessGatewayCertificateResult& WithIotCertificateId(Aws::String&& value) { SetIotCertificateId(std::move(value)); return *this;} + + /** + *

The ID of the certificate associated with the wireless gateway.

+ */ + inline GetWirelessGatewayCertificateResult& WithIotCertificateId(const char* value) { SetIotCertificateId(value); return *this;} + + private: + + Aws::String m_iotCertificateId; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationRequest.h new file mode 100644 index 00000000000..5181811fd25 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessGatewayFirmwareInformationRequest : public IoTWirelessRequest + { + public: + GetWirelessGatewayFirmwareInformationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessGatewayFirmwareInformation"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to get.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to get.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayFirmwareInformationRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayFirmwareInformationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayFirmwareInformationRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationResult.h new file mode 100644 index 00000000000..4caba425d7d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayFirmwareInformationResult.h @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessGatewayFirmwareInformationResult + { + public: + GetWirelessGatewayFirmwareInformationResult(); + GetWirelessGatewayFirmwareInformationResult(const Aws::AmazonWebServiceResult& result); + GetWirelessGatewayFirmwareInformationResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Information about the wireless gateway's firmware.

+ */ + inline const LoRaWANGatewayCurrentVersion& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

Information about the wireless gateway's firmware.

+ */ + inline void SetLoRaWAN(const LoRaWANGatewayCurrentVersion& value) { m_loRaWAN = value; } + + /** + *

Information about the wireless gateway's firmware.

+ */ + inline void SetLoRaWAN(LoRaWANGatewayCurrentVersion&& value) { m_loRaWAN = std::move(value); } + + /** + *

Information about the wireless gateway's firmware.

+ */ + inline GetWirelessGatewayFirmwareInformationResult& WithLoRaWAN(const LoRaWANGatewayCurrentVersion& value) { SetLoRaWAN(value); return *this;} + + /** + *

Information about the wireless gateway's firmware.

+ */ + inline GetWirelessGatewayFirmwareInformationResult& WithLoRaWAN(LoRaWANGatewayCurrentVersion&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + LoRaWANGatewayCurrentVersion m_loRaWAN; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayRequest.h new file mode 100644 index 00000000000..faec4db51d5 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayRequest.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessGatewayRequest : public IoTWirelessRequest + { + public: + GetWirelessGatewayRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessGateway"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline const Aws::String& GetIdentifier() const{ return m_identifier; } + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline GetWirelessGatewayRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline GetWirelessGatewayRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} + + /** + *

The identifier of the wireless gateway to get.

+ */ + inline GetWirelessGatewayRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} + + + /** + *

The type of identifier used in identifier.

+ */ + inline const WirelessGatewayIdType& GetIdentifierType() const{ return m_identifierType; } + + /** + *

The type of identifier used in identifier.

+ */ + inline bool IdentifierTypeHasBeenSet() const { return m_identifierTypeHasBeenSet; } + + /** + *

The type of identifier used in identifier.

+ */ + inline void SetIdentifierType(const WirelessGatewayIdType& value) { m_identifierTypeHasBeenSet = true; m_identifierType = value; } + + /** + *

The type of identifier used in identifier.

+ */ + inline void SetIdentifierType(WirelessGatewayIdType&& value) { m_identifierTypeHasBeenSet = true; m_identifierType = std::move(value); } + + /** + *

The type of identifier used in identifier.

+ */ + inline GetWirelessGatewayRequest& WithIdentifierType(const WirelessGatewayIdType& value) { SetIdentifierType(value); return *this;} + + /** + *

The type of identifier used in identifier.

+ */ + inline GetWirelessGatewayRequest& WithIdentifierType(WirelessGatewayIdType&& value) { SetIdentifierType(std::move(value)); return *this;} + + private: + + Aws::String m_identifier; + bool m_identifierHasBeenSet; + + WirelessGatewayIdType m_identifierType; + bool m_identifierTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayResult.h new file mode 100644 index 00000000000..060166b367f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayResult.h @@ -0,0 +1,296 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessGatewayResult + { + public: + GetWirelessGatewayResult(); + GetWirelessGatewayResult(const Aws::AmazonWebServiceResult& result); + GetWirelessGatewayResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline GetWirelessGatewayResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetWirelessGatewayResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetWirelessGatewayResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The ID of the wireless gateway.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetId(const Aws::String& value) { m_id = value; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetId(Aws::String&& value) { m_id = std::move(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetId(const char* value) { m_id.assign(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_description = value; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const char* value) { m_description.assign(value); } + + /** + *

The description of the resource.

+ */ + inline GetWirelessGatewayResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the resource.

+ */ + inline GetWirelessGatewayResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the resource.

+ */ + inline GetWirelessGatewayResult& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

Information about the wireless gateway.

+ */ + inline const LoRaWANGateway& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

Information about the wireless gateway.

+ */ + inline void SetLoRaWAN(const LoRaWANGateway& value) { m_loRaWAN = value; } + + /** + *

Information about the wireless gateway.

+ */ + inline void SetLoRaWAN(LoRaWANGateway&& value) { m_loRaWAN = std::move(value); } + + /** + *

Information about the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithLoRaWAN(const LoRaWANGateway& value) { SetLoRaWAN(value); return *this;} + + /** + *

Information about the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithLoRaWAN(LoRaWANGateway&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetWirelessGatewayResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetWirelessGatewayResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline GetWirelessGatewayResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline const Aws::String& GetThingName() const{ return m_thingName; } + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline void SetThingName(const Aws::String& value) { m_thingName = value; } + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline void SetThingName(Aws::String&& value) { m_thingName = std::move(value); } + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline void SetThingName(const char* value) { m_thingName.assign(value); } + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} + + /** + *

The name of the thing associated with the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithThingName(const char* value) { SetThingName(value); return *this;} + + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline const Aws::String& GetThingArn() const{ return m_thingArn; } + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline void SetThingArn(const Aws::String& value) { m_thingArn = value; } + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline void SetThingArn(Aws::String&& value) { m_thingArn = std::move(value); } + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline void SetThingArn(const char* value) { m_thingArn.assign(value); } + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} + + /** + *

The ARN of the thing associated with the wireless gateway.

+ */ + inline GetWirelessGatewayResult& WithThingArn(const char* value) { SetThingArn(value); return *this;} + + private: + + Aws::String m_name; + + Aws::String m_id; + + Aws::String m_description; + + LoRaWANGateway m_loRaWAN; + + Aws::String m_arn; + + Aws::String m_thingName; + + Aws::String m_thingArn; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsRequest.h new file mode 100644 index 00000000000..97fa78a06f3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessGatewayStatisticsRequest : public IoTWirelessRequest + { + public: + GetWirelessGatewayStatisticsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessGatewayStatistics"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline const Aws::String& GetWirelessGatewayId() const{ return m_wirelessGatewayId; } + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline bool WirelessGatewayIdHasBeenSet() const { return m_wirelessGatewayIdHasBeenSet; } + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline void SetWirelessGatewayId(const Aws::String& value) { m_wirelessGatewayIdHasBeenSet = true; m_wirelessGatewayId = value; } + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline void SetWirelessGatewayId(Aws::String&& value) { m_wirelessGatewayIdHasBeenSet = true; m_wirelessGatewayId = std::move(value); } + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline void SetWirelessGatewayId(const char* value) { m_wirelessGatewayIdHasBeenSet = true; m_wirelessGatewayId.assign(value); } + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline GetWirelessGatewayStatisticsRequest& WithWirelessGatewayId(const Aws::String& value) { SetWirelessGatewayId(value); return *this;} + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline GetWirelessGatewayStatisticsRequest& WithWirelessGatewayId(Aws::String&& value) { SetWirelessGatewayId(std::move(value)); return *this;} + + /** + *

The ID of the wireless gateway for which to get the data.

+ */ + inline GetWirelessGatewayStatisticsRequest& WithWirelessGatewayId(const char* value) { SetWirelessGatewayId(value); return *this;} + + private: + + Aws::String m_wirelessGatewayId; + bool m_wirelessGatewayIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsResult.h new file mode 100644 index 00000000000..a13d9a238bb --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayStatisticsResult.h @@ -0,0 +1,115 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessGatewayStatisticsResult + { + public: + GetWirelessGatewayStatisticsResult(); + GetWirelessGatewayStatisticsResult(const Aws::AmazonWebServiceResult& result); + GetWirelessGatewayStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the wireless gateway.

+ */ + inline const Aws::String& GetWirelessGatewayId() const{ return m_wirelessGatewayId; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayId(const Aws::String& value) { m_wirelessGatewayId = value; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayId(Aws::String&& value) { m_wirelessGatewayId = std::move(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayId(const char* value) { m_wirelessGatewayId.assign(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayStatisticsResult& WithWirelessGatewayId(const Aws::String& value) { SetWirelessGatewayId(value); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayStatisticsResult& WithWirelessGatewayId(Aws::String&& value) { SetWirelessGatewayId(std::move(value)); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayStatisticsResult& WithWirelessGatewayId(const char* value) { SetWirelessGatewayId(value); return *this;} + + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline const Aws::String& GetLastUplinkReceivedAt() const{ return m_lastUplinkReceivedAt; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const Aws::String& value) { m_lastUplinkReceivedAt = value; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(Aws::String&& value) { m_lastUplinkReceivedAt = std::move(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const char* value) { m_lastUplinkReceivedAt.assign(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessGatewayStatisticsResult& WithLastUplinkReceivedAt(const Aws::String& value) { SetLastUplinkReceivedAt(value); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessGatewayStatisticsResult& WithLastUplinkReceivedAt(Aws::String&& value) { SetLastUplinkReceivedAt(std::move(value)); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessGatewayStatisticsResult& WithLastUplinkReceivedAt(const char* value) { SetLastUplinkReceivedAt(value); return *this;} + + private: + + Aws::String m_wirelessGatewayId; + + Aws::String m_lastUplinkReceivedAt; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionRequest.h new file mode 100644 index 00000000000..525ab44387b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessGatewayTaskDefinitionRequest : public IoTWirelessRequest + { + public: + GetWirelessGatewayTaskDefinitionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessGatewayTaskDefinition"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to get.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to get.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayTaskDefinitionRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayTaskDefinitionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayTaskDefinitionRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionResult.h new file mode 100644 index 00000000000..2ba9204a2e8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskDefinitionResult.h @@ -0,0 +1,130 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessGatewayTaskDefinitionResult + { + public: + GetWirelessGatewayTaskDefinitionResult(); + GetWirelessGatewayTaskDefinitionResult(const Aws::AmazonWebServiceResult& result); + GetWirelessGatewayTaskDefinitionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline bool GetAutoCreateTasks() const{ return m_autoCreateTasks; } + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline void SetAutoCreateTasks(bool value) { m_autoCreateTasks = value; } + + /** + *

Whether to automatically create tasks using this task definition for all + * gateways with the specified current version. If false, the task + * must me created by calling CreateWirelessGatewayTask.

+ */ + inline GetWirelessGatewayTaskDefinitionResult& WithAutoCreateTasks(bool value) { SetAutoCreateTasks(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline GetWirelessGatewayTaskDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetWirelessGatewayTaskDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline GetWirelessGatewayTaskDefinitionResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

Information about the gateways to update.

+ */ + inline const UpdateWirelessGatewayTaskCreate& GetUpdate() const{ return m_update; } + + /** + *

Information about the gateways to update.

+ */ + inline void SetUpdate(const UpdateWirelessGatewayTaskCreate& value) { m_update = value; } + + /** + *

Information about the gateways to update.

+ */ + inline void SetUpdate(UpdateWirelessGatewayTaskCreate&& value) { m_update = std::move(value); } + + /** + *

Information about the gateways to update.

+ */ + inline GetWirelessGatewayTaskDefinitionResult& WithUpdate(const UpdateWirelessGatewayTaskCreate& value) { SetUpdate(value); return *this;} + + /** + *

Information about the gateways to update.

+ */ + inline GetWirelessGatewayTaskDefinitionResult& WithUpdate(UpdateWirelessGatewayTaskCreate&& value) { SetUpdate(std::move(value)); return *this;} + + private: + + bool m_autoCreateTasks; + + Aws::String m_name; + + UpdateWirelessGatewayTaskCreate m_update; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskRequest.h new file mode 100644 index 00000000000..0f6e4b70dd9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API GetWirelessGatewayTaskRequest : public IoTWirelessRequest + { + public: + GetWirelessGatewayTaskRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetWirelessGatewayTask"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to get.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to get.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to get.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayTaskRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayTaskRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to get.

+ */ + inline GetWirelessGatewayTaskRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskResult.h new file mode 100644 index 00000000000..07697a1f8cc --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/GetWirelessGatewayTaskResult.h @@ -0,0 +1,220 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API GetWirelessGatewayTaskResult + { + public: + GetWirelessGatewayTaskResult(); + GetWirelessGatewayTaskResult(const Aws::AmazonWebServiceResult& result); + GetWirelessGatewayTaskResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the wireless gateway.

+ */ + inline const Aws::String& GetWirelessGatewayId() const{ return m_wirelessGatewayId; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayId(const Aws::String& value) { m_wirelessGatewayId = value; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayId(Aws::String&& value) { m_wirelessGatewayId = std::move(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayId(const char* value) { m_wirelessGatewayId.assign(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayTaskResult& WithWirelessGatewayId(const Aws::String& value) { SetWirelessGatewayId(value); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayTaskResult& WithWirelessGatewayId(Aws::String&& value) { SetWirelessGatewayId(std::move(value)); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline GetWirelessGatewayTaskResult& WithWirelessGatewayId(const char* value) { SetWirelessGatewayId(value); return *this;} + + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline const Aws::String& GetWirelessGatewayTaskDefinitionId() const{ return m_wirelessGatewayTaskDefinitionId; } + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(const Aws::String& value) { m_wirelessGatewayTaskDefinitionId = value; } + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(Aws::String&& value) { m_wirelessGatewayTaskDefinitionId = std::move(value); } + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline void SetWirelessGatewayTaskDefinitionId(const char* value) { m_wirelessGatewayTaskDefinitionId.assign(value); } + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline GetWirelessGatewayTaskResult& WithWirelessGatewayTaskDefinitionId(const Aws::String& value) { SetWirelessGatewayTaskDefinitionId(value); return *this;} + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline GetWirelessGatewayTaskResult& WithWirelessGatewayTaskDefinitionId(Aws::String&& value) { SetWirelessGatewayTaskDefinitionId(std::move(value)); return *this;} + + /** + *

The ID of the WirelessGatewayTask.

+ */ + inline GetWirelessGatewayTaskResult& WithWirelessGatewayTaskDefinitionId(const char* value) { SetWirelessGatewayTaskDefinitionId(value); return *this;} + + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline const Aws::String& GetLastUplinkReceivedAt() const{ return m_lastUplinkReceivedAt; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const Aws::String& value) { m_lastUplinkReceivedAt = value; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(Aws::String&& value) { m_lastUplinkReceivedAt = std::move(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const char* value) { m_lastUplinkReceivedAt.assign(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessGatewayTaskResult& WithLastUplinkReceivedAt(const Aws::String& value) { SetLastUplinkReceivedAt(value); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessGatewayTaskResult& WithLastUplinkReceivedAt(Aws::String&& value) { SetLastUplinkReceivedAt(std::move(value)); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline GetWirelessGatewayTaskResult& WithLastUplinkReceivedAt(const char* value) { SetLastUplinkReceivedAt(value); return *this;} + + + /** + *

The date and time when the task was created.

+ */ + inline const Aws::String& GetTaskCreatedAt() const{ return m_taskCreatedAt; } + + /** + *

The date and time when the task was created.

+ */ + inline void SetTaskCreatedAt(const Aws::String& value) { m_taskCreatedAt = value; } + + /** + *

The date and time when the task was created.

+ */ + inline void SetTaskCreatedAt(Aws::String&& value) { m_taskCreatedAt = std::move(value); } + + /** + *

The date and time when the task was created.

+ */ + inline void SetTaskCreatedAt(const char* value) { m_taskCreatedAt.assign(value); } + + /** + *

The date and time when the task was created.

+ */ + inline GetWirelessGatewayTaskResult& WithTaskCreatedAt(const Aws::String& value) { SetTaskCreatedAt(value); return *this;} + + /** + *

The date and time when the task was created.

+ */ + inline GetWirelessGatewayTaskResult& WithTaskCreatedAt(Aws::String&& value) { SetTaskCreatedAt(std::move(value)); return *this;} + + /** + *

The date and time when the task was created.

+ */ + inline GetWirelessGatewayTaskResult& WithTaskCreatedAt(const char* value) { SetTaskCreatedAt(value); return *this;} + + + /** + *

The status of the request.

+ */ + inline const WirelessGatewayTaskStatus& GetStatus() const{ return m_status; } + + /** + *

The status of the request.

+ */ + inline void SetStatus(const WirelessGatewayTaskStatus& value) { m_status = value; } + + /** + *

The status of the request.

+ */ + inline void SetStatus(WirelessGatewayTaskStatus&& value) { m_status = std::move(value); } + + /** + *

The status of the request.

+ */ + inline GetWirelessGatewayTaskResult& WithStatus(const WirelessGatewayTaskStatus& value) { SetStatus(value); return *this;} + + /** + *

The status of the request.

+ */ + inline GetWirelessGatewayTaskResult& WithStatus(WirelessGatewayTaskStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + Aws::String m_wirelessGatewayId; + + Aws::String m_wirelessGatewayTaskDefinitionId; + + Aws::String m_lastUplinkReceivedAt; + + Aws::String m_taskCreatedAt; + + WirelessGatewayTaskStatus m_status; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsRequest.h new file mode 100644 index 00000000000..9a8b3040168 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsRequest.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListDestinationsRequest : public IoTWirelessRequest + { + public: + ListDestinationsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDestinations"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListDestinationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListDestinationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListDestinationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListDestinationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsResult.h new file mode 100644 index 00000000000..d98a2737cda --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDestinationsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListDestinationsResult + { + public: + ListDestinationsResult(); + ListDestinationsResult(const Aws::AmazonWebServiceResult& result); + ListDestinationsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListDestinationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListDestinationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListDestinationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The list of destinations.

+ */ + inline const Aws::Vector& GetDestinationList() const{ return m_destinationList; } + + /** + *

The list of destinations.

+ */ + inline void SetDestinationList(const Aws::Vector& value) { m_destinationList = value; } + + /** + *

The list of destinations.

+ */ + inline void SetDestinationList(Aws::Vector&& value) { m_destinationList = std::move(value); } + + /** + *

The list of destinations.

+ */ + inline ListDestinationsResult& WithDestinationList(const Aws::Vector& value) { SetDestinationList(value); return *this;} + + /** + *

The list of destinations.

+ */ + inline ListDestinationsResult& WithDestinationList(Aws::Vector&& value) { SetDestinationList(std::move(value)); return *this;} + + /** + *

The list of destinations.

+ */ + inline ListDestinationsResult& AddDestinationList(const Destinations& value) { m_destinationList.push_back(value); return *this; } + + /** + *

The list of destinations.

+ */ + inline ListDestinationsResult& AddDestinationList(Destinations&& value) { m_destinationList.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_destinationList; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesRequest.h new file mode 100644 index 00000000000..de49d27ed7d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesRequest.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListDeviceProfilesRequest : public IoTWirelessRequest + { + public: + ListDeviceProfilesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDeviceProfiles"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListDeviceProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListDeviceProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListDeviceProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListDeviceProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesResult.h new file mode 100644 index 00000000000..7c709986ae4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListDeviceProfilesResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListDeviceProfilesResult + { + public: + ListDeviceProfilesResult(); + ListDeviceProfilesResult(const Aws::AmazonWebServiceResult& result); + ListDeviceProfilesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListDeviceProfilesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListDeviceProfilesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListDeviceProfilesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The list of device profiles.

+ */ + inline const Aws::Vector& GetDeviceProfileList() const{ return m_deviceProfileList; } + + /** + *

The list of device profiles.

+ */ + inline void SetDeviceProfileList(const Aws::Vector& value) { m_deviceProfileList = value; } + + /** + *

The list of device profiles.

+ */ + inline void SetDeviceProfileList(Aws::Vector&& value) { m_deviceProfileList = std::move(value); } + + /** + *

The list of device profiles.

+ */ + inline ListDeviceProfilesResult& WithDeviceProfileList(const Aws::Vector& value) { SetDeviceProfileList(value); return *this;} + + /** + *

The list of device profiles.

+ */ + inline ListDeviceProfilesResult& WithDeviceProfileList(Aws::Vector&& value) { SetDeviceProfileList(std::move(value)); return *this;} + + /** + *

The list of device profiles.

+ */ + inline ListDeviceProfilesResult& AddDeviceProfileList(const DeviceProfile& value) { m_deviceProfileList.push_back(value); return *this; } + + /** + *

The list of device profiles.

+ */ + inline ListDeviceProfilesResult& AddDeviceProfileList(DeviceProfile&& value) { m_deviceProfileList.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_deviceProfileList; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsRequest.h new file mode 100644 index 00000000000..a33549af933 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsRequest.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListPartnerAccountsRequest : public IoTWirelessRequest + { + public: + ListPartnerAccountsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListPartnerAccounts"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListPartnerAccountsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListPartnerAccountsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListPartnerAccountsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListPartnerAccountsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsResult.h new file mode 100644 index 00000000000..23b5ed14579 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListPartnerAccountsResult.h @@ -0,0 +1,131 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListPartnerAccountsResult + { + public: + ListPartnerAccountsResult(); + ListPartnerAccountsResult(const Aws::AmazonWebServiceResult& result); + ListPartnerAccountsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListPartnerAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListPartnerAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListPartnerAccountsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline const Aws::Vector& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline void SetSidewalk(const Aws::Vector& value) { m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline void SetSidewalk(Aws::Vector&& value) { m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline ListPartnerAccountsResult& WithSidewalk(const Aws::Vector& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline ListPartnerAccountsResult& WithSidewalk(Aws::Vector&& value) { SetSidewalk(std::move(value)); return *this;} + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline ListPartnerAccountsResult& AddSidewalk(const SidewalkAccountInfoWithFingerprint& value) { m_sidewalk.push_back(value); return *this; } + + /** + *

The Sidewalk account credentials.

The AppServerPrivateKey + * value is empty to protect its security.

+ */ + inline ListPartnerAccountsResult& AddSidewalk(SidewalkAccountInfoWithFingerprint&& value) { m_sidewalk.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_sidewalk; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesRequest.h new file mode 100644 index 00000000000..428485ffae0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesRequest.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListServiceProfilesRequest : public IoTWirelessRequest + { + public: + ListServiceProfilesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListServiceProfiles"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListServiceProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListServiceProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListServiceProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListServiceProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesResult.h new file mode 100644 index 00000000000..5fad6f49bcc --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListServiceProfilesResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListServiceProfilesResult + { + public: + ListServiceProfilesResult(); + ListServiceProfilesResult(const Aws::AmazonWebServiceResult& result); + ListServiceProfilesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListServiceProfilesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListServiceProfilesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListServiceProfilesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The list of service profiles.

+ */ + inline const Aws::Vector& GetServiceProfileList() const{ return m_serviceProfileList; } + + /** + *

The list of service profiles.

+ */ + inline void SetServiceProfileList(const Aws::Vector& value) { m_serviceProfileList = value; } + + /** + *

The list of service profiles.

+ */ + inline void SetServiceProfileList(Aws::Vector&& value) { m_serviceProfileList = std::move(value); } + + /** + *

The list of service profiles.

+ */ + inline ListServiceProfilesResult& WithServiceProfileList(const Aws::Vector& value) { SetServiceProfileList(value); return *this;} + + /** + *

The list of service profiles.

+ */ + inline ListServiceProfilesResult& WithServiceProfileList(Aws::Vector&& value) { SetServiceProfileList(std::move(value)); return *this;} + + /** + *

The list of service profiles.

+ */ + inline ListServiceProfilesResult& AddServiceProfileList(const ServiceProfile& value) { m_serviceProfileList.push_back(value); return *this; } + + /** + *

The list of service profiles.

+ */ + inline ListServiceProfilesResult& AddServiceProfileList(ServiceProfile&& value) { m_serviceProfileList.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_serviceProfileList; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..a35790e25e3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListTagsForResourceRequest : public IoTWirelessRequest + { + public: + ListTagsForResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the resource for which to list tags.

+ */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..a74d2915978 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListTagsForResourceResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListTagsForResourceResult + { + public: + ListTagsForResourceResult(); + ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline void SetTags(const Aws::Vector& value) { m_tags = value; } + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline ListTagsForResourceResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline ListTagsForResourceResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } + + /** + *

The tags attached to the specified resource. Tags are metadata that can be + * used to manage a resource

+ */ + inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_tags; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesRequest.h new file mode 100644 index 00000000000..b7ba5393638 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesRequest.h @@ -0,0 +1,302 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListWirelessDevicesRequest : public IoTWirelessRequest + { + public: + ListWirelessDevicesRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListWirelessDevices"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListWirelessDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline const Aws::String& GetDestinationName() const{ return m_destinationName; } + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline ListWirelessDevicesRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline ListWirelessDevicesRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} + + /** + *

A filter to list only the wireless devices that use this destination.

+ */ + inline ListWirelessDevicesRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} + + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline const Aws::String& GetDeviceProfileId() const{ return m_deviceProfileId; } + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline bool DeviceProfileIdHasBeenSet() const { return m_deviceProfileIdHasBeenSet; } + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline void SetDeviceProfileId(const Aws::String& value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId = value; } + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline void SetDeviceProfileId(Aws::String&& value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId = std::move(value); } + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline void SetDeviceProfileId(const char* value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId.assign(value); } + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline ListWirelessDevicesRequest& WithDeviceProfileId(const Aws::String& value) { SetDeviceProfileId(value); return *this;} + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline ListWirelessDevicesRequest& WithDeviceProfileId(Aws::String&& value) { SetDeviceProfileId(std::move(value)); return *this;} + + /** + *

A filter to list only the wireless devices that use this device profile.

+ */ + inline ListWirelessDevicesRequest& WithDeviceProfileId(const char* value) { SetDeviceProfileId(value); return *this;} + + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline const Aws::String& GetServiceProfileId() const{ return m_serviceProfileId; } + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline bool ServiceProfileIdHasBeenSet() const { return m_serviceProfileIdHasBeenSet; } + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline void SetServiceProfileId(const Aws::String& value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId = value; } + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline void SetServiceProfileId(Aws::String&& value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId = std::move(value); } + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline void SetServiceProfileId(const char* value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId.assign(value); } + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline ListWirelessDevicesRequest& WithServiceProfileId(const Aws::String& value) { SetServiceProfileId(value); return *this;} + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline ListWirelessDevicesRequest& WithServiceProfileId(Aws::String&& value) { SetServiceProfileId(std::move(value)); return *this;} + + /** + *

A filter to list only the wireless devices that use this service profile.

+ */ + inline ListWirelessDevicesRequest& WithServiceProfileId(const char* value) { SetServiceProfileId(value); return *this;} + + + /** + *

A filter to list only the wireless devices that use this wireless device + * type.

+ */ + inline const WirelessDeviceType& GetWirelessDeviceType() const{ return m_wirelessDeviceType; } + + /** + *

A filter to list only the wireless devices that use this wireless device + * type.

+ */ + inline bool WirelessDeviceTypeHasBeenSet() const { return m_wirelessDeviceTypeHasBeenSet; } + + /** + *

A filter to list only the wireless devices that use this wireless device + * type.

+ */ + inline void SetWirelessDeviceType(const WirelessDeviceType& value) { m_wirelessDeviceTypeHasBeenSet = true; m_wirelessDeviceType = value; } + + /** + *

A filter to list only the wireless devices that use this wireless device + * type.

+ */ + inline void SetWirelessDeviceType(WirelessDeviceType&& value) { m_wirelessDeviceTypeHasBeenSet = true; m_wirelessDeviceType = std::move(value); } + + /** + *

A filter to list only the wireless devices that use this wireless device + * type.

+ */ + inline ListWirelessDevicesRequest& WithWirelessDeviceType(const WirelessDeviceType& value) { SetWirelessDeviceType(value); return *this;} + + /** + *

A filter to list only the wireless devices that use this wireless device + * type.

+ */ + inline ListWirelessDevicesRequest& WithWirelessDeviceType(WirelessDeviceType&& value) { SetWirelessDeviceType(std::move(value)); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + Aws::String m_destinationName; + bool m_destinationNameHasBeenSet; + + Aws::String m_deviceProfileId; + bool m_deviceProfileIdHasBeenSet; + + Aws::String m_serviceProfileId; + bool m_serviceProfileIdHasBeenSet; + + WirelessDeviceType m_wirelessDeviceType; + bool m_wirelessDeviceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesResult.h new file mode 100644 index 00000000000..d4db07b4063 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessDevicesResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListWirelessDevicesResult + { + public: + ListWirelessDevicesResult(); + ListWirelessDevicesResult(const Aws::AmazonWebServiceResult& result); + ListWirelessDevicesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessDevicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessDevicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessDevicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The ID of the wireless device.

+ */ + inline const Aws::Vector& GetWirelessDeviceList() const{ return m_wirelessDeviceList; } + + /** + *

The ID of the wireless device.

+ */ + inline void SetWirelessDeviceList(const Aws::Vector& value) { m_wirelessDeviceList = value; } + + /** + *

The ID of the wireless device.

+ */ + inline void SetWirelessDeviceList(Aws::Vector&& value) { m_wirelessDeviceList = std::move(value); } + + /** + *

The ID of the wireless device.

+ */ + inline ListWirelessDevicesResult& WithWirelessDeviceList(const Aws::Vector& value) { SetWirelessDeviceList(value); return *this;} + + /** + *

The ID of the wireless device.

+ */ + inline ListWirelessDevicesResult& WithWirelessDeviceList(Aws::Vector&& value) { SetWirelessDeviceList(std::move(value)); return *this;} + + /** + *

The ID of the wireless device.

+ */ + inline ListWirelessDevicesResult& AddWirelessDeviceList(const WirelessDeviceStatistics& value) { m_wirelessDeviceList.push_back(value); return *this; } + + /** + *

The ID of the wireless device.

+ */ + inline ListWirelessDevicesResult& AddWirelessDeviceList(WirelessDeviceStatistics&& value) { m_wirelessDeviceList.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_wirelessDeviceList; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsRequest.h new file mode 100644 index 00000000000..7fc1c1b7509 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsRequest.h @@ -0,0 +1,170 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListWirelessGatewayTaskDefinitionsRequest : public IoTWirelessRequest + { + public: + ListWirelessGatewayTaskDefinitionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListWirelessGatewayTaskDefinitions"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListWirelessGatewayTaskDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessGatewayTaskDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessGatewayTaskDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessGatewayTaskDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

A filter to list only the wireless gateway task definitions that use this + * task definition type.

+ */ + inline const WirelessGatewayTaskDefinitionType& GetTaskDefinitionType() const{ return m_taskDefinitionType; } + + /** + *

A filter to list only the wireless gateway task definitions that use this + * task definition type.

+ */ + inline bool TaskDefinitionTypeHasBeenSet() const { return m_taskDefinitionTypeHasBeenSet; } + + /** + *

A filter to list only the wireless gateway task definitions that use this + * task definition type.

+ */ + inline void SetTaskDefinitionType(const WirelessGatewayTaskDefinitionType& value) { m_taskDefinitionTypeHasBeenSet = true; m_taskDefinitionType = value; } + + /** + *

A filter to list only the wireless gateway task definitions that use this + * task definition type.

+ */ + inline void SetTaskDefinitionType(WirelessGatewayTaskDefinitionType&& value) { m_taskDefinitionTypeHasBeenSet = true; m_taskDefinitionType = std::move(value); } + + /** + *

A filter to list only the wireless gateway task definitions that use this + * task definition type.

+ */ + inline ListWirelessGatewayTaskDefinitionsRequest& WithTaskDefinitionType(const WirelessGatewayTaskDefinitionType& value) { SetTaskDefinitionType(value); return *this;} + + /** + *

A filter to list only the wireless gateway task definitions that use this + * task definition type.

+ */ + inline ListWirelessGatewayTaskDefinitionsRequest& WithTaskDefinitionType(WirelessGatewayTaskDefinitionType&& value) { SetTaskDefinitionType(std::move(value)); return *this;} + + private: + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + WirelessGatewayTaskDefinitionType m_taskDefinitionType; + bool m_taskDefinitionTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsResult.h new file mode 100644 index 00000000000..53651c5a44f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewayTaskDefinitionsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListWirelessGatewayTaskDefinitionsResult + { + public: + ListWirelessGatewayTaskDefinitionsResult(); + ListWirelessGatewayTaskDefinitionsResult(const Aws::AmazonWebServiceResult& result); + ListWirelessGatewayTaskDefinitionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The list of task definitions.

+ */ + inline const Aws::Vector& GetTaskDefinitions() const{ return m_taskDefinitions; } + + /** + *

The list of task definitions.

+ */ + inline void SetTaskDefinitions(const Aws::Vector& value) { m_taskDefinitions = value; } + + /** + *

The list of task definitions.

+ */ + inline void SetTaskDefinitions(Aws::Vector&& value) { m_taskDefinitions = std::move(value); } + + /** + *

The list of task definitions.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& WithTaskDefinitions(const Aws::Vector& value) { SetTaskDefinitions(value); return *this;} + + /** + *

The list of task definitions.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& WithTaskDefinitions(Aws::Vector&& value) { SetTaskDefinitions(std::move(value)); return *this;} + + /** + *

The list of task definitions.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& AddTaskDefinitions(const UpdateWirelessGatewayTaskEntry& value) { m_taskDefinitions.push_back(value); return *this; } + + /** + *

The list of task definitions.

+ */ + inline ListWirelessGatewayTaskDefinitionsResult& AddTaskDefinitions(UpdateWirelessGatewayTaskEntry&& value) { m_taskDefinitions.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_taskDefinitions; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysRequest.h new file mode 100644 index 00000000000..e6697cc10ee --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysRequest.h @@ -0,0 +1,129 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API ListWirelessGatewaysRequest : public IoTWirelessRequest + { + public: + ListWirelessGatewaysRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListWirelessGateways"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessGatewaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessGatewaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

To retrieve the next set of results, the nextToken value from a + * previous response; otherwise null to receive the first set of + * results.

+ */ + inline ListWirelessGatewaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The maximum number of results to return in this operation.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of results to return in this operation.

+ */ + inline ListWirelessGatewaysRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysResult.h new file mode 100644 index 00000000000..968d3c29276 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ListWirelessGatewaysResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API ListWirelessGatewaysResult + { + public: + ListWirelessGatewaysResult(); + ListWirelessGatewaysResult(const Aws::AmazonWebServiceResult& result); + ListWirelessGatewaysResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessGatewaysResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessGatewaysResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The token to use to get the next set of results, or null if there are + * no additional results.

+ */ + inline ListWirelessGatewaysResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

The ID of the wireless gateway.

+ */ + inline const Aws::Vector& GetWirelessGatewayList() const{ return m_wirelessGatewayList; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayList(const Aws::Vector& value) { m_wirelessGatewayList = value; } + + /** + *

The ID of the wireless gateway.

+ */ + inline void SetWirelessGatewayList(Aws::Vector&& value) { m_wirelessGatewayList = std::move(value); } + + /** + *

The ID of the wireless gateway.

+ */ + inline ListWirelessGatewaysResult& WithWirelessGatewayList(const Aws::Vector& value) { SetWirelessGatewayList(value); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline ListWirelessGatewaysResult& WithWirelessGatewayList(Aws::Vector&& value) { SetWirelessGatewayList(std::move(value)); return *this;} + + /** + *

The ID of the wireless gateway.

+ */ + inline ListWirelessGatewaysResult& AddWirelessGatewayList(const WirelessGatewayStatistics& value) { m_wirelessGatewayList.push_back(value); return *this; } + + /** + *

The ID of the wireless gateway.

+ */ + inline ListWirelessGatewaysResult& AddWirelessGatewayList(WirelessGatewayStatistics&& value) { m_wirelessGatewayList.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_wirelessGatewayList; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDevice.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDevice.h new file mode 100644 index 00000000000..59b07cbdeab --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDevice.h @@ -0,0 +1,316 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRa object for create functions.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANDevice + { + public: + LoRaWANDevice(); + LoRaWANDevice(Aws::Utils::Json::JsonView jsonValue); + LoRaWANDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The DevEUI value.

+ */ + inline const Aws::String& GetDevEui() const{ return m_devEui; } + + /** + *

The DevEUI value.

+ */ + inline bool DevEuiHasBeenSet() const { return m_devEuiHasBeenSet; } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(const Aws::String& value) { m_devEuiHasBeenSet = true; m_devEui = value; } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(Aws::String&& value) { m_devEuiHasBeenSet = true; m_devEui = std::move(value); } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(const char* value) { m_devEuiHasBeenSet = true; m_devEui.assign(value); } + + /** + *

The DevEUI value.

+ */ + inline LoRaWANDevice& WithDevEui(const Aws::String& value) { SetDevEui(value); return *this;} + + /** + *

The DevEUI value.

+ */ + inline LoRaWANDevice& WithDevEui(Aws::String&& value) { SetDevEui(std::move(value)); return *this;} + + /** + *

The DevEUI value.

+ */ + inline LoRaWANDevice& WithDevEui(const char* value) { SetDevEui(value); return *this;} + + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline const Aws::String& GetDeviceProfileId() const{ return m_deviceProfileId; } + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline bool DeviceProfileIdHasBeenSet() const { return m_deviceProfileIdHasBeenSet; } + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline void SetDeviceProfileId(const Aws::String& value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId = value; } + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline void SetDeviceProfileId(Aws::String&& value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId = std::move(value); } + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline void SetDeviceProfileId(const char* value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId.assign(value); } + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline LoRaWANDevice& WithDeviceProfileId(const Aws::String& value) { SetDeviceProfileId(value); return *this;} + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline LoRaWANDevice& WithDeviceProfileId(Aws::String&& value) { SetDeviceProfileId(std::move(value)); return *this;} + + /** + *

The ID of the device profile for the new wireless device.

+ */ + inline LoRaWANDevice& WithDeviceProfileId(const char* value) { SetDeviceProfileId(value); return *this;} + + + /** + *

The ID of the service profile.

+ */ + inline const Aws::String& GetServiceProfileId() const{ return m_serviceProfileId; } + + /** + *

The ID of the service profile.

+ */ + inline bool ServiceProfileIdHasBeenSet() const { return m_serviceProfileIdHasBeenSet; } + + /** + *

The ID of the service profile.

+ */ + inline void SetServiceProfileId(const Aws::String& value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId = value; } + + /** + *

The ID of the service profile.

+ */ + inline void SetServiceProfileId(Aws::String&& value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId = std::move(value); } + + /** + *

The ID of the service profile.

+ */ + inline void SetServiceProfileId(const char* value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId.assign(value); } + + /** + *

The ID of the service profile.

+ */ + inline LoRaWANDevice& WithServiceProfileId(const Aws::String& value) { SetServiceProfileId(value); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline LoRaWANDevice& WithServiceProfileId(Aws::String&& value) { SetServiceProfileId(std::move(value)); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline LoRaWANDevice& WithServiceProfileId(const char* value) { SetServiceProfileId(value); return *this;} + + + /** + *

OTAA device object for v1.1 for create APIs

+ */ + inline const OtaaV1_1& GetOtaaV1_1() const{ return m_otaaV1_1; } + + /** + *

OTAA device object for v1.1 for create APIs

+ */ + inline bool OtaaV1_1HasBeenSet() const { return m_otaaV1_1HasBeenSet; } + + /** + *

OTAA device object for v1.1 for create APIs

+ */ + inline void SetOtaaV1_1(const OtaaV1_1& value) { m_otaaV1_1HasBeenSet = true; m_otaaV1_1 = value; } + + /** + *

OTAA device object for v1.1 for create APIs

+ */ + inline void SetOtaaV1_1(OtaaV1_1&& value) { m_otaaV1_1HasBeenSet = true; m_otaaV1_1 = std::move(value); } + + /** + *

OTAA device object for v1.1 for create APIs

+ */ + inline LoRaWANDevice& WithOtaaV1_1(const OtaaV1_1& value) { SetOtaaV1_1(value); return *this;} + + /** + *

OTAA device object for v1.1 for create APIs

+ */ + inline LoRaWANDevice& WithOtaaV1_1(OtaaV1_1&& value) { SetOtaaV1_1(std::move(value)); return *this;} + + + /** + *

OTAA device object for create APIs for v1.0.x

+ */ + inline const OtaaV1_0_x& GetOtaaV1_0_x() const{ return m_otaaV1_0_x; } + + /** + *

OTAA device object for create APIs for v1.0.x

+ */ + inline bool OtaaV1_0_xHasBeenSet() const { return m_otaaV1_0_xHasBeenSet; } + + /** + *

OTAA device object for create APIs for v1.0.x

+ */ + inline void SetOtaaV1_0_x(const OtaaV1_0_x& value) { m_otaaV1_0_xHasBeenSet = true; m_otaaV1_0_x = value; } + + /** + *

OTAA device object for create APIs for v1.0.x

+ */ + inline void SetOtaaV1_0_x(OtaaV1_0_x&& value) { m_otaaV1_0_xHasBeenSet = true; m_otaaV1_0_x = std::move(value); } + + /** + *

OTAA device object for create APIs for v1.0.x

+ */ + inline LoRaWANDevice& WithOtaaV1_0_x(const OtaaV1_0_x& value) { SetOtaaV1_0_x(value); return *this;} + + /** + *

OTAA device object for create APIs for v1.0.x

+ */ + inline LoRaWANDevice& WithOtaaV1_0_x(OtaaV1_0_x&& value) { SetOtaaV1_0_x(std::move(value)); return *this;} + + + /** + *

ABP device object for create APIs for v1.1

+ */ + inline const AbpV1_1& GetAbpV1_1() const{ return m_abpV1_1; } + + /** + *

ABP device object for create APIs for v1.1

+ */ + inline bool AbpV1_1HasBeenSet() const { return m_abpV1_1HasBeenSet; } + + /** + *

ABP device object for create APIs for v1.1

+ */ + inline void SetAbpV1_1(const AbpV1_1& value) { m_abpV1_1HasBeenSet = true; m_abpV1_1 = value; } + + /** + *

ABP device object for create APIs for v1.1

+ */ + inline void SetAbpV1_1(AbpV1_1&& value) { m_abpV1_1HasBeenSet = true; m_abpV1_1 = std::move(value); } + + /** + *

ABP device object for create APIs for v1.1

+ */ + inline LoRaWANDevice& WithAbpV1_1(const AbpV1_1& value) { SetAbpV1_1(value); return *this;} + + /** + *

ABP device object for create APIs for v1.1

+ */ + inline LoRaWANDevice& WithAbpV1_1(AbpV1_1&& value) { SetAbpV1_1(std::move(value)); return *this;} + + + /** + *

LoRa object for create APIs

+ */ + inline const AbpV1_0_x& GetAbpV1_0_x() const{ return m_abpV1_0_x; } + + /** + *

LoRa object for create APIs

+ */ + inline bool AbpV1_0_xHasBeenSet() const { return m_abpV1_0_xHasBeenSet; } + + /** + *

LoRa object for create APIs

+ */ + inline void SetAbpV1_0_x(const AbpV1_0_x& value) { m_abpV1_0_xHasBeenSet = true; m_abpV1_0_x = value; } + + /** + *

LoRa object for create APIs

+ */ + inline void SetAbpV1_0_x(AbpV1_0_x&& value) { m_abpV1_0_xHasBeenSet = true; m_abpV1_0_x = std::move(value); } + + /** + *

LoRa object for create APIs

+ */ + inline LoRaWANDevice& WithAbpV1_0_x(const AbpV1_0_x& value) { SetAbpV1_0_x(value); return *this;} + + /** + *

LoRa object for create APIs

+ */ + inline LoRaWANDevice& WithAbpV1_0_x(AbpV1_0_x&& value) { SetAbpV1_0_x(std::move(value)); return *this;} + + private: + + Aws::String m_devEui; + bool m_devEuiHasBeenSet; + + Aws::String m_deviceProfileId; + bool m_deviceProfileIdHasBeenSet; + + Aws::String m_serviceProfileId; + bool m_serviceProfileIdHasBeenSet; + + OtaaV1_1 m_otaaV1_1; + bool m_otaaV1_1HasBeenSet; + + OtaaV1_0_x m_otaaV1_0_x; + bool m_otaaV1_0_xHasBeenSet; + + AbpV1_1 m_abpV1_1; + bool m_abpV1_1HasBeenSet; + + AbpV1_0_x m_abpV1_0_x; + bool m_abpV1_0_xHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceMetadata.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceMetadata.h new file mode 100644 index 00000000000..8010c70c437 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceMetadata.h @@ -0,0 +1,250 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWAN device metatdata.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANDeviceMetadata + { + public: + LoRaWANDeviceMetadata(); + LoRaWANDeviceMetadata(Aws::Utils::Json::JsonView jsonValue); + LoRaWANDeviceMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The DevEUI value.

+ */ + inline const Aws::String& GetDevEui() const{ return m_devEui; } + + /** + *

The DevEUI value.

+ */ + inline bool DevEuiHasBeenSet() const { return m_devEuiHasBeenSet; } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(const Aws::String& value) { m_devEuiHasBeenSet = true; m_devEui = value; } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(Aws::String&& value) { m_devEuiHasBeenSet = true; m_devEui = std::move(value); } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(const char* value) { m_devEuiHasBeenSet = true; m_devEui.assign(value); } + + /** + *

The DevEUI value.

+ */ + inline LoRaWANDeviceMetadata& WithDevEui(const Aws::String& value) { SetDevEui(value); return *this;} + + /** + *

The DevEUI value.

+ */ + inline LoRaWANDeviceMetadata& WithDevEui(Aws::String&& value) { SetDevEui(std::move(value)); return *this;} + + /** + *

The DevEUI value.

+ */ + inline LoRaWANDeviceMetadata& WithDevEui(const char* value) { SetDevEui(value); return *this;} + + + /** + *

The FPort value.

+ */ + inline int GetFPort() const{ return m_fPort; } + + /** + *

The FPort value.

+ */ + inline bool FPortHasBeenSet() const { return m_fPortHasBeenSet; } + + /** + *

The FPort value.

+ */ + inline void SetFPort(int value) { m_fPortHasBeenSet = true; m_fPort = value; } + + /** + *

The FPort value.

+ */ + inline LoRaWANDeviceMetadata& WithFPort(int value) { SetFPort(value); return *this;} + + + /** + *

The DataRate value.

+ */ + inline int GetDataRate() const{ return m_dataRate; } + + /** + *

The DataRate value.

+ */ + inline bool DataRateHasBeenSet() const { return m_dataRateHasBeenSet; } + + /** + *

The DataRate value.

+ */ + inline void SetDataRate(int value) { m_dataRateHasBeenSet = true; m_dataRate = value; } + + /** + *

The DataRate value.

+ */ + inline LoRaWANDeviceMetadata& WithDataRate(int value) { SetDataRate(value); return *this;} + + + /** + *

The device's channel frequency in Hz.

+ */ + inline int GetFrequency() const{ return m_frequency; } + + /** + *

The device's channel frequency in Hz.

+ */ + inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } + + /** + *

The device's channel frequency in Hz.

+ */ + inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; } + + /** + *

The device's channel frequency in Hz.

+ */ + inline LoRaWANDeviceMetadata& WithFrequency(int value) { SetFrequency(value); return *this;} + + + /** + *

The date and time of the metadata.

+ */ + inline const Aws::String& GetTimestamp() const{ return m_timestamp; } + + /** + *

The date and time of the metadata.

+ */ + inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } + + /** + *

The date and time of the metadata.

+ */ + inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; } + + /** + *

The date and time of the metadata.

+ */ + inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } + + /** + *

The date and time of the metadata.

+ */ + inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); } + + /** + *

The date and time of the metadata.

+ */ + inline LoRaWANDeviceMetadata& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;} + + /** + *

The date and time of the metadata.

+ */ + inline LoRaWANDeviceMetadata& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;} + + /** + *

The date and time of the metadata.

+ */ + inline LoRaWANDeviceMetadata& WithTimestamp(const char* value) { SetTimestamp(value); return *this;} + + + /** + *

Information about the gateways accessed by the device.

+ */ + inline const Aws::Vector& GetGateways() const{ return m_gateways; } + + /** + *

Information about the gateways accessed by the device.

+ */ + inline bool GatewaysHasBeenSet() const { return m_gatewaysHasBeenSet; } + + /** + *

Information about the gateways accessed by the device.

+ */ + inline void SetGateways(const Aws::Vector& value) { m_gatewaysHasBeenSet = true; m_gateways = value; } + + /** + *

Information about the gateways accessed by the device.

+ */ + inline void SetGateways(Aws::Vector&& value) { m_gatewaysHasBeenSet = true; m_gateways = std::move(value); } + + /** + *

Information about the gateways accessed by the device.

+ */ + inline LoRaWANDeviceMetadata& WithGateways(const Aws::Vector& value) { SetGateways(value); return *this;} + + /** + *

Information about the gateways accessed by the device.

+ */ + inline LoRaWANDeviceMetadata& WithGateways(Aws::Vector&& value) { SetGateways(std::move(value)); return *this;} + + /** + *

Information about the gateways accessed by the device.

+ */ + inline LoRaWANDeviceMetadata& AddGateways(const LoRaWANGatewayMetadata& value) { m_gatewaysHasBeenSet = true; m_gateways.push_back(value); return *this; } + + /** + *

Information about the gateways accessed by the device.

+ */ + inline LoRaWANDeviceMetadata& AddGateways(LoRaWANGatewayMetadata&& value) { m_gatewaysHasBeenSet = true; m_gateways.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_devEui; + bool m_devEuiHasBeenSet; + + int m_fPort; + bool m_fPortHasBeenSet; + + int m_dataRate; + bool m_dataRateHasBeenSet; + + int m_frequency; + bool m_frequencyHasBeenSet; + + Aws::String m_timestamp; + bool m_timestampHasBeenSet; + + Aws::Vector m_gateways; + bool m_gatewaysHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceProfile.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceProfile.h new file mode 100644 index 00000000000..65956ed8c8e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANDeviceProfile.h @@ -0,0 +1,584 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANDeviceProfile object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANDeviceProfile + { + public: + LoRaWANDeviceProfile(); + LoRaWANDeviceProfile(Aws::Utils::Json::JsonView jsonValue); + LoRaWANDeviceProfile& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The SupportsClassB value.

+ */ + inline bool GetSupportsClassB() const{ return m_supportsClassB; } + + /** + *

The SupportsClassB value.

+ */ + inline bool SupportsClassBHasBeenSet() const { return m_supportsClassBHasBeenSet; } + + /** + *

The SupportsClassB value.

+ */ + inline void SetSupportsClassB(bool value) { m_supportsClassBHasBeenSet = true; m_supportsClassB = value; } + + /** + *

The SupportsClassB value.

+ */ + inline LoRaWANDeviceProfile& WithSupportsClassB(bool value) { SetSupportsClassB(value); return *this;} + + + /** + *

The ClassBTimeout value.

+ */ + inline int GetClassBTimeout() const{ return m_classBTimeout; } + + /** + *

The ClassBTimeout value.

+ */ + inline bool ClassBTimeoutHasBeenSet() const { return m_classBTimeoutHasBeenSet; } + + /** + *

The ClassBTimeout value.

+ */ + inline void SetClassBTimeout(int value) { m_classBTimeoutHasBeenSet = true; m_classBTimeout = value; } + + /** + *

The ClassBTimeout value.

+ */ + inline LoRaWANDeviceProfile& WithClassBTimeout(int value) { SetClassBTimeout(value); return *this;} + + + /** + *

The PingSlotPeriod value.

+ */ + inline int GetPingSlotPeriod() const{ return m_pingSlotPeriod; } + + /** + *

The PingSlotPeriod value.

+ */ + inline bool PingSlotPeriodHasBeenSet() const { return m_pingSlotPeriodHasBeenSet; } + + /** + *

The PingSlotPeriod value.

+ */ + inline void SetPingSlotPeriod(int value) { m_pingSlotPeriodHasBeenSet = true; m_pingSlotPeriod = value; } + + /** + *

The PingSlotPeriod value.

+ */ + inline LoRaWANDeviceProfile& WithPingSlotPeriod(int value) { SetPingSlotPeriod(value); return *this;} + + + /** + *

The PingSlotDR value.

+ */ + inline int GetPingSlotDr() const{ return m_pingSlotDr; } + + /** + *

The PingSlotDR value.

+ */ + inline bool PingSlotDrHasBeenSet() const { return m_pingSlotDrHasBeenSet; } + + /** + *

The PingSlotDR value.

+ */ + inline void SetPingSlotDr(int value) { m_pingSlotDrHasBeenSet = true; m_pingSlotDr = value; } + + /** + *

The PingSlotDR value.

+ */ + inline LoRaWANDeviceProfile& WithPingSlotDr(int value) { SetPingSlotDr(value); return *this;} + + + /** + *

The PingSlotFreq value.

+ */ + inline int GetPingSlotFreq() const{ return m_pingSlotFreq; } + + /** + *

The PingSlotFreq value.

+ */ + inline bool PingSlotFreqHasBeenSet() const { return m_pingSlotFreqHasBeenSet; } + + /** + *

The PingSlotFreq value.

+ */ + inline void SetPingSlotFreq(int value) { m_pingSlotFreqHasBeenSet = true; m_pingSlotFreq = value; } + + /** + *

The PingSlotFreq value.

+ */ + inline LoRaWANDeviceProfile& WithPingSlotFreq(int value) { SetPingSlotFreq(value); return *this;} + + + /** + *

The SupportsClassC value.

+ */ + inline bool GetSupportsClassC() const{ return m_supportsClassC; } + + /** + *

The SupportsClassC value.

+ */ + inline bool SupportsClassCHasBeenSet() const { return m_supportsClassCHasBeenSet; } + + /** + *

The SupportsClassC value.

+ */ + inline void SetSupportsClassC(bool value) { m_supportsClassCHasBeenSet = true; m_supportsClassC = value; } + + /** + *

The SupportsClassC value.

+ */ + inline LoRaWANDeviceProfile& WithSupportsClassC(bool value) { SetSupportsClassC(value); return *this;} + + + /** + *

The ClassCTimeout value.

+ */ + inline int GetClassCTimeout() const{ return m_classCTimeout; } + + /** + *

The ClassCTimeout value.

+ */ + inline bool ClassCTimeoutHasBeenSet() const { return m_classCTimeoutHasBeenSet; } + + /** + *

The ClassCTimeout value.

+ */ + inline void SetClassCTimeout(int value) { m_classCTimeoutHasBeenSet = true; m_classCTimeout = value; } + + /** + *

The ClassCTimeout value.

+ */ + inline LoRaWANDeviceProfile& WithClassCTimeout(int value) { SetClassCTimeout(value); return *this;} + + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline const Aws::String& GetMacVersion() const{ return m_macVersion; } + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline bool MacVersionHasBeenSet() const { return m_macVersionHasBeenSet; } + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline void SetMacVersion(const Aws::String& value) { m_macVersionHasBeenSet = true; m_macVersion = value; } + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline void SetMacVersion(Aws::String&& value) { m_macVersionHasBeenSet = true; m_macVersion = std::move(value); } + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline void SetMacVersion(const char* value) { m_macVersionHasBeenSet = true; m_macVersion.assign(value); } + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline LoRaWANDeviceProfile& WithMacVersion(const Aws::String& value) { SetMacVersion(value); return *this;} + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline LoRaWANDeviceProfile& WithMacVersion(Aws::String&& value) { SetMacVersion(std::move(value)); return *this;} + + /** + *

The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device + * profile.

+ */ + inline LoRaWANDeviceProfile& WithMacVersion(const char* value) { SetMacVersion(value); return *this;} + + + /** + *

The version of regional parameters.

+ */ + inline const Aws::String& GetRegParamsRevision() const{ return m_regParamsRevision; } + + /** + *

The version of regional parameters.

+ */ + inline bool RegParamsRevisionHasBeenSet() const { return m_regParamsRevisionHasBeenSet; } + + /** + *

The version of regional parameters.

+ */ + inline void SetRegParamsRevision(const Aws::String& value) { m_regParamsRevisionHasBeenSet = true; m_regParamsRevision = value; } + + /** + *

The version of regional parameters.

+ */ + inline void SetRegParamsRevision(Aws::String&& value) { m_regParamsRevisionHasBeenSet = true; m_regParamsRevision = std::move(value); } + + /** + *

The version of regional parameters.

+ */ + inline void SetRegParamsRevision(const char* value) { m_regParamsRevisionHasBeenSet = true; m_regParamsRevision.assign(value); } + + /** + *

The version of regional parameters.

+ */ + inline LoRaWANDeviceProfile& WithRegParamsRevision(const Aws::String& value) { SetRegParamsRevision(value); return *this;} + + /** + *

The version of regional parameters.

+ */ + inline LoRaWANDeviceProfile& WithRegParamsRevision(Aws::String&& value) { SetRegParamsRevision(std::move(value)); return *this;} + + /** + *

The version of regional parameters.

+ */ + inline LoRaWANDeviceProfile& WithRegParamsRevision(const char* value) { SetRegParamsRevision(value); return *this;} + + + /** + *

The RXDelay1 value.

+ */ + inline int GetRxDelay1() const{ return m_rxDelay1; } + + /** + *

The RXDelay1 value.

+ */ + inline bool RxDelay1HasBeenSet() const { return m_rxDelay1HasBeenSet; } + + /** + *

The RXDelay1 value.

+ */ + inline void SetRxDelay1(int value) { m_rxDelay1HasBeenSet = true; m_rxDelay1 = value; } + + /** + *

The RXDelay1 value.

+ */ + inline LoRaWANDeviceProfile& WithRxDelay1(int value) { SetRxDelay1(value); return *this;} + + + /** + *

The RXDROffset1 value.

+ */ + inline int GetRxDrOffset1() const{ return m_rxDrOffset1; } + + /** + *

The RXDROffset1 value.

+ */ + inline bool RxDrOffset1HasBeenSet() const { return m_rxDrOffset1HasBeenSet; } + + /** + *

The RXDROffset1 value.

+ */ + inline void SetRxDrOffset1(int value) { m_rxDrOffset1HasBeenSet = true; m_rxDrOffset1 = value; } + + /** + *

The RXDROffset1 value.

+ */ + inline LoRaWANDeviceProfile& WithRxDrOffset1(int value) { SetRxDrOffset1(value); return *this;} + + + /** + *

The RXDataRate2 value.

+ */ + inline int GetRxDataRate2() const{ return m_rxDataRate2; } + + /** + *

The RXDataRate2 value.

+ */ + inline bool RxDataRate2HasBeenSet() const { return m_rxDataRate2HasBeenSet; } + + /** + *

The RXDataRate2 value.

+ */ + inline void SetRxDataRate2(int value) { m_rxDataRate2HasBeenSet = true; m_rxDataRate2 = value; } + + /** + *

The RXDataRate2 value.

+ */ + inline LoRaWANDeviceProfile& WithRxDataRate2(int value) { SetRxDataRate2(value); return *this;} + + + /** + *

The RXFreq2 value.

+ */ + inline int GetRxFreq2() const{ return m_rxFreq2; } + + /** + *

The RXFreq2 value.

+ */ + inline bool RxFreq2HasBeenSet() const { return m_rxFreq2HasBeenSet; } + + /** + *

The RXFreq2 value.

+ */ + inline void SetRxFreq2(int value) { m_rxFreq2HasBeenSet = true; m_rxFreq2 = value; } + + /** + *

The RXFreq2 value.

+ */ + inline LoRaWANDeviceProfile& WithRxFreq2(int value) { SetRxFreq2(value); return *this;} + + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline const Aws::Vector& GetFactoryPresetFreqsList() const{ return m_factoryPresetFreqsList; } + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline bool FactoryPresetFreqsListHasBeenSet() const { return m_factoryPresetFreqsListHasBeenSet; } + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline void SetFactoryPresetFreqsList(const Aws::Vector& value) { m_factoryPresetFreqsListHasBeenSet = true; m_factoryPresetFreqsList = value; } + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline void SetFactoryPresetFreqsList(Aws::Vector&& value) { m_factoryPresetFreqsListHasBeenSet = true; m_factoryPresetFreqsList = std::move(value); } + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline LoRaWANDeviceProfile& WithFactoryPresetFreqsList(const Aws::Vector& value) { SetFactoryPresetFreqsList(value); return *this;} + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline LoRaWANDeviceProfile& WithFactoryPresetFreqsList(Aws::Vector&& value) { SetFactoryPresetFreqsList(std::move(value)); return *this;} + + /** + *

The list of values that make up the FactoryPresetFreqs value.

+ */ + inline LoRaWANDeviceProfile& AddFactoryPresetFreqsList(int value) { m_factoryPresetFreqsListHasBeenSet = true; m_factoryPresetFreqsList.push_back(value); return *this; } + + + /** + *

The MaxEIRP value.

+ */ + inline int GetMaxEirp() const{ return m_maxEirp; } + + /** + *

The MaxEIRP value.

+ */ + inline bool MaxEirpHasBeenSet() const { return m_maxEirpHasBeenSet; } + + /** + *

The MaxEIRP value.

+ */ + inline void SetMaxEirp(int value) { m_maxEirpHasBeenSet = true; m_maxEirp = value; } + + /** + *

The MaxEIRP value.

+ */ + inline LoRaWANDeviceProfile& WithMaxEirp(int value) { SetMaxEirp(value); return *this;} + + + /** + *

The MaxDutyCycle value.

+ */ + inline int GetMaxDutyCycle() const{ return m_maxDutyCycle; } + + /** + *

The MaxDutyCycle value.

+ */ + inline bool MaxDutyCycleHasBeenSet() const { return m_maxDutyCycleHasBeenSet; } + + /** + *

The MaxDutyCycle value.

+ */ + inline void SetMaxDutyCycle(int value) { m_maxDutyCycleHasBeenSet = true; m_maxDutyCycle = value; } + + /** + *

The MaxDutyCycle value.

+ */ + inline LoRaWANDeviceProfile& WithMaxDutyCycle(int value) { SetMaxDutyCycle(value); return *this;} + + + /** + *

The frequency band (RFRegion) value.

+ */ + inline const Aws::String& GetRfRegion() const{ return m_rfRegion; } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline bool RfRegionHasBeenSet() const { return m_rfRegionHasBeenSet; } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline void SetRfRegion(const Aws::String& value) { m_rfRegionHasBeenSet = true; m_rfRegion = value; } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline void SetRfRegion(Aws::String&& value) { m_rfRegionHasBeenSet = true; m_rfRegion = std::move(value); } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline void SetRfRegion(const char* value) { m_rfRegionHasBeenSet = true; m_rfRegion.assign(value); } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline LoRaWANDeviceProfile& WithRfRegion(const Aws::String& value) { SetRfRegion(value); return *this;} + + /** + *

The frequency band (RFRegion) value.

+ */ + inline LoRaWANDeviceProfile& WithRfRegion(Aws::String&& value) { SetRfRegion(std::move(value)); return *this;} + + /** + *

The frequency band (RFRegion) value.

+ */ + inline LoRaWANDeviceProfile& WithRfRegion(const char* value) { SetRfRegion(value); return *this;} + + + /** + *

The SupportsJoin value.

+ */ + inline bool GetSupportsJoin() const{ return m_supportsJoin; } + + /** + *

The SupportsJoin value.

+ */ + inline bool SupportsJoinHasBeenSet() const { return m_supportsJoinHasBeenSet; } + + /** + *

The SupportsJoin value.

+ */ + inline void SetSupportsJoin(bool value) { m_supportsJoinHasBeenSet = true; m_supportsJoin = value; } + + /** + *

The SupportsJoin value.

+ */ + inline LoRaWANDeviceProfile& WithSupportsJoin(bool value) { SetSupportsJoin(value); return *this;} + + + /** + *

The Supports32BitFCnt value.

+ */ + inline bool GetSupports32BitFCnt() const{ return m_supports32BitFCnt; } + + /** + *

The Supports32BitFCnt value.

+ */ + inline bool Supports32BitFCntHasBeenSet() const { return m_supports32BitFCntHasBeenSet; } + + /** + *

The Supports32BitFCnt value.

+ */ + inline void SetSupports32BitFCnt(bool value) { m_supports32BitFCntHasBeenSet = true; m_supports32BitFCnt = value; } + + /** + *

The Supports32BitFCnt value.

+ */ + inline LoRaWANDeviceProfile& WithSupports32BitFCnt(bool value) { SetSupports32BitFCnt(value); return *this;} + + private: + + bool m_supportsClassB; + bool m_supportsClassBHasBeenSet; + + int m_classBTimeout; + bool m_classBTimeoutHasBeenSet; + + int m_pingSlotPeriod; + bool m_pingSlotPeriodHasBeenSet; + + int m_pingSlotDr; + bool m_pingSlotDrHasBeenSet; + + int m_pingSlotFreq; + bool m_pingSlotFreqHasBeenSet; + + bool m_supportsClassC; + bool m_supportsClassCHasBeenSet; + + int m_classCTimeout; + bool m_classCTimeoutHasBeenSet; + + Aws::String m_macVersion; + bool m_macVersionHasBeenSet; + + Aws::String m_regParamsRevision; + bool m_regParamsRevisionHasBeenSet; + + int m_rxDelay1; + bool m_rxDelay1HasBeenSet; + + int m_rxDrOffset1; + bool m_rxDrOffset1HasBeenSet; + + int m_rxDataRate2; + bool m_rxDataRate2HasBeenSet; + + int m_rxFreq2; + bool m_rxFreq2HasBeenSet; + + Aws::Vector m_factoryPresetFreqsList; + bool m_factoryPresetFreqsListHasBeenSet; + + int m_maxEirp; + bool m_maxEirpHasBeenSet; + + int m_maxDutyCycle; + bool m_maxDutyCycleHasBeenSet; + + Aws::String m_rfRegion; + bool m_rfRegionHasBeenSet; + + bool m_supportsJoin; + bool m_supportsJoinHasBeenSet; + + bool m_supports32BitFCnt; + bool m_supports32BitFCntHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGateway.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGateway.h new file mode 100644 index 00000000000..607e34e9384 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGateway.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANGateway object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANGateway + { + public: + LoRaWANGateway(); + LoRaWANGateway(Aws::Utils::Json::JsonView jsonValue); + LoRaWANGateway& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The gateway's EUI value.

+ */ + inline const Aws::String& GetGatewayEui() const{ return m_gatewayEui; } + + /** + *

The gateway's EUI value.

+ */ + inline bool GatewayEuiHasBeenSet() const { return m_gatewayEuiHasBeenSet; } + + /** + *

The gateway's EUI value.

+ */ + inline void SetGatewayEui(const Aws::String& value) { m_gatewayEuiHasBeenSet = true; m_gatewayEui = value; } + + /** + *

The gateway's EUI value.

+ */ + inline void SetGatewayEui(Aws::String&& value) { m_gatewayEuiHasBeenSet = true; m_gatewayEui = std::move(value); } + + /** + *

The gateway's EUI value.

+ */ + inline void SetGatewayEui(const char* value) { m_gatewayEuiHasBeenSet = true; m_gatewayEui.assign(value); } + + /** + *

The gateway's EUI value.

+ */ + inline LoRaWANGateway& WithGatewayEui(const Aws::String& value) { SetGatewayEui(value); return *this;} + + /** + *

The gateway's EUI value.

+ */ + inline LoRaWANGateway& WithGatewayEui(Aws::String&& value) { SetGatewayEui(std::move(value)); return *this;} + + /** + *

The gateway's EUI value.

+ */ + inline LoRaWANGateway& WithGatewayEui(const char* value) { SetGatewayEui(value); return *this;} + + + /** + *

The frequency band (RFRegion) value.

+ */ + inline const Aws::String& GetRfRegion() const{ return m_rfRegion; } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline bool RfRegionHasBeenSet() const { return m_rfRegionHasBeenSet; } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline void SetRfRegion(const Aws::String& value) { m_rfRegionHasBeenSet = true; m_rfRegion = value; } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline void SetRfRegion(Aws::String&& value) { m_rfRegionHasBeenSet = true; m_rfRegion = std::move(value); } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline void SetRfRegion(const char* value) { m_rfRegionHasBeenSet = true; m_rfRegion.assign(value); } + + /** + *

The frequency band (RFRegion) value.

+ */ + inline LoRaWANGateway& WithRfRegion(const Aws::String& value) { SetRfRegion(value); return *this;} + + /** + *

The frequency band (RFRegion) value.

+ */ + inline LoRaWANGateway& WithRfRegion(Aws::String&& value) { SetRfRegion(std::move(value)); return *this;} + + /** + *

The frequency band (RFRegion) value.

+ */ + inline LoRaWANGateway& WithRfRegion(const char* value) { SetRfRegion(value); return *this;} + + private: + + Aws::String m_gatewayEui; + bool m_gatewayEuiHasBeenSet; + + Aws::String m_rfRegion; + bool m_rfRegionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayCurrentVersion.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayCurrentVersion.h new file mode 100644 index 00000000000..e298b7993c8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayCurrentVersion.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANGatewayCurrentVersion object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANGatewayCurrentVersion + { + public: + LoRaWANGatewayCurrentVersion(); + LoRaWANGatewayCurrentVersion(Aws::Utils::Json::JsonView jsonValue); + LoRaWANGatewayCurrentVersion& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The version of the gateways that should receive the update.

+ */ + inline const LoRaWANGatewayVersion& GetCurrentVersion() const{ return m_currentVersion; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline void SetCurrentVersion(const LoRaWANGatewayVersion& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline void SetCurrentVersion(LoRaWANGatewayVersion&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline LoRaWANGatewayCurrentVersion& WithCurrentVersion(const LoRaWANGatewayVersion& value) { SetCurrentVersion(value); return *this;} + + /** + *

The version of the gateways that should receive the update.

+ */ + inline LoRaWANGatewayCurrentVersion& WithCurrentVersion(LoRaWANGatewayVersion&& value) { SetCurrentVersion(std::move(value)); return *this;} + + private: + + LoRaWANGatewayVersion m_currentVersion; + bool m_currentVersionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayMetadata.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayMetadata.h new file mode 100644 index 00000000000..d9d85741e52 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayMetadata.h @@ -0,0 +1,136 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWAN gateway metatdata.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANGatewayMetadata + { + public: + LoRaWANGatewayMetadata(); + LoRaWANGatewayMetadata(Aws::Utils::Json::JsonView jsonValue); + LoRaWANGatewayMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The gateway's EUI value.

+ */ + inline const Aws::String& GetGatewayEui() const{ return m_gatewayEui; } + + /** + *

The gateway's EUI value.

+ */ + inline bool GatewayEuiHasBeenSet() const { return m_gatewayEuiHasBeenSet; } + + /** + *

The gateway's EUI value.

+ */ + inline void SetGatewayEui(const Aws::String& value) { m_gatewayEuiHasBeenSet = true; m_gatewayEui = value; } + + /** + *

The gateway's EUI value.

+ */ + inline void SetGatewayEui(Aws::String&& value) { m_gatewayEuiHasBeenSet = true; m_gatewayEui = std::move(value); } + + /** + *

The gateway's EUI value.

+ */ + inline void SetGatewayEui(const char* value) { m_gatewayEuiHasBeenSet = true; m_gatewayEui.assign(value); } + + /** + *

The gateway's EUI value.

+ */ + inline LoRaWANGatewayMetadata& WithGatewayEui(const Aws::String& value) { SetGatewayEui(value); return *this;} + + /** + *

The gateway's EUI value.

+ */ + inline LoRaWANGatewayMetadata& WithGatewayEui(Aws::String&& value) { SetGatewayEui(std::move(value)); return *this;} + + /** + *

The gateway's EUI value.

+ */ + inline LoRaWANGatewayMetadata& WithGatewayEui(const char* value) { SetGatewayEui(value); return *this;} + + + /** + *

The SNR value.

+ */ + inline double GetSnr() const{ return m_snr; } + + /** + *

The SNR value.

+ */ + inline bool SnrHasBeenSet() const { return m_snrHasBeenSet; } + + /** + *

The SNR value.

+ */ + inline void SetSnr(double value) { m_snrHasBeenSet = true; m_snr = value; } + + /** + *

The SNR value.

+ */ + inline LoRaWANGatewayMetadata& WithSnr(double value) { SetSnr(value); return *this;} + + + /** + *

The RSSI value.

+ */ + inline double GetRssi() const{ return m_rssi; } + + /** + *

The RSSI value.

+ */ + inline bool RssiHasBeenSet() const { return m_rssiHasBeenSet; } + + /** + *

The RSSI value.

+ */ + inline void SetRssi(double value) { m_rssiHasBeenSet = true; m_rssi = value; } + + /** + *

The RSSI value.

+ */ + inline LoRaWANGatewayMetadata& WithRssi(double value) { SetRssi(value); return *this;} + + private: + + Aws::String m_gatewayEui; + bool m_gatewayEuiHasBeenSet; + + double m_snr; + bool m_snrHasBeenSet; + + double m_rssi; + bool m_rssiHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayVersion.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayVersion.h new file mode 100644 index 00000000000..b921d4e7318 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGatewayVersion.h @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANGatewayVersion object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANGatewayVersion + { + public: + LoRaWANGatewayVersion(); + LoRaWANGatewayVersion(Aws::Utils::Json::JsonView jsonValue); + LoRaWANGatewayVersion& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The version of the wireless gateway firmware.

+ */ + inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } + + /** + *

The version of the wireless gateway firmware.

+ */ + inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } + + /** + *

The version of the wireless gateway firmware.

+ */ + inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; } + + /** + *

The version of the wireless gateway firmware.

+ */ + inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); } + + /** + *

The version of the wireless gateway firmware.

+ */ + inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); } + + /** + *

The version of the wireless gateway firmware.

+ */ + inline LoRaWANGatewayVersion& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} + + /** + *

The version of the wireless gateway firmware.

+ */ + inline LoRaWANGatewayVersion& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} + + /** + *

The version of the wireless gateway firmware.

+ */ + inline LoRaWANGatewayVersion& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} + + + /** + *

The model number of the wireless gateway.

+ */ + inline const Aws::String& GetModel() const{ return m_model; } + + /** + *

The model number of the wireless gateway.

+ */ + inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; } + + /** + *

The model number of the wireless gateway.

+ */ + inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; } + + /** + *

The model number of the wireless gateway.

+ */ + inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); } + + /** + *

The model number of the wireless gateway.

+ */ + inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); } + + /** + *

The model number of the wireless gateway.

+ */ + inline LoRaWANGatewayVersion& WithModel(const Aws::String& value) { SetModel(value); return *this;} + + /** + *

The model number of the wireless gateway.

+ */ + inline LoRaWANGatewayVersion& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;} + + /** + *

The model number of the wireless gateway.

+ */ + inline LoRaWANGatewayVersion& WithModel(const char* value) { SetModel(value); return *this;} + + + /** + *

The basic station version of the wireless gateway.

+ */ + inline const Aws::String& GetStation() const{ return m_station; } + + /** + *

The basic station version of the wireless gateway.

+ */ + inline bool StationHasBeenSet() const { return m_stationHasBeenSet; } + + /** + *

The basic station version of the wireless gateway.

+ */ + inline void SetStation(const Aws::String& value) { m_stationHasBeenSet = true; m_station = value; } + + /** + *

The basic station version of the wireless gateway.

+ */ + inline void SetStation(Aws::String&& value) { m_stationHasBeenSet = true; m_station = std::move(value); } + + /** + *

The basic station version of the wireless gateway.

+ */ + inline void SetStation(const char* value) { m_stationHasBeenSet = true; m_station.assign(value); } + + /** + *

The basic station version of the wireless gateway.

+ */ + inline LoRaWANGatewayVersion& WithStation(const Aws::String& value) { SetStation(value); return *this;} + + /** + *

The basic station version of the wireless gateway.

+ */ + inline LoRaWANGatewayVersion& WithStation(Aws::String&& value) { SetStation(std::move(value)); return *this;} + + /** + *

The basic station version of the wireless gateway.

+ */ + inline LoRaWANGatewayVersion& WithStation(const char* value) { SetStation(value); return *this;} + + private: + + Aws::String m_packageVersion; + bool m_packageVersionHasBeenSet; + + Aws::String m_model; + bool m_modelHasBeenSet; + + Aws::String m_station; + bool m_stationHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGetServiceProfileInfo.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGetServiceProfileInfo.h new file mode 100644 index 00000000000..582d957a99e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANGetServiceProfileInfo.h @@ -0,0 +1,560 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANGetServiceProfileInfo object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANGetServiceProfileInfo + { + public: + LoRaWANGetServiceProfileInfo(); + LoRaWANGetServiceProfileInfo(Aws::Utils::Json::JsonView jsonValue); + LoRaWANGetServiceProfileInfo& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ULRate value.

+ */ + inline int GetUlRate() const{ return m_ulRate; } + + /** + *

The ULRate value.

+ */ + inline bool UlRateHasBeenSet() const { return m_ulRateHasBeenSet; } + + /** + *

The ULRate value.

+ */ + inline void SetUlRate(int value) { m_ulRateHasBeenSet = true; m_ulRate = value; } + + /** + *

The ULRate value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithUlRate(int value) { SetUlRate(value); return *this;} + + + /** + *

The ULBucketSize value.

+ */ + inline int GetUlBucketSize() const{ return m_ulBucketSize; } + + /** + *

The ULBucketSize value.

+ */ + inline bool UlBucketSizeHasBeenSet() const { return m_ulBucketSizeHasBeenSet; } + + /** + *

The ULBucketSize value.

+ */ + inline void SetUlBucketSize(int value) { m_ulBucketSizeHasBeenSet = true; m_ulBucketSize = value; } + + /** + *

The ULBucketSize value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithUlBucketSize(int value) { SetUlBucketSize(value); return *this;} + + + /** + *

The ULRatePolicy value.

+ */ + inline const Aws::String& GetUlRatePolicy() const{ return m_ulRatePolicy; } + + /** + *

The ULRatePolicy value.

+ */ + inline bool UlRatePolicyHasBeenSet() const { return m_ulRatePolicyHasBeenSet; } + + /** + *

The ULRatePolicy value.

+ */ + inline void SetUlRatePolicy(const Aws::String& value) { m_ulRatePolicyHasBeenSet = true; m_ulRatePolicy = value; } + + /** + *

The ULRatePolicy value.

+ */ + inline void SetUlRatePolicy(Aws::String&& value) { m_ulRatePolicyHasBeenSet = true; m_ulRatePolicy = std::move(value); } + + /** + *

The ULRatePolicy value.

+ */ + inline void SetUlRatePolicy(const char* value) { m_ulRatePolicyHasBeenSet = true; m_ulRatePolicy.assign(value); } + + /** + *

The ULRatePolicy value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithUlRatePolicy(const Aws::String& value) { SetUlRatePolicy(value); return *this;} + + /** + *

The ULRatePolicy value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithUlRatePolicy(Aws::String&& value) { SetUlRatePolicy(std::move(value)); return *this;} + + /** + *

The ULRatePolicy value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithUlRatePolicy(const char* value) { SetUlRatePolicy(value); return *this;} + + + /** + *

The DLRate value.

+ */ + inline int GetDlRate() const{ return m_dlRate; } + + /** + *

The DLRate value.

+ */ + inline bool DlRateHasBeenSet() const { return m_dlRateHasBeenSet; } + + /** + *

The DLRate value.

+ */ + inline void SetDlRate(int value) { m_dlRateHasBeenSet = true; m_dlRate = value; } + + /** + *

The DLRate value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDlRate(int value) { SetDlRate(value); return *this;} + + + /** + *

The DLBucketSize value.

+ */ + inline int GetDlBucketSize() const{ return m_dlBucketSize; } + + /** + *

The DLBucketSize value.

+ */ + inline bool DlBucketSizeHasBeenSet() const { return m_dlBucketSizeHasBeenSet; } + + /** + *

The DLBucketSize value.

+ */ + inline void SetDlBucketSize(int value) { m_dlBucketSizeHasBeenSet = true; m_dlBucketSize = value; } + + /** + *

The DLBucketSize value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDlBucketSize(int value) { SetDlBucketSize(value); return *this;} + + + /** + *

The DLRatePolicy value.

+ */ + inline const Aws::String& GetDlRatePolicy() const{ return m_dlRatePolicy; } + + /** + *

The DLRatePolicy value.

+ */ + inline bool DlRatePolicyHasBeenSet() const { return m_dlRatePolicyHasBeenSet; } + + /** + *

The DLRatePolicy value.

+ */ + inline void SetDlRatePolicy(const Aws::String& value) { m_dlRatePolicyHasBeenSet = true; m_dlRatePolicy = value; } + + /** + *

The DLRatePolicy value.

+ */ + inline void SetDlRatePolicy(Aws::String&& value) { m_dlRatePolicyHasBeenSet = true; m_dlRatePolicy = std::move(value); } + + /** + *

The DLRatePolicy value.

+ */ + inline void SetDlRatePolicy(const char* value) { m_dlRatePolicyHasBeenSet = true; m_dlRatePolicy.assign(value); } + + /** + *

The DLRatePolicy value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDlRatePolicy(const Aws::String& value) { SetDlRatePolicy(value); return *this;} + + /** + *

The DLRatePolicy value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDlRatePolicy(Aws::String&& value) { SetDlRatePolicy(std::move(value)); return *this;} + + /** + *

The DLRatePolicy value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDlRatePolicy(const char* value) { SetDlRatePolicy(value); return *this;} + + + /** + *

The AddGWMetaData value.

+ */ + inline bool GetAddGwMetadata() const{ return m_addGwMetadata; } + + /** + *

The AddGWMetaData value.

+ */ + inline bool AddGwMetadataHasBeenSet() const { return m_addGwMetadataHasBeenSet; } + + /** + *

The AddGWMetaData value.

+ */ + inline void SetAddGwMetadata(bool value) { m_addGwMetadataHasBeenSet = true; m_addGwMetadata = value; } + + /** + *

The AddGWMetaData value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithAddGwMetadata(bool value) { SetAddGwMetadata(value); return *this;} + + + /** + *

The DevStatusReqFreq value.

+ */ + inline int GetDevStatusReqFreq() const{ return m_devStatusReqFreq; } + + /** + *

The DevStatusReqFreq value.

+ */ + inline bool DevStatusReqFreqHasBeenSet() const { return m_devStatusReqFreqHasBeenSet; } + + /** + *

The DevStatusReqFreq value.

+ */ + inline void SetDevStatusReqFreq(int value) { m_devStatusReqFreqHasBeenSet = true; m_devStatusReqFreq = value; } + + /** + *

The DevStatusReqFreq value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDevStatusReqFreq(int value) { SetDevStatusReqFreq(value); return *this;} + + + /** + *

The ReportDevStatusBattery value.

+ */ + inline bool GetReportDevStatusBattery() const{ return m_reportDevStatusBattery; } + + /** + *

The ReportDevStatusBattery value.

+ */ + inline bool ReportDevStatusBatteryHasBeenSet() const { return m_reportDevStatusBatteryHasBeenSet; } + + /** + *

The ReportDevStatusBattery value.

+ */ + inline void SetReportDevStatusBattery(bool value) { m_reportDevStatusBatteryHasBeenSet = true; m_reportDevStatusBattery = value; } + + /** + *

The ReportDevStatusBattery value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithReportDevStatusBattery(bool value) { SetReportDevStatusBattery(value); return *this;} + + + /** + *

The ReportDevStatusMargin value.

+ */ + inline bool GetReportDevStatusMargin() const{ return m_reportDevStatusMargin; } + + /** + *

The ReportDevStatusMargin value.

+ */ + inline bool ReportDevStatusMarginHasBeenSet() const { return m_reportDevStatusMarginHasBeenSet; } + + /** + *

The ReportDevStatusMargin value.

+ */ + inline void SetReportDevStatusMargin(bool value) { m_reportDevStatusMarginHasBeenSet = true; m_reportDevStatusMargin = value; } + + /** + *

The ReportDevStatusMargin value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithReportDevStatusMargin(bool value) { SetReportDevStatusMargin(value); return *this;} + + + /** + *

The DRMin value.

+ */ + inline int GetDrMin() const{ return m_drMin; } + + /** + *

The DRMin value.

+ */ + inline bool DrMinHasBeenSet() const { return m_drMinHasBeenSet; } + + /** + *

The DRMin value.

+ */ + inline void SetDrMin(int value) { m_drMinHasBeenSet = true; m_drMin = value; } + + /** + *

The DRMin value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDrMin(int value) { SetDrMin(value); return *this;} + + + /** + *

The DRMax value.

+ */ + inline int GetDrMax() const{ return m_drMax; } + + /** + *

The DRMax value.

+ */ + inline bool DrMaxHasBeenSet() const { return m_drMaxHasBeenSet; } + + /** + *

The DRMax value.

+ */ + inline void SetDrMax(int value) { m_drMaxHasBeenSet = true; m_drMax = value; } + + /** + *

The DRMax value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithDrMax(int value) { SetDrMax(value); return *this;} + + + /** + *

The ChannelMask value.

+ */ + inline const Aws::String& GetChannelMask() const{ return m_channelMask; } + + /** + *

The ChannelMask value.

+ */ + inline bool ChannelMaskHasBeenSet() const { return m_channelMaskHasBeenSet; } + + /** + *

The ChannelMask value.

+ */ + inline void SetChannelMask(const Aws::String& value) { m_channelMaskHasBeenSet = true; m_channelMask = value; } + + /** + *

The ChannelMask value.

+ */ + inline void SetChannelMask(Aws::String&& value) { m_channelMaskHasBeenSet = true; m_channelMask = std::move(value); } + + /** + *

The ChannelMask value.

+ */ + inline void SetChannelMask(const char* value) { m_channelMaskHasBeenSet = true; m_channelMask.assign(value); } + + /** + *

The ChannelMask value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithChannelMask(const Aws::String& value) { SetChannelMask(value); return *this;} + + /** + *

The ChannelMask value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithChannelMask(Aws::String&& value) { SetChannelMask(std::move(value)); return *this;} + + /** + *

The ChannelMask value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithChannelMask(const char* value) { SetChannelMask(value); return *this;} + + + /** + *

The PRAllowed value that describes whether passive roaming is allowed.

+ */ + inline bool GetPrAllowed() const{ return m_prAllowed; } + + /** + *

The PRAllowed value that describes whether passive roaming is allowed.

+ */ + inline bool PrAllowedHasBeenSet() const { return m_prAllowedHasBeenSet; } + + /** + *

The PRAllowed value that describes whether passive roaming is allowed.

+ */ + inline void SetPrAllowed(bool value) { m_prAllowedHasBeenSet = true; m_prAllowed = value; } + + /** + *

The PRAllowed value that describes whether passive roaming is allowed.

+ */ + inline LoRaWANGetServiceProfileInfo& WithPrAllowed(bool value) { SetPrAllowed(value); return *this;} + + + /** + *

The HRAllowed value that describes whether handover roaming is allowed.

+ */ + inline bool GetHrAllowed() const{ return m_hrAllowed; } + + /** + *

The HRAllowed value that describes whether handover roaming is allowed.

+ */ + inline bool HrAllowedHasBeenSet() const { return m_hrAllowedHasBeenSet; } + + /** + *

The HRAllowed value that describes whether handover roaming is allowed.

+ */ + inline void SetHrAllowed(bool value) { m_hrAllowedHasBeenSet = true; m_hrAllowed = value; } + + /** + *

The HRAllowed value that describes whether handover roaming is allowed.

+ */ + inline LoRaWANGetServiceProfileInfo& WithHrAllowed(bool value) { SetHrAllowed(value); return *this;} + + + /** + *

The RAAllowed value that describes whether roaming activation is allowed.

+ */ + inline bool GetRaAllowed() const{ return m_raAllowed; } + + /** + *

The RAAllowed value that describes whether roaming activation is allowed.

+ */ + inline bool RaAllowedHasBeenSet() const { return m_raAllowedHasBeenSet; } + + /** + *

The RAAllowed value that describes whether roaming activation is allowed.

+ */ + inline void SetRaAllowed(bool value) { m_raAllowedHasBeenSet = true; m_raAllowed = value; } + + /** + *

The RAAllowed value that describes whether roaming activation is allowed.

+ */ + inline LoRaWANGetServiceProfileInfo& WithRaAllowed(bool value) { SetRaAllowed(value); return *this;} + + + /** + *

The NwkGeoLoc value.

+ */ + inline bool GetNwkGeoLoc() const{ return m_nwkGeoLoc; } + + /** + *

The NwkGeoLoc value.

+ */ + inline bool NwkGeoLocHasBeenSet() const { return m_nwkGeoLocHasBeenSet; } + + /** + *

The NwkGeoLoc value.

+ */ + inline void SetNwkGeoLoc(bool value) { m_nwkGeoLocHasBeenSet = true; m_nwkGeoLoc = value; } + + /** + *

The NwkGeoLoc value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithNwkGeoLoc(bool value) { SetNwkGeoLoc(value); return *this;} + + + /** + *

The TargetPER value.

+ */ + inline int GetTargetPer() const{ return m_targetPer; } + + /** + *

The TargetPER value.

+ */ + inline bool TargetPerHasBeenSet() const { return m_targetPerHasBeenSet; } + + /** + *

The TargetPER value.

+ */ + inline void SetTargetPer(int value) { m_targetPerHasBeenSet = true; m_targetPer = value; } + + /** + *

The TargetPER value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithTargetPer(int value) { SetTargetPer(value); return *this;} + + + /** + *

The MinGwDiversity value.

+ */ + inline int GetMinGwDiversity() const{ return m_minGwDiversity; } + + /** + *

The MinGwDiversity value.

+ */ + inline bool MinGwDiversityHasBeenSet() const { return m_minGwDiversityHasBeenSet; } + + /** + *

The MinGwDiversity value.

+ */ + inline void SetMinGwDiversity(int value) { m_minGwDiversityHasBeenSet = true; m_minGwDiversity = value; } + + /** + *

The MinGwDiversity value.

+ */ + inline LoRaWANGetServiceProfileInfo& WithMinGwDiversity(int value) { SetMinGwDiversity(value); return *this;} + + private: + + int m_ulRate; + bool m_ulRateHasBeenSet; + + int m_ulBucketSize; + bool m_ulBucketSizeHasBeenSet; + + Aws::String m_ulRatePolicy; + bool m_ulRatePolicyHasBeenSet; + + int m_dlRate; + bool m_dlRateHasBeenSet; + + int m_dlBucketSize; + bool m_dlBucketSizeHasBeenSet; + + Aws::String m_dlRatePolicy; + bool m_dlRatePolicyHasBeenSet; + + bool m_addGwMetadata; + bool m_addGwMetadataHasBeenSet; + + int m_devStatusReqFreq; + bool m_devStatusReqFreqHasBeenSet; + + bool m_reportDevStatusBattery; + bool m_reportDevStatusBatteryHasBeenSet; + + bool m_reportDevStatusMargin; + bool m_reportDevStatusMarginHasBeenSet; + + int m_drMin; + bool m_drMinHasBeenSet; + + int m_drMax; + bool m_drMaxHasBeenSet; + + Aws::String m_channelMask; + bool m_channelMaskHasBeenSet; + + bool m_prAllowed; + bool m_prAllowedHasBeenSet; + + bool m_hrAllowed; + bool m_hrAllowedHasBeenSet; + + bool m_raAllowed; + bool m_raAllowedHasBeenSet; + + bool m_nwkGeoLoc; + bool m_nwkGeoLocHasBeenSet; + + int m_targetPer; + bool m_targetPerHasBeenSet; + + int m_minGwDiversity; + bool m_minGwDiversityHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANListDevice.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANListDevice.h new file mode 100644 index 00000000000..9ba7afe4dc6 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANListDevice.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWAN object for list functions.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANListDevice + { + public: + LoRaWANListDevice(); + LoRaWANListDevice(Aws::Utils::Json::JsonView jsonValue); + LoRaWANListDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The DevEUI value.

+ */ + inline const Aws::String& GetDevEui() const{ return m_devEui; } + + /** + *

The DevEUI value.

+ */ + inline bool DevEuiHasBeenSet() const { return m_devEuiHasBeenSet; } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(const Aws::String& value) { m_devEuiHasBeenSet = true; m_devEui = value; } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(Aws::String&& value) { m_devEuiHasBeenSet = true; m_devEui = std::move(value); } + + /** + *

The DevEUI value.

+ */ + inline void SetDevEui(const char* value) { m_devEuiHasBeenSet = true; m_devEui.assign(value); } + + /** + *

The DevEUI value.

+ */ + inline LoRaWANListDevice& WithDevEui(const Aws::String& value) { SetDevEui(value); return *this;} + + /** + *

The DevEUI value.

+ */ + inline LoRaWANListDevice& WithDevEui(Aws::String&& value) { SetDevEui(std::move(value)); return *this;} + + /** + *

The DevEUI value.

+ */ + inline LoRaWANListDevice& WithDevEui(const char* value) { SetDevEui(value); return *this;} + + private: + + Aws::String m_devEui; + bool m_devEuiHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANSendDataToDevice.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANSendDataToDevice.h new file mode 100644 index 00000000000..53bc8ed1cff --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANSendDataToDevice.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWAN router info.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANSendDataToDevice + { + public: + LoRaWANSendDataToDevice(); + LoRaWANSendDataToDevice(Aws::Utils::Json::JsonView jsonValue); + LoRaWANSendDataToDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Fport value.

+ */ + inline int GetFPort() const{ return m_fPort; } + + /** + *

The Fport value.

+ */ + inline bool FPortHasBeenSet() const { return m_fPortHasBeenSet; } + + /** + *

The Fport value.

+ */ + inline void SetFPort(int value) { m_fPortHasBeenSet = true; m_fPort = value; } + + /** + *

The Fport value.

+ */ + inline LoRaWANSendDataToDevice& WithFPort(int value) { SetFPort(value); return *this;} + + private: + + int m_fPort; + bool m_fPortHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANServiceProfile.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANServiceProfile.h new file mode 100644 index 00000000000..b0c851a3c4c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANServiceProfile.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANServiceProfile object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANServiceProfile + { + public: + LoRaWANServiceProfile(); + LoRaWANServiceProfile(Aws::Utils::Json::JsonView jsonValue); + LoRaWANServiceProfile& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The AddGWMetaData value.

+ */ + inline bool GetAddGwMetadata() const{ return m_addGwMetadata; } + + /** + *

The AddGWMetaData value.

+ */ + inline bool AddGwMetadataHasBeenSet() const { return m_addGwMetadataHasBeenSet; } + + /** + *

The AddGWMetaData value.

+ */ + inline void SetAddGwMetadata(bool value) { m_addGwMetadataHasBeenSet = true; m_addGwMetadata = value; } + + /** + *

The AddGWMetaData value.

+ */ + inline LoRaWANServiceProfile& WithAddGwMetadata(bool value) { SetAddGwMetadata(value); return *this;} + + private: + + bool m_addGwMetadata; + bool m_addGwMetadataHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateDevice.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateDevice.h new file mode 100644 index 00000000000..bb91437398a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateDevice.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRa object for update functions.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANUpdateDevice + { + public: + LoRaWANUpdateDevice(); + LoRaWANUpdateDevice(Aws::Utils::Json::JsonView jsonValue); + LoRaWANUpdateDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline const Aws::String& GetDeviceProfileId() const{ return m_deviceProfileId; } + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline bool DeviceProfileIdHasBeenSet() const { return m_deviceProfileIdHasBeenSet; } + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline void SetDeviceProfileId(const Aws::String& value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId = value; } + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline void SetDeviceProfileId(Aws::String&& value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId = std::move(value); } + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline void SetDeviceProfileId(const char* value) { m_deviceProfileIdHasBeenSet = true; m_deviceProfileId.assign(value); } + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline LoRaWANUpdateDevice& WithDeviceProfileId(const Aws::String& value) { SetDeviceProfileId(value); return *this;} + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline LoRaWANUpdateDevice& WithDeviceProfileId(Aws::String&& value) { SetDeviceProfileId(std::move(value)); return *this;} + + /** + *

The ID of the device profile for the wireless device.

+ */ + inline LoRaWANUpdateDevice& WithDeviceProfileId(const char* value) { SetDeviceProfileId(value); return *this;} + + + /** + *

The ID of the service profile.

+ */ + inline const Aws::String& GetServiceProfileId() const{ return m_serviceProfileId; } + + /** + *

The ID of the service profile.

+ */ + inline bool ServiceProfileIdHasBeenSet() const { return m_serviceProfileIdHasBeenSet; } + + /** + *

The ID of the service profile.

+ */ + inline void SetServiceProfileId(const Aws::String& value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId = value; } + + /** + *

The ID of the service profile.

+ */ + inline void SetServiceProfileId(Aws::String&& value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId = std::move(value); } + + /** + *

The ID of the service profile.

+ */ + inline void SetServiceProfileId(const char* value) { m_serviceProfileIdHasBeenSet = true; m_serviceProfileId.assign(value); } + + /** + *

The ID of the service profile.

+ */ + inline LoRaWANUpdateDevice& WithServiceProfileId(const Aws::String& value) { SetServiceProfileId(value); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline LoRaWANUpdateDevice& WithServiceProfileId(Aws::String&& value) { SetServiceProfileId(std::move(value)); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline LoRaWANUpdateDevice& WithServiceProfileId(const char* value) { SetServiceProfileId(value); return *this;} + + private: + + Aws::String m_deviceProfileId; + bool m_deviceProfileIdHasBeenSet; + + Aws::String m_serviceProfileId; + bool m_serviceProfileIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskCreate.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskCreate.h new file mode 100644 index 00000000000..e43ddacf26d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskCreate.h @@ -0,0 +1,181 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANUpdateGatewayTaskCreate object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANUpdateGatewayTaskCreate + { + public: + LoRaWANUpdateGatewayTaskCreate(); + LoRaWANUpdateGatewayTaskCreate(Aws::Utils::Json::JsonView jsonValue); + LoRaWANUpdateGatewayTaskCreate& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The signature used to verify the update firmware.

+ */ + inline const Aws::String& GetUpdateSignature() const{ return m_updateSignature; } + + /** + *

The signature used to verify the update firmware.

+ */ + inline bool UpdateSignatureHasBeenSet() const { return m_updateSignatureHasBeenSet; } + + /** + *

The signature used to verify the update firmware.

+ */ + inline void SetUpdateSignature(const Aws::String& value) { m_updateSignatureHasBeenSet = true; m_updateSignature = value; } + + /** + *

The signature used to verify the update firmware.

+ */ + inline void SetUpdateSignature(Aws::String&& value) { m_updateSignatureHasBeenSet = true; m_updateSignature = std::move(value); } + + /** + *

The signature used to verify the update firmware.

+ */ + inline void SetUpdateSignature(const char* value) { m_updateSignatureHasBeenSet = true; m_updateSignature.assign(value); } + + /** + *

The signature used to verify the update firmware.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithUpdateSignature(const Aws::String& value) { SetUpdateSignature(value); return *this;} + + /** + *

The signature used to verify the update firmware.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithUpdateSignature(Aws::String&& value) { SetUpdateSignature(std::move(value)); return *this;} + + /** + *

The signature used to verify the update firmware.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithUpdateSignature(const char* value) { SetUpdateSignature(value); return *this;} + + + /** + *

The CRC of the signature private key to check.

+ */ + inline long long GetSigKeyCrc() const{ return m_sigKeyCrc; } + + /** + *

The CRC of the signature private key to check.

+ */ + inline bool SigKeyCrcHasBeenSet() const { return m_sigKeyCrcHasBeenSet; } + + /** + *

The CRC of the signature private key to check.

+ */ + inline void SetSigKeyCrc(long long value) { m_sigKeyCrcHasBeenSet = true; m_sigKeyCrc = value; } + + /** + *

The CRC of the signature private key to check.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithSigKeyCrc(long long value) { SetSigKeyCrc(value); return *this;} + + + /** + *

The version of the gateways that should receive the update.

+ */ + inline const LoRaWANGatewayVersion& GetCurrentVersion() const{ return m_currentVersion; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline void SetCurrentVersion(const LoRaWANGatewayVersion& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline void SetCurrentVersion(LoRaWANGatewayVersion&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithCurrentVersion(const LoRaWANGatewayVersion& value) { SetCurrentVersion(value); return *this;} + + /** + *

The version of the gateways that should receive the update.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithCurrentVersion(LoRaWANGatewayVersion&& value) { SetCurrentVersion(std::move(value)); return *this;} + + + /** + *

The firmware version to update the gateway to.

+ */ + inline const LoRaWANGatewayVersion& GetUpdateVersion() const{ return m_updateVersion; } + + /** + *

The firmware version to update the gateway to.

+ */ + inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; } + + /** + *

The firmware version to update the gateway to.

+ */ + inline void SetUpdateVersion(const LoRaWANGatewayVersion& value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; } + + /** + *

The firmware version to update the gateway to.

+ */ + inline void SetUpdateVersion(LoRaWANGatewayVersion&& value) { m_updateVersionHasBeenSet = true; m_updateVersion = std::move(value); } + + /** + *

The firmware version to update the gateway to.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithUpdateVersion(const LoRaWANGatewayVersion& value) { SetUpdateVersion(value); return *this;} + + /** + *

The firmware version to update the gateway to.

+ */ + inline LoRaWANUpdateGatewayTaskCreate& WithUpdateVersion(LoRaWANGatewayVersion&& value) { SetUpdateVersion(std::move(value)); return *this;} + + private: + + Aws::String m_updateSignature; + bool m_updateSignatureHasBeenSet; + + long long m_sigKeyCrc; + bool m_sigKeyCrcHasBeenSet; + + LoRaWANGatewayVersion m_currentVersion; + bool m_currentVersionHasBeenSet; + + LoRaWANGatewayVersion m_updateVersion; + bool m_updateVersionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskEntry.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskEntry.h new file mode 100644 index 00000000000..bce02052f92 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/LoRaWANUpdateGatewayTaskEntry.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

LoRaWANUpdateGatewayTaskEntry object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API LoRaWANUpdateGatewayTaskEntry + { + public: + LoRaWANUpdateGatewayTaskEntry(); + LoRaWANUpdateGatewayTaskEntry(Aws::Utils::Json::JsonView jsonValue); + LoRaWANUpdateGatewayTaskEntry& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The version of the gateways that should receive the update.

+ */ + inline const LoRaWANGatewayVersion& GetCurrentVersion() const{ return m_currentVersion; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline void SetCurrentVersion(const LoRaWANGatewayVersion& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline void SetCurrentVersion(LoRaWANGatewayVersion&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } + + /** + *

The version of the gateways that should receive the update.

+ */ + inline LoRaWANUpdateGatewayTaskEntry& WithCurrentVersion(const LoRaWANGatewayVersion& value) { SetCurrentVersion(value); return *this;} + + /** + *

The version of the gateways that should receive the update.

+ */ + inline LoRaWANUpdateGatewayTaskEntry& WithCurrentVersion(LoRaWANGatewayVersion&& value) { SetCurrentVersion(std::move(value)); return *this;} + + + /** + *

The firmware version to update the gateway to.

+ */ + inline const LoRaWANGatewayVersion& GetUpdateVersion() const{ return m_updateVersion; } + + /** + *

The firmware version to update the gateway to.

+ */ + inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; } + + /** + *

The firmware version to update the gateway to.

+ */ + inline void SetUpdateVersion(const LoRaWANGatewayVersion& value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; } + + /** + *

The firmware version to update the gateway to.

+ */ + inline void SetUpdateVersion(LoRaWANGatewayVersion&& value) { m_updateVersionHasBeenSet = true; m_updateVersion = std::move(value); } + + /** + *

The firmware version to update the gateway to.

+ */ + inline LoRaWANUpdateGatewayTaskEntry& WithUpdateVersion(const LoRaWANGatewayVersion& value) { SetUpdateVersion(value); return *this;} + + /** + *

The firmware version to update the gateway to.

+ */ + inline LoRaWANUpdateGatewayTaskEntry& WithUpdateVersion(LoRaWANGatewayVersion&& value) { SetUpdateVersion(std::move(value)); return *this;} + + private: + + LoRaWANGatewayVersion m_currentVersion; + bool m_currentVersionHasBeenSet; + + LoRaWANGatewayVersion m_updateVersion; + bool m_updateVersionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_0_x.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_0_x.h new file mode 100644 index 00000000000..c4d6d11702b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_0_x.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

OTAA device object for v1.0.x

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API OtaaV1_0_x + { + public: + OtaaV1_0_x(); + OtaaV1_0_x(Aws::Utils::Json::JsonView jsonValue); + OtaaV1_0_x& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The AppKey value.

+ */ + inline const Aws::String& GetAppKey() const{ return m_appKey; } + + /** + *

The AppKey value.

+ */ + inline bool AppKeyHasBeenSet() const { return m_appKeyHasBeenSet; } + + /** + *

The AppKey value.

+ */ + inline void SetAppKey(const Aws::String& value) { m_appKeyHasBeenSet = true; m_appKey = value; } + + /** + *

The AppKey value.

+ */ + inline void SetAppKey(Aws::String&& value) { m_appKeyHasBeenSet = true; m_appKey = std::move(value); } + + /** + *

The AppKey value.

+ */ + inline void SetAppKey(const char* value) { m_appKeyHasBeenSet = true; m_appKey.assign(value); } + + /** + *

The AppKey value.

+ */ + inline OtaaV1_0_x& WithAppKey(const Aws::String& value) { SetAppKey(value); return *this;} + + /** + *

The AppKey value.

+ */ + inline OtaaV1_0_x& WithAppKey(Aws::String&& value) { SetAppKey(std::move(value)); return *this;} + + /** + *

The AppKey value.

+ */ + inline OtaaV1_0_x& WithAppKey(const char* value) { SetAppKey(value); return *this;} + + + /** + *

The AppEUI value.

+ */ + inline const Aws::String& GetAppEui() const{ return m_appEui; } + + /** + *

The AppEUI value.

+ */ + inline bool AppEuiHasBeenSet() const { return m_appEuiHasBeenSet; } + + /** + *

The AppEUI value.

+ */ + inline void SetAppEui(const Aws::String& value) { m_appEuiHasBeenSet = true; m_appEui = value; } + + /** + *

The AppEUI value.

+ */ + inline void SetAppEui(Aws::String&& value) { m_appEuiHasBeenSet = true; m_appEui = std::move(value); } + + /** + *

The AppEUI value.

+ */ + inline void SetAppEui(const char* value) { m_appEuiHasBeenSet = true; m_appEui.assign(value); } + + /** + *

The AppEUI value.

+ */ + inline OtaaV1_0_x& WithAppEui(const Aws::String& value) { SetAppEui(value); return *this;} + + /** + *

The AppEUI value.

+ */ + inline OtaaV1_0_x& WithAppEui(Aws::String&& value) { SetAppEui(std::move(value)); return *this;} + + /** + *

The AppEUI value.

+ */ + inline OtaaV1_0_x& WithAppEui(const char* value) { SetAppEui(value); return *this;} + + private: + + Aws::String m_appKey; + bool m_appKeyHasBeenSet; + + Aws::String m_appEui; + bool m_appEuiHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_1.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_1.h new file mode 100644 index 00000000000..3e0bb84e814 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/OtaaV1_1.h @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

OTAA device object for v1.1

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API OtaaV1_1 + { + public: + OtaaV1_1(); + OtaaV1_1(Aws::Utils::Json::JsonView jsonValue); + OtaaV1_1& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The AppKey value.

+ */ + inline const Aws::String& GetAppKey() const{ return m_appKey; } + + /** + *

The AppKey value.

+ */ + inline bool AppKeyHasBeenSet() const { return m_appKeyHasBeenSet; } + + /** + *

The AppKey value.

+ */ + inline void SetAppKey(const Aws::String& value) { m_appKeyHasBeenSet = true; m_appKey = value; } + + /** + *

The AppKey value.

+ */ + inline void SetAppKey(Aws::String&& value) { m_appKeyHasBeenSet = true; m_appKey = std::move(value); } + + /** + *

The AppKey value.

+ */ + inline void SetAppKey(const char* value) { m_appKeyHasBeenSet = true; m_appKey.assign(value); } + + /** + *

The AppKey value.

+ */ + inline OtaaV1_1& WithAppKey(const Aws::String& value) { SetAppKey(value); return *this;} + + /** + *

The AppKey value.

+ */ + inline OtaaV1_1& WithAppKey(Aws::String&& value) { SetAppKey(std::move(value)); return *this;} + + /** + *

The AppKey value.

+ */ + inline OtaaV1_1& WithAppKey(const char* value) { SetAppKey(value); return *this;} + + + /** + *

The NwkKey value.

+ */ + inline const Aws::String& GetNwkKey() const{ return m_nwkKey; } + + /** + *

The NwkKey value.

+ */ + inline bool NwkKeyHasBeenSet() const { return m_nwkKeyHasBeenSet; } + + /** + *

The NwkKey value.

+ */ + inline void SetNwkKey(const Aws::String& value) { m_nwkKeyHasBeenSet = true; m_nwkKey = value; } + + /** + *

The NwkKey value.

+ */ + inline void SetNwkKey(Aws::String&& value) { m_nwkKeyHasBeenSet = true; m_nwkKey = std::move(value); } + + /** + *

The NwkKey value.

+ */ + inline void SetNwkKey(const char* value) { m_nwkKeyHasBeenSet = true; m_nwkKey.assign(value); } + + /** + *

The NwkKey value.

+ */ + inline OtaaV1_1& WithNwkKey(const Aws::String& value) { SetNwkKey(value); return *this;} + + /** + *

The NwkKey value.

+ */ + inline OtaaV1_1& WithNwkKey(Aws::String&& value) { SetNwkKey(std::move(value)); return *this;} + + /** + *

The NwkKey value.

+ */ + inline OtaaV1_1& WithNwkKey(const char* value) { SetNwkKey(value); return *this;} + + + /** + *

The JoinEUI value.

+ */ + inline const Aws::String& GetJoinEui() const{ return m_joinEui; } + + /** + *

The JoinEUI value.

+ */ + inline bool JoinEuiHasBeenSet() const { return m_joinEuiHasBeenSet; } + + /** + *

The JoinEUI value.

+ */ + inline void SetJoinEui(const Aws::String& value) { m_joinEuiHasBeenSet = true; m_joinEui = value; } + + /** + *

The JoinEUI value.

+ */ + inline void SetJoinEui(Aws::String&& value) { m_joinEuiHasBeenSet = true; m_joinEui = std::move(value); } + + /** + *

The JoinEUI value.

+ */ + inline void SetJoinEui(const char* value) { m_joinEuiHasBeenSet = true; m_joinEui.assign(value); } + + /** + *

The JoinEUI value.

+ */ + inline OtaaV1_1& WithJoinEui(const Aws::String& value) { SetJoinEui(value); return *this;} + + /** + *

The JoinEUI value.

+ */ + inline OtaaV1_1& WithJoinEui(Aws::String&& value) { SetJoinEui(std::move(value)); return *this;} + + /** + *

The JoinEUI value.

+ */ + inline OtaaV1_1& WithJoinEui(const char* value) { SetJoinEui(value); return *this;} + + private: + + Aws::String m_appKey; + bool m_appKeyHasBeenSet; + + Aws::String m_nwkKey; + bool m_nwkKeyHasBeenSet; + + Aws::String m_joinEui; + bool m_joinEuiHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/PartnerType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/PartnerType.h new file mode 100644 index 00000000000..8b6e386c956 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/PartnerType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class PartnerType + { + NOT_SET, + Sidewalk + }; + +namespace PartnerTypeMapper +{ +AWS_IOTWIRELESS_API PartnerType GetPartnerTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForPartnerType(PartnerType value); +} // namespace PartnerTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ResourceNotFoundException.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ResourceNotFoundException.h new file mode 100644 index 00000000000..00f9a0b62f9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ResourceNotFoundException.h @@ -0,0 +1,128 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Resource does not exist.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API ResourceNotFoundException + { + public: + ResourceNotFoundException(); + ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); + ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + + inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + + inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + + inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + + inline ResourceNotFoundException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + + inline ResourceNotFoundException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + + inline ResourceNotFoundException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceRequest.h new file mode 100644 index 00000000000..db085185e4d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceRequest.h @@ -0,0 +1,194 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API SendDataToWirelessDeviceRequest : public IoTWirelessRequest + { + public: + SendDataToWirelessDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "SendDataToWirelessDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline SendDataToWirelessDeviceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline SendDataToWirelessDeviceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the wireless device to receive the data.

+ */ + inline SendDataToWirelessDeviceRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The transmit mode to use to send data to the wireless device. Can be: + * 0 for UM (unacknowledge mode), 1 for AM (acknowledge + * mode), or 2 for (TM) transparent mode.

+ */ + inline int GetTransmitMode() const{ return m_transmitMode; } + + /** + *

The transmit mode to use to send data to the wireless device. Can be: + * 0 for UM (unacknowledge mode), 1 for AM (acknowledge + * mode), or 2 for (TM) transparent mode.

+ */ + inline bool TransmitModeHasBeenSet() const { return m_transmitModeHasBeenSet; } + + /** + *

The transmit mode to use to send data to the wireless device. Can be: + * 0 for UM (unacknowledge mode), 1 for AM (acknowledge + * mode), or 2 for (TM) transparent mode.

+ */ + inline void SetTransmitMode(int value) { m_transmitModeHasBeenSet = true; m_transmitMode = value; } + + /** + *

The transmit mode to use to send data to the wireless device. Can be: + * 0 for UM (unacknowledge mode), 1 for AM (acknowledge + * mode), or 2 for (TM) transparent mode.

+ */ + inline SendDataToWirelessDeviceRequest& WithTransmitMode(int value) { SetTransmitMode(value); return *this;} + + + /** + *

The message payload to send.

+ */ + inline const Aws::String& GetPayloadData() const{ return m_payloadData; } + + /** + *

The message payload to send.

+ */ + inline bool PayloadDataHasBeenSet() const { return m_payloadDataHasBeenSet; } + + /** + *

The message payload to send.

+ */ + inline void SetPayloadData(const Aws::String& value) { m_payloadDataHasBeenSet = true; m_payloadData = value; } + + /** + *

The message payload to send.

+ */ + inline void SetPayloadData(Aws::String&& value) { m_payloadDataHasBeenSet = true; m_payloadData = std::move(value); } + + /** + *

The message payload to send.

+ */ + inline void SetPayloadData(const char* value) { m_payloadDataHasBeenSet = true; m_payloadData.assign(value); } + + /** + *

The message payload to send.

+ */ + inline SendDataToWirelessDeviceRequest& WithPayloadData(const Aws::String& value) { SetPayloadData(value); return *this;} + + /** + *

The message payload to send.

+ */ + inline SendDataToWirelessDeviceRequest& WithPayloadData(Aws::String&& value) { SetPayloadData(std::move(value)); return *this;} + + /** + *

The message payload to send.

+ */ + inline SendDataToWirelessDeviceRequest& WithPayloadData(const char* value) { SetPayloadData(value); return *this;} + + + /** + *

Metadata about the message request.

+ */ + inline const WirelessMetadata& GetWirelessMetadata() const{ return m_wirelessMetadata; } + + /** + *

Metadata about the message request.

+ */ + inline bool WirelessMetadataHasBeenSet() const { return m_wirelessMetadataHasBeenSet; } + + /** + *

Metadata about the message request.

+ */ + inline void SetWirelessMetadata(const WirelessMetadata& value) { m_wirelessMetadataHasBeenSet = true; m_wirelessMetadata = value; } + + /** + *

Metadata about the message request.

+ */ + inline void SetWirelessMetadata(WirelessMetadata&& value) { m_wirelessMetadataHasBeenSet = true; m_wirelessMetadata = std::move(value); } + + /** + *

Metadata about the message request.

+ */ + inline SendDataToWirelessDeviceRequest& WithWirelessMetadata(const WirelessMetadata& value) { SetWirelessMetadata(value); return *this;} + + /** + *

Metadata about the message request.

+ */ + inline SendDataToWirelessDeviceRequest& WithWirelessMetadata(WirelessMetadata&& value) { SetWirelessMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + int m_transmitMode; + bool m_transmitModeHasBeenSet; + + Aws::String m_payloadData; + bool m_payloadDataHasBeenSet; + + WirelessMetadata m_wirelessMetadata; + bool m_wirelessMetadataHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceResult.h new file mode 100644 index 00000000000..addeb281ef1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SendDataToWirelessDeviceResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API SendDataToWirelessDeviceResult + { + public: + SendDataToWirelessDeviceResult(); + SendDataToWirelessDeviceResult(const Aws::AmazonWebServiceResult& result); + SendDataToWirelessDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline const Aws::String& GetMessageId() const{ return m_messageId; } + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline void SetMessageId(const Aws::String& value) { m_messageId = value; } + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline void SetMessageId(Aws::String&& value) { m_messageId = std::move(value); } + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline void SetMessageId(const char* value) { m_messageId.assign(value); } + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline SendDataToWirelessDeviceResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline SendDataToWirelessDeviceResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} + + /** + *

The ID of the message sent to the wireless device.

+ */ + inline SendDataToWirelessDeviceResult& WithMessageId(const char* value) { SetMessageId(value); return *this;} + + private: + + Aws::String m_messageId; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ServiceProfile.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ServiceProfile.h new file mode 100644 index 00000000000..069f06088be --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/ServiceProfile.h @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Information about a service profile.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API ServiceProfile + { + public: + ServiceProfile(); + ServiceProfile(Aws::Utils::Json::JsonView jsonValue); + ServiceProfile& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline ServiceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline ServiceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline ServiceProfile& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline ServiceProfile& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline ServiceProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline ServiceProfile& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The ID of the service profile.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the service profile.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the service profile.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the service profile.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the service profile.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the service profile.

+ */ + inline ServiceProfile& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline ServiceProfile& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the service profile.

+ */ + inline ServiceProfile& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_0_x.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_0_x.h new file mode 100644 index 00000000000..be9c1ac74ec --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_0_x.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Session keys for ABP v1.1

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SessionKeysAbpV1_0_x + { + public: + SessionKeysAbpV1_0_x(); + SessionKeysAbpV1_0_x(Aws::Utils::Json::JsonView jsonValue); + SessionKeysAbpV1_0_x& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The NwkSKey value.

+ */ + inline const Aws::String& GetNwkSKey() const{ return m_nwkSKey; } + + /** + *

The NwkSKey value.

+ */ + inline bool NwkSKeyHasBeenSet() const { return m_nwkSKeyHasBeenSet; } + + /** + *

The NwkSKey value.

+ */ + inline void SetNwkSKey(const Aws::String& value) { m_nwkSKeyHasBeenSet = true; m_nwkSKey = value; } + + /** + *

The NwkSKey value.

+ */ + inline void SetNwkSKey(Aws::String&& value) { m_nwkSKeyHasBeenSet = true; m_nwkSKey = std::move(value); } + + /** + *

The NwkSKey value.

+ */ + inline void SetNwkSKey(const char* value) { m_nwkSKeyHasBeenSet = true; m_nwkSKey.assign(value); } + + /** + *

The NwkSKey value.

+ */ + inline SessionKeysAbpV1_0_x& WithNwkSKey(const Aws::String& value) { SetNwkSKey(value); return *this;} + + /** + *

The NwkSKey value.

+ */ + inline SessionKeysAbpV1_0_x& WithNwkSKey(Aws::String&& value) { SetNwkSKey(std::move(value)); return *this;} + + /** + *

The NwkSKey value.

+ */ + inline SessionKeysAbpV1_0_x& WithNwkSKey(const char* value) { SetNwkSKey(value); return *this;} + + + /** + *

The AppSKey value.

+ */ + inline const Aws::String& GetAppSKey() const{ return m_appSKey; } + + /** + *

The AppSKey value.

+ */ + inline bool AppSKeyHasBeenSet() const { return m_appSKeyHasBeenSet; } + + /** + *

The AppSKey value.

+ */ + inline void SetAppSKey(const Aws::String& value) { m_appSKeyHasBeenSet = true; m_appSKey = value; } + + /** + *

The AppSKey value.

+ */ + inline void SetAppSKey(Aws::String&& value) { m_appSKeyHasBeenSet = true; m_appSKey = std::move(value); } + + /** + *

The AppSKey value.

+ */ + inline void SetAppSKey(const char* value) { m_appSKeyHasBeenSet = true; m_appSKey.assign(value); } + + /** + *

The AppSKey value.

+ */ + inline SessionKeysAbpV1_0_x& WithAppSKey(const Aws::String& value) { SetAppSKey(value); return *this;} + + /** + *

The AppSKey value.

+ */ + inline SessionKeysAbpV1_0_x& WithAppSKey(Aws::String&& value) { SetAppSKey(std::move(value)); return *this;} + + /** + *

The AppSKey value.

+ */ + inline SessionKeysAbpV1_0_x& WithAppSKey(const char* value) { SetAppSKey(value); return *this;} + + private: + + Aws::String m_nwkSKey; + bool m_nwkSKeyHasBeenSet; + + Aws::String m_appSKey; + bool m_appSKeyHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_1.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_1.h new file mode 100644 index 00000000000..7cfb44b2c66 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SessionKeysAbpV1_1.h @@ -0,0 +1,220 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Session keys for ABP v1.1

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SessionKeysAbpV1_1 + { + public: + SessionKeysAbpV1_1(); + SessionKeysAbpV1_1(Aws::Utils::Json::JsonView jsonValue); + SessionKeysAbpV1_1& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The FNwkSIntKey value.

+ */ + inline const Aws::String& GetFNwkSIntKey() const{ return m_fNwkSIntKey; } + + /** + *

The FNwkSIntKey value.

+ */ + inline bool FNwkSIntKeyHasBeenSet() const { return m_fNwkSIntKeyHasBeenSet; } + + /** + *

The FNwkSIntKey value.

+ */ + inline void SetFNwkSIntKey(const Aws::String& value) { m_fNwkSIntKeyHasBeenSet = true; m_fNwkSIntKey = value; } + + /** + *

The FNwkSIntKey value.

+ */ + inline void SetFNwkSIntKey(Aws::String&& value) { m_fNwkSIntKeyHasBeenSet = true; m_fNwkSIntKey = std::move(value); } + + /** + *

The FNwkSIntKey value.

+ */ + inline void SetFNwkSIntKey(const char* value) { m_fNwkSIntKeyHasBeenSet = true; m_fNwkSIntKey.assign(value); } + + /** + *

The FNwkSIntKey value.

+ */ + inline SessionKeysAbpV1_1& WithFNwkSIntKey(const Aws::String& value) { SetFNwkSIntKey(value); return *this;} + + /** + *

The FNwkSIntKey value.

+ */ + inline SessionKeysAbpV1_1& WithFNwkSIntKey(Aws::String&& value) { SetFNwkSIntKey(std::move(value)); return *this;} + + /** + *

The FNwkSIntKey value.

+ */ + inline SessionKeysAbpV1_1& WithFNwkSIntKey(const char* value) { SetFNwkSIntKey(value); return *this;} + + + /** + *

The SNwkSIntKey value.

+ */ + inline const Aws::String& GetSNwkSIntKey() const{ return m_sNwkSIntKey; } + + /** + *

The SNwkSIntKey value.

+ */ + inline bool SNwkSIntKeyHasBeenSet() const { return m_sNwkSIntKeyHasBeenSet; } + + /** + *

The SNwkSIntKey value.

+ */ + inline void SetSNwkSIntKey(const Aws::String& value) { m_sNwkSIntKeyHasBeenSet = true; m_sNwkSIntKey = value; } + + /** + *

The SNwkSIntKey value.

+ */ + inline void SetSNwkSIntKey(Aws::String&& value) { m_sNwkSIntKeyHasBeenSet = true; m_sNwkSIntKey = std::move(value); } + + /** + *

The SNwkSIntKey value.

+ */ + inline void SetSNwkSIntKey(const char* value) { m_sNwkSIntKeyHasBeenSet = true; m_sNwkSIntKey.assign(value); } + + /** + *

The SNwkSIntKey value.

+ */ + inline SessionKeysAbpV1_1& WithSNwkSIntKey(const Aws::String& value) { SetSNwkSIntKey(value); return *this;} + + /** + *

The SNwkSIntKey value.

+ */ + inline SessionKeysAbpV1_1& WithSNwkSIntKey(Aws::String&& value) { SetSNwkSIntKey(std::move(value)); return *this;} + + /** + *

The SNwkSIntKey value.

+ */ + inline SessionKeysAbpV1_1& WithSNwkSIntKey(const char* value) { SetSNwkSIntKey(value); return *this;} + + + /** + *

The NwkSEncKey value.

+ */ + inline const Aws::String& GetNwkSEncKey() const{ return m_nwkSEncKey; } + + /** + *

The NwkSEncKey value.

+ */ + inline bool NwkSEncKeyHasBeenSet() const { return m_nwkSEncKeyHasBeenSet; } + + /** + *

The NwkSEncKey value.

+ */ + inline void SetNwkSEncKey(const Aws::String& value) { m_nwkSEncKeyHasBeenSet = true; m_nwkSEncKey = value; } + + /** + *

The NwkSEncKey value.

+ */ + inline void SetNwkSEncKey(Aws::String&& value) { m_nwkSEncKeyHasBeenSet = true; m_nwkSEncKey = std::move(value); } + + /** + *

The NwkSEncKey value.

+ */ + inline void SetNwkSEncKey(const char* value) { m_nwkSEncKeyHasBeenSet = true; m_nwkSEncKey.assign(value); } + + /** + *

The NwkSEncKey value.

+ */ + inline SessionKeysAbpV1_1& WithNwkSEncKey(const Aws::String& value) { SetNwkSEncKey(value); return *this;} + + /** + *

The NwkSEncKey value.

+ */ + inline SessionKeysAbpV1_1& WithNwkSEncKey(Aws::String&& value) { SetNwkSEncKey(std::move(value)); return *this;} + + /** + *

The NwkSEncKey value.

+ */ + inline SessionKeysAbpV1_1& WithNwkSEncKey(const char* value) { SetNwkSEncKey(value); return *this;} + + + /** + *

The AppSKey value.

+ */ + inline const Aws::String& GetAppSKey() const{ return m_appSKey; } + + /** + *

The AppSKey value.

+ */ + inline bool AppSKeyHasBeenSet() const { return m_appSKeyHasBeenSet; } + + /** + *

The AppSKey value.

+ */ + inline void SetAppSKey(const Aws::String& value) { m_appSKeyHasBeenSet = true; m_appSKey = value; } + + /** + *

The AppSKey value.

+ */ + inline void SetAppSKey(Aws::String&& value) { m_appSKeyHasBeenSet = true; m_appSKey = std::move(value); } + + /** + *

The AppSKey value.

+ */ + inline void SetAppSKey(const char* value) { m_appSKeyHasBeenSet = true; m_appSKey.assign(value); } + + /** + *

The AppSKey value.

+ */ + inline SessionKeysAbpV1_1& WithAppSKey(const Aws::String& value) { SetAppSKey(value); return *this;} + + /** + *

The AppSKey value.

+ */ + inline SessionKeysAbpV1_1& WithAppSKey(Aws::String&& value) { SetAppSKey(std::move(value)); return *this;} + + /** + *

The AppSKey value.

+ */ + inline SessionKeysAbpV1_1& WithAppSKey(const char* value) { SetAppSKey(value); return *this;} + + private: + + Aws::String m_fNwkSIntKey; + bool m_fNwkSIntKeyHasBeenSet; + + Aws::String m_sNwkSIntKey; + bool m_sNwkSIntKeyHasBeenSet; + + Aws::String m_nwkSEncKey; + bool m_nwkSEncKeyHasBeenSet; + + Aws::String m_appSKey; + bool m_appSKeyHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfo.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfo.h new file mode 100644 index 00000000000..865b88ba6f5 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfo.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Information about a Sidewalk account.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SidewalkAccountInfo + { + public: + SidewalkAccountInfo(); + SidewalkAccountInfo(Aws::Utils::Json::JsonView jsonValue); + SidewalkAccountInfo& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Sidewalk Amazon ID.

+ */ + inline const Aws::String& GetAmazonId() const{ return m_amazonId; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline bool AmazonIdHasBeenSet() const { return m_amazonIdHasBeenSet; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(const Aws::String& value) { m_amazonIdHasBeenSet = true; m_amazonId = value; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(Aws::String&& value) { m_amazonIdHasBeenSet = true; m_amazonId = std::move(value); } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(const char* value) { m_amazonIdHasBeenSet = true; m_amazonId.assign(value); } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkAccountInfo& WithAmazonId(const Aws::String& value) { SetAmazonId(value); return *this;} + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkAccountInfo& WithAmazonId(Aws::String&& value) { SetAmazonId(std::move(value)); return *this;} + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkAccountInfo& WithAmazonId(const char* value) { SetAmazonId(value); return *this;} + + + /** + *

The Sidewalk application server private key.

+ */ + inline const Aws::String& GetAppServerPrivateKey() const{ return m_appServerPrivateKey; } + + /** + *

The Sidewalk application server private key.

+ */ + inline bool AppServerPrivateKeyHasBeenSet() const { return m_appServerPrivateKeyHasBeenSet; } + + /** + *

The Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(const Aws::String& value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey = value; } + + /** + *

The Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(Aws::String&& value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey = std::move(value); } + + /** + *

The Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(const char* value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey.assign(value); } + + /** + *

The Sidewalk application server private key.

+ */ + inline SidewalkAccountInfo& WithAppServerPrivateKey(const Aws::String& value) { SetAppServerPrivateKey(value); return *this;} + + /** + *

The Sidewalk application server private key.

+ */ + inline SidewalkAccountInfo& WithAppServerPrivateKey(Aws::String&& value) { SetAppServerPrivateKey(std::move(value)); return *this;} + + /** + *

The Sidewalk application server private key.

+ */ + inline SidewalkAccountInfo& WithAppServerPrivateKey(const char* value) { SetAppServerPrivateKey(value); return *this;} + + private: + + Aws::String m_amazonId; + bool m_amazonIdHasBeenSet; + + Aws::String m_appServerPrivateKey; + bool m_appServerPrivateKeyHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfoWithFingerprint.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfoWithFingerprint.h new file mode 100644 index 00000000000..ff596687e97 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkAccountInfoWithFingerprint.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Information about a Sidewalk account.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SidewalkAccountInfoWithFingerprint + { + public: + SidewalkAccountInfoWithFingerprint(); + SidewalkAccountInfoWithFingerprint(Aws::Utils::Json::JsonView jsonValue); + SidewalkAccountInfoWithFingerprint& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Sidewalk Amazon ID.

+ */ + inline const Aws::String& GetAmazonId() const{ return m_amazonId; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline bool AmazonIdHasBeenSet() const { return m_amazonIdHasBeenSet; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(const Aws::String& value) { m_amazonIdHasBeenSet = true; m_amazonId = value; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(Aws::String&& value) { m_amazonIdHasBeenSet = true; m_amazonId = std::move(value); } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(const char* value) { m_amazonIdHasBeenSet = true; m_amazonId.assign(value); } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkAccountInfoWithFingerprint& WithAmazonId(const Aws::String& value) { SetAmazonId(value); return *this;} + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkAccountInfoWithFingerprint& WithAmazonId(Aws::String&& value) { SetAmazonId(std::move(value)); return *this;} + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkAccountInfoWithFingerprint& WithAmazonId(const char* value) { SetAmazonId(value); return *this;} + + + /** + *

The Sidewalk application server private key.

+ */ + inline const Aws::String& GetAppServerPrivateKey() const{ return m_appServerPrivateKey; } + + /** + *

The Sidewalk application server private key.

+ */ + inline bool AppServerPrivateKeyHasBeenSet() const { return m_appServerPrivateKeyHasBeenSet; } + + /** + *

The Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(const Aws::String& value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey = value; } + + /** + *

The Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(Aws::String&& value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey = std::move(value); } + + /** + *

The Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(const char* value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey.assign(value); } + + /** + *

The Sidewalk application server private key.

+ */ + inline SidewalkAccountInfoWithFingerprint& WithAppServerPrivateKey(const Aws::String& value) { SetAppServerPrivateKey(value); return *this;} + + /** + *

The Sidewalk application server private key.

+ */ + inline SidewalkAccountInfoWithFingerprint& WithAppServerPrivateKey(Aws::String&& value) { SetAppServerPrivateKey(std::move(value)); return *this;} + + /** + *

The Sidewalk application server private key.

+ */ + inline SidewalkAccountInfoWithFingerprint& WithAppServerPrivateKey(const char* value) { SetAppServerPrivateKey(value); return *this;} + + private: + + Aws::String m_amazonId; + bool m_amazonIdHasBeenSet; + + Aws::String m_appServerPrivateKey; + bool m_appServerPrivateKeyHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkListDevice.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkListDevice.h new file mode 100644 index 00000000000..1d93b2e1de4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkListDevice.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Sidewalk object used by list functions.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SidewalkListDevice + { + public: + SidewalkListDevice(); + SidewalkListDevice(Aws::Utils::Json::JsonView jsonValue); + SidewalkListDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Sidewalk Amazon ID.

+ */ + inline const Aws::String& GetAmazonId() const{ return m_amazonId; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline bool AmazonIdHasBeenSet() const { return m_amazonIdHasBeenSet; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(const Aws::String& value) { m_amazonIdHasBeenSet = true; m_amazonId = value; } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(Aws::String&& value) { m_amazonIdHasBeenSet = true; m_amazonId = std::move(value); } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline void SetAmazonId(const char* value) { m_amazonIdHasBeenSet = true; m_amazonId.assign(value); } + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkListDevice& WithAmazonId(const Aws::String& value) { SetAmazonId(value); return *this;} + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkListDevice& WithAmazonId(Aws::String&& value) { SetAmazonId(std::move(value)); return *this;} + + /** + *

The Sidewalk Amazon ID.

+ */ + inline SidewalkListDevice& WithAmazonId(const char* value) { SetAmazonId(value); return *this;} + + private: + + Aws::String m_amazonId; + bool m_amazonIdHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkSendDataToDevice.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkSendDataToDevice.h new file mode 100644 index 00000000000..4620a2e2ad7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkSendDataToDevice.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Information about a Sidewalk router.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SidewalkSendDataToDevice + { + public: + SidewalkSendDataToDevice(); + SidewalkSendDataToDevice(Aws::Utils::Json::JsonView jsonValue); + SidewalkSendDataToDevice& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The sequence number.

+ */ + inline int GetSeq() const{ return m_seq; } + + /** + *

The sequence number.

+ */ + inline bool SeqHasBeenSet() const { return m_seqHasBeenSet; } + + /** + *

The sequence number.

+ */ + inline void SetSeq(int value) { m_seqHasBeenSet = true; m_seq = value; } + + /** + *

The sequence number.

+ */ + inline SidewalkSendDataToDevice& WithSeq(int value) { SetSeq(value); return *this;} + + private: + + int m_seq; + bool m_seqHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkUpdateAccount.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkUpdateAccount.h new file mode 100644 index 00000000000..bcbe1b8f175 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/SidewalkUpdateAccount.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Sidewalk update.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API SidewalkUpdateAccount + { + public: + SidewalkUpdateAccount(); + SidewalkUpdateAccount(Aws::Utils::Json::JsonView jsonValue); + SidewalkUpdateAccount& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The new Sidewalk application server private key.

+ */ + inline const Aws::String& GetAppServerPrivateKey() const{ return m_appServerPrivateKey; } + + /** + *

The new Sidewalk application server private key.

+ */ + inline bool AppServerPrivateKeyHasBeenSet() const { return m_appServerPrivateKeyHasBeenSet; } + + /** + *

The new Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(const Aws::String& value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey = value; } + + /** + *

The new Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(Aws::String&& value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey = std::move(value); } + + /** + *

The new Sidewalk application server private key.

+ */ + inline void SetAppServerPrivateKey(const char* value) { m_appServerPrivateKeyHasBeenSet = true; m_appServerPrivateKey.assign(value); } + + /** + *

The new Sidewalk application server private key.

+ */ + inline SidewalkUpdateAccount& WithAppServerPrivateKey(const Aws::String& value) { SetAppServerPrivateKey(value); return *this;} + + /** + *

The new Sidewalk application server private key.

+ */ + inline SidewalkUpdateAccount& WithAppServerPrivateKey(Aws::String&& value) { SetAppServerPrivateKey(std::move(value)); return *this;} + + /** + *

The new Sidewalk application server private key.

+ */ + inline SidewalkUpdateAccount& WithAppServerPrivateKey(const char* value) { SetAppServerPrivateKey(value); return *this;} + + private: + + Aws::String m_appServerPrivateKey; + bool m_appServerPrivateKeyHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Tag.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Tag.h new file mode 100644 index 00000000000..a659d2ca9ab --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/Tag.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

A simple label consisting of a customer-defined key-value pair

See + * Also:

AWS API + * Reference

+ */ + class AWS_IOTWIRELESS_API Tag + { + public: + Tag(); + Tag(Aws::Utils::Json::JsonView jsonValue); + Tag& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The tag's key value.

+ */ + inline const Aws::String& GetKey() const{ return m_key; } + + /** + *

The tag's key value.

+ */ + inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } + + /** + *

The tag's key value.

+ */ + inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } + + /** + *

The tag's key value.

+ */ + inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } + + /** + *

The tag's key value.

+ */ + inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } + + /** + *

The tag's key value.

+ */ + inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;} + + /** + *

The tag's key value.

+ */ + inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} + + /** + *

The tag's key value.

+ */ + inline Tag& WithKey(const char* value) { SetKey(value); return *this;} + + + /** + *

The tag's value.

+ */ + inline const Aws::String& GetValue() const{ return m_value; } + + /** + *

The tag's value.

+ */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

The tag's value.

+ */ + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

The tag's value.

+ */ + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + + /** + *

The tag's value.

+ */ + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + + /** + *

The tag's value.

+ */ + inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;} + + /** + *

The tag's value.

+ */ + inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + + /** + *

The tag's value.

+ */ + inline Tag& WithValue(const char* value) { SetValue(value); return *this;} + + private: + + Aws::String m_key; + bool m_keyHasBeenSet; + + Aws::String m_value; + bool m_valueHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceRequest.h new file mode 100644 index 00000000000..c50bebf5d89 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceRequest.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API TagResourceRequest : public IoTWirelessRequest + { + public: + TagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "TagResource"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN of the resource to add tags to.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the resource to add tags to.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the resource to add tags to.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the resource to add tags to.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the resource to add tags to.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the resource to add tags to.

+ */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the resource to add tags to.

+ */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the resource to add tags to.

+ */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline TagResourceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline TagResourceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

Adds to or modifies the tags of the given resource. Tags are metadata that + * can be used to manage a resource.

+ */ + inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceResult.h new file mode 100644 index 00000000000..7dc14c4ac85 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API TagResourceResult + { + public: + TagResourceResult(); + TagResourceResult(const Aws::AmazonWebServiceResult& result); + TagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceRequest.h new file mode 100644 index 00000000000..05007064dd7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceRequest.h @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API TestWirelessDeviceRequest : public IoTWirelessRequest + { + public: + TestWirelessDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "TestWirelessDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the wireless device to test.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the wireless device to test.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the wireless device to test.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the wireless device to test.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the wireless device to test.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the wireless device to test.

+ */ + inline TestWirelessDeviceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the wireless device to test.

+ */ + inline TestWirelessDeviceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the wireless device to test.

+ */ + inline TestWirelessDeviceRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceResult.h new file mode 100644 index 00000000000..2baa5707b62 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TestWirelessDeviceResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API TestWirelessDeviceResult + { + public: + TestWirelessDeviceResult(); + TestWirelessDeviceResult(const Aws::AmazonWebServiceResult& result); + TestWirelessDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The result returned by the test.

+ */ + inline const Aws::String& GetResult() const{ return m_result; } + + /** + *

The result returned by the test.

+ */ + inline void SetResult(const Aws::String& value) { m_result = value; } + + /** + *

The result returned by the test.

+ */ + inline void SetResult(Aws::String&& value) { m_result = std::move(value); } + + /** + *

The result returned by the test.

+ */ + inline void SetResult(const char* value) { m_result.assign(value); } + + /** + *

The result returned by the test.

+ */ + inline TestWirelessDeviceResult& WithResult(const Aws::String& value) { SetResult(value); return *this;} + + /** + *

The result returned by the test.

+ */ + inline TestWirelessDeviceResult& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;} + + /** + *

The result returned by the test.

+ */ + inline TestWirelessDeviceResult& WithResult(const char* value) { SetResult(value); return *this;} + + private: + + Aws::String m_result; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TooManyTagsException.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TooManyTagsException.h new file mode 100644 index 00000000000..d87a9a6550a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/TooManyTagsException.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

The request was denied because the resource can't have any more + * tags.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API TooManyTagsException + { + public: + TooManyTagsException(); + TooManyTagsException(Aws::Utils::Json::JsonView jsonValue); + TooManyTagsException& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + + inline const Aws::String& GetMessage() const{ return m_message; } + + + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + + inline TooManyTagsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + + inline TooManyTagsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + + inline TooManyTagsException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + + inline const Aws::String& GetResourceName() const{ return m_resourceName; } + + + inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } + + + inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } + + + inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } + + + inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } + + + inline TooManyTagsException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} + + + inline TooManyTagsException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} + + + inline TooManyTagsException& WithResourceName(const char* value) { SetResourceName(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceName; + bool m_resourceNameHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceRequest.h new file mode 100644 index 00000000000..f580a365df3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceRequest.h @@ -0,0 +1,139 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API UntagResourceRequest : public IoTWirelessRequest + { + public: + UntagResourceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

The ARN of the resource to remove tags from.

+ */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *

A list of the keys of the tags to remove from the resource.

+ */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceResult.h new file mode 100644 index 00000000000..dafa5b63c61 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UntagResourceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API UntagResourceResult + { + public: + UntagResourceResult(); + UntagResourceResult(const Aws::AmazonWebServiceResult& result); + UntagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationRequest.h new file mode 100644 index 00000000000..2b22006d6ee --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationRequest.h @@ -0,0 +1,250 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API UpdateDestinationRequest : public IoTWirelessRequest + { + public: + UpdateDestinationRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateDestination"; } + + Aws::String SerializePayload() const override; + + + /** + *

The new name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The new name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The new name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The new name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The new name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The new name of the resource.

+ */ + inline UpdateDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The new name of the resource.

+ */ + inline UpdateDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The new name of the resource.

+ */ + inline UpdateDestinationRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The type of value in Expression.

+ */ + inline const ExpressionType& GetExpressionType() const{ return m_expressionType; } + + /** + *

The type of value in Expression.

+ */ + inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(const ExpressionType& value) { m_expressionTypeHasBeenSet = true; m_expressionType = value; } + + /** + *

The type of value in Expression.

+ */ + inline void SetExpressionType(ExpressionType&& value) { m_expressionTypeHasBeenSet = true; m_expressionType = std::move(value); } + + /** + *

The type of value in Expression.

+ */ + inline UpdateDestinationRequest& WithExpressionType(const ExpressionType& value) { SetExpressionType(value); return *this;} + + /** + *

The type of value in Expression.

+ */ + inline UpdateDestinationRequest& WithExpressionType(ExpressionType&& value) { SetExpressionType(std::move(value)); return *this;} + + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline const Aws::String& GetExpression() const{ return m_expression; } + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline UpdateDestinationRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline UpdateDestinationRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} + + /** + *

The new rule name or topic rule to send messages to.

+ */ + inline UpdateDestinationRequest& WithExpression(const char* value) { SetExpression(value); return *this;} + + + /** + *

A new description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

A new description of the resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

A new description of the resource.

+ */ + inline UpdateDestinationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

A new description of the resource.

+ */ + inline UpdateDestinationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

A new description of the resource.

+ */ + inline UpdateDestinationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline UpdateDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline UpdateDestinationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

The ARN of the IAM Role that authorizes the destination.

+ */ + inline UpdateDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + ExpressionType m_expressionType; + bool m_expressionTypeHasBeenSet; + + Aws::String m_expression; + bool m_expressionHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationResult.h new file mode 100644 index 00000000000..baa79cee8e6 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateDestinationResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API UpdateDestinationResult + { + public: + UpdateDestinationResult(); + UpdateDestinationResult(const Aws::AmazonWebServiceResult& result); + UpdateDestinationResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountRequest.h new file mode 100644 index 00000000000..5bc0178d611 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountRequest.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API UpdatePartnerAccountRequest : public IoTWirelessRequest + { + public: + UpdatePartnerAccountRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdatePartnerAccount"; } + + Aws::String SerializePayload() const override; + + void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + /** + *

The Sidewalk account credentials.

+ */ + inline const SidewalkUpdateAccount& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

+ */ + inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(const SidewalkUpdateAccount& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(SidewalkUpdateAccount&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

+ */ + inline UpdatePartnerAccountRequest& WithSidewalk(const SidewalkUpdateAccount& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

+ */ + inline UpdatePartnerAccountRequest& WithSidewalk(SidewalkUpdateAccount&& value) { SetSidewalk(std::move(value)); return *this;} + + + /** + *

The ID of the partner account to update.

+ */ + inline const Aws::String& GetPartnerAccountId() const{ return m_partnerAccountId; } + + /** + *

The ID of the partner account to update.

+ */ + inline bool PartnerAccountIdHasBeenSet() const { return m_partnerAccountIdHasBeenSet; } + + /** + *

The ID of the partner account to update.

+ */ + inline void SetPartnerAccountId(const Aws::String& value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId = value; } + + /** + *

The ID of the partner account to update.

+ */ + inline void SetPartnerAccountId(Aws::String&& value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId = std::move(value); } + + /** + *

The ID of the partner account to update.

+ */ + inline void SetPartnerAccountId(const char* value) { m_partnerAccountIdHasBeenSet = true; m_partnerAccountId.assign(value); } + + /** + *

The ID of the partner account to update.

+ */ + inline UpdatePartnerAccountRequest& WithPartnerAccountId(const Aws::String& value) { SetPartnerAccountId(value); return *this;} + + /** + *

The ID of the partner account to update.

+ */ + inline UpdatePartnerAccountRequest& WithPartnerAccountId(Aws::String&& value) { SetPartnerAccountId(std::move(value)); return *this;} + + /** + *

The ID of the partner account to update.

+ */ + inline UpdatePartnerAccountRequest& WithPartnerAccountId(const char* value) { SetPartnerAccountId(value); return *this;} + + + /** + *

The partner type.

+ */ + inline const PartnerType& GetPartnerType() const{ return m_partnerType; } + + /** + *

The partner type.

+ */ + inline bool PartnerTypeHasBeenSet() const { return m_partnerTypeHasBeenSet; } + + /** + *

The partner type.

+ */ + inline void SetPartnerType(const PartnerType& value) { m_partnerTypeHasBeenSet = true; m_partnerType = value; } + + /** + *

The partner type.

+ */ + inline void SetPartnerType(PartnerType&& value) { m_partnerTypeHasBeenSet = true; m_partnerType = std::move(value); } + + /** + *

The partner type.

+ */ + inline UpdatePartnerAccountRequest& WithPartnerType(const PartnerType& value) { SetPartnerType(value); return *this;} + + /** + *

The partner type.

+ */ + inline UpdatePartnerAccountRequest& WithPartnerType(PartnerType&& value) { SetPartnerType(std::move(value)); return *this;} + + private: + + SidewalkUpdateAccount m_sidewalk; + bool m_sidewalkHasBeenSet; + + Aws::String m_partnerAccountId; + bool m_partnerAccountIdHasBeenSet; + + PartnerType m_partnerType; + bool m_partnerTypeHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountResult.h new file mode 100644 index 00000000000..2be43015866 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdatePartnerAccountResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API UpdatePartnerAccountResult + { + public: + UpdatePartnerAccountResult(); + UpdatePartnerAccountResult(const Aws::AmazonWebServiceResult& result); + UpdatePartnerAccountResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceRequest.h new file mode 100644 index 00000000000..ae36d361afd --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceRequest.h @@ -0,0 +1,250 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API UpdateWirelessDeviceRequest : public IoTWirelessRequest + { + public: + UpdateWirelessDeviceRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateWirelessDevice"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline UpdateWirelessDeviceRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline UpdateWirelessDeviceRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline UpdateWirelessDeviceRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The name of the new destination for the device.

+ */ + inline const Aws::String& GetDestinationName() const{ return m_destinationName; } + + /** + *

The name of the new destination for the device.

+ */ + inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } + + /** + *

The name of the new destination for the device.

+ */ + inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } + + /** + *

The name of the new destination for the device.

+ */ + inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } + + /** + *

The name of the new destination for the device.

+ */ + inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } + + /** + *

The name of the new destination for the device.

+ */ + inline UpdateWirelessDeviceRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} + + /** + *

The name of the new destination for the device.

+ */ + inline UpdateWirelessDeviceRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} + + /** + *

The name of the new destination for the device.

+ */ + inline UpdateWirelessDeviceRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} + + + /** + *

The new name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The new name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The new name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The new name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The new name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The new name of the resource.

+ */ + inline UpdateWirelessDeviceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The new name of the resource.

+ */ + inline UpdateWirelessDeviceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The new name of the resource.

+ */ + inline UpdateWirelessDeviceRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

A new description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

A new description of the resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

A new description of the resource.

+ */ + inline UpdateWirelessDeviceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

A new description of the resource.

+ */ + inline UpdateWirelessDeviceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

A new description of the resource.

+ */ + inline UpdateWirelessDeviceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

The updated wireless device's configuration.

+ */ + inline const LoRaWANUpdateDevice& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The updated wireless device's configuration.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The updated wireless device's configuration.

+ */ + inline void SetLoRaWAN(const LoRaWANUpdateDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The updated wireless device's configuration.

+ */ + inline void SetLoRaWAN(LoRaWANUpdateDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The updated wireless device's configuration.

+ */ + inline UpdateWirelessDeviceRequest& WithLoRaWAN(const LoRaWANUpdateDevice& value) { SetLoRaWAN(value); return *this;} + + /** + *

The updated wireless device's configuration.

+ */ + inline UpdateWirelessDeviceRequest& WithLoRaWAN(LoRaWANUpdateDevice&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_destinationName; + bool m_destinationNameHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + LoRaWANUpdateDevice m_loRaWAN; + bool m_loRaWANHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceResult.h new file mode 100644 index 00000000000..d9fc75719ec --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessDeviceResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API UpdateWirelessDeviceResult + { + public: + UpdateWirelessDeviceResult(); + UpdateWirelessDeviceResult(const Aws::AmazonWebServiceResult& result); + UpdateWirelessDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayRequest.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayRequest.h new file mode 100644 index 00000000000..fe22380c135 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayRequest.h @@ -0,0 +1,171 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + + /** + */ + class AWS_IOTWIRELESS_API UpdateWirelessGatewayRequest : public IoTWirelessRequest + { + public: + UpdateWirelessGatewayRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateWirelessGateway"; } + + Aws::String SerializePayload() const override; + + + /** + *

The ID of the resource to update.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the resource to update.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the resource to update.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the resource to update.

+ */ + inline UpdateWirelessGatewayRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline UpdateWirelessGatewayRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the resource to update.

+ */ + inline UpdateWirelessGatewayRequest& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The new name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The new name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The new name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The new name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The new name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The new name of the resource.

+ */ + inline UpdateWirelessGatewayRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The new name of the resource.

+ */ + inline UpdateWirelessGatewayRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The new name of the resource.

+ */ + inline UpdateWirelessGatewayRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

A new description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

A new description of the resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

A new description of the resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

A new description of the resource.

+ */ + inline UpdateWirelessGatewayRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

A new description of the resource.

+ */ + inline UpdateWirelessGatewayRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

A new description of the resource.

+ */ + inline UpdateWirelessGatewayRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayResult.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayResult.h new file mode 100644 index 00000000000..9b65112274a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + class AWS_IOTWIRELESS_API UpdateWirelessGatewayResult + { + public: + UpdateWirelessGatewayResult(); + UpdateWirelessGatewayResult(const Aws::AmazonWebServiceResult& result); + UpdateWirelessGatewayResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskCreate.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskCreate.h new file mode 100644 index 00000000000..77f067e7a07 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskCreate.h @@ -0,0 +1,167 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

UpdateWirelessGatewayTaskCreate object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API UpdateWirelessGatewayTaskCreate + { + public: + UpdateWirelessGatewayTaskCreate(); + UpdateWirelessGatewayTaskCreate(Aws::Utils::Json::JsonView jsonValue); + UpdateWirelessGatewayTaskCreate& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The link to the S3 bucket.

+ */ + inline const Aws::String& GetUpdateDataSource() const{ return m_updateDataSource; } + + /** + *

The link to the S3 bucket.

+ */ + inline bool UpdateDataSourceHasBeenSet() const { return m_updateDataSourceHasBeenSet; } + + /** + *

The link to the S3 bucket.

+ */ + inline void SetUpdateDataSource(const Aws::String& value) { m_updateDataSourceHasBeenSet = true; m_updateDataSource = value; } + + /** + *

The link to the S3 bucket.

+ */ + inline void SetUpdateDataSource(Aws::String&& value) { m_updateDataSourceHasBeenSet = true; m_updateDataSource = std::move(value); } + + /** + *

The link to the S3 bucket.

+ */ + inline void SetUpdateDataSource(const char* value) { m_updateDataSourceHasBeenSet = true; m_updateDataSource.assign(value); } + + /** + *

The link to the S3 bucket.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithUpdateDataSource(const Aws::String& value) { SetUpdateDataSource(value); return *this;} + + /** + *

The link to the S3 bucket.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithUpdateDataSource(Aws::String&& value) { SetUpdateDataSource(std::move(value)); return *this;} + + /** + *

The link to the S3 bucket.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithUpdateDataSource(const char* value) { SetUpdateDataSource(value); return *this;} + + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline const Aws::String& GetUpdateDataRole() const{ return m_updateDataRole; } + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline bool UpdateDataRoleHasBeenSet() const { return m_updateDataRoleHasBeenSet; } + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline void SetUpdateDataRole(const Aws::String& value) { m_updateDataRoleHasBeenSet = true; m_updateDataRole = value; } + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline void SetUpdateDataRole(Aws::String&& value) { m_updateDataRoleHasBeenSet = true; m_updateDataRole = std::move(value); } + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline void SetUpdateDataRole(const char* value) { m_updateDataRoleHasBeenSet = true; m_updateDataRole.assign(value); } + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithUpdateDataRole(const Aws::String& value) { SetUpdateDataRole(value); return *this;} + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithUpdateDataRole(Aws::String&& value) { SetUpdateDataRole(std::move(value)); return *this;} + + /** + *

The IAM role used to read data from the S3 bucket.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithUpdateDataRole(const char* value) { SetUpdateDataRole(value); return *this;} + + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline const LoRaWANUpdateGatewayTaskCreate& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline void SetLoRaWAN(const LoRaWANUpdateGatewayTaskCreate& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline void SetLoRaWAN(LoRaWANUpdateGatewayTaskCreate&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithLoRaWAN(const LoRaWANUpdateGatewayTaskCreate& value) { SetLoRaWAN(value); return *this;} + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline UpdateWirelessGatewayTaskCreate& WithLoRaWAN(LoRaWANUpdateGatewayTaskCreate&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + Aws::String m_updateDataSource; + bool m_updateDataSourceHasBeenSet; + + Aws::String m_updateDataRole; + bool m_updateDataRoleHasBeenSet; + + LoRaWANUpdateGatewayTaskCreate m_loRaWAN; + bool m_loRaWANHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskEntry.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskEntry.h new file mode 100644 index 00000000000..52f8594b02d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/UpdateWirelessGatewayTaskEntry.h @@ -0,0 +1,123 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

UpdateWirelessGatewayTaskEntry object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API UpdateWirelessGatewayTaskEntry + { + public: + UpdateWirelessGatewayTaskEntry(); + UpdateWirelessGatewayTaskEntry(Aws::Utils::Json::JsonView jsonValue); + UpdateWirelessGatewayTaskEntry& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline UpdateWirelessGatewayTaskEntry& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline UpdateWirelessGatewayTaskEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the new wireless gateway task entry.

+ */ + inline UpdateWirelessGatewayTaskEntry& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline const LoRaWANUpdateGatewayTaskEntry& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline void SetLoRaWAN(const LoRaWANUpdateGatewayTaskEntry& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline void SetLoRaWAN(LoRaWANUpdateGatewayTaskEntry&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline UpdateWirelessGatewayTaskEntry& WithLoRaWAN(const LoRaWANUpdateGatewayTaskEntry& value) { SetLoRaWAN(value); return *this;} + + /** + *

The properties that relate to the LoRaWAN wireless gateway.

+ */ + inline UpdateWirelessGatewayTaskEntry& WithLoRaWAN(LoRaWANUpdateGatewayTaskEntry&& value) { SetLoRaWAN(std::move(value)); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet; + + LoRaWANUpdateGatewayTaskEntry m_loRaWAN; + bool m_loRaWANHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceIdType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceIdType.h new file mode 100644 index 00000000000..180f060df65 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceIdType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class WirelessDeviceIdType + { + NOT_SET, + WirelessDeviceId, + DevEui, + ThingName + }; + +namespace WirelessDeviceIdTypeMapper +{ +AWS_IOTWIRELESS_API WirelessDeviceIdType GetWirelessDeviceIdTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForWirelessDeviceIdType(WirelessDeviceIdType value); +} // namespace WirelessDeviceIdTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceStatistics.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceStatistics.h new file mode 100644 index 00000000000..0fd268701f9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceStatistics.h @@ -0,0 +1,370 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Information about a wireless device's operation.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API WirelessDeviceStatistics + { + public: + WirelessDeviceStatistics(); + WirelessDeviceStatistics(Aws::Utils::Json::JsonView jsonValue); + WirelessDeviceStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline WirelessDeviceStatistics& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline WirelessDeviceStatistics& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline WirelessDeviceStatistics& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline WirelessDeviceStatistics& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline WirelessDeviceStatistics& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the wireless device reporting the data.

+ */ + inline WirelessDeviceStatistics& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The wireless device type.

+ */ + inline const WirelessDeviceType& GetType() const{ return m_type; } + + /** + *

The wireless device type.

+ */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

The wireless device type.

+ */ + inline void SetType(const WirelessDeviceType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

The wireless device type.

+ */ + inline void SetType(WirelessDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

The wireless device type.

+ */ + inline WirelessDeviceStatistics& WithType(const WirelessDeviceType& value) { SetType(value); return *this;} + + /** + *

The wireless device type.

+ */ + inline WirelessDeviceStatistics& WithType(WirelessDeviceType&& value) { SetType(std::move(value)); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline WirelessDeviceStatistics& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline WirelessDeviceStatistics& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline WirelessDeviceStatistics& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline const Aws::String& GetDestinationName() const{ return m_destinationName; } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline WirelessDeviceStatistics& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline WirelessDeviceStatistics& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} + + /** + *

The name of the destination to which the device is assigned.

+ */ + inline WirelessDeviceStatistics& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} + + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline const Aws::String& GetLastUplinkReceivedAt() const{ return m_lastUplinkReceivedAt; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline bool LastUplinkReceivedAtHasBeenSet() const { return m_lastUplinkReceivedAtHasBeenSet; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const Aws::String& value) { m_lastUplinkReceivedAtHasBeenSet = true; m_lastUplinkReceivedAt = value; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(Aws::String&& value) { m_lastUplinkReceivedAtHasBeenSet = true; m_lastUplinkReceivedAt = std::move(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const char* value) { m_lastUplinkReceivedAtHasBeenSet = true; m_lastUplinkReceivedAt.assign(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline WirelessDeviceStatistics& WithLastUplinkReceivedAt(const Aws::String& value) { SetLastUplinkReceivedAt(value); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline WirelessDeviceStatistics& WithLastUplinkReceivedAt(Aws::String&& value) { SetLastUplinkReceivedAt(std::move(value)); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline WirelessDeviceStatistics& WithLastUplinkReceivedAt(const char* value) { SetLastUplinkReceivedAt(value); return *this;} + + + /** + *

LoRaWAN device info.

+ */ + inline const LoRaWANListDevice& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

LoRaWAN device info.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

LoRaWAN device info.

+ */ + inline void SetLoRaWAN(const LoRaWANListDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

LoRaWAN device info.

+ */ + inline void SetLoRaWAN(LoRaWANListDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

LoRaWAN device info.

+ */ + inline WirelessDeviceStatistics& WithLoRaWAN(const LoRaWANListDevice& value) { SetLoRaWAN(value); return *this;} + + /** + *

LoRaWAN device info.

+ */ + inline WirelessDeviceStatistics& WithLoRaWAN(LoRaWANListDevice&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The Sidewalk account credentials.

+ */ + inline const SidewalkListDevice& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

+ */ + inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(const SidewalkListDevice& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(SidewalkListDevice&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

+ */ + inline WirelessDeviceStatistics& WithSidewalk(const SidewalkListDevice& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

+ */ + inline WirelessDeviceStatistics& WithSidewalk(SidewalkListDevice&& value) { SetSidewalk(std::move(value)); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_id; + bool m_idHasBeenSet; + + WirelessDeviceType m_type; + bool m_typeHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_destinationName; + bool m_destinationNameHasBeenSet; + + Aws::String m_lastUplinkReceivedAt; + bool m_lastUplinkReceivedAtHasBeenSet; + + LoRaWANListDevice m_loRaWAN; + bool m_loRaWANHasBeenSet; + + SidewalkListDevice m_sidewalk; + bool m_sidewalkHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceType.h new file mode 100644 index 00000000000..ce1b92a5164 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessDeviceType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class WirelessDeviceType + { + NOT_SET, + Sidewalk, + LoRaWAN + }; + +namespace WirelessDeviceTypeMapper +{ +AWS_IOTWIRELESS_API WirelessDeviceType GetWirelessDeviceTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForWirelessDeviceType(WirelessDeviceType value); +} // namespace WirelessDeviceTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayIdType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayIdType.h new file mode 100644 index 00000000000..2d596841f63 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayIdType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class WirelessGatewayIdType + { + NOT_SET, + GatewayEui, + WirelessGatewayId, + ThingName + }; + +namespace WirelessGatewayIdTypeMapper +{ +AWS_IOTWIRELESS_API WirelessGatewayIdType GetWirelessGatewayIdTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForWirelessGatewayIdType(WirelessGatewayIdType value); +} // namespace WirelessGatewayIdTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayServiceType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayServiceType.h new file mode 100644 index 00000000000..81867f8a3e9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayServiceType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class WirelessGatewayServiceType + { + NOT_SET, + CUPS, + LNS + }; + +namespace WirelessGatewayServiceTypeMapper +{ +AWS_IOTWIRELESS_API WirelessGatewayServiceType GetWirelessGatewayServiceTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForWirelessGatewayServiceType(WirelessGatewayServiceType value); +} // namespace WirelessGatewayServiceTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayStatistics.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayStatistics.h new file mode 100644 index 00000000000..5a8b5eda0aa --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayStatistics.h @@ -0,0 +1,300 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

Information about a wireless gateway's operation.

See Also:

+ * AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API WirelessGatewayStatistics + { + public: + WirelessGatewayStatistics(); + WirelessGatewayStatistics(Aws::Utils::Json::JsonView jsonValue); + WirelessGatewayStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline WirelessGatewayStatistics& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline WirelessGatewayStatistics& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name of the resource.

+ */ + inline WirelessGatewayStatistics& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline WirelessGatewayStatistics& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline WirelessGatewayStatistics& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the wireless gateway reporting the data.

+ */ + inline WirelessGatewayStatistics& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The name of the resource.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the resource.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the resource.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the resource.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the resource.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the resource.

+ */ + inline WirelessGatewayStatistics& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the resource.

+ */ + inline WirelessGatewayStatistics& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the resource.

+ */ + inline WirelessGatewayStatistics& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The description of the resource.

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the resource.

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the resource.

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the resource.

+ */ + inline WirelessGatewayStatistics& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the resource.

+ */ + inline WirelessGatewayStatistics& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the resource.

+ */ + inline WirelessGatewayStatistics& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

LoRaWAN gateway info.

+ */ + inline const LoRaWANGateway& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

LoRaWAN gateway info.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

LoRaWAN gateway info.

+ */ + inline void SetLoRaWAN(const LoRaWANGateway& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

LoRaWAN gateway info.

+ */ + inline void SetLoRaWAN(LoRaWANGateway&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

LoRaWAN gateway info.

+ */ + inline WirelessGatewayStatistics& WithLoRaWAN(const LoRaWANGateway& value) { SetLoRaWAN(value); return *this;} + + /** + *

LoRaWAN gateway info.

+ */ + inline WirelessGatewayStatistics& WithLoRaWAN(LoRaWANGateway&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline const Aws::String& GetLastUplinkReceivedAt() const{ return m_lastUplinkReceivedAt; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline bool LastUplinkReceivedAtHasBeenSet() const { return m_lastUplinkReceivedAtHasBeenSet; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const Aws::String& value) { m_lastUplinkReceivedAtHasBeenSet = true; m_lastUplinkReceivedAt = value; } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(Aws::String&& value) { m_lastUplinkReceivedAtHasBeenSet = true; m_lastUplinkReceivedAt = std::move(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline void SetLastUplinkReceivedAt(const char* value) { m_lastUplinkReceivedAtHasBeenSet = true; m_lastUplinkReceivedAt.assign(value); } + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline WirelessGatewayStatistics& WithLastUplinkReceivedAt(const Aws::String& value) { SetLastUplinkReceivedAt(value); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline WirelessGatewayStatistics& WithLastUplinkReceivedAt(Aws::String&& value) { SetLastUplinkReceivedAt(std::move(value)); return *this;} + + /** + *

The date and time when the most recent uplink was received.

+ */ + inline WirelessGatewayStatistics& WithLastUplinkReceivedAt(const char* value) { SetLastUplinkReceivedAt(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::String m_id; + bool m_idHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_description; + bool m_descriptionHasBeenSet; + + LoRaWANGateway m_loRaWAN; + bool m_loRaWANHasBeenSet; + + Aws::String m_lastUplinkReceivedAt; + bool m_lastUplinkReceivedAtHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskDefinitionType.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskDefinitionType.h new file mode 100644 index 00000000000..865090cf919 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskDefinitionType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class WirelessGatewayTaskDefinitionType + { + NOT_SET, + UPDATE + }; + +namespace WirelessGatewayTaskDefinitionTypeMapper +{ +AWS_IOTWIRELESS_API WirelessGatewayTaskDefinitionType GetWirelessGatewayTaskDefinitionTypeForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForWirelessGatewayTaskDefinitionType(WirelessGatewayTaskDefinitionType value); +} // namespace WirelessGatewayTaskDefinitionTypeMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskStatus.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskStatus.h new file mode 100644 index 00000000000..37d2059abbf --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessGatewayTaskStatus.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + enum class WirelessGatewayTaskStatus + { + NOT_SET, + PENDING, + IN_PROGRESS, + FIRST_RETRY, + SECOND_RETRY, + COMPLETED, + FAILED + }; + +namespace WirelessGatewayTaskStatusMapper +{ +AWS_IOTWIRELESS_API WirelessGatewayTaskStatus GetWirelessGatewayTaskStatusForName(const Aws::String& name); + +AWS_IOTWIRELESS_API Aws::String GetNameForWirelessGatewayTaskStatus(WirelessGatewayTaskStatus value); +} // namespace WirelessGatewayTaskStatusMapper +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessMetadata.h b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessMetadata.h new file mode 100644 index 00000000000..67812aa50f7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/include/aws/iotwireless/model/WirelessMetadata.h @@ -0,0 +1,113 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace IoTWireless +{ +namespace Model +{ + + /** + *

WirelessMetadata object.

See Also:

AWS + * API Reference

+ */ + class AWS_IOTWIRELESS_API WirelessMetadata + { + public: + WirelessMetadata(); + WirelessMetadata(Aws::Utils::Json::JsonView jsonValue); + WirelessMetadata& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

LoRaWAN device info.

+ */ + inline const LoRaWANSendDataToDevice& GetLoRaWAN() const{ return m_loRaWAN; } + + /** + *

LoRaWAN device info.

+ */ + inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; } + + /** + *

LoRaWAN device info.

+ */ + inline void SetLoRaWAN(const LoRaWANSendDataToDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; } + + /** + *

LoRaWAN device info.

+ */ + inline void SetLoRaWAN(LoRaWANSendDataToDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); } + + /** + *

LoRaWAN device info.

+ */ + inline WirelessMetadata& WithLoRaWAN(const LoRaWANSendDataToDevice& value) { SetLoRaWAN(value); return *this;} + + /** + *

LoRaWAN device info.

+ */ + inline WirelessMetadata& WithLoRaWAN(LoRaWANSendDataToDevice&& value) { SetLoRaWAN(std::move(value)); return *this;} + + + /** + *

The Sidewalk account credentials.

+ */ + inline const SidewalkSendDataToDevice& GetSidewalk() const{ return m_sidewalk; } + + /** + *

The Sidewalk account credentials.

+ */ + inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(const SidewalkSendDataToDevice& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; } + + /** + *

The Sidewalk account credentials.

+ */ + inline void SetSidewalk(SidewalkSendDataToDevice&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); } + + /** + *

The Sidewalk account credentials.

+ */ + inline WirelessMetadata& WithSidewalk(const SidewalkSendDataToDevice& value) { SetSidewalk(value); return *this;} + + /** + *

The Sidewalk account credentials.

+ */ + inline WirelessMetadata& WithSidewalk(SidewalkSendDataToDevice&& value) { SetSidewalk(std::move(value)); return *this;} + + private: + + LoRaWANSendDataToDevice m_loRaWAN; + bool m_loRaWANHasBeenSet; + + SidewalkSendDataToDevice m_sidewalk; + bool m_sidewalkHasBeenSet; + }; + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp b/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp new file mode 100644 index 00000000000..af11c7399e1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/IoTWirelessClient.cpp @@ -0,0 +1,1782 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::IoTWireless; +using namespace Aws::IoTWireless::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; + +static const char* SERVICE_NAME = "iotwireless"; +static const char* ALLOCATION_TAG = "IoTWirelessClient"; + + +IoTWirelessClient::IoTWirelessClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTWirelessClient::IoTWirelessClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTWirelessClient::IoTWirelessClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, credentialsProvider, + SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_executor(clientConfiguration.executor) +{ + init(clientConfiguration); +} + +IoTWirelessClient::~IoTWirelessClient() +{ +} + +void IoTWirelessClient::init(const ClientConfiguration& config) +{ + SetServiceClientName("IoT Wireless"); + m_configScheme = SchemeMapper::ToString(config.scheme); + if (config.endpointOverride.empty()) + { + m_uri = m_configScheme + "://" + IoTWirelessEndpoint::ForRegion(config.region, config.useDualStack); + } + else + { + OverrideEndpoint(config.endpointOverride); + } +} + +void IoTWirelessClient::OverrideEndpoint(const Aws::String& endpoint) +{ + if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0) + { + m_uri = endpoint; + } + else + { + m_uri = m_configScheme + "://" + endpoint; + } +} + +AssociateAwsAccountWithPartnerAccountOutcome IoTWirelessClient::AssociateAwsAccountWithPartnerAccount(const AssociateAwsAccountWithPartnerAccountRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/partner-accounts"; + uri.SetPath(uri.GetPath() + ss.str()); + return AssociateAwsAccountWithPartnerAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +AssociateAwsAccountWithPartnerAccountOutcomeCallable IoTWirelessClient::AssociateAwsAccountWithPartnerAccountCallable(const AssociateAwsAccountWithPartnerAccountRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< AssociateAwsAccountWithPartnerAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateAwsAccountWithPartnerAccount(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::AssociateAwsAccountWithPartnerAccountAsync(const AssociateAwsAccountWithPartnerAccountRequest& request, const AssociateAwsAccountWithPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->AssociateAwsAccountWithPartnerAccountAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::AssociateAwsAccountWithPartnerAccountAsyncHelper(const AssociateAwsAccountWithPartnerAccountRequest& request, const AssociateAwsAccountWithPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, AssociateAwsAccountWithPartnerAccount(request), context); +} + +AssociateWirelessDeviceWithThingOutcome IoTWirelessClient::AssociateWirelessDeviceWithThing(const AssociateWirelessDeviceWithThingRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AssociateWirelessDeviceWithThing", "Required field: Id, is not set"); + return AssociateWirelessDeviceWithThingOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetId(); + ss << "/thing"; + uri.SetPath(uri.GetPath() + ss.str()); + return AssociateWirelessDeviceWithThingOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); +} + +AssociateWirelessDeviceWithThingOutcomeCallable IoTWirelessClient::AssociateWirelessDeviceWithThingCallable(const AssociateWirelessDeviceWithThingRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< AssociateWirelessDeviceWithThingOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateWirelessDeviceWithThing(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::AssociateWirelessDeviceWithThingAsync(const AssociateWirelessDeviceWithThingRequest& request, const AssociateWirelessDeviceWithThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->AssociateWirelessDeviceWithThingAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::AssociateWirelessDeviceWithThingAsyncHelper(const AssociateWirelessDeviceWithThingRequest& request, const AssociateWirelessDeviceWithThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, AssociateWirelessDeviceWithThing(request), context); +} + +AssociateWirelessGatewayWithCertificateOutcome IoTWirelessClient::AssociateWirelessGatewayWithCertificate(const AssociateWirelessGatewayWithCertificateRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AssociateWirelessGatewayWithCertificate", "Required field: Id, is not set"); + return AssociateWirelessGatewayWithCertificateOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/certificate"; + uri.SetPath(uri.GetPath() + ss.str()); + return AssociateWirelessGatewayWithCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); +} + +AssociateWirelessGatewayWithCertificateOutcomeCallable IoTWirelessClient::AssociateWirelessGatewayWithCertificateCallable(const AssociateWirelessGatewayWithCertificateRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< AssociateWirelessGatewayWithCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateWirelessGatewayWithCertificate(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::AssociateWirelessGatewayWithCertificateAsync(const AssociateWirelessGatewayWithCertificateRequest& request, const AssociateWirelessGatewayWithCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->AssociateWirelessGatewayWithCertificateAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::AssociateWirelessGatewayWithCertificateAsyncHelper(const AssociateWirelessGatewayWithCertificateRequest& request, const AssociateWirelessGatewayWithCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, AssociateWirelessGatewayWithCertificate(request), context); +} + +AssociateWirelessGatewayWithThingOutcome IoTWirelessClient::AssociateWirelessGatewayWithThing(const AssociateWirelessGatewayWithThingRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("AssociateWirelessGatewayWithThing", "Required field: Id, is not set"); + return AssociateWirelessGatewayWithThingOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/thing"; + uri.SetPath(uri.GetPath() + ss.str()); + return AssociateWirelessGatewayWithThingOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); +} + +AssociateWirelessGatewayWithThingOutcomeCallable IoTWirelessClient::AssociateWirelessGatewayWithThingCallable(const AssociateWirelessGatewayWithThingRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< AssociateWirelessGatewayWithThingOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateWirelessGatewayWithThing(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::AssociateWirelessGatewayWithThingAsync(const AssociateWirelessGatewayWithThingRequest& request, const AssociateWirelessGatewayWithThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->AssociateWirelessGatewayWithThingAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::AssociateWirelessGatewayWithThingAsyncHelper(const AssociateWirelessGatewayWithThingRequest& request, const AssociateWirelessGatewayWithThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, AssociateWirelessGatewayWithThing(request), context); +} + +CreateDestinationOutcome IoTWirelessClient::CreateDestination(const CreateDestinationRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/destinations"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateDestinationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateDestinationOutcomeCallable IoTWirelessClient::CreateDestinationCallable(const CreateDestinationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateDestinationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateDestination(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateDestinationAsync(const CreateDestinationRequest& request, const CreateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateDestinationAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateDestinationAsyncHelper(const CreateDestinationRequest& request, const CreateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateDestination(request), context); +} + +CreateDeviceProfileOutcome IoTWirelessClient::CreateDeviceProfile(const CreateDeviceProfileRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/device-profiles"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateDeviceProfileOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateDeviceProfileOutcomeCallable IoTWirelessClient::CreateDeviceProfileCallable(const CreateDeviceProfileRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateDeviceProfileOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateDeviceProfile(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateDeviceProfileAsync(const CreateDeviceProfileRequest& request, const CreateDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateDeviceProfileAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateDeviceProfileAsyncHelper(const CreateDeviceProfileRequest& request, const CreateDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateDeviceProfile(request), context); +} + +CreateServiceProfileOutcome IoTWirelessClient::CreateServiceProfile(const CreateServiceProfileRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/service-profiles"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateServiceProfileOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateServiceProfileOutcomeCallable IoTWirelessClient::CreateServiceProfileCallable(const CreateServiceProfileRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateServiceProfileOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateServiceProfile(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateServiceProfileAsync(const CreateServiceProfileRequest& request, const CreateServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateServiceProfileAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateServiceProfileAsyncHelper(const CreateServiceProfileRequest& request, const CreateServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateServiceProfile(request), context); +} + +CreateWirelessDeviceOutcome IoTWirelessClient::CreateWirelessDevice(const CreateWirelessDeviceRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateWirelessDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateWirelessDeviceOutcomeCallable IoTWirelessClient::CreateWirelessDeviceCallable(const CreateWirelessDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateWirelessDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateWirelessDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateWirelessDeviceAsync(const CreateWirelessDeviceRequest& request, const CreateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateWirelessDeviceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateWirelessDeviceAsyncHelper(const CreateWirelessDeviceRequest& request, const CreateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateWirelessDevice(request), context); +} + +CreateWirelessGatewayOutcome IoTWirelessClient::CreateWirelessGateway(const CreateWirelessGatewayRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateWirelessGatewayOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateWirelessGatewayOutcomeCallable IoTWirelessClient::CreateWirelessGatewayCallable(const CreateWirelessGatewayRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateWirelessGatewayOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateWirelessGateway(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateWirelessGatewayAsync(const CreateWirelessGatewayRequest& request, const CreateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateWirelessGatewayAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateWirelessGatewayAsyncHelper(const CreateWirelessGatewayRequest& request, const CreateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateWirelessGateway(request), context); +} + +CreateWirelessGatewayTaskOutcome IoTWirelessClient::CreateWirelessGatewayTask(const CreateWirelessGatewayTaskRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateWirelessGatewayTask", "Required field: Id, is not set"); + return CreateWirelessGatewayTaskOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/tasks"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateWirelessGatewayTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateWirelessGatewayTaskOutcomeCallable IoTWirelessClient::CreateWirelessGatewayTaskCallable(const CreateWirelessGatewayTaskRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateWirelessGatewayTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateWirelessGatewayTask(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateWirelessGatewayTaskAsync(const CreateWirelessGatewayTaskRequest& request, const CreateWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateWirelessGatewayTaskAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateWirelessGatewayTaskAsyncHelper(const CreateWirelessGatewayTaskRequest& request, const CreateWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateWirelessGatewayTask(request), context); +} + +CreateWirelessGatewayTaskDefinitionOutcome IoTWirelessClient::CreateWirelessGatewayTaskDefinition(const CreateWirelessGatewayTaskDefinitionRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateway-task-definitions"; + uri.SetPath(uri.GetPath() + ss.str()); + return CreateWirelessGatewayTaskDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +CreateWirelessGatewayTaskDefinitionOutcomeCallable IoTWirelessClient::CreateWirelessGatewayTaskDefinitionCallable(const CreateWirelessGatewayTaskDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< CreateWirelessGatewayTaskDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateWirelessGatewayTaskDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::CreateWirelessGatewayTaskDefinitionAsync(const CreateWirelessGatewayTaskDefinitionRequest& request, const CreateWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->CreateWirelessGatewayTaskDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::CreateWirelessGatewayTaskDefinitionAsyncHelper(const CreateWirelessGatewayTaskDefinitionRequest& request, const CreateWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, CreateWirelessGatewayTaskDefinition(request), context); +} + +DeleteDestinationOutcome IoTWirelessClient::DeleteDestination(const DeleteDestinationRequest& request) const +{ + if (!request.NameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteDestination", "Required field: Name, is not set"); + return DeleteDestinationOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Name]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/destinations/"; + ss << request.GetName(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteDestinationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteDestinationOutcomeCallable IoTWirelessClient::DeleteDestinationCallable(const DeleteDestinationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteDestinationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteDestination(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteDestinationAsync(const DeleteDestinationRequest& request, const DeleteDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteDestinationAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteDestinationAsyncHelper(const DeleteDestinationRequest& request, const DeleteDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteDestination(request), context); +} + +DeleteDeviceProfileOutcome IoTWirelessClient::DeleteDeviceProfile(const DeleteDeviceProfileRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteDeviceProfile", "Required field: Id, is not set"); + return DeleteDeviceProfileOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/device-profiles/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteDeviceProfileOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteDeviceProfileOutcomeCallable IoTWirelessClient::DeleteDeviceProfileCallable(const DeleteDeviceProfileRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteDeviceProfileOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteDeviceProfile(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteDeviceProfileAsync(const DeleteDeviceProfileRequest& request, const DeleteDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteDeviceProfileAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteDeviceProfileAsyncHelper(const DeleteDeviceProfileRequest& request, const DeleteDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteDeviceProfile(request), context); +} + +DeleteServiceProfileOutcome IoTWirelessClient::DeleteServiceProfile(const DeleteServiceProfileRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteServiceProfile", "Required field: Id, is not set"); + return DeleteServiceProfileOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/service-profiles/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteServiceProfileOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteServiceProfileOutcomeCallable IoTWirelessClient::DeleteServiceProfileCallable(const DeleteServiceProfileRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteServiceProfileOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteServiceProfile(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteServiceProfileAsync(const DeleteServiceProfileRequest& request, const DeleteServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteServiceProfileAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteServiceProfileAsyncHelper(const DeleteServiceProfileRequest& request, const DeleteServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteServiceProfile(request), context); +} + +DeleteWirelessDeviceOutcome IoTWirelessClient::DeleteWirelessDevice(const DeleteWirelessDeviceRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteWirelessDevice", "Required field: Id, is not set"); + return DeleteWirelessDeviceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteWirelessDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteWirelessDeviceOutcomeCallable IoTWirelessClient::DeleteWirelessDeviceCallable(const DeleteWirelessDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteWirelessDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteWirelessDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteWirelessDeviceAsync(const DeleteWirelessDeviceRequest& request, const DeleteWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteWirelessDeviceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteWirelessDeviceAsyncHelper(const DeleteWirelessDeviceRequest& request, const DeleteWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteWirelessDevice(request), context); +} + +DeleteWirelessGatewayOutcome IoTWirelessClient::DeleteWirelessGateway(const DeleteWirelessGatewayRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteWirelessGateway", "Required field: Id, is not set"); + return DeleteWirelessGatewayOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteWirelessGatewayOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteWirelessGatewayOutcomeCallable IoTWirelessClient::DeleteWirelessGatewayCallable(const DeleteWirelessGatewayRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteWirelessGatewayOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteWirelessGateway(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteWirelessGatewayAsync(const DeleteWirelessGatewayRequest& request, const DeleteWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteWirelessGatewayAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteWirelessGatewayAsyncHelper(const DeleteWirelessGatewayRequest& request, const DeleteWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteWirelessGateway(request), context); +} + +DeleteWirelessGatewayTaskOutcome IoTWirelessClient::DeleteWirelessGatewayTask(const DeleteWirelessGatewayTaskRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteWirelessGatewayTask", "Required field: Id, is not set"); + return DeleteWirelessGatewayTaskOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/tasks"; + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteWirelessGatewayTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteWirelessGatewayTaskOutcomeCallable IoTWirelessClient::DeleteWirelessGatewayTaskCallable(const DeleteWirelessGatewayTaskRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteWirelessGatewayTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteWirelessGatewayTask(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteWirelessGatewayTaskAsync(const DeleteWirelessGatewayTaskRequest& request, const DeleteWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteWirelessGatewayTaskAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteWirelessGatewayTaskAsyncHelper(const DeleteWirelessGatewayTaskRequest& request, const DeleteWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteWirelessGatewayTask(request), context); +} + +DeleteWirelessGatewayTaskDefinitionOutcome IoTWirelessClient::DeleteWirelessGatewayTaskDefinition(const DeleteWirelessGatewayTaskDefinitionRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteWirelessGatewayTaskDefinition", "Required field: Id, is not set"); + return DeleteWirelessGatewayTaskDefinitionOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateway-task-definitions/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DeleteWirelessGatewayTaskDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DeleteWirelessGatewayTaskDefinitionOutcomeCallable IoTWirelessClient::DeleteWirelessGatewayTaskDefinitionCallable(const DeleteWirelessGatewayTaskDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DeleteWirelessGatewayTaskDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteWirelessGatewayTaskDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DeleteWirelessGatewayTaskDefinitionAsync(const DeleteWirelessGatewayTaskDefinitionRequest& request, const DeleteWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DeleteWirelessGatewayTaskDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DeleteWirelessGatewayTaskDefinitionAsyncHelper(const DeleteWirelessGatewayTaskDefinitionRequest& request, const DeleteWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DeleteWirelessGatewayTaskDefinition(request), context); +} + +DisassociateAwsAccountFromPartnerAccountOutcome IoTWirelessClient::DisassociateAwsAccountFromPartnerAccount(const DisassociateAwsAccountFromPartnerAccountRequest& request) const +{ + if (!request.PartnerAccountIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateAwsAccountFromPartnerAccount", "Required field: PartnerAccountId, is not set"); + return DisassociateAwsAccountFromPartnerAccountOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PartnerAccountId]", false)); + } + if (!request.PartnerTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateAwsAccountFromPartnerAccount", "Required field: PartnerType, is not set"); + return DisassociateAwsAccountFromPartnerAccountOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PartnerType]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/partner-accounts/"; + ss << request.GetPartnerAccountId(); + uri.SetPath(uri.GetPath() + ss.str()); + return DisassociateAwsAccountFromPartnerAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DisassociateAwsAccountFromPartnerAccountOutcomeCallable IoTWirelessClient::DisassociateAwsAccountFromPartnerAccountCallable(const DisassociateAwsAccountFromPartnerAccountRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DisassociateAwsAccountFromPartnerAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateAwsAccountFromPartnerAccount(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DisassociateAwsAccountFromPartnerAccountAsync(const DisassociateAwsAccountFromPartnerAccountRequest& request, const DisassociateAwsAccountFromPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DisassociateAwsAccountFromPartnerAccountAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DisassociateAwsAccountFromPartnerAccountAsyncHelper(const DisassociateAwsAccountFromPartnerAccountRequest& request, const DisassociateAwsAccountFromPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DisassociateAwsAccountFromPartnerAccount(request), context); +} + +DisassociateWirelessDeviceFromThingOutcome IoTWirelessClient::DisassociateWirelessDeviceFromThing(const DisassociateWirelessDeviceFromThingRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateWirelessDeviceFromThing", "Required field: Id, is not set"); + return DisassociateWirelessDeviceFromThingOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetId(); + ss << "/thing"; + uri.SetPath(uri.GetPath() + ss.str()); + return DisassociateWirelessDeviceFromThingOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DisassociateWirelessDeviceFromThingOutcomeCallable IoTWirelessClient::DisassociateWirelessDeviceFromThingCallable(const DisassociateWirelessDeviceFromThingRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DisassociateWirelessDeviceFromThingOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateWirelessDeviceFromThing(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DisassociateWirelessDeviceFromThingAsync(const DisassociateWirelessDeviceFromThingRequest& request, const DisassociateWirelessDeviceFromThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DisassociateWirelessDeviceFromThingAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DisassociateWirelessDeviceFromThingAsyncHelper(const DisassociateWirelessDeviceFromThingRequest& request, const DisassociateWirelessDeviceFromThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DisassociateWirelessDeviceFromThing(request), context); +} + +DisassociateWirelessGatewayFromCertificateOutcome IoTWirelessClient::DisassociateWirelessGatewayFromCertificate(const DisassociateWirelessGatewayFromCertificateRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateWirelessGatewayFromCertificate", "Required field: Id, is not set"); + return DisassociateWirelessGatewayFromCertificateOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/certificate"; + uri.SetPath(uri.GetPath() + ss.str()); + return DisassociateWirelessGatewayFromCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DisassociateWirelessGatewayFromCertificateOutcomeCallable IoTWirelessClient::DisassociateWirelessGatewayFromCertificateCallable(const DisassociateWirelessGatewayFromCertificateRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DisassociateWirelessGatewayFromCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateWirelessGatewayFromCertificate(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DisassociateWirelessGatewayFromCertificateAsync(const DisassociateWirelessGatewayFromCertificateRequest& request, const DisassociateWirelessGatewayFromCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DisassociateWirelessGatewayFromCertificateAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DisassociateWirelessGatewayFromCertificateAsyncHelper(const DisassociateWirelessGatewayFromCertificateRequest& request, const DisassociateWirelessGatewayFromCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DisassociateWirelessGatewayFromCertificate(request), context); +} + +DisassociateWirelessGatewayFromThingOutcome IoTWirelessClient::DisassociateWirelessGatewayFromThing(const DisassociateWirelessGatewayFromThingRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DisassociateWirelessGatewayFromThing", "Required field: Id, is not set"); + return DisassociateWirelessGatewayFromThingOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/thing"; + uri.SetPath(uri.GetPath() + ss.str()); + return DisassociateWirelessGatewayFromThingOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +DisassociateWirelessGatewayFromThingOutcomeCallable IoTWirelessClient::DisassociateWirelessGatewayFromThingCallable(const DisassociateWirelessGatewayFromThingRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< DisassociateWirelessGatewayFromThingOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateWirelessGatewayFromThing(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::DisassociateWirelessGatewayFromThingAsync(const DisassociateWirelessGatewayFromThingRequest& request, const DisassociateWirelessGatewayFromThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->DisassociateWirelessGatewayFromThingAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::DisassociateWirelessGatewayFromThingAsyncHelper(const DisassociateWirelessGatewayFromThingRequest& request, const DisassociateWirelessGatewayFromThingResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, DisassociateWirelessGatewayFromThing(request), context); +} + +GetDestinationOutcome IoTWirelessClient::GetDestination(const GetDestinationRequest& request) const +{ + if (!request.NameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetDestination", "Required field: Name, is not set"); + return GetDestinationOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Name]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/destinations/"; + ss << request.GetName(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetDestinationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetDestinationOutcomeCallable IoTWirelessClient::GetDestinationCallable(const GetDestinationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetDestinationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetDestination(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetDestinationAsync(const GetDestinationRequest& request, const GetDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetDestinationAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetDestinationAsyncHelper(const GetDestinationRequest& request, const GetDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetDestination(request), context); +} + +GetDeviceProfileOutcome IoTWirelessClient::GetDeviceProfile(const GetDeviceProfileRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetDeviceProfile", "Required field: Id, is not set"); + return GetDeviceProfileOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/device-profiles/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetDeviceProfileOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetDeviceProfileOutcomeCallable IoTWirelessClient::GetDeviceProfileCallable(const GetDeviceProfileRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetDeviceProfileOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetDeviceProfile(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetDeviceProfileAsync(const GetDeviceProfileRequest& request, const GetDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetDeviceProfileAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetDeviceProfileAsyncHelper(const GetDeviceProfileRequest& request, const GetDeviceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetDeviceProfile(request), context); +} + +GetPartnerAccountOutcome IoTWirelessClient::GetPartnerAccount(const GetPartnerAccountRequest& request) const +{ + if (!request.PartnerAccountIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetPartnerAccount", "Required field: PartnerAccountId, is not set"); + return GetPartnerAccountOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PartnerAccountId]", false)); + } + if (!request.PartnerTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetPartnerAccount", "Required field: PartnerType, is not set"); + return GetPartnerAccountOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PartnerType]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/partner-accounts/"; + ss << request.GetPartnerAccountId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetPartnerAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetPartnerAccountOutcomeCallable IoTWirelessClient::GetPartnerAccountCallable(const GetPartnerAccountRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetPartnerAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetPartnerAccount(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetPartnerAccountAsync(const GetPartnerAccountRequest& request, const GetPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetPartnerAccountAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetPartnerAccountAsyncHelper(const GetPartnerAccountRequest& request, const GetPartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetPartnerAccount(request), context); +} + +GetServiceEndpointOutcome IoTWirelessClient::GetServiceEndpoint(const GetServiceEndpointRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/service-endpoint"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetServiceEndpointOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetServiceEndpointOutcomeCallable IoTWirelessClient::GetServiceEndpointCallable(const GetServiceEndpointRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetServiceEndpointOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetServiceEndpoint(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetServiceEndpointAsync(const GetServiceEndpointRequest& request, const GetServiceEndpointResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetServiceEndpointAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetServiceEndpointAsyncHelper(const GetServiceEndpointRequest& request, const GetServiceEndpointResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetServiceEndpoint(request), context); +} + +GetServiceProfileOutcome IoTWirelessClient::GetServiceProfile(const GetServiceProfileRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetServiceProfile", "Required field: Id, is not set"); + return GetServiceProfileOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/service-profiles/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetServiceProfileOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetServiceProfileOutcomeCallable IoTWirelessClient::GetServiceProfileCallable(const GetServiceProfileRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetServiceProfileOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetServiceProfile(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetServiceProfileAsync(const GetServiceProfileRequest& request, const GetServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetServiceProfileAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetServiceProfileAsyncHelper(const GetServiceProfileRequest& request, const GetServiceProfileResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetServiceProfile(request), context); +} + +GetWirelessDeviceOutcome IoTWirelessClient::GetWirelessDevice(const GetWirelessDeviceRequest& request) const +{ + if (!request.IdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessDevice", "Required field: Identifier, is not set"); + return GetWirelessDeviceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Identifier]", false)); + } + if (!request.IdentifierTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessDevice", "Required field: IdentifierType, is not set"); + return GetWirelessDeviceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [IdentifierType]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetIdentifier(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessDeviceOutcomeCallable IoTWirelessClient::GetWirelessDeviceCallable(const GetWirelessDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessDeviceAsync(const GetWirelessDeviceRequest& request, const GetWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessDeviceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessDeviceAsyncHelper(const GetWirelessDeviceRequest& request, const GetWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessDevice(request), context); +} + +GetWirelessDeviceStatisticsOutcome IoTWirelessClient::GetWirelessDeviceStatistics(const GetWirelessDeviceStatisticsRequest& request) const +{ + if (!request.WirelessDeviceIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessDeviceStatistics", "Required field: WirelessDeviceId, is not set"); + return GetWirelessDeviceStatisticsOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [WirelessDeviceId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetWirelessDeviceId(); + ss << "/statistics"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessDeviceStatisticsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessDeviceStatisticsOutcomeCallable IoTWirelessClient::GetWirelessDeviceStatisticsCallable(const GetWirelessDeviceStatisticsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessDeviceStatisticsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessDeviceStatistics(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessDeviceStatisticsAsync(const GetWirelessDeviceStatisticsRequest& request, const GetWirelessDeviceStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessDeviceStatisticsAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessDeviceStatisticsAsyncHelper(const GetWirelessDeviceStatisticsRequest& request, const GetWirelessDeviceStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessDeviceStatistics(request), context); +} + +GetWirelessGatewayOutcome IoTWirelessClient::GetWirelessGateway(const GetWirelessGatewayRequest& request) const +{ + if (!request.IdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGateway", "Required field: Identifier, is not set"); + return GetWirelessGatewayOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Identifier]", false)); + } + if (!request.IdentifierTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGateway", "Required field: IdentifierType, is not set"); + return GetWirelessGatewayOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [IdentifierType]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetIdentifier(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessGatewayOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessGatewayOutcomeCallable IoTWirelessClient::GetWirelessGatewayCallable(const GetWirelessGatewayRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessGatewayOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessGateway(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessGatewayAsync(const GetWirelessGatewayRequest& request, const GetWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessGatewayAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessGatewayAsyncHelper(const GetWirelessGatewayRequest& request, const GetWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessGateway(request), context); +} + +GetWirelessGatewayCertificateOutcome IoTWirelessClient::GetWirelessGatewayCertificate(const GetWirelessGatewayCertificateRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGatewayCertificate", "Required field: Id, is not set"); + return GetWirelessGatewayCertificateOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/certificate"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessGatewayCertificateOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessGatewayCertificateOutcomeCallable IoTWirelessClient::GetWirelessGatewayCertificateCallable(const GetWirelessGatewayCertificateRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessGatewayCertificateOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessGatewayCertificate(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessGatewayCertificateAsync(const GetWirelessGatewayCertificateRequest& request, const GetWirelessGatewayCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessGatewayCertificateAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessGatewayCertificateAsyncHelper(const GetWirelessGatewayCertificateRequest& request, const GetWirelessGatewayCertificateResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessGatewayCertificate(request), context); +} + +GetWirelessGatewayFirmwareInformationOutcome IoTWirelessClient::GetWirelessGatewayFirmwareInformation(const GetWirelessGatewayFirmwareInformationRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGatewayFirmwareInformation", "Required field: Id, is not set"); + return GetWirelessGatewayFirmwareInformationOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/firmware-information"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessGatewayFirmwareInformationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessGatewayFirmwareInformationOutcomeCallable IoTWirelessClient::GetWirelessGatewayFirmwareInformationCallable(const GetWirelessGatewayFirmwareInformationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessGatewayFirmwareInformationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessGatewayFirmwareInformation(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessGatewayFirmwareInformationAsync(const GetWirelessGatewayFirmwareInformationRequest& request, const GetWirelessGatewayFirmwareInformationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessGatewayFirmwareInformationAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessGatewayFirmwareInformationAsyncHelper(const GetWirelessGatewayFirmwareInformationRequest& request, const GetWirelessGatewayFirmwareInformationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessGatewayFirmwareInformation(request), context); +} + +GetWirelessGatewayStatisticsOutcome IoTWirelessClient::GetWirelessGatewayStatistics(const GetWirelessGatewayStatisticsRequest& request) const +{ + if (!request.WirelessGatewayIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGatewayStatistics", "Required field: WirelessGatewayId, is not set"); + return GetWirelessGatewayStatisticsOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [WirelessGatewayId]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetWirelessGatewayId(); + ss << "/statistics"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessGatewayStatisticsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessGatewayStatisticsOutcomeCallable IoTWirelessClient::GetWirelessGatewayStatisticsCallable(const GetWirelessGatewayStatisticsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessGatewayStatisticsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessGatewayStatistics(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessGatewayStatisticsAsync(const GetWirelessGatewayStatisticsRequest& request, const GetWirelessGatewayStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessGatewayStatisticsAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessGatewayStatisticsAsyncHelper(const GetWirelessGatewayStatisticsRequest& request, const GetWirelessGatewayStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessGatewayStatistics(request), context); +} + +GetWirelessGatewayTaskOutcome IoTWirelessClient::GetWirelessGatewayTask(const GetWirelessGatewayTaskRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGatewayTask", "Required field: Id, is not set"); + return GetWirelessGatewayTaskOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + ss << "/tasks"; + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessGatewayTaskOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessGatewayTaskOutcomeCallable IoTWirelessClient::GetWirelessGatewayTaskCallable(const GetWirelessGatewayTaskRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessGatewayTaskOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessGatewayTask(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessGatewayTaskAsync(const GetWirelessGatewayTaskRequest& request, const GetWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessGatewayTaskAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessGatewayTaskAsyncHelper(const GetWirelessGatewayTaskRequest& request, const GetWirelessGatewayTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessGatewayTask(request), context); +} + +GetWirelessGatewayTaskDefinitionOutcome IoTWirelessClient::GetWirelessGatewayTaskDefinition(const GetWirelessGatewayTaskDefinitionRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetWirelessGatewayTaskDefinition", "Required field: Id, is not set"); + return GetWirelessGatewayTaskDefinitionOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateway-task-definitions/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return GetWirelessGatewayTaskDefinitionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +GetWirelessGatewayTaskDefinitionOutcomeCallable IoTWirelessClient::GetWirelessGatewayTaskDefinitionCallable(const GetWirelessGatewayTaskDefinitionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< GetWirelessGatewayTaskDefinitionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetWirelessGatewayTaskDefinition(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::GetWirelessGatewayTaskDefinitionAsync(const GetWirelessGatewayTaskDefinitionRequest& request, const GetWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->GetWirelessGatewayTaskDefinitionAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::GetWirelessGatewayTaskDefinitionAsyncHelper(const GetWirelessGatewayTaskDefinitionRequest& request, const GetWirelessGatewayTaskDefinitionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, GetWirelessGatewayTaskDefinition(request), context); +} + +ListDestinationsOutcome IoTWirelessClient::ListDestinations(const ListDestinationsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/destinations"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListDestinationsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListDestinationsOutcomeCallable IoTWirelessClient::ListDestinationsCallable(const ListDestinationsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListDestinationsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDestinations(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListDestinationsAsync(const ListDestinationsRequest& request, const ListDestinationsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListDestinationsAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListDestinationsAsyncHelper(const ListDestinationsRequest& request, const ListDestinationsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListDestinations(request), context); +} + +ListDeviceProfilesOutcome IoTWirelessClient::ListDeviceProfiles(const ListDeviceProfilesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/device-profiles"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListDeviceProfilesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListDeviceProfilesOutcomeCallable IoTWirelessClient::ListDeviceProfilesCallable(const ListDeviceProfilesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListDeviceProfilesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDeviceProfiles(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListDeviceProfilesAsync(const ListDeviceProfilesRequest& request, const ListDeviceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListDeviceProfilesAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListDeviceProfilesAsyncHelper(const ListDeviceProfilesRequest& request, const ListDeviceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListDeviceProfiles(request), context); +} + +ListPartnerAccountsOutcome IoTWirelessClient::ListPartnerAccounts(const ListPartnerAccountsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/partner-accounts"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListPartnerAccountsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListPartnerAccountsOutcomeCallable IoTWirelessClient::ListPartnerAccountsCallable(const ListPartnerAccountsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListPartnerAccountsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListPartnerAccounts(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListPartnerAccountsAsync(const ListPartnerAccountsRequest& request, const ListPartnerAccountsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListPartnerAccountsAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListPartnerAccountsAsyncHelper(const ListPartnerAccountsRequest& request, const ListPartnerAccountsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListPartnerAccounts(request), context); +} + +ListServiceProfilesOutcome IoTWirelessClient::ListServiceProfiles(const ListServiceProfilesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/service-profiles"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListServiceProfilesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListServiceProfilesOutcomeCallable IoTWirelessClient::ListServiceProfilesCallable(const ListServiceProfilesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListServiceProfilesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListServiceProfiles(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListServiceProfilesAsync(const ListServiceProfilesRequest& request, const ListServiceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListServiceProfilesAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListServiceProfilesAsyncHelper(const ListServiceProfilesRequest& request, const ListServiceProfilesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListServiceProfiles(request), context); +} + +ListTagsForResourceOutcome IoTWirelessClient::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set"); + return ListTagsForResourceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListTagsForResourceOutcomeCallable IoTWirelessClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListTagsForResource(request), context); +} + +ListWirelessDevicesOutcome IoTWirelessClient::ListWirelessDevices(const ListWirelessDevicesRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListWirelessDevicesOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListWirelessDevicesOutcomeCallable IoTWirelessClient::ListWirelessDevicesCallable(const ListWirelessDevicesRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListWirelessDevicesOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListWirelessDevices(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListWirelessDevicesAsync(const ListWirelessDevicesRequest& request, const ListWirelessDevicesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListWirelessDevicesAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListWirelessDevicesAsyncHelper(const ListWirelessDevicesRequest& request, const ListWirelessDevicesResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListWirelessDevices(request), context); +} + +ListWirelessGatewayTaskDefinitionsOutcome IoTWirelessClient::ListWirelessGatewayTaskDefinitions(const ListWirelessGatewayTaskDefinitionsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateway-task-definitions"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListWirelessGatewayTaskDefinitionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListWirelessGatewayTaskDefinitionsOutcomeCallable IoTWirelessClient::ListWirelessGatewayTaskDefinitionsCallable(const ListWirelessGatewayTaskDefinitionsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListWirelessGatewayTaskDefinitionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListWirelessGatewayTaskDefinitions(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListWirelessGatewayTaskDefinitionsAsync(const ListWirelessGatewayTaskDefinitionsRequest& request, const ListWirelessGatewayTaskDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListWirelessGatewayTaskDefinitionsAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListWirelessGatewayTaskDefinitionsAsyncHelper(const ListWirelessGatewayTaskDefinitionsRequest& request, const ListWirelessGatewayTaskDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListWirelessGatewayTaskDefinitions(request), context); +} + +ListWirelessGatewaysOutcome IoTWirelessClient::ListWirelessGateways(const ListWirelessGatewaysRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListWirelessGatewaysOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); +} + +ListWirelessGatewaysOutcomeCallable IoTWirelessClient::ListWirelessGatewaysCallable(const ListWirelessGatewaysRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListWirelessGatewaysOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListWirelessGateways(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::ListWirelessGatewaysAsync(const ListWirelessGatewaysRequest& request, const ListWirelessGatewaysResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListWirelessGatewaysAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::ListWirelessGatewaysAsyncHelper(const ListWirelessGatewaysRequest& request, const ListWirelessGatewaysResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListWirelessGateways(request), context); +} + +SendDataToWirelessDeviceOutcome IoTWirelessClient::SendDataToWirelessDevice(const SendDataToWirelessDeviceRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("SendDataToWirelessDevice", "Required field: Id, is not set"); + return SendDataToWirelessDeviceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetId(); + ss << "/data"; + uri.SetPath(uri.GetPath() + ss.str()); + return SendDataToWirelessDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +SendDataToWirelessDeviceOutcomeCallable IoTWirelessClient::SendDataToWirelessDeviceCallable(const SendDataToWirelessDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< SendDataToWirelessDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->SendDataToWirelessDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::SendDataToWirelessDeviceAsync(const SendDataToWirelessDeviceRequest& request, const SendDataToWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->SendDataToWirelessDeviceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::SendDataToWirelessDeviceAsyncHelper(const SendDataToWirelessDeviceRequest& request, const SendDataToWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, SendDataToWirelessDevice(request), context); +} + +TagResourceOutcome IoTWirelessClient::TagResource(const TagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set"); + return TagResourceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags"; + uri.SetPath(uri.GetPath() + ss.str()); + return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +TagResourceOutcomeCallable IoTWirelessClient::TagResourceCallable(const TagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, TagResource(request), context); +} + +TestWirelessDeviceOutcome IoTWirelessClient::TestWirelessDevice(const TestWirelessDeviceRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("TestWirelessDevice", "Required field: Id, is not set"); + return TestWirelessDeviceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetId(); + ss << "/test"; + uri.SetPath(uri.GetPath() + ss.str()); + return TestWirelessDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +TestWirelessDeviceOutcomeCallable IoTWirelessClient::TestWirelessDeviceCallable(const TestWirelessDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< TestWirelessDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TestWirelessDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::TestWirelessDeviceAsync(const TestWirelessDeviceRequest& request, const TestWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->TestWirelessDeviceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::TestWirelessDeviceAsyncHelper(const TestWirelessDeviceRequest& request, const TestWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, TestWirelessDevice(request), context); +} + +UntagResourceOutcome IoTWirelessClient::UntagResource(const UntagResourceRequest& request) const +{ + if (!request.ResourceArnHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false)); + } + if (!request.TagKeysHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set"); + return UntagResourceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/tags"; + uri.SetPath(uri.GetPath() + ss.str()); + return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); +} + +UntagResourceOutcomeCallable IoTWirelessClient::UntagResourceCallable(const UntagResourceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UntagResource(request), context); +} + +UpdateDestinationOutcome IoTWirelessClient::UpdateDestination(const UpdateDestinationRequest& request) const +{ + if (!request.NameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateDestination", "Required field: Name, is not set"); + return UpdateDestinationOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Name]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/destinations/"; + ss << request.GetName(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateDestinationOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateDestinationOutcomeCallable IoTWirelessClient::UpdateDestinationCallable(const UpdateDestinationRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateDestinationOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateDestination(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::UpdateDestinationAsync(const UpdateDestinationRequest& request, const UpdateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateDestinationAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::UpdateDestinationAsyncHelper(const UpdateDestinationRequest& request, const UpdateDestinationResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateDestination(request), context); +} + +UpdatePartnerAccountOutcome IoTWirelessClient::UpdatePartnerAccount(const UpdatePartnerAccountRequest& request) const +{ + if (!request.PartnerAccountIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdatePartnerAccount", "Required field: PartnerAccountId, is not set"); + return UpdatePartnerAccountOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PartnerAccountId]", false)); + } + if (!request.PartnerTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdatePartnerAccount", "Required field: PartnerType, is not set"); + return UpdatePartnerAccountOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PartnerType]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/partner-accounts/"; + ss << request.GetPartnerAccountId(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdatePartnerAccountOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdatePartnerAccountOutcomeCallable IoTWirelessClient::UpdatePartnerAccountCallable(const UpdatePartnerAccountRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdatePartnerAccountOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdatePartnerAccount(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::UpdatePartnerAccountAsync(const UpdatePartnerAccountRequest& request, const UpdatePartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdatePartnerAccountAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::UpdatePartnerAccountAsyncHelper(const UpdatePartnerAccountRequest& request, const UpdatePartnerAccountResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdatePartnerAccount(request), context); +} + +UpdateWirelessDeviceOutcome IoTWirelessClient::UpdateWirelessDevice(const UpdateWirelessDeviceRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateWirelessDevice", "Required field: Id, is not set"); + return UpdateWirelessDeviceOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-devices/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateWirelessDeviceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateWirelessDeviceOutcomeCallable IoTWirelessClient::UpdateWirelessDeviceCallable(const UpdateWirelessDeviceRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateWirelessDeviceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateWirelessDevice(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::UpdateWirelessDeviceAsync(const UpdateWirelessDeviceRequest& request, const UpdateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateWirelessDeviceAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::UpdateWirelessDeviceAsyncHelper(const UpdateWirelessDeviceRequest& request, const UpdateWirelessDeviceResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateWirelessDevice(request), context); +} + +UpdateWirelessGatewayOutcome IoTWirelessClient::UpdateWirelessGateway(const UpdateWirelessGatewayRequest& request) const +{ + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateWirelessGateway", "Required field: Id, is not set"); + return UpdateWirelessGatewayOutcome(Aws::Client::AWSError(IoTWirelessErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/wireless-gateways/"; + ss << request.GetId(); + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateWirelessGatewayOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateWirelessGatewayOutcomeCallable IoTWirelessClient::UpdateWirelessGatewayCallable(const UpdateWirelessGatewayRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateWirelessGatewayOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateWirelessGateway(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void IoTWirelessClient::UpdateWirelessGatewayAsync(const UpdateWirelessGatewayRequest& request, const UpdateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateWirelessGatewayAsyncHelper( request, handler, context ); } ); +} + +void IoTWirelessClient::UpdateWirelessGatewayAsyncHelper(const UpdateWirelessGatewayRequest& request, const UpdateWirelessGatewayResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateWirelessGateway(request), context); +} + diff --git a/aws-cpp-sdk-iotwireless/source/IoTWirelessEndpoint.cpp b/aws-cpp-sdk-iotwireless/source/IoTWirelessEndpoint.cpp new file mode 100644 index 00000000000..b321d1215f3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/IoTWirelessEndpoint.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws; +using namespace Aws::IoTWireless; + +namespace Aws +{ +namespace IoTWireless +{ +namespace IoTWirelessEndpoint +{ + static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1"); + static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1"); + static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1"); + static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1"); + + + Aws::String ForRegion(const Aws::String& regionName, bool useDualStack) + { + // Fallback to us-east-1 if global endpoint does not exists. + Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName; + auto hash = Aws::Utils::HashingUtils::HashString(region.c_str()); + + Aws::StringStream ss; + ss << "api.iotwireless" << "."; + + if(useDualStack) + { + ss << "dualstack."; + } + + ss << region; + + if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH) + { + ss << ".amazonaws.com.cn"; + } + else if (hash == US_ISO_EAST_1_HASH) + { + ss << ".c2s.ic.gov"; + } + else if (hash == US_ISOB_EAST_1_HASH) + { + ss << ".sc2s.sgov.gov"; + } + else + { + ss << ".amazonaws.com"; + } + + return ss.str(); + } + +} // namespace IoTWirelessEndpoint +} // namespace IoTWireless +} // namespace Aws + diff --git a/aws-cpp-sdk-iotwireless/source/IoTWirelessErrorMarshaller.cpp b/aws-cpp-sdk-iotwireless/source/IoTWirelessErrorMarshaller.cpp new file mode 100644 index 00000000000..ef291a3e68b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/IoTWirelessErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::IoTWireless; + +AWSError IoTWirelessErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = IoTWirelessErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp b/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp new file mode 100644 index 00000000000..7ae80d1dfa4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/IoTWirelessErrors.cpp @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::IoTWireless; +using namespace Aws::IoTWireless::Model; + +namespace Aws +{ +namespace IoTWireless +{ +template<> AWS_IOTWIRELESS_API ConflictException IoTWirelessError::GetModeledError() +{ + assert(this->GetErrorType() == IoTWirelessErrors::CONFLICT); + return ConflictException(this->GetJsonPayload().View()); +} + +template<> AWS_IOTWIRELESS_API ResourceNotFoundException IoTWirelessError::GetModeledError() +{ + assert(this->GetErrorType() == IoTWirelessErrors::RESOURCE_NOT_FOUND); + return ResourceNotFoundException(this->GetJsonPayload().View()); +} + +template<> AWS_IOTWIRELESS_API TooManyTagsException IoTWirelessError::GetModeledError() +{ + assert(this->GetErrorType() == IoTWirelessErrors::TOO_MANY_TAGS); + return TooManyTagsException(this->GetJsonPayload().View()); +} + +namespace IoTWirelessErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException"); +static const int TOO_MANY_TAGS_HASH = HashingUtils::HashString("TooManyTagsException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(IoTWirelessErrors::CONFLICT), false); + } + else if (hashCode == INTERNAL_SERVER_HASH) + { + return AWSError(static_cast(IoTWirelessErrors::INTERNAL_SERVER), false); + } + else if (hashCode == TOO_MANY_TAGS_HASH) + { + return AWSError(static_cast(IoTWirelessErrors::TOO_MANY_TAGS), false); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace IoTWirelessErrorMapper +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/AbpV1_0_x.cpp b/aws-cpp-sdk-iotwireless/source/model/AbpV1_0_x.cpp new file mode 100644 index 00000000000..c750457f823 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AbpV1_0_x.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +AbpV1_0_x::AbpV1_0_x() : + m_devAddrHasBeenSet(false), + m_sessionKeysHasBeenSet(false) +{ +} + +AbpV1_0_x::AbpV1_0_x(JsonView jsonValue) : + m_devAddrHasBeenSet(false), + m_sessionKeysHasBeenSet(false) +{ + *this = jsonValue; +} + +AbpV1_0_x& AbpV1_0_x::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DevAddr")) + { + m_devAddr = jsonValue.GetString("DevAddr"); + + m_devAddrHasBeenSet = true; + } + + if(jsonValue.ValueExists("SessionKeys")) + { + m_sessionKeys = jsonValue.GetObject("SessionKeys"); + + m_sessionKeysHasBeenSet = true; + } + + return *this; +} + +JsonValue AbpV1_0_x::Jsonize() const +{ + JsonValue payload; + + if(m_devAddrHasBeenSet) + { + payload.WithString("DevAddr", m_devAddr); + + } + + if(m_sessionKeysHasBeenSet) + { + payload.WithObject("SessionKeys", m_sessionKeys.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/AbpV1_1.cpp b/aws-cpp-sdk-iotwireless/source/model/AbpV1_1.cpp new file mode 100644 index 00000000000..bec3e6e9032 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AbpV1_1.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +AbpV1_1::AbpV1_1() : + m_devAddrHasBeenSet(false), + m_sessionKeysHasBeenSet(false) +{ +} + +AbpV1_1::AbpV1_1(JsonView jsonValue) : + m_devAddrHasBeenSet(false), + m_sessionKeysHasBeenSet(false) +{ + *this = jsonValue; +} + +AbpV1_1& AbpV1_1::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DevAddr")) + { + m_devAddr = jsonValue.GetString("DevAddr"); + + m_devAddrHasBeenSet = true; + } + + if(jsonValue.ValueExists("SessionKeys")) + { + m_sessionKeys = jsonValue.GetObject("SessionKeys"); + + m_sessionKeysHasBeenSet = true; + } + + return *this; +} + +JsonValue AbpV1_1::Jsonize() const +{ + JsonValue payload; + + if(m_devAddrHasBeenSet) + { + payload.WithString("DevAddr", m_devAddr); + + } + + if(m_sessionKeysHasBeenSet) + { + payload.WithObject("SessionKeys", m_sessionKeys.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountRequest.cpp new file mode 100644 index 00000000000..c82067aaf79 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociateAwsAccountWithPartnerAccountRequest::AssociateAwsAccountWithPartnerAccountRequest() : + m_sidewalkHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String AssociateAwsAccountWithPartnerAccountRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_sidewalkHasBeenSet) + { + payload.WithObject("Sidewalk", m_sidewalk.Jsonize()); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountResult.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountResult.cpp new file mode 100644 index 00000000000..8cf6d9fe52e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateAwsAccountWithPartnerAccountResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateAwsAccountWithPartnerAccountResult::AssociateAwsAccountWithPartnerAccountResult() +{ +} + +AssociateAwsAccountWithPartnerAccountResult::AssociateAwsAccountWithPartnerAccountResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateAwsAccountWithPartnerAccountResult& AssociateAwsAccountWithPartnerAccountResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Sidewalk")) + { + m_sidewalk = jsonValue.GetObject("Sidewalk"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingRequest.cpp new file mode 100644 index 00000000000..101c0d284fb --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociateWirelessDeviceWithThingRequest::AssociateWirelessDeviceWithThingRequest() : + m_idHasBeenSet(false), + m_thingArnHasBeenSet(false) +{ +} + +Aws::String AssociateWirelessDeviceWithThingRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_thingArnHasBeenSet) + { + payload.WithString("ThingArn", m_thingArn); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingResult.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingResult.cpp new file mode 100644 index 00000000000..0e9caa65337 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessDeviceWithThingResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateWirelessDeviceWithThingResult::AssociateWirelessDeviceWithThingResult() +{ +} + +AssociateWirelessDeviceWithThingResult::AssociateWirelessDeviceWithThingResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateWirelessDeviceWithThingResult& AssociateWirelessDeviceWithThingResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateRequest.cpp new file mode 100644 index 00000000000..1b1222080a0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociateWirelessGatewayWithCertificateRequest::AssociateWirelessGatewayWithCertificateRequest() : + m_idHasBeenSet(false), + m_iotCertificateIdHasBeenSet(false) +{ +} + +Aws::String AssociateWirelessGatewayWithCertificateRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_iotCertificateIdHasBeenSet) + { + payload.WithString("IotCertificateId", m_iotCertificateId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateResult.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateResult.cpp new file mode 100644 index 00000000000..5a05bdbca60 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithCertificateResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateWirelessGatewayWithCertificateResult::AssociateWirelessGatewayWithCertificateResult() +{ +} + +AssociateWirelessGatewayWithCertificateResult::AssociateWirelessGatewayWithCertificateResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateWirelessGatewayWithCertificateResult& AssociateWirelessGatewayWithCertificateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("IotCertificateId")) + { + m_iotCertificateId = jsonValue.GetString("IotCertificateId"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingRequest.cpp new file mode 100644 index 00000000000..6fd33b3e472 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +AssociateWirelessGatewayWithThingRequest::AssociateWirelessGatewayWithThingRequest() : + m_idHasBeenSet(false), + m_thingArnHasBeenSet(false) +{ +} + +Aws::String AssociateWirelessGatewayWithThingRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_thingArnHasBeenSet) + { + payload.WithString("ThingArn", m_thingArn); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingResult.cpp b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingResult.cpp new file mode 100644 index 00000000000..3ac9e3ce706 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/AssociateWirelessGatewayWithThingResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +AssociateWirelessGatewayWithThingResult::AssociateWirelessGatewayWithThingResult() +{ +} + +AssociateWirelessGatewayWithThingResult::AssociateWirelessGatewayWithThingResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +AssociateWirelessGatewayWithThingResult& AssociateWirelessGatewayWithThingResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ConflictException.cpp b/aws-cpp-sdk-iotwireless/source/model/ConflictException.cpp new file mode 100644 index 00000000000..498f9641d9c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ConflictException.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +ConflictException::ConflictException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ConflictException::ConflictException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ConflictException& ConflictException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceId")) + { + m_resourceId = jsonValue.GetString("ResourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceType")) + { + m_resourceType = jsonValue.GetString("ResourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ConflictException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("ResourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("ResourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateDestinationRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateDestinationRequest.cpp new file mode 100644 index 00000000000..7bdd0d2281f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateDestinationRequest.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateDestinationRequest::CreateDestinationRequest() : + m_nameHasBeenSet(false), + m_expressionType(ExpressionType::NOT_SET), + m_expressionTypeHasBeenSet(false), + m_expressionHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_tagsHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String CreateDestinationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_expressionTypeHasBeenSet) + { + payload.WithString("ExpressionType", ExpressionTypeMapper::GetNameForExpressionType(m_expressionType)); + } + + if(m_expressionHasBeenSet) + { + payload.WithString("Expression", m_expression); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateDestinationResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateDestinationResult.cpp new file mode 100644 index 00000000000..b49a49d9bdc --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateDestinationResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateDestinationResult::CreateDestinationResult() +{ +} + +CreateDestinationResult::CreateDestinationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateDestinationResult& CreateDestinationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileRequest.cpp new file mode 100644 index 00000000000..fc8a686d504 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileRequest.cpp @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateDeviceProfileRequest::CreateDeviceProfileRequest() : + m_nameHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_tagsHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String CreateDeviceProfileRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileResult.cpp new file mode 100644 index 00000000000..ebf3e83fdf5 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateDeviceProfileResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateDeviceProfileResult::CreateDeviceProfileResult() +{ +} + +CreateDeviceProfileResult::CreateDeviceProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateDeviceProfileResult& CreateDeviceProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileRequest.cpp new file mode 100644 index 00000000000..92bc657a41b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileRequest.cpp @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateServiceProfileRequest::CreateServiceProfileRequest() : + m_nameHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_tagsHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String CreateServiceProfileRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileResult.cpp new file mode 100644 index 00000000000..762b4a840f8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateServiceProfileResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateServiceProfileResult::CreateServiceProfileResult() +{ +} + +CreateServiceProfileResult::CreateServiceProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateServiceProfileResult& CreateServiceProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceRequest.cpp new file mode 100644 index 00000000000..f85d51cd89d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceRequest.cpp @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateWirelessDeviceRequest::CreateWirelessDeviceRequest() : + m_type(WirelessDeviceType::NOT_SET), + m_typeHasBeenSet(false), + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_destinationNameHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true), + m_loRaWANHasBeenSet(false) +{ +} + +Aws::String CreateWirelessDeviceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_typeHasBeenSet) + { + payload.WithString("Type", WirelessDeviceTypeMapper::GetNameForWirelessDeviceType(m_type)); + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_destinationNameHasBeenSet) + { + payload.WithString("DestinationName", m_destinationName); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceResult.cpp new file mode 100644 index 00000000000..dd3c550844e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessDeviceResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateWirelessDeviceResult::CreateWirelessDeviceResult() +{ +} + +CreateWirelessDeviceResult::CreateWirelessDeviceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateWirelessDeviceResult& CreateWirelessDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayRequest.cpp new file mode 100644 index 00000000000..e68dddfffff --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayRequest.cpp @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateWirelessGatewayRequest::CreateWirelessGatewayRequest() : + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_tagsHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String CreateWirelessGatewayRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayResult.cpp new file mode 100644 index 00000000000..be674eead00 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateWirelessGatewayResult::CreateWirelessGatewayResult() +{ +} + +CreateWirelessGatewayResult::CreateWirelessGatewayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateWirelessGatewayResult& CreateWirelessGatewayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionRequest.cpp new file mode 100644 index 00000000000..bacc5280c38 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateWirelessGatewayTaskDefinitionRequest::CreateWirelessGatewayTaskDefinitionRequest() : + m_autoCreateTasks(false), + m_autoCreateTasksHasBeenSet(false), + m_nameHasBeenSet(false), + m_updateHasBeenSet(false), + m_clientRequestToken(Aws::Utils::UUID::RandomUUID()), + m_clientRequestTokenHasBeenSet(true) +{ +} + +Aws::String CreateWirelessGatewayTaskDefinitionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_autoCreateTasksHasBeenSet) + { + payload.WithBool("AutoCreateTasks", m_autoCreateTasks); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_updateHasBeenSet) + { + payload.WithObject("Update", m_update.Jsonize()); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("ClientRequestToken", m_clientRequestToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionResult.cpp new file mode 100644 index 00000000000..947ee7301ba --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskDefinitionResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateWirelessGatewayTaskDefinitionResult::CreateWirelessGatewayTaskDefinitionResult() +{ +} + +CreateWirelessGatewayTaskDefinitionResult::CreateWirelessGatewayTaskDefinitionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateWirelessGatewayTaskDefinitionResult& CreateWirelessGatewayTaskDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskRequest.cpp new file mode 100644 index 00000000000..05c377bc0b8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateWirelessGatewayTaskRequest::CreateWirelessGatewayTaskRequest() : + m_idHasBeenSet(false), + m_wirelessGatewayTaskDefinitionIdHasBeenSet(false) +{ +} + +Aws::String CreateWirelessGatewayTaskRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_wirelessGatewayTaskDefinitionIdHasBeenSet) + { + payload.WithString("WirelessGatewayTaskDefinitionId", m_wirelessGatewayTaskDefinitionId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskResult.cpp b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskResult.cpp new file mode 100644 index 00000000000..93a32e76a6d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/CreateWirelessGatewayTaskResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateWirelessGatewayTaskResult::CreateWirelessGatewayTaskResult() : + m_status(WirelessGatewayTaskStatus::NOT_SET) +{ +} + +CreateWirelessGatewayTaskResult::CreateWirelessGatewayTaskResult(const Aws::AmazonWebServiceResult& result) : + m_status(WirelessGatewayTaskStatus::NOT_SET) +{ + *this = result; +} + +CreateWirelessGatewayTaskResult& CreateWirelessGatewayTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("WirelessGatewayTaskDefinitionId")) + { + m_wirelessGatewayTaskDefinitionId = jsonValue.GetString("WirelessGatewayTaskDefinitionId"); + + } + + if(jsonValue.ValueExists("Status")) + { + m_status = WirelessGatewayTaskStatusMapper::GetWirelessGatewayTaskStatusForName(jsonValue.GetString("Status")); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteDestinationRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteDestinationRequest.cpp new file mode 100644 index 00000000000..4e4f1e89fd8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteDestinationRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteDestinationRequest::DeleteDestinationRequest() : + m_nameHasBeenSet(false) +{ +} + +Aws::String DeleteDestinationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteDestinationResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteDestinationResult.cpp new file mode 100644 index 00000000000..fa66fcaba10 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteDestinationResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteDestinationResult::DeleteDestinationResult() +{ +} + +DeleteDestinationResult::DeleteDestinationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteDestinationResult& DeleteDestinationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileRequest.cpp new file mode 100644 index 00000000000..58fa1356d6b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteDeviceProfileRequest::DeleteDeviceProfileRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteDeviceProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileResult.cpp new file mode 100644 index 00000000000..8a67c33a698 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteDeviceProfileResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteDeviceProfileResult::DeleteDeviceProfileResult() +{ +} + +DeleteDeviceProfileResult::DeleteDeviceProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteDeviceProfileResult& DeleteDeviceProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileRequest.cpp new file mode 100644 index 00000000000..87d93059f93 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteServiceProfileRequest::DeleteServiceProfileRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteServiceProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileResult.cpp new file mode 100644 index 00000000000..88701581542 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteServiceProfileResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteServiceProfileResult::DeleteServiceProfileResult() +{ +} + +DeleteServiceProfileResult::DeleteServiceProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteServiceProfileResult& DeleteServiceProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceRequest.cpp new file mode 100644 index 00000000000..cd7536f867c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteWirelessDeviceRequest::DeleteWirelessDeviceRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteWirelessDeviceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceResult.cpp new file mode 100644 index 00000000000..6d270323263 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessDeviceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteWirelessDeviceResult::DeleteWirelessDeviceResult() +{ +} + +DeleteWirelessDeviceResult::DeleteWirelessDeviceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteWirelessDeviceResult& DeleteWirelessDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayRequest.cpp new file mode 100644 index 00000000000..cb41ff73bed --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteWirelessGatewayRequest::DeleteWirelessGatewayRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteWirelessGatewayRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayResult.cpp new file mode 100644 index 00000000000..5658a0b0c9b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteWirelessGatewayResult::DeleteWirelessGatewayResult() +{ +} + +DeleteWirelessGatewayResult::DeleteWirelessGatewayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteWirelessGatewayResult& DeleteWirelessGatewayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionRequest.cpp new file mode 100644 index 00000000000..f521db835a0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteWirelessGatewayTaskDefinitionRequest::DeleteWirelessGatewayTaskDefinitionRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteWirelessGatewayTaskDefinitionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionResult.cpp new file mode 100644 index 00000000000..2c282743514 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskDefinitionResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteWirelessGatewayTaskDefinitionResult::DeleteWirelessGatewayTaskDefinitionResult() +{ +} + +DeleteWirelessGatewayTaskDefinitionResult::DeleteWirelessGatewayTaskDefinitionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteWirelessGatewayTaskDefinitionResult& DeleteWirelessGatewayTaskDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskRequest.cpp new file mode 100644 index 00000000000..0a9f251fc79 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteWirelessGatewayTaskRequest::DeleteWirelessGatewayTaskRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DeleteWirelessGatewayTaskRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskResult.cpp new file mode 100644 index 00000000000..6e97e90638a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeleteWirelessGatewayTaskResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteWirelessGatewayTaskResult::DeleteWirelessGatewayTaskResult() +{ +} + +DeleteWirelessGatewayTaskResult::DeleteWirelessGatewayTaskResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteWirelessGatewayTaskResult& DeleteWirelessGatewayTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/Destinations.cpp b/aws-cpp-sdk-iotwireless/source/model/Destinations.cpp new file mode 100644 index 00000000000..e889ae3b848 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/Destinations.cpp @@ -0,0 +1,135 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +Destinations::Destinations() : + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_expressionType(ExpressionType::NOT_SET), + m_expressionTypeHasBeenSet(false), + m_expressionHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +Destinations::Destinations(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_expressionType(ExpressionType::NOT_SET), + m_expressionTypeHasBeenSet(false), + m_expressionHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +Destinations& Destinations::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("ExpressionType")) + { + m_expressionType = ExpressionTypeMapper::GetExpressionTypeForName(jsonValue.GetString("ExpressionType")); + + m_expressionTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Expression")) + { + m_expression = jsonValue.GetString("Expression"); + + m_expressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue Destinations::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_expressionTypeHasBeenSet) + { + payload.WithString("ExpressionType", ExpressionTypeMapper::GetNameForExpressionType(m_expressionType)); + } + + if(m_expressionHasBeenSet) + { + payload.WithString("Expression", m_expression); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/DeviceProfile.cpp b/aws-cpp-sdk-iotwireless/source/model/DeviceProfile.cpp new file mode 100644 index 00000000000..b57ee787ee0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DeviceProfile.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +DeviceProfile::DeviceProfile() : + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_idHasBeenSet(false) +{ +} + +DeviceProfile::DeviceProfile(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_idHasBeenSet(false) +{ + *this = jsonValue; +} + +DeviceProfile& DeviceProfile::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + return *this; +} + +JsonValue DeviceProfile::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountRequest.cpp new file mode 100644 index 00000000000..12c24c2b825 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +DisassociateAwsAccountFromPartnerAccountRequest::DisassociateAwsAccountFromPartnerAccountRequest() : + m_partnerAccountIdHasBeenSet(false), + m_partnerType(PartnerType::NOT_SET), + m_partnerTypeHasBeenSet(false) +{ +} + +Aws::String DisassociateAwsAccountFromPartnerAccountRequest::SerializePayload() const +{ + return {}; +} + +void DisassociateAwsAccountFromPartnerAccountRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_partnerTypeHasBeenSet) + { + ss << PartnerTypeMapper::GetNameForPartnerType(m_partnerType); + uri.AddQueryStringParameter("partnerType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountResult.cpp new file mode 100644 index 00000000000..5787940fffd --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateAwsAccountFromPartnerAccountResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateAwsAccountFromPartnerAccountResult::DisassociateAwsAccountFromPartnerAccountResult() +{ +} + +DisassociateAwsAccountFromPartnerAccountResult::DisassociateAwsAccountFromPartnerAccountResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateAwsAccountFromPartnerAccountResult& DisassociateAwsAccountFromPartnerAccountResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingRequest.cpp new file mode 100644 index 00000000000..f6421c6ff2c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisassociateWirelessDeviceFromThingRequest::DisassociateWirelessDeviceFromThingRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DisassociateWirelessDeviceFromThingRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingResult.cpp new file mode 100644 index 00000000000..be3ac017dda --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessDeviceFromThingResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateWirelessDeviceFromThingResult::DisassociateWirelessDeviceFromThingResult() +{ +} + +DisassociateWirelessDeviceFromThingResult::DisassociateWirelessDeviceFromThingResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateWirelessDeviceFromThingResult& DisassociateWirelessDeviceFromThingResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateRequest.cpp new file mode 100644 index 00000000000..290a630599a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisassociateWirelessGatewayFromCertificateRequest::DisassociateWirelessGatewayFromCertificateRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DisassociateWirelessGatewayFromCertificateRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateResult.cpp new file mode 100644 index 00000000000..dac22e1fbb7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromCertificateResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateWirelessGatewayFromCertificateResult::DisassociateWirelessGatewayFromCertificateResult() +{ +} + +DisassociateWirelessGatewayFromCertificateResult::DisassociateWirelessGatewayFromCertificateResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateWirelessGatewayFromCertificateResult& DisassociateWirelessGatewayFromCertificateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingRequest.cpp new file mode 100644 index 00000000000..e717244563e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DisassociateWirelessGatewayFromThingRequest::DisassociateWirelessGatewayFromThingRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String DisassociateWirelessGatewayFromThingRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingResult.cpp b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingResult.cpp new file mode 100644 index 00000000000..d8dc6680c28 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/DisassociateWirelessGatewayFromThingResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DisassociateWirelessGatewayFromThingResult::DisassociateWirelessGatewayFromThingResult() +{ +} + +DisassociateWirelessGatewayFromThingResult::DisassociateWirelessGatewayFromThingResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DisassociateWirelessGatewayFromThingResult& DisassociateWirelessGatewayFromThingResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp b/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp new file mode 100644 index 00000000000..f16149ae33e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ExpressionType.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace ExpressionTypeMapper + { + + static const int RuleName_HASH = HashingUtils::HashString("RuleName"); + + + ExpressionType GetExpressionTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RuleName_HASH) + { + return ExpressionType::RuleName; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ExpressionType::NOT_SET; + } + + Aws::String GetNameForExpressionType(ExpressionType enumValue) + { + switch(enumValue) + { + case ExpressionType::RuleName: + return "RuleName"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ExpressionTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/GetDestinationRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetDestinationRequest.cpp new file mode 100644 index 00000000000..68f96401fc1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetDestinationRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetDestinationRequest::GetDestinationRequest() : + m_nameHasBeenSet(false) +{ +} + +Aws::String GetDestinationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetDestinationResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetDestinationResult.cpp new file mode 100644 index 00000000000..d569f668b7e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetDestinationResult.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetDestinationResult::GetDestinationResult() : + m_expressionType(ExpressionType::NOT_SET) +{ +} + +GetDestinationResult::GetDestinationResult(const Aws::AmazonWebServiceResult& result) : + m_expressionType(ExpressionType::NOT_SET) +{ + *this = result; +} + +GetDestinationResult& GetDestinationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Expression")) + { + m_expression = jsonValue.GetString("Expression"); + + } + + if(jsonValue.ValueExists("ExpressionType")) + { + m_expressionType = ExpressionTypeMapper::GetExpressionTypeForName(jsonValue.GetString("ExpressionType")); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileRequest.cpp new file mode 100644 index 00000000000..df655abd589 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetDeviceProfileRequest::GetDeviceProfileRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetDeviceProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileResult.cpp new file mode 100644 index 00000000000..46de2b6f248 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetDeviceProfileResult.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetDeviceProfileResult::GetDeviceProfileResult() +{ +} + +GetDeviceProfileResult::GetDeviceProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetDeviceProfileResult& GetDeviceProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountRequest.cpp new file mode 100644 index 00000000000..ca8bba39fbd --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetPartnerAccountRequest::GetPartnerAccountRequest() : + m_partnerAccountIdHasBeenSet(false), + m_partnerType(PartnerType::NOT_SET), + m_partnerTypeHasBeenSet(false) +{ +} + +Aws::String GetPartnerAccountRequest::SerializePayload() const +{ + return {}; +} + +void GetPartnerAccountRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_partnerTypeHasBeenSet) + { + ss << PartnerTypeMapper::GetNameForPartnerType(m_partnerType); + uri.AddQueryStringParameter("partnerType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountResult.cpp new file mode 100644 index 00000000000..e28f4a1e2bb --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetPartnerAccountResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetPartnerAccountResult::GetPartnerAccountResult() : + m_accountLinked(false) +{ +} + +GetPartnerAccountResult::GetPartnerAccountResult(const Aws::AmazonWebServiceResult& result) : + m_accountLinked(false) +{ + *this = result; +} + +GetPartnerAccountResult& GetPartnerAccountResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Sidewalk")) + { + m_sidewalk = jsonValue.GetObject("Sidewalk"); + + } + + if(jsonValue.ValueExists("AccountLinked")) + { + m_accountLinked = jsonValue.GetBool("AccountLinked"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointRequest.cpp new file mode 100644 index 00000000000..97f9501280d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointRequest.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetServiceEndpointRequest::GetServiceEndpointRequest() : + m_serviceType(WirelessGatewayServiceType::NOT_SET), + m_serviceTypeHasBeenSet(false) +{ +} + +Aws::String GetServiceEndpointRequest::SerializePayload() const +{ + return {}; +} + +void GetServiceEndpointRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_serviceTypeHasBeenSet) + { + ss << WirelessGatewayServiceTypeMapper::GetNameForWirelessGatewayServiceType(m_serviceType); + uri.AddQueryStringParameter("serviceType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointResult.cpp new file mode 100644 index 00000000000..8a7e1eaf985 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetServiceEndpointResult.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetServiceEndpointResult::GetServiceEndpointResult() : + m_serviceType(WirelessGatewayServiceType::NOT_SET) +{ +} + +GetServiceEndpointResult::GetServiceEndpointResult(const Aws::AmazonWebServiceResult& result) : + m_serviceType(WirelessGatewayServiceType::NOT_SET) +{ + *this = result; +} + +GetServiceEndpointResult& GetServiceEndpointResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ServiceType")) + { + m_serviceType = WirelessGatewayServiceTypeMapper::GetWirelessGatewayServiceTypeForName(jsonValue.GetString("ServiceType")); + + } + + if(jsonValue.ValueExists("ServiceEndpoint")) + { + m_serviceEndpoint = jsonValue.GetString("ServiceEndpoint"); + + } + + if(jsonValue.ValueExists("ServerTrust")) + { + m_serverTrust = jsonValue.GetString("ServerTrust"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetServiceProfileRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetServiceProfileRequest.cpp new file mode 100644 index 00000000000..7d0c21aeca0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetServiceProfileRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetServiceProfileRequest::GetServiceProfileRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetServiceProfileRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetServiceProfileResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetServiceProfileResult.cpp new file mode 100644 index 00000000000..665a0ae7444 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetServiceProfileResult.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetServiceProfileResult::GetServiceProfileResult() +{ +} + +GetServiceProfileResult::GetServiceProfileResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetServiceProfileResult& GetServiceProfileResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceRequest.cpp new file mode 100644 index 00000000000..7a2bff775a3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetWirelessDeviceRequest::GetWirelessDeviceRequest() : + m_identifierHasBeenSet(false), + m_identifierType(WirelessDeviceIdType::NOT_SET), + m_identifierTypeHasBeenSet(false) +{ +} + +Aws::String GetWirelessDeviceRequest::SerializePayload() const +{ + return {}; +} + +void GetWirelessDeviceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_identifierTypeHasBeenSet) + { + ss << WirelessDeviceIdTypeMapper::GetNameForWirelessDeviceIdType(m_identifierType); + uri.AddQueryStringParameter("identifierType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceResult.cpp new file mode 100644 index 00000000000..95b392f097c --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceResult.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessDeviceResult::GetWirelessDeviceResult() : + m_type(WirelessDeviceType::NOT_SET) +{ +} + +GetWirelessDeviceResult::GetWirelessDeviceResult(const Aws::AmazonWebServiceResult& result) : + m_type(WirelessDeviceType::NOT_SET) +{ + *this = result; +} + +GetWirelessDeviceResult& GetWirelessDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Type")) + { + m_type = WirelessDeviceTypeMapper::GetWirelessDeviceTypeForName(jsonValue.GetString("Type")); + + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("DestinationName")) + { + m_destinationName = jsonValue.GetString("DestinationName"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("ThingName")) + { + m_thingName = jsonValue.GetString("ThingName"); + + } + + if(jsonValue.ValueExists("ThingArn")) + { + m_thingArn = jsonValue.GetString("ThingArn"); + + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsRequest.cpp new file mode 100644 index 00000000000..7e8efbe1a7f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetWirelessDeviceStatisticsRequest::GetWirelessDeviceStatisticsRequest() : + m_wirelessDeviceIdHasBeenSet(false) +{ +} + +Aws::String GetWirelessDeviceStatisticsRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsResult.cpp new file mode 100644 index 00000000000..8ac0abf476b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessDeviceStatisticsResult.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessDeviceStatisticsResult::GetWirelessDeviceStatisticsResult() +{ +} + +GetWirelessDeviceStatisticsResult::GetWirelessDeviceStatisticsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetWirelessDeviceStatisticsResult& GetWirelessDeviceStatisticsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("WirelessDeviceId")) + { + m_wirelessDeviceId = jsonValue.GetString("WirelessDeviceId"); + + } + + if(jsonValue.ValueExists("LastUplinkReceivedAt")) + { + m_lastUplinkReceivedAt = jsonValue.GetString("LastUplinkReceivedAt"); + + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateRequest.cpp new file mode 100644 index 00000000000..456424fe856 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetWirelessGatewayCertificateRequest::GetWirelessGatewayCertificateRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetWirelessGatewayCertificateRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateResult.cpp new file mode 100644 index 00000000000..5d29828fb5a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayCertificateResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessGatewayCertificateResult::GetWirelessGatewayCertificateResult() +{ +} + +GetWirelessGatewayCertificateResult::GetWirelessGatewayCertificateResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetWirelessGatewayCertificateResult& GetWirelessGatewayCertificateResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("IotCertificateId")) + { + m_iotCertificateId = jsonValue.GetString("IotCertificateId"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationRequest.cpp new file mode 100644 index 00000000000..8974e43ff94 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetWirelessGatewayFirmwareInformationRequest::GetWirelessGatewayFirmwareInformationRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetWirelessGatewayFirmwareInformationRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationResult.cpp new file mode 100644 index 00000000000..771bddac803 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayFirmwareInformationResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessGatewayFirmwareInformationResult::GetWirelessGatewayFirmwareInformationResult() +{ +} + +GetWirelessGatewayFirmwareInformationResult::GetWirelessGatewayFirmwareInformationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetWirelessGatewayFirmwareInformationResult& GetWirelessGatewayFirmwareInformationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayRequest.cpp new file mode 100644 index 00000000000..b96944e1a1d --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +GetWirelessGatewayRequest::GetWirelessGatewayRequest() : + m_identifierHasBeenSet(false), + m_identifierType(WirelessGatewayIdType::NOT_SET), + m_identifierTypeHasBeenSet(false) +{ +} + +Aws::String GetWirelessGatewayRequest::SerializePayload() const +{ + return {}; +} + +void GetWirelessGatewayRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_identifierTypeHasBeenSet) + { + ss << WirelessGatewayIdTypeMapper::GetNameForWirelessGatewayIdType(m_identifierType); + uri.AddQueryStringParameter("identifierType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayResult.cpp new file mode 100644 index 00000000000..dfee592fa02 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayResult.cpp @@ -0,0 +1,76 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessGatewayResult::GetWirelessGatewayResult() +{ +} + +GetWirelessGatewayResult::GetWirelessGatewayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetWirelessGatewayResult& GetWirelessGatewayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + } + + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + } + + if(jsonValue.ValueExists("ThingName")) + { + m_thingName = jsonValue.GetString("ThingName"); + + } + + if(jsonValue.ValueExists("ThingArn")) + { + m_thingArn = jsonValue.GetString("ThingArn"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsRequest.cpp new file mode 100644 index 00000000000..50d67413f28 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetWirelessGatewayStatisticsRequest::GetWirelessGatewayStatisticsRequest() : + m_wirelessGatewayIdHasBeenSet(false) +{ +} + +Aws::String GetWirelessGatewayStatisticsRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsResult.cpp new file mode 100644 index 00000000000..4397ef4a682 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayStatisticsResult.cpp @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessGatewayStatisticsResult::GetWirelessGatewayStatisticsResult() +{ +} + +GetWirelessGatewayStatisticsResult::GetWirelessGatewayStatisticsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetWirelessGatewayStatisticsResult& GetWirelessGatewayStatisticsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("WirelessGatewayId")) + { + m_wirelessGatewayId = jsonValue.GetString("WirelessGatewayId"); + + } + + if(jsonValue.ValueExists("LastUplinkReceivedAt")) + { + m_lastUplinkReceivedAt = jsonValue.GetString("LastUplinkReceivedAt"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionRequest.cpp new file mode 100644 index 00000000000..619a58af480 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetWirelessGatewayTaskDefinitionRequest::GetWirelessGatewayTaskDefinitionRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetWirelessGatewayTaskDefinitionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionResult.cpp new file mode 100644 index 00000000000..de99a732168 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskDefinitionResult.cpp @@ -0,0 +1,54 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessGatewayTaskDefinitionResult::GetWirelessGatewayTaskDefinitionResult() : + m_autoCreateTasks(false) +{ +} + +GetWirelessGatewayTaskDefinitionResult::GetWirelessGatewayTaskDefinitionResult(const Aws::AmazonWebServiceResult& result) : + m_autoCreateTasks(false) +{ + *this = result; +} + +GetWirelessGatewayTaskDefinitionResult& GetWirelessGatewayTaskDefinitionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AutoCreateTasks")) + { + m_autoCreateTasks = jsonValue.GetBool("AutoCreateTasks"); + + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("Update")) + { + m_update = jsonValue.GetObject("Update"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskRequest.cpp new file mode 100644 index 00000000000..184a3832250 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetWirelessGatewayTaskRequest::GetWirelessGatewayTaskRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String GetWirelessGatewayTaskRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskResult.cpp b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskResult.cpp new file mode 100644 index 00000000000..b36ae657a98 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/GetWirelessGatewayTaskResult.cpp @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetWirelessGatewayTaskResult::GetWirelessGatewayTaskResult() : + m_status(WirelessGatewayTaskStatus::NOT_SET) +{ +} + +GetWirelessGatewayTaskResult::GetWirelessGatewayTaskResult(const Aws::AmazonWebServiceResult& result) : + m_status(WirelessGatewayTaskStatus::NOT_SET) +{ + *this = result; +} + +GetWirelessGatewayTaskResult& GetWirelessGatewayTaskResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("WirelessGatewayId")) + { + m_wirelessGatewayId = jsonValue.GetString("WirelessGatewayId"); + + } + + if(jsonValue.ValueExists("WirelessGatewayTaskDefinitionId")) + { + m_wirelessGatewayTaskDefinitionId = jsonValue.GetString("WirelessGatewayTaskDefinitionId"); + + } + + if(jsonValue.ValueExists("LastUplinkReceivedAt")) + { + m_lastUplinkReceivedAt = jsonValue.GetString("LastUplinkReceivedAt"); + + } + + if(jsonValue.ValueExists("TaskCreatedAt")) + { + m_taskCreatedAt = jsonValue.GetString("TaskCreatedAt"); + + } + + if(jsonValue.ValueExists("Status")) + { + m_status = WirelessGatewayTaskStatusMapper::GetWirelessGatewayTaskStatusForName(jsonValue.GetString("Status")); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListDestinationsRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListDestinationsRequest.cpp new file mode 100644 index 00000000000..d69bc0f0fa7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListDestinationsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDestinationsRequest::ListDestinationsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListDestinationsRequest::SerializePayload() const +{ + return {}; +} + +void ListDestinationsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListDestinationsResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListDestinationsResult.cpp new file mode 100644 index 00000000000..4bf0f872512 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListDestinationsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDestinationsResult::ListDestinationsResult() +{ +} + +ListDestinationsResult::ListDestinationsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDestinationsResult& ListDestinationsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("DestinationList")) + { + Array destinationListJsonList = jsonValue.GetArray("DestinationList"); + for(unsigned destinationListIndex = 0; destinationListIndex < destinationListJsonList.GetLength(); ++destinationListIndex) + { + m_destinationList.push_back(destinationListJsonList[destinationListIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesRequest.cpp new file mode 100644 index 00000000000..ac394c71c08 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListDeviceProfilesRequest::ListDeviceProfilesRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListDeviceProfilesRequest::SerializePayload() const +{ + return {}; +} + +void ListDeviceProfilesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesResult.cpp new file mode 100644 index 00000000000..55835d46c38 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListDeviceProfilesResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDeviceProfilesResult::ListDeviceProfilesResult() +{ +} + +ListDeviceProfilesResult::ListDeviceProfilesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDeviceProfilesResult& ListDeviceProfilesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("DeviceProfileList")) + { + Array deviceProfileListJsonList = jsonValue.GetArray("DeviceProfileList"); + for(unsigned deviceProfileListIndex = 0; deviceProfileListIndex < deviceProfileListJsonList.GetLength(); ++deviceProfileListIndex) + { + m_deviceProfileList.push_back(deviceProfileListJsonList[deviceProfileListIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsRequest.cpp new file mode 100644 index 00000000000..bd5428dfffc --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListPartnerAccountsRequest::ListPartnerAccountsRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListPartnerAccountsRequest::SerializePayload() const +{ + return {}; +} + +void ListPartnerAccountsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsResult.cpp new file mode 100644 index 00000000000..1fe404c515f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListPartnerAccountsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListPartnerAccountsResult::ListPartnerAccountsResult() +{ +} + +ListPartnerAccountsResult::ListPartnerAccountsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListPartnerAccountsResult& ListPartnerAccountsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("Sidewalk")) + { + Array sidewalkJsonList = jsonValue.GetArray("Sidewalk"); + for(unsigned sidewalkIndex = 0; sidewalkIndex < sidewalkJsonList.GetLength(); ++sidewalkIndex) + { + m_sidewalk.push_back(sidewalkJsonList[sidewalkIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesRequest.cpp new file mode 100644 index 00000000000..8913c167097 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListServiceProfilesRequest::ListServiceProfilesRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListServiceProfilesRequest::SerializePayload() const +{ + return {}; +} + +void ListServiceProfilesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesResult.cpp new file mode 100644 index 00000000000..09803482463 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListServiceProfilesResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListServiceProfilesResult::ListServiceProfilesResult() +{ +} + +ListServiceProfilesResult::ListServiceProfilesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListServiceProfilesResult& ListServiceProfilesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("ServiceProfileList")) + { + Array serviceProfileListJsonList = jsonValue.GetArray("ServiceProfileList"); + for(unsigned serviceProfileListIndex = 0; serviceProfileListIndex < serviceProfileListJsonList.GetLength(); ++serviceProfileListIndex) + { + m_serviceProfileList.push_back(serviceProfileListJsonList[serviceProfileListIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..5cfd663e0a7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,41 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + return {}; +} + +void ListTagsForResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_resourceArnHasBeenSet) + { + ss << m_resourceArn; + uri.AddQueryStringParameter("resourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..a51be5f9479 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Tags")) + { + Array tagsJsonList = jsonValue.GetArray("Tags"); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + m_tags.push_back(tagsJsonList[tagsIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesRequest.cpp new file mode 100644 index 00000000000..840dfba675a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesRequest.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListWirelessDevicesRequest::ListWirelessDevicesRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_destinationNameHasBeenSet(false), + m_deviceProfileIdHasBeenSet(false), + m_serviceProfileIdHasBeenSet(false), + m_wirelessDeviceType(WirelessDeviceType::NOT_SET), + m_wirelessDeviceTypeHasBeenSet(false) +{ +} + +Aws::String ListWirelessDevicesRequest::SerializePayload() const +{ + return {}; +} + +void ListWirelessDevicesRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_destinationNameHasBeenSet) + { + ss << m_destinationName; + uri.AddQueryStringParameter("destinationName", ss.str()); + ss.str(""); + } + + if(m_deviceProfileIdHasBeenSet) + { + ss << m_deviceProfileId; + uri.AddQueryStringParameter("deviceProfileId", ss.str()); + ss.str(""); + } + + if(m_serviceProfileIdHasBeenSet) + { + ss << m_serviceProfileId; + uri.AddQueryStringParameter("serviceProfileId", ss.str()); + ss.str(""); + } + + if(m_wirelessDeviceTypeHasBeenSet) + { + ss << WirelessDeviceTypeMapper::GetNameForWirelessDeviceType(m_wirelessDeviceType); + uri.AddQueryStringParameter("wirelessDeviceType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesResult.cpp new file mode 100644 index 00000000000..dc58fed2df3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListWirelessDevicesResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListWirelessDevicesResult::ListWirelessDevicesResult() +{ +} + +ListWirelessDevicesResult::ListWirelessDevicesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListWirelessDevicesResult& ListWirelessDevicesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("WirelessDeviceList")) + { + Array wirelessDeviceListJsonList = jsonValue.GetArray("WirelessDeviceList"); + for(unsigned wirelessDeviceListIndex = 0; wirelessDeviceListIndex < wirelessDeviceListJsonList.GetLength(); ++wirelessDeviceListIndex) + { + m_wirelessDeviceList.push_back(wirelessDeviceListJsonList[wirelessDeviceListIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsRequest.cpp new file mode 100644 index 00000000000..e15f44593a6 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListWirelessGatewayTaskDefinitionsRequest::ListWirelessGatewayTaskDefinitionsRequest() : + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_taskDefinitionType(WirelessGatewayTaskDefinitionType::NOT_SET), + m_taskDefinitionTypeHasBeenSet(false) +{ +} + +Aws::String ListWirelessGatewayTaskDefinitionsRequest::SerializePayload() const +{ + return {}; +} + +void ListWirelessGatewayTaskDefinitionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_taskDefinitionTypeHasBeenSet) + { + ss << WirelessGatewayTaskDefinitionTypeMapper::GetNameForWirelessGatewayTaskDefinitionType(m_taskDefinitionType); + uri.AddQueryStringParameter("taskDefinitionType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsResult.cpp new file mode 100644 index 00000000000..0c1a019a688 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewayTaskDefinitionsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListWirelessGatewayTaskDefinitionsResult::ListWirelessGatewayTaskDefinitionsResult() +{ +} + +ListWirelessGatewayTaskDefinitionsResult::ListWirelessGatewayTaskDefinitionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListWirelessGatewayTaskDefinitionsResult& ListWirelessGatewayTaskDefinitionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("TaskDefinitions")) + { + Array taskDefinitionsJsonList = jsonValue.GetArray("TaskDefinitions"); + for(unsigned taskDefinitionsIndex = 0; taskDefinitionsIndex < taskDefinitionsJsonList.GetLength(); ++taskDefinitionsIndex) + { + m_taskDefinitions.push_back(taskDefinitionsJsonList[taskDefinitionsIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysRequest.cpp new file mode 100644 index 00000000000..de503cb5f38 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysRequest.cpp @@ -0,0 +1,50 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListWirelessGatewaysRequest::ListWirelessGatewaysRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListWirelessGatewaysRequest::SerializePayload() const +{ + return {}; +} + +void ListWirelessGatewaysRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysResult.cpp b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysResult.cpp new file mode 100644 index 00000000000..468ca780a49 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ListWirelessGatewaysResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListWirelessGatewaysResult::ListWirelessGatewaysResult() +{ +} + +ListWirelessGatewaysResult::ListWirelessGatewaysResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListWirelessGatewaysResult& ListWirelessGatewaysResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("WirelessGatewayList")) + { + Array wirelessGatewayListJsonList = jsonValue.GetArray("WirelessGatewayList"); + for(unsigned wirelessGatewayListIndex = 0; wirelessGatewayListIndex < wirelessGatewayListJsonList.GetLength(); ++wirelessGatewayListIndex) + { + m_wirelessGatewayList.push_back(wirelessGatewayListJsonList[wirelessGatewayListIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANDevice.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANDevice.cpp new file mode 100644 index 00000000000..c32448dd997 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANDevice.cpp @@ -0,0 +1,149 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANDevice::LoRaWANDevice() : + m_devEuiHasBeenSet(false), + m_deviceProfileIdHasBeenSet(false), + m_serviceProfileIdHasBeenSet(false), + m_otaaV1_1HasBeenSet(false), + m_otaaV1_0_xHasBeenSet(false), + m_abpV1_1HasBeenSet(false), + m_abpV1_0_xHasBeenSet(false) +{ +} + +LoRaWANDevice::LoRaWANDevice(JsonView jsonValue) : + m_devEuiHasBeenSet(false), + m_deviceProfileIdHasBeenSet(false), + m_serviceProfileIdHasBeenSet(false), + m_otaaV1_1HasBeenSet(false), + m_otaaV1_0_xHasBeenSet(false), + m_abpV1_1HasBeenSet(false), + m_abpV1_0_xHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANDevice& LoRaWANDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DevEui")) + { + m_devEui = jsonValue.GetString("DevEui"); + + m_devEuiHasBeenSet = true; + } + + if(jsonValue.ValueExists("DeviceProfileId")) + { + m_deviceProfileId = jsonValue.GetString("DeviceProfileId"); + + m_deviceProfileIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ServiceProfileId")) + { + m_serviceProfileId = jsonValue.GetString("ServiceProfileId"); + + m_serviceProfileIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("OtaaV1_1")) + { + m_otaaV1_1 = jsonValue.GetObject("OtaaV1_1"); + + m_otaaV1_1HasBeenSet = true; + } + + if(jsonValue.ValueExists("OtaaV1_0_x")) + { + m_otaaV1_0_x = jsonValue.GetObject("OtaaV1_0_x"); + + m_otaaV1_0_xHasBeenSet = true; + } + + if(jsonValue.ValueExists("AbpV1_1")) + { + m_abpV1_1 = jsonValue.GetObject("AbpV1_1"); + + m_abpV1_1HasBeenSet = true; + } + + if(jsonValue.ValueExists("AbpV1_0_x")) + { + m_abpV1_0_x = jsonValue.GetObject("AbpV1_0_x"); + + m_abpV1_0_xHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANDevice::Jsonize() const +{ + JsonValue payload; + + if(m_devEuiHasBeenSet) + { + payload.WithString("DevEui", m_devEui); + + } + + if(m_deviceProfileIdHasBeenSet) + { + payload.WithString("DeviceProfileId", m_deviceProfileId); + + } + + if(m_serviceProfileIdHasBeenSet) + { + payload.WithString("ServiceProfileId", m_serviceProfileId); + + } + + if(m_otaaV1_1HasBeenSet) + { + payload.WithObject("OtaaV1_1", m_otaaV1_1.Jsonize()); + + } + + if(m_otaaV1_0_xHasBeenSet) + { + payload.WithObject("OtaaV1_0_x", m_otaaV1_0_x.Jsonize()); + + } + + if(m_abpV1_1HasBeenSet) + { + payload.WithObject("AbpV1_1", m_abpV1_1.Jsonize()); + + } + + if(m_abpV1_0_xHasBeenSet) + { + payload.WithObject("AbpV1_0_x", m_abpV1_0_x.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceMetadata.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceMetadata.cpp new file mode 100644 index 00000000000..89e2112ae5f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceMetadata.cpp @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANDeviceMetadata::LoRaWANDeviceMetadata() : + m_devEuiHasBeenSet(false), + m_fPort(0), + m_fPortHasBeenSet(false), + m_dataRate(0), + m_dataRateHasBeenSet(false), + m_frequency(0), + m_frequencyHasBeenSet(false), + m_timestampHasBeenSet(false), + m_gatewaysHasBeenSet(false) +{ +} + +LoRaWANDeviceMetadata::LoRaWANDeviceMetadata(JsonView jsonValue) : + m_devEuiHasBeenSet(false), + m_fPort(0), + m_fPortHasBeenSet(false), + m_dataRate(0), + m_dataRateHasBeenSet(false), + m_frequency(0), + m_frequencyHasBeenSet(false), + m_timestampHasBeenSet(false), + m_gatewaysHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANDeviceMetadata& LoRaWANDeviceMetadata::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DevEui")) + { + m_devEui = jsonValue.GetString("DevEui"); + + m_devEuiHasBeenSet = true; + } + + if(jsonValue.ValueExists("FPort")) + { + m_fPort = jsonValue.GetInteger("FPort"); + + m_fPortHasBeenSet = true; + } + + if(jsonValue.ValueExists("DataRate")) + { + m_dataRate = jsonValue.GetInteger("DataRate"); + + m_dataRateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Frequency")) + { + m_frequency = jsonValue.GetInteger("Frequency"); + + m_frequencyHasBeenSet = true; + } + + if(jsonValue.ValueExists("Timestamp")) + { + m_timestamp = jsonValue.GetString("Timestamp"); + + m_timestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("Gateways")) + { + Array gatewaysJsonList = jsonValue.GetArray("Gateways"); + for(unsigned gatewaysIndex = 0; gatewaysIndex < gatewaysJsonList.GetLength(); ++gatewaysIndex) + { + m_gateways.push_back(gatewaysJsonList[gatewaysIndex].AsObject()); + } + m_gatewaysHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANDeviceMetadata::Jsonize() const +{ + JsonValue payload; + + if(m_devEuiHasBeenSet) + { + payload.WithString("DevEui", m_devEui); + + } + + if(m_fPortHasBeenSet) + { + payload.WithInteger("FPort", m_fPort); + + } + + if(m_dataRateHasBeenSet) + { + payload.WithInteger("DataRate", m_dataRate); + + } + + if(m_frequencyHasBeenSet) + { + payload.WithInteger("Frequency", m_frequency); + + } + + if(m_timestampHasBeenSet) + { + payload.WithString("Timestamp", m_timestamp); + + } + + if(m_gatewaysHasBeenSet) + { + Array gatewaysJsonList(m_gateways.size()); + for(unsigned gatewaysIndex = 0; gatewaysIndex < gatewaysJsonList.GetLength(); ++gatewaysIndex) + { + gatewaysJsonList[gatewaysIndex].AsObject(m_gateways[gatewaysIndex].Jsonize()); + } + payload.WithArray("Gateways", std::move(gatewaysJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceProfile.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceProfile.cpp new file mode 100644 index 00000000000..ab909f6b777 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANDeviceProfile.cpp @@ -0,0 +1,367 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANDeviceProfile::LoRaWANDeviceProfile() : + m_supportsClassB(false), + m_supportsClassBHasBeenSet(false), + m_classBTimeout(0), + m_classBTimeoutHasBeenSet(false), + m_pingSlotPeriod(0), + m_pingSlotPeriodHasBeenSet(false), + m_pingSlotDr(0), + m_pingSlotDrHasBeenSet(false), + m_pingSlotFreq(0), + m_pingSlotFreqHasBeenSet(false), + m_supportsClassC(false), + m_supportsClassCHasBeenSet(false), + m_classCTimeout(0), + m_classCTimeoutHasBeenSet(false), + m_macVersionHasBeenSet(false), + m_regParamsRevisionHasBeenSet(false), + m_rxDelay1(0), + m_rxDelay1HasBeenSet(false), + m_rxDrOffset1(0), + m_rxDrOffset1HasBeenSet(false), + m_rxDataRate2(0), + m_rxDataRate2HasBeenSet(false), + m_rxFreq2(0), + m_rxFreq2HasBeenSet(false), + m_factoryPresetFreqsListHasBeenSet(false), + m_maxEirp(0), + m_maxEirpHasBeenSet(false), + m_maxDutyCycle(0), + m_maxDutyCycleHasBeenSet(false), + m_rfRegionHasBeenSet(false), + m_supportsJoin(false), + m_supportsJoinHasBeenSet(false), + m_supports32BitFCnt(false), + m_supports32BitFCntHasBeenSet(false) +{ +} + +LoRaWANDeviceProfile::LoRaWANDeviceProfile(JsonView jsonValue) : + m_supportsClassB(false), + m_supportsClassBHasBeenSet(false), + m_classBTimeout(0), + m_classBTimeoutHasBeenSet(false), + m_pingSlotPeriod(0), + m_pingSlotPeriodHasBeenSet(false), + m_pingSlotDr(0), + m_pingSlotDrHasBeenSet(false), + m_pingSlotFreq(0), + m_pingSlotFreqHasBeenSet(false), + m_supportsClassC(false), + m_supportsClassCHasBeenSet(false), + m_classCTimeout(0), + m_classCTimeoutHasBeenSet(false), + m_macVersionHasBeenSet(false), + m_regParamsRevisionHasBeenSet(false), + m_rxDelay1(0), + m_rxDelay1HasBeenSet(false), + m_rxDrOffset1(0), + m_rxDrOffset1HasBeenSet(false), + m_rxDataRate2(0), + m_rxDataRate2HasBeenSet(false), + m_rxFreq2(0), + m_rxFreq2HasBeenSet(false), + m_factoryPresetFreqsListHasBeenSet(false), + m_maxEirp(0), + m_maxEirpHasBeenSet(false), + m_maxDutyCycle(0), + m_maxDutyCycleHasBeenSet(false), + m_rfRegionHasBeenSet(false), + m_supportsJoin(false), + m_supportsJoinHasBeenSet(false), + m_supports32BitFCnt(false), + m_supports32BitFCntHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANDeviceProfile& LoRaWANDeviceProfile::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SupportsClassB")) + { + m_supportsClassB = jsonValue.GetBool("SupportsClassB"); + + m_supportsClassBHasBeenSet = true; + } + + if(jsonValue.ValueExists("ClassBTimeout")) + { + m_classBTimeout = jsonValue.GetInteger("ClassBTimeout"); + + m_classBTimeoutHasBeenSet = true; + } + + if(jsonValue.ValueExists("PingSlotPeriod")) + { + m_pingSlotPeriod = jsonValue.GetInteger("PingSlotPeriod"); + + m_pingSlotPeriodHasBeenSet = true; + } + + if(jsonValue.ValueExists("PingSlotDr")) + { + m_pingSlotDr = jsonValue.GetInteger("PingSlotDr"); + + m_pingSlotDrHasBeenSet = true; + } + + if(jsonValue.ValueExists("PingSlotFreq")) + { + m_pingSlotFreq = jsonValue.GetInteger("PingSlotFreq"); + + m_pingSlotFreqHasBeenSet = true; + } + + if(jsonValue.ValueExists("SupportsClassC")) + { + m_supportsClassC = jsonValue.GetBool("SupportsClassC"); + + m_supportsClassCHasBeenSet = true; + } + + if(jsonValue.ValueExists("ClassCTimeout")) + { + m_classCTimeout = jsonValue.GetInteger("ClassCTimeout"); + + m_classCTimeoutHasBeenSet = true; + } + + if(jsonValue.ValueExists("MacVersion")) + { + m_macVersion = jsonValue.GetString("MacVersion"); + + m_macVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("RegParamsRevision")) + { + m_regParamsRevision = jsonValue.GetString("RegParamsRevision"); + + m_regParamsRevisionHasBeenSet = true; + } + + if(jsonValue.ValueExists("RxDelay1")) + { + m_rxDelay1 = jsonValue.GetInteger("RxDelay1"); + + m_rxDelay1HasBeenSet = true; + } + + if(jsonValue.ValueExists("RxDrOffset1")) + { + m_rxDrOffset1 = jsonValue.GetInteger("RxDrOffset1"); + + m_rxDrOffset1HasBeenSet = true; + } + + if(jsonValue.ValueExists("RxDataRate2")) + { + m_rxDataRate2 = jsonValue.GetInteger("RxDataRate2"); + + m_rxDataRate2HasBeenSet = true; + } + + if(jsonValue.ValueExists("RxFreq2")) + { + m_rxFreq2 = jsonValue.GetInteger("RxFreq2"); + + m_rxFreq2HasBeenSet = true; + } + + if(jsonValue.ValueExists("FactoryPresetFreqsList")) + { + Array factoryPresetFreqsListJsonList = jsonValue.GetArray("FactoryPresetFreqsList"); + for(unsigned factoryPresetFreqsListIndex = 0; factoryPresetFreqsListIndex < factoryPresetFreqsListJsonList.GetLength(); ++factoryPresetFreqsListIndex) + { + m_factoryPresetFreqsList.push_back(factoryPresetFreqsListJsonList[factoryPresetFreqsListIndex].AsInteger()); + } + m_factoryPresetFreqsListHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaxEirp")) + { + m_maxEirp = jsonValue.GetInteger("MaxEirp"); + + m_maxEirpHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaxDutyCycle")) + { + m_maxDutyCycle = jsonValue.GetInteger("MaxDutyCycle"); + + m_maxDutyCycleHasBeenSet = true; + } + + if(jsonValue.ValueExists("RfRegion")) + { + m_rfRegion = jsonValue.GetString("RfRegion"); + + m_rfRegionHasBeenSet = true; + } + + if(jsonValue.ValueExists("SupportsJoin")) + { + m_supportsJoin = jsonValue.GetBool("SupportsJoin"); + + m_supportsJoinHasBeenSet = true; + } + + if(jsonValue.ValueExists("Supports32BitFCnt")) + { + m_supports32BitFCnt = jsonValue.GetBool("Supports32BitFCnt"); + + m_supports32BitFCntHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANDeviceProfile::Jsonize() const +{ + JsonValue payload; + + if(m_supportsClassBHasBeenSet) + { + payload.WithBool("SupportsClassB", m_supportsClassB); + + } + + if(m_classBTimeoutHasBeenSet) + { + payload.WithInteger("ClassBTimeout", m_classBTimeout); + + } + + if(m_pingSlotPeriodHasBeenSet) + { + payload.WithInteger("PingSlotPeriod", m_pingSlotPeriod); + + } + + if(m_pingSlotDrHasBeenSet) + { + payload.WithInteger("PingSlotDr", m_pingSlotDr); + + } + + if(m_pingSlotFreqHasBeenSet) + { + payload.WithInteger("PingSlotFreq", m_pingSlotFreq); + + } + + if(m_supportsClassCHasBeenSet) + { + payload.WithBool("SupportsClassC", m_supportsClassC); + + } + + if(m_classCTimeoutHasBeenSet) + { + payload.WithInteger("ClassCTimeout", m_classCTimeout); + + } + + if(m_macVersionHasBeenSet) + { + payload.WithString("MacVersion", m_macVersion); + + } + + if(m_regParamsRevisionHasBeenSet) + { + payload.WithString("RegParamsRevision", m_regParamsRevision); + + } + + if(m_rxDelay1HasBeenSet) + { + payload.WithInteger("RxDelay1", m_rxDelay1); + + } + + if(m_rxDrOffset1HasBeenSet) + { + payload.WithInteger("RxDrOffset1", m_rxDrOffset1); + + } + + if(m_rxDataRate2HasBeenSet) + { + payload.WithInteger("RxDataRate2", m_rxDataRate2); + + } + + if(m_rxFreq2HasBeenSet) + { + payload.WithInteger("RxFreq2", m_rxFreq2); + + } + + if(m_factoryPresetFreqsListHasBeenSet) + { + Array factoryPresetFreqsListJsonList(m_factoryPresetFreqsList.size()); + for(unsigned factoryPresetFreqsListIndex = 0; factoryPresetFreqsListIndex < factoryPresetFreqsListJsonList.GetLength(); ++factoryPresetFreqsListIndex) + { + factoryPresetFreqsListJsonList[factoryPresetFreqsListIndex].AsInteger(m_factoryPresetFreqsList[factoryPresetFreqsListIndex]); + } + payload.WithArray("FactoryPresetFreqsList", std::move(factoryPresetFreqsListJsonList)); + + } + + if(m_maxEirpHasBeenSet) + { + payload.WithInteger("MaxEirp", m_maxEirp); + + } + + if(m_maxDutyCycleHasBeenSet) + { + payload.WithInteger("MaxDutyCycle", m_maxDutyCycle); + + } + + if(m_rfRegionHasBeenSet) + { + payload.WithString("RfRegion", m_rfRegion); + + } + + if(m_supportsJoinHasBeenSet) + { + payload.WithBool("SupportsJoin", m_supportsJoin); + + } + + if(m_supports32BitFCntHasBeenSet) + { + payload.WithBool("Supports32BitFCnt", m_supports32BitFCnt); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANGateway.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGateway.cpp new file mode 100644 index 00000000000..ee1b3fbfa20 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGateway.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANGateway::LoRaWANGateway() : + m_gatewayEuiHasBeenSet(false), + m_rfRegionHasBeenSet(false) +{ +} + +LoRaWANGateway::LoRaWANGateway(JsonView jsonValue) : + m_gatewayEuiHasBeenSet(false), + m_rfRegionHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANGateway& LoRaWANGateway::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("GatewayEui")) + { + m_gatewayEui = jsonValue.GetString("GatewayEui"); + + m_gatewayEuiHasBeenSet = true; + } + + if(jsonValue.ValueExists("RfRegion")) + { + m_rfRegion = jsonValue.GetString("RfRegion"); + + m_rfRegionHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANGateway::Jsonize() const +{ + JsonValue payload; + + if(m_gatewayEuiHasBeenSet) + { + payload.WithString("GatewayEui", m_gatewayEui); + + } + + if(m_rfRegionHasBeenSet) + { + payload.WithString("RfRegion", m_rfRegion); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayCurrentVersion.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayCurrentVersion.cpp new file mode 100644 index 00000000000..fe90d276897 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayCurrentVersion.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANGatewayCurrentVersion::LoRaWANGatewayCurrentVersion() : + m_currentVersionHasBeenSet(false) +{ +} + +LoRaWANGatewayCurrentVersion::LoRaWANGatewayCurrentVersion(JsonView jsonValue) : + m_currentVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANGatewayCurrentVersion& LoRaWANGatewayCurrentVersion::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CurrentVersion")) + { + m_currentVersion = jsonValue.GetObject("CurrentVersion"); + + m_currentVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANGatewayCurrentVersion::Jsonize() const +{ + JsonValue payload; + + if(m_currentVersionHasBeenSet) + { + payload.WithObject("CurrentVersion", m_currentVersion.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayMetadata.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayMetadata.cpp new file mode 100644 index 00000000000..7b53d3c2b5a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayMetadata.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANGatewayMetadata::LoRaWANGatewayMetadata() : + m_gatewayEuiHasBeenSet(false), + m_snr(0.0), + m_snrHasBeenSet(false), + m_rssi(0.0), + m_rssiHasBeenSet(false) +{ +} + +LoRaWANGatewayMetadata::LoRaWANGatewayMetadata(JsonView jsonValue) : + m_gatewayEuiHasBeenSet(false), + m_snr(0.0), + m_snrHasBeenSet(false), + m_rssi(0.0), + m_rssiHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANGatewayMetadata& LoRaWANGatewayMetadata::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("GatewayEui")) + { + m_gatewayEui = jsonValue.GetString("GatewayEui"); + + m_gatewayEuiHasBeenSet = true; + } + + if(jsonValue.ValueExists("Snr")) + { + m_snr = jsonValue.GetDouble("Snr"); + + m_snrHasBeenSet = true; + } + + if(jsonValue.ValueExists("Rssi")) + { + m_rssi = jsonValue.GetDouble("Rssi"); + + m_rssiHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANGatewayMetadata::Jsonize() const +{ + JsonValue payload; + + if(m_gatewayEuiHasBeenSet) + { + payload.WithString("GatewayEui", m_gatewayEui); + + } + + if(m_snrHasBeenSet) + { + payload.WithDouble("Snr", m_snr); + + } + + if(m_rssiHasBeenSet) + { + payload.WithDouble("Rssi", m_rssi); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayVersion.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayVersion.cpp new file mode 100644 index 00000000000..7357f1f65a0 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGatewayVersion.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANGatewayVersion::LoRaWANGatewayVersion() : + m_packageVersionHasBeenSet(false), + m_modelHasBeenSet(false), + m_stationHasBeenSet(false) +{ +} + +LoRaWANGatewayVersion::LoRaWANGatewayVersion(JsonView jsonValue) : + m_packageVersionHasBeenSet(false), + m_modelHasBeenSet(false), + m_stationHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANGatewayVersion& LoRaWANGatewayVersion::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("PackageVersion")) + { + m_packageVersion = jsonValue.GetString("PackageVersion"); + + m_packageVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Model")) + { + m_model = jsonValue.GetString("Model"); + + m_modelHasBeenSet = true; + } + + if(jsonValue.ValueExists("Station")) + { + m_station = jsonValue.GetString("Station"); + + m_stationHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANGatewayVersion::Jsonize() const +{ + JsonValue payload; + + if(m_packageVersionHasBeenSet) + { + payload.WithString("PackageVersion", m_packageVersion); + + } + + if(m_modelHasBeenSet) + { + payload.WithString("Model", m_model); + + } + + if(m_stationHasBeenSet) + { + payload.WithString("Station", m_station); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANGetServiceProfileInfo.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGetServiceProfileInfo.cpp new file mode 100644 index 00000000000..26af53281e8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANGetServiceProfileInfo.cpp @@ -0,0 +1,361 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANGetServiceProfileInfo::LoRaWANGetServiceProfileInfo() : + m_ulRate(0), + m_ulRateHasBeenSet(false), + m_ulBucketSize(0), + m_ulBucketSizeHasBeenSet(false), + m_ulRatePolicyHasBeenSet(false), + m_dlRate(0), + m_dlRateHasBeenSet(false), + m_dlBucketSize(0), + m_dlBucketSizeHasBeenSet(false), + m_dlRatePolicyHasBeenSet(false), + m_addGwMetadata(false), + m_addGwMetadataHasBeenSet(false), + m_devStatusReqFreq(0), + m_devStatusReqFreqHasBeenSet(false), + m_reportDevStatusBattery(false), + m_reportDevStatusBatteryHasBeenSet(false), + m_reportDevStatusMargin(false), + m_reportDevStatusMarginHasBeenSet(false), + m_drMin(0), + m_drMinHasBeenSet(false), + m_drMax(0), + m_drMaxHasBeenSet(false), + m_channelMaskHasBeenSet(false), + m_prAllowed(false), + m_prAllowedHasBeenSet(false), + m_hrAllowed(false), + m_hrAllowedHasBeenSet(false), + m_raAllowed(false), + m_raAllowedHasBeenSet(false), + m_nwkGeoLoc(false), + m_nwkGeoLocHasBeenSet(false), + m_targetPer(0), + m_targetPerHasBeenSet(false), + m_minGwDiversity(0), + m_minGwDiversityHasBeenSet(false) +{ +} + +LoRaWANGetServiceProfileInfo::LoRaWANGetServiceProfileInfo(JsonView jsonValue) : + m_ulRate(0), + m_ulRateHasBeenSet(false), + m_ulBucketSize(0), + m_ulBucketSizeHasBeenSet(false), + m_ulRatePolicyHasBeenSet(false), + m_dlRate(0), + m_dlRateHasBeenSet(false), + m_dlBucketSize(0), + m_dlBucketSizeHasBeenSet(false), + m_dlRatePolicyHasBeenSet(false), + m_addGwMetadata(false), + m_addGwMetadataHasBeenSet(false), + m_devStatusReqFreq(0), + m_devStatusReqFreqHasBeenSet(false), + m_reportDevStatusBattery(false), + m_reportDevStatusBatteryHasBeenSet(false), + m_reportDevStatusMargin(false), + m_reportDevStatusMarginHasBeenSet(false), + m_drMin(0), + m_drMinHasBeenSet(false), + m_drMax(0), + m_drMaxHasBeenSet(false), + m_channelMaskHasBeenSet(false), + m_prAllowed(false), + m_prAllowedHasBeenSet(false), + m_hrAllowed(false), + m_hrAllowedHasBeenSet(false), + m_raAllowed(false), + m_raAllowedHasBeenSet(false), + m_nwkGeoLoc(false), + m_nwkGeoLocHasBeenSet(false), + m_targetPer(0), + m_targetPerHasBeenSet(false), + m_minGwDiversity(0), + m_minGwDiversityHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANGetServiceProfileInfo& LoRaWANGetServiceProfileInfo::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("UlRate")) + { + m_ulRate = jsonValue.GetInteger("UlRate"); + + m_ulRateHasBeenSet = true; + } + + if(jsonValue.ValueExists("UlBucketSize")) + { + m_ulBucketSize = jsonValue.GetInteger("UlBucketSize"); + + m_ulBucketSizeHasBeenSet = true; + } + + if(jsonValue.ValueExists("UlRatePolicy")) + { + m_ulRatePolicy = jsonValue.GetString("UlRatePolicy"); + + m_ulRatePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("DlRate")) + { + m_dlRate = jsonValue.GetInteger("DlRate"); + + m_dlRateHasBeenSet = true; + } + + if(jsonValue.ValueExists("DlBucketSize")) + { + m_dlBucketSize = jsonValue.GetInteger("DlBucketSize"); + + m_dlBucketSizeHasBeenSet = true; + } + + if(jsonValue.ValueExists("DlRatePolicy")) + { + m_dlRatePolicy = jsonValue.GetString("DlRatePolicy"); + + m_dlRatePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("AddGwMetadata")) + { + m_addGwMetadata = jsonValue.GetBool("AddGwMetadata"); + + m_addGwMetadataHasBeenSet = true; + } + + if(jsonValue.ValueExists("DevStatusReqFreq")) + { + m_devStatusReqFreq = jsonValue.GetInteger("DevStatusReqFreq"); + + m_devStatusReqFreqHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReportDevStatusBattery")) + { + m_reportDevStatusBattery = jsonValue.GetBool("ReportDevStatusBattery"); + + m_reportDevStatusBatteryHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReportDevStatusMargin")) + { + m_reportDevStatusMargin = jsonValue.GetBool("ReportDevStatusMargin"); + + m_reportDevStatusMarginHasBeenSet = true; + } + + if(jsonValue.ValueExists("DrMin")) + { + m_drMin = jsonValue.GetInteger("DrMin"); + + m_drMinHasBeenSet = true; + } + + if(jsonValue.ValueExists("DrMax")) + { + m_drMax = jsonValue.GetInteger("DrMax"); + + m_drMaxHasBeenSet = true; + } + + if(jsonValue.ValueExists("ChannelMask")) + { + m_channelMask = jsonValue.GetString("ChannelMask"); + + m_channelMaskHasBeenSet = true; + } + + if(jsonValue.ValueExists("PrAllowed")) + { + m_prAllowed = jsonValue.GetBool("PrAllowed"); + + m_prAllowedHasBeenSet = true; + } + + if(jsonValue.ValueExists("HrAllowed")) + { + m_hrAllowed = jsonValue.GetBool("HrAllowed"); + + m_hrAllowedHasBeenSet = true; + } + + if(jsonValue.ValueExists("RaAllowed")) + { + m_raAllowed = jsonValue.GetBool("RaAllowed"); + + m_raAllowedHasBeenSet = true; + } + + if(jsonValue.ValueExists("NwkGeoLoc")) + { + m_nwkGeoLoc = jsonValue.GetBool("NwkGeoLoc"); + + m_nwkGeoLocHasBeenSet = true; + } + + if(jsonValue.ValueExists("TargetPer")) + { + m_targetPer = jsonValue.GetInteger("TargetPer"); + + m_targetPerHasBeenSet = true; + } + + if(jsonValue.ValueExists("MinGwDiversity")) + { + m_minGwDiversity = jsonValue.GetInteger("MinGwDiversity"); + + m_minGwDiversityHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANGetServiceProfileInfo::Jsonize() const +{ + JsonValue payload; + + if(m_ulRateHasBeenSet) + { + payload.WithInteger("UlRate", m_ulRate); + + } + + if(m_ulBucketSizeHasBeenSet) + { + payload.WithInteger("UlBucketSize", m_ulBucketSize); + + } + + if(m_ulRatePolicyHasBeenSet) + { + payload.WithString("UlRatePolicy", m_ulRatePolicy); + + } + + if(m_dlRateHasBeenSet) + { + payload.WithInteger("DlRate", m_dlRate); + + } + + if(m_dlBucketSizeHasBeenSet) + { + payload.WithInteger("DlBucketSize", m_dlBucketSize); + + } + + if(m_dlRatePolicyHasBeenSet) + { + payload.WithString("DlRatePolicy", m_dlRatePolicy); + + } + + if(m_addGwMetadataHasBeenSet) + { + payload.WithBool("AddGwMetadata", m_addGwMetadata); + + } + + if(m_devStatusReqFreqHasBeenSet) + { + payload.WithInteger("DevStatusReqFreq", m_devStatusReqFreq); + + } + + if(m_reportDevStatusBatteryHasBeenSet) + { + payload.WithBool("ReportDevStatusBattery", m_reportDevStatusBattery); + + } + + if(m_reportDevStatusMarginHasBeenSet) + { + payload.WithBool("ReportDevStatusMargin", m_reportDevStatusMargin); + + } + + if(m_drMinHasBeenSet) + { + payload.WithInteger("DrMin", m_drMin); + + } + + if(m_drMaxHasBeenSet) + { + payload.WithInteger("DrMax", m_drMax); + + } + + if(m_channelMaskHasBeenSet) + { + payload.WithString("ChannelMask", m_channelMask); + + } + + if(m_prAllowedHasBeenSet) + { + payload.WithBool("PrAllowed", m_prAllowed); + + } + + if(m_hrAllowedHasBeenSet) + { + payload.WithBool("HrAllowed", m_hrAllowed); + + } + + if(m_raAllowedHasBeenSet) + { + payload.WithBool("RaAllowed", m_raAllowed); + + } + + if(m_nwkGeoLocHasBeenSet) + { + payload.WithBool("NwkGeoLoc", m_nwkGeoLoc); + + } + + if(m_targetPerHasBeenSet) + { + payload.WithInteger("TargetPer", m_targetPer); + + } + + if(m_minGwDiversityHasBeenSet) + { + payload.WithInteger("MinGwDiversity", m_minGwDiversity); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANListDevice.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANListDevice.cpp new file mode 100644 index 00000000000..e1d0b5c6519 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANListDevice.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANListDevice::LoRaWANListDevice() : + m_devEuiHasBeenSet(false) +{ +} + +LoRaWANListDevice::LoRaWANListDevice(JsonView jsonValue) : + m_devEuiHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANListDevice& LoRaWANListDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DevEui")) + { + m_devEui = jsonValue.GetString("DevEui"); + + m_devEuiHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANListDevice::Jsonize() const +{ + JsonValue payload; + + if(m_devEuiHasBeenSet) + { + payload.WithString("DevEui", m_devEui); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANSendDataToDevice.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANSendDataToDevice.cpp new file mode 100644 index 00000000000..3addcbc13a9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANSendDataToDevice.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANSendDataToDevice::LoRaWANSendDataToDevice() : + m_fPort(0), + m_fPortHasBeenSet(false) +{ +} + +LoRaWANSendDataToDevice::LoRaWANSendDataToDevice(JsonView jsonValue) : + m_fPort(0), + m_fPortHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANSendDataToDevice& LoRaWANSendDataToDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FPort")) + { + m_fPort = jsonValue.GetInteger("FPort"); + + m_fPortHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANSendDataToDevice::Jsonize() const +{ + JsonValue payload; + + if(m_fPortHasBeenSet) + { + payload.WithInteger("FPort", m_fPort); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANServiceProfile.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANServiceProfile.cpp new file mode 100644 index 00000000000..1ea42e950c9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANServiceProfile.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANServiceProfile::LoRaWANServiceProfile() : + m_addGwMetadata(false), + m_addGwMetadataHasBeenSet(false) +{ +} + +LoRaWANServiceProfile::LoRaWANServiceProfile(JsonView jsonValue) : + m_addGwMetadata(false), + m_addGwMetadataHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANServiceProfile& LoRaWANServiceProfile::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AddGwMetadata")) + { + m_addGwMetadata = jsonValue.GetBool("AddGwMetadata"); + + m_addGwMetadataHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANServiceProfile::Jsonize() const +{ + JsonValue payload; + + if(m_addGwMetadataHasBeenSet) + { + payload.WithBool("AddGwMetadata", m_addGwMetadata); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateDevice.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateDevice.cpp new file mode 100644 index 00000000000..623b82b922b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateDevice.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANUpdateDevice::LoRaWANUpdateDevice() : + m_deviceProfileIdHasBeenSet(false), + m_serviceProfileIdHasBeenSet(false) +{ +} + +LoRaWANUpdateDevice::LoRaWANUpdateDevice(JsonView jsonValue) : + m_deviceProfileIdHasBeenSet(false), + m_serviceProfileIdHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANUpdateDevice& LoRaWANUpdateDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DeviceProfileId")) + { + m_deviceProfileId = jsonValue.GetString("DeviceProfileId"); + + m_deviceProfileIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ServiceProfileId")) + { + m_serviceProfileId = jsonValue.GetString("ServiceProfileId"); + + m_serviceProfileIdHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANUpdateDevice::Jsonize() const +{ + JsonValue payload; + + if(m_deviceProfileIdHasBeenSet) + { + payload.WithString("DeviceProfileId", m_deviceProfileId); + + } + + if(m_serviceProfileIdHasBeenSet) + { + payload.WithString("ServiceProfileId", m_serviceProfileId); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskCreate.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskCreate.cpp new file mode 100644 index 00000000000..c47c2b559e5 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskCreate.cpp @@ -0,0 +1,106 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANUpdateGatewayTaskCreate::LoRaWANUpdateGatewayTaskCreate() : + m_updateSignatureHasBeenSet(false), + m_sigKeyCrc(0), + m_sigKeyCrcHasBeenSet(false), + m_currentVersionHasBeenSet(false), + m_updateVersionHasBeenSet(false) +{ +} + +LoRaWANUpdateGatewayTaskCreate::LoRaWANUpdateGatewayTaskCreate(JsonView jsonValue) : + m_updateSignatureHasBeenSet(false), + m_sigKeyCrc(0), + m_sigKeyCrcHasBeenSet(false), + m_currentVersionHasBeenSet(false), + m_updateVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANUpdateGatewayTaskCreate& LoRaWANUpdateGatewayTaskCreate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("UpdateSignature")) + { + m_updateSignature = jsonValue.GetString("UpdateSignature"); + + m_updateSignatureHasBeenSet = true; + } + + if(jsonValue.ValueExists("SigKeyCrc")) + { + m_sigKeyCrc = jsonValue.GetInt64("SigKeyCrc"); + + m_sigKeyCrcHasBeenSet = true; + } + + if(jsonValue.ValueExists("CurrentVersion")) + { + m_currentVersion = jsonValue.GetObject("CurrentVersion"); + + m_currentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpdateVersion")) + { + m_updateVersion = jsonValue.GetObject("UpdateVersion"); + + m_updateVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANUpdateGatewayTaskCreate::Jsonize() const +{ + JsonValue payload; + + if(m_updateSignatureHasBeenSet) + { + payload.WithString("UpdateSignature", m_updateSignature); + + } + + if(m_sigKeyCrcHasBeenSet) + { + payload.WithInt64("SigKeyCrc", m_sigKeyCrc); + + } + + if(m_currentVersionHasBeenSet) + { + payload.WithObject("CurrentVersion", m_currentVersion.Jsonize()); + + } + + if(m_updateVersionHasBeenSet) + { + payload.WithObject("UpdateVersion", m_updateVersion.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskEntry.cpp b/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskEntry.cpp new file mode 100644 index 00000000000..d59d66bfae9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/LoRaWANUpdateGatewayTaskEntry.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +LoRaWANUpdateGatewayTaskEntry::LoRaWANUpdateGatewayTaskEntry() : + m_currentVersionHasBeenSet(false), + m_updateVersionHasBeenSet(false) +{ +} + +LoRaWANUpdateGatewayTaskEntry::LoRaWANUpdateGatewayTaskEntry(JsonView jsonValue) : + m_currentVersionHasBeenSet(false), + m_updateVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +LoRaWANUpdateGatewayTaskEntry& LoRaWANUpdateGatewayTaskEntry::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CurrentVersion")) + { + m_currentVersion = jsonValue.GetObject("CurrentVersion"); + + m_currentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpdateVersion")) + { + m_updateVersion = jsonValue.GetObject("UpdateVersion"); + + m_updateVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue LoRaWANUpdateGatewayTaskEntry::Jsonize() const +{ + JsonValue payload; + + if(m_currentVersionHasBeenSet) + { + payload.WithObject("CurrentVersion", m_currentVersion.Jsonize()); + + } + + if(m_updateVersionHasBeenSet) + { + payload.WithObject("UpdateVersion", m_updateVersion.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/OtaaV1_0_x.cpp b/aws-cpp-sdk-iotwireless/source/model/OtaaV1_0_x.cpp new file mode 100644 index 00000000000..5139218f54b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/OtaaV1_0_x.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +OtaaV1_0_x::OtaaV1_0_x() : + m_appKeyHasBeenSet(false), + m_appEuiHasBeenSet(false) +{ +} + +OtaaV1_0_x::OtaaV1_0_x(JsonView jsonValue) : + m_appKeyHasBeenSet(false), + m_appEuiHasBeenSet(false) +{ + *this = jsonValue; +} + +OtaaV1_0_x& OtaaV1_0_x::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AppKey")) + { + m_appKey = jsonValue.GetString("AppKey"); + + m_appKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("AppEui")) + { + m_appEui = jsonValue.GetString("AppEui"); + + m_appEuiHasBeenSet = true; + } + + return *this; +} + +JsonValue OtaaV1_0_x::Jsonize() const +{ + JsonValue payload; + + if(m_appKeyHasBeenSet) + { + payload.WithString("AppKey", m_appKey); + + } + + if(m_appEuiHasBeenSet) + { + payload.WithString("AppEui", m_appEui); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/OtaaV1_1.cpp b/aws-cpp-sdk-iotwireless/source/model/OtaaV1_1.cpp new file mode 100644 index 00000000000..abd66b985e3 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/OtaaV1_1.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +OtaaV1_1::OtaaV1_1() : + m_appKeyHasBeenSet(false), + m_nwkKeyHasBeenSet(false), + m_joinEuiHasBeenSet(false) +{ +} + +OtaaV1_1::OtaaV1_1(JsonView jsonValue) : + m_appKeyHasBeenSet(false), + m_nwkKeyHasBeenSet(false), + m_joinEuiHasBeenSet(false) +{ + *this = jsonValue; +} + +OtaaV1_1& OtaaV1_1::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AppKey")) + { + m_appKey = jsonValue.GetString("AppKey"); + + m_appKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("NwkKey")) + { + m_nwkKey = jsonValue.GetString("NwkKey"); + + m_nwkKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("JoinEui")) + { + m_joinEui = jsonValue.GetString("JoinEui"); + + m_joinEuiHasBeenSet = true; + } + + return *this; +} + +JsonValue OtaaV1_1::Jsonize() const +{ + JsonValue payload; + + if(m_appKeyHasBeenSet) + { + payload.WithString("AppKey", m_appKey); + + } + + if(m_nwkKeyHasBeenSet) + { + payload.WithString("NwkKey", m_nwkKey); + + } + + if(m_joinEuiHasBeenSet) + { + payload.WithString("JoinEui", m_joinEui); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp b/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp new file mode 100644 index 00000000000..0d29965cae4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/PartnerType.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace PartnerTypeMapper + { + + static const int Sidewalk_HASH = HashingUtils::HashString("Sidewalk"); + + + PartnerType GetPartnerTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Sidewalk_HASH) + { + return PartnerType::Sidewalk; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return PartnerType::NOT_SET; + } + + Aws::String GetNameForPartnerType(PartnerType enumValue) + { + switch(enumValue) + { + case PartnerType::Sidewalk: + return "Sidewalk"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace PartnerTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/ResourceNotFoundException.cpp b/aws-cpp-sdk-iotwireless/source/model/ResourceNotFoundException.cpp new file mode 100644 index 00000000000..d46165e371e --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ResourceNotFoundException.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +ResourceNotFoundException::ResourceNotFoundException() : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ +} + +ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceIdHasBeenSet(false), + m_resourceTypeHasBeenSet(false) +{ + *this = jsonValue; +} + +ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceId")) + { + m_resourceId = jsonValue.GetString("ResourceId"); + + m_resourceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceType")) + { + m_resourceType = jsonValue.GetString("ResourceType"); + + m_resourceTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue ResourceNotFoundException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_resourceIdHasBeenSet) + { + payload.WithString("ResourceId", m_resourceId); + + } + + if(m_resourceTypeHasBeenSet) + { + payload.WithString("ResourceType", m_resourceType); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceRequest.cpp new file mode 100644 index 00000000000..30873c4b039 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +SendDataToWirelessDeviceRequest::SendDataToWirelessDeviceRequest() : + m_idHasBeenSet(false), + m_transmitMode(0), + m_transmitModeHasBeenSet(false), + m_payloadDataHasBeenSet(false), + m_wirelessMetadataHasBeenSet(false) +{ +} + +Aws::String SendDataToWirelessDeviceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_transmitModeHasBeenSet) + { + payload.WithInteger("TransmitMode", m_transmitMode); + + } + + if(m_payloadDataHasBeenSet) + { + payload.WithString("PayloadData", m_payloadData); + + } + + if(m_wirelessMetadataHasBeenSet) + { + payload.WithObject("WirelessMetadata", m_wirelessMetadata.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceResult.cpp new file mode 100644 index 00000000000..c7100b4c3d5 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SendDataToWirelessDeviceResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +SendDataToWirelessDeviceResult::SendDataToWirelessDeviceResult() +{ +} + +SendDataToWirelessDeviceResult::SendDataToWirelessDeviceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +SendDataToWirelessDeviceResult& SendDataToWirelessDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("MessageId")) + { + m_messageId = jsonValue.GetString("MessageId"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/ServiceProfile.cpp b/aws-cpp-sdk-iotwireless/source/model/ServiceProfile.cpp new file mode 100644 index 00000000000..865818e2b3f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/ServiceProfile.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +ServiceProfile::ServiceProfile() : + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_idHasBeenSet(false) +{ +} + +ServiceProfile::ServiceProfile(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_nameHasBeenSet(false), + m_idHasBeenSet(false) +{ + *this = jsonValue; +} + +ServiceProfile& ServiceProfile::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + return *this; +} + +JsonValue ServiceProfile::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_0_x.cpp b/aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_0_x.cpp new file mode 100644 index 00000000000..f0b05c8a860 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_0_x.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SessionKeysAbpV1_0_x::SessionKeysAbpV1_0_x() : + m_nwkSKeyHasBeenSet(false), + m_appSKeyHasBeenSet(false) +{ +} + +SessionKeysAbpV1_0_x::SessionKeysAbpV1_0_x(JsonView jsonValue) : + m_nwkSKeyHasBeenSet(false), + m_appSKeyHasBeenSet(false) +{ + *this = jsonValue; +} + +SessionKeysAbpV1_0_x& SessionKeysAbpV1_0_x::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("NwkSKey")) + { + m_nwkSKey = jsonValue.GetString("NwkSKey"); + + m_nwkSKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("AppSKey")) + { + m_appSKey = jsonValue.GetString("AppSKey"); + + m_appSKeyHasBeenSet = true; + } + + return *this; +} + +JsonValue SessionKeysAbpV1_0_x::Jsonize() const +{ + JsonValue payload; + + if(m_nwkSKeyHasBeenSet) + { + payload.WithString("NwkSKey", m_nwkSKey); + + } + + if(m_appSKeyHasBeenSet) + { + payload.WithString("AppSKey", m_appSKey); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_1.cpp b/aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_1.cpp new file mode 100644 index 00000000000..06e0a26d258 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SessionKeysAbpV1_1.cpp @@ -0,0 +1,104 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SessionKeysAbpV1_1::SessionKeysAbpV1_1() : + m_fNwkSIntKeyHasBeenSet(false), + m_sNwkSIntKeyHasBeenSet(false), + m_nwkSEncKeyHasBeenSet(false), + m_appSKeyHasBeenSet(false) +{ +} + +SessionKeysAbpV1_1::SessionKeysAbpV1_1(JsonView jsonValue) : + m_fNwkSIntKeyHasBeenSet(false), + m_sNwkSIntKeyHasBeenSet(false), + m_nwkSEncKeyHasBeenSet(false), + m_appSKeyHasBeenSet(false) +{ + *this = jsonValue; +} + +SessionKeysAbpV1_1& SessionKeysAbpV1_1::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("FNwkSIntKey")) + { + m_fNwkSIntKey = jsonValue.GetString("FNwkSIntKey"); + + m_fNwkSIntKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("SNwkSIntKey")) + { + m_sNwkSIntKey = jsonValue.GetString("SNwkSIntKey"); + + m_sNwkSIntKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("NwkSEncKey")) + { + m_nwkSEncKey = jsonValue.GetString("NwkSEncKey"); + + m_nwkSEncKeyHasBeenSet = true; + } + + if(jsonValue.ValueExists("AppSKey")) + { + m_appSKey = jsonValue.GetString("AppSKey"); + + m_appSKeyHasBeenSet = true; + } + + return *this; +} + +JsonValue SessionKeysAbpV1_1::Jsonize() const +{ + JsonValue payload; + + if(m_fNwkSIntKeyHasBeenSet) + { + payload.WithString("FNwkSIntKey", m_fNwkSIntKey); + + } + + if(m_sNwkSIntKeyHasBeenSet) + { + payload.WithString("SNwkSIntKey", m_sNwkSIntKey); + + } + + if(m_nwkSEncKeyHasBeenSet) + { + payload.WithString("NwkSEncKey", m_nwkSEncKey); + + } + + if(m_appSKeyHasBeenSet) + { + payload.WithString("AppSKey", m_appSKey); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfo.cpp b/aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfo.cpp new file mode 100644 index 00000000000..82eb35258e1 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfo.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SidewalkAccountInfo::SidewalkAccountInfo() : + m_amazonIdHasBeenSet(false), + m_appServerPrivateKeyHasBeenSet(false) +{ +} + +SidewalkAccountInfo::SidewalkAccountInfo(JsonView jsonValue) : + m_amazonIdHasBeenSet(false), + m_appServerPrivateKeyHasBeenSet(false) +{ + *this = jsonValue; +} + +SidewalkAccountInfo& SidewalkAccountInfo::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AmazonId")) + { + m_amazonId = jsonValue.GetString("AmazonId"); + + m_amazonIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AppServerPrivateKey")) + { + m_appServerPrivateKey = jsonValue.GetString("AppServerPrivateKey"); + + m_appServerPrivateKeyHasBeenSet = true; + } + + return *this; +} + +JsonValue SidewalkAccountInfo::Jsonize() const +{ + JsonValue payload; + + if(m_amazonIdHasBeenSet) + { + payload.WithString("AmazonId", m_amazonId); + + } + + if(m_appServerPrivateKeyHasBeenSet) + { + payload.WithString("AppServerPrivateKey", m_appServerPrivateKey); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfoWithFingerprint.cpp b/aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfoWithFingerprint.cpp new file mode 100644 index 00000000000..028e8d38612 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SidewalkAccountInfoWithFingerprint.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SidewalkAccountInfoWithFingerprint::SidewalkAccountInfoWithFingerprint() : + m_amazonIdHasBeenSet(false), + m_appServerPrivateKeyHasBeenSet(false) +{ +} + +SidewalkAccountInfoWithFingerprint::SidewalkAccountInfoWithFingerprint(JsonView jsonValue) : + m_amazonIdHasBeenSet(false), + m_appServerPrivateKeyHasBeenSet(false) +{ + *this = jsonValue; +} + +SidewalkAccountInfoWithFingerprint& SidewalkAccountInfoWithFingerprint::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AmazonId")) + { + m_amazonId = jsonValue.GetString("AmazonId"); + + m_amazonIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AppServerPrivateKey")) + { + m_appServerPrivateKey = jsonValue.GetString("AppServerPrivateKey"); + + m_appServerPrivateKeyHasBeenSet = true; + } + + return *this; +} + +JsonValue SidewalkAccountInfoWithFingerprint::Jsonize() const +{ + JsonValue payload; + + if(m_amazonIdHasBeenSet) + { + payload.WithString("AmazonId", m_amazonId); + + } + + if(m_appServerPrivateKeyHasBeenSet) + { + payload.WithString("AppServerPrivateKey", m_appServerPrivateKey); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SidewalkListDevice.cpp b/aws-cpp-sdk-iotwireless/source/model/SidewalkListDevice.cpp new file mode 100644 index 00000000000..9fff73802a8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SidewalkListDevice.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SidewalkListDevice::SidewalkListDevice() : + m_amazonIdHasBeenSet(false) +{ +} + +SidewalkListDevice::SidewalkListDevice(JsonView jsonValue) : + m_amazonIdHasBeenSet(false) +{ + *this = jsonValue; +} + +SidewalkListDevice& SidewalkListDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AmazonId")) + { + m_amazonId = jsonValue.GetString("AmazonId"); + + m_amazonIdHasBeenSet = true; + } + + return *this; +} + +JsonValue SidewalkListDevice::Jsonize() const +{ + JsonValue payload; + + if(m_amazonIdHasBeenSet) + { + payload.WithString("AmazonId", m_amazonId); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SidewalkSendDataToDevice.cpp b/aws-cpp-sdk-iotwireless/source/model/SidewalkSendDataToDevice.cpp new file mode 100644 index 00000000000..15636efff68 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SidewalkSendDataToDevice.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SidewalkSendDataToDevice::SidewalkSendDataToDevice() : + m_seq(0), + m_seqHasBeenSet(false) +{ +} + +SidewalkSendDataToDevice::SidewalkSendDataToDevice(JsonView jsonValue) : + m_seq(0), + m_seqHasBeenSet(false) +{ + *this = jsonValue; +} + +SidewalkSendDataToDevice& SidewalkSendDataToDevice::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Seq")) + { + m_seq = jsonValue.GetInteger("Seq"); + + m_seqHasBeenSet = true; + } + + return *this; +} + +JsonValue SidewalkSendDataToDevice::Jsonize() const +{ + JsonValue payload; + + if(m_seqHasBeenSet) + { + payload.WithInteger("Seq", m_seq); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/SidewalkUpdateAccount.cpp b/aws-cpp-sdk-iotwireless/source/model/SidewalkUpdateAccount.cpp new file mode 100644 index 00000000000..84803650d38 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/SidewalkUpdateAccount.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +SidewalkUpdateAccount::SidewalkUpdateAccount() : + m_appServerPrivateKeyHasBeenSet(false) +{ +} + +SidewalkUpdateAccount::SidewalkUpdateAccount(JsonView jsonValue) : + m_appServerPrivateKeyHasBeenSet(false) +{ + *this = jsonValue; +} + +SidewalkUpdateAccount& SidewalkUpdateAccount::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AppServerPrivateKey")) + { + m_appServerPrivateKey = jsonValue.GetString("AppServerPrivateKey"); + + m_appServerPrivateKeyHasBeenSet = true; + } + + return *this; +} + +JsonValue SidewalkUpdateAccount::Jsonize() const +{ + JsonValue payload; + + if(m_appServerPrivateKeyHasBeenSet) + { + payload.WithString("AppServerPrivateKey", m_appServerPrivateKey); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/Tag.cpp b/aws-cpp-sdk-iotwireless/source/model/Tag.cpp new file mode 100644 index 00000000000..7453e1e6e53 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/Tag.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +Tag::Tag() : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +Tag::Tag(JsonView jsonValue) : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +Tag& Tag::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Key")) + { + m_key = jsonValue.GetString("Key"); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("Value")) + { + m_value = jsonValue.GetString("Value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue Tag::Jsonize() const +{ + JsonValue payload; + + if(m_keyHasBeenSet) + { + payload.WithString("Key", m_key); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("Value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/TagResourceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..438e0a42713 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/TagResourceRequest.cpp @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +TagResourceRequest::TagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +void TagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_resourceArnHasBeenSet) + { + ss << m_resourceArn; + uri.AddQueryStringParameter("resourceArn", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/TagResourceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/TagResourceResult.cpp new file mode 100644 index 00000000000..4d3e8dfa9cf --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/TagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TagResourceResult::TagResourceResult() +{ +} + +TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceRequest.cpp new file mode 100644 index 00000000000..3505d9da163 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TestWirelessDeviceRequest::TestWirelessDeviceRequest() : + m_idHasBeenSet(false) +{ +} + +Aws::String TestWirelessDeviceRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceResult.cpp new file mode 100644 index 00000000000..b21b9d5ba4b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/TestWirelessDeviceResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TestWirelessDeviceResult::TestWirelessDeviceResult() +{ +} + +TestWirelessDeviceResult::TestWirelessDeviceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TestWirelessDeviceResult& TestWirelessDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Result")) + { + m_result = jsonValue.GetString("Result"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/TooManyTagsException.cpp b/aws-cpp-sdk-iotwireless/source/model/TooManyTagsException.cpp new file mode 100644 index 00000000000..33bf29fc3e8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/TooManyTagsException.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +TooManyTagsException::TooManyTagsException() : + m_messageHasBeenSet(false), + m_resourceNameHasBeenSet(false) +{ +} + +TooManyTagsException::TooManyTagsException(JsonView jsonValue) : + m_messageHasBeenSet(false), + m_resourceNameHasBeenSet(false) +{ + *this = jsonValue; +} + +TooManyTagsException& TooManyTagsException::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Message")) + { + m_message = jsonValue.GetString("Message"); + + m_messageHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResourceName")) + { + m_resourceName = jsonValue.GetString("ResourceName"); + + m_resourceNameHasBeenSet = true; + } + + return *this; +} + +JsonValue TooManyTagsException::Jsonize() const +{ + JsonValue payload; + + if(m_messageHasBeenSet) + { + payload.WithString("Message", m_message); + + } + + if(m_resourceNameHasBeenSet) + { + payload.WithString("ResourceName", m_resourceName); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/UntagResourceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..cfc9bcdd129 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UntagResourceRequest.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UntagResourceRequest::UntagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + return {}; +} + +void UntagResourceRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_resourceArnHasBeenSet) + { + ss << m_resourceArn; + uri.AddQueryStringParameter("resourceArn", ss.str()); + ss.str(""); + } + + if(m_tagKeysHasBeenSet) + { + for(const auto& item : m_tagKeys) + { + ss << item; + uri.AddQueryStringParameter("tagKeys", ss.str()); + ss.str(""); + } + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/UntagResourceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/UntagResourceResult.cpp new file mode 100644 index 00000000000..08e360728bd --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UntagResourceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UntagResourceResult::UntagResourceResult() +{ +} + +UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateDestinationRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateDestinationRequest.cpp new file mode 100644 index 00000000000..8bdb39dcad6 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateDestinationRequest.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateDestinationRequest::UpdateDestinationRequest() : + m_nameHasBeenSet(false), + m_expressionType(ExpressionType::NOT_SET), + m_expressionTypeHasBeenSet(false), + m_expressionHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +Aws::String UpdateDestinationRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_expressionTypeHasBeenSet) + { + payload.WithString("ExpressionType", ExpressionTypeMapper::GetNameForExpressionType(m_expressionType)); + } + + if(m_expressionHasBeenSet) + { + payload.WithString("Expression", m_expression); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateDestinationResult.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateDestinationResult.cpp new file mode 100644 index 00000000000..3be0f937556 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateDestinationResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateDestinationResult::UpdateDestinationResult() +{ +} + +UpdateDestinationResult::UpdateDestinationResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateDestinationResult& UpdateDestinationResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountRequest.cpp new file mode 100644 index 00000000000..af8a2f732f4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountRequest.cpp @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +UpdatePartnerAccountRequest::UpdatePartnerAccountRequest() : + m_sidewalkHasBeenSet(false), + m_partnerAccountIdHasBeenSet(false), + m_partnerType(PartnerType::NOT_SET), + m_partnerTypeHasBeenSet(false) +{ +} + +Aws::String UpdatePartnerAccountRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_sidewalkHasBeenSet) + { + payload.WithObject("Sidewalk", m_sidewalk.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +void UpdatePartnerAccountRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_partnerTypeHasBeenSet) + { + ss << PartnerTypeMapper::GetNameForPartnerType(m_partnerType); + uri.AddQueryStringParameter("partnerType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountResult.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountResult.cpp new file mode 100644 index 00000000000..aac0d016243 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdatePartnerAccountResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdatePartnerAccountResult::UpdatePartnerAccountResult() +{ +} + +UpdatePartnerAccountResult::UpdatePartnerAccountResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdatePartnerAccountResult& UpdatePartnerAccountResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceRequest.cpp new file mode 100644 index 00000000000..b119f2e8fe4 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceRequest.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateWirelessDeviceRequest::UpdateWirelessDeviceRequest() : + m_idHasBeenSet(false), + m_destinationNameHasBeenSet(false), + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_loRaWANHasBeenSet(false) +{ +} + +Aws::String UpdateWirelessDeviceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_destinationNameHasBeenSet) + { + payload.WithString("DestinationName", m_destinationName); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceResult.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceResult.cpp new file mode 100644 index 00000000000..9d4aac86510 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessDeviceResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateWirelessDeviceResult::UpdateWirelessDeviceResult() +{ +} + +UpdateWirelessDeviceResult::UpdateWirelessDeviceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateWirelessDeviceResult& UpdateWirelessDeviceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayRequest.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayRequest.cpp new file mode 100644 index 00000000000..367fa9da677 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateWirelessGatewayRequest::UpdateWirelessGatewayRequest() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false) +{ +} + +Aws::String UpdateWirelessGatewayRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayResult.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayResult.cpp new file mode 100644 index 00000000000..112c8175f83 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::IoTWireless::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateWirelessGatewayResult::UpdateWirelessGatewayResult() +{ +} + +UpdateWirelessGatewayResult::UpdateWirelessGatewayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateWirelessGatewayResult& UpdateWirelessGatewayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskCreate.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskCreate.cpp new file mode 100644 index 00000000000..fdd05e819de --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskCreate.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +UpdateWirelessGatewayTaskCreate::UpdateWirelessGatewayTaskCreate() : + m_updateDataSourceHasBeenSet(false), + m_updateDataRoleHasBeenSet(false), + m_loRaWANHasBeenSet(false) +{ +} + +UpdateWirelessGatewayTaskCreate::UpdateWirelessGatewayTaskCreate(JsonView jsonValue) : + m_updateDataSourceHasBeenSet(false), + m_updateDataRoleHasBeenSet(false), + m_loRaWANHasBeenSet(false) +{ + *this = jsonValue; +} + +UpdateWirelessGatewayTaskCreate& UpdateWirelessGatewayTaskCreate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("UpdateDataSource")) + { + m_updateDataSource = jsonValue.GetString("UpdateDataSource"); + + m_updateDataSourceHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpdateDataRole")) + { + m_updateDataRole = jsonValue.GetString("UpdateDataRole"); + + m_updateDataRoleHasBeenSet = true; + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + m_loRaWANHasBeenSet = true; + } + + return *this; +} + +JsonValue UpdateWirelessGatewayTaskCreate::Jsonize() const +{ + JsonValue payload; + + if(m_updateDataSourceHasBeenSet) + { + payload.WithString("UpdateDataSource", m_updateDataSource); + + } + + if(m_updateDataRoleHasBeenSet) + { + payload.WithString("UpdateDataRole", m_updateDataRole); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskEntry.cpp b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskEntry.cpp new file mode 100644 index 00000000000..297218e9d7a --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/UpdateWirelessGatewayTaskEntry.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +UpdateWirelessGatewayTaskEntry::UpdateWirelessGatewayTaskEntry() : + m_idHasBeenSet(false), + m_loRaWANHasBeenSet(false) +{ +} + +UpdateWirelessGatewayTaskEntry::UpdateWirelessGatewayTaskEntry(JsonView jsonValue) : + m_idHasBeenSet(false), + m_loRaWANHasBeenSet(false) +{ + *this = jsonValue; +} + +UpdateWirelessGatewayTaskEntry& UpdateWirelessGatewayTaskEntry::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + m_loRaWANHasBeenSet = true; + } + + return *this; +} + +JsonValue UpdateWirelessGatewayTaskEntry::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp new file mode 100644 index 00000000000..a5460a65bd9 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceIdType.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace WirelessDeviceIdTypeMapper + { + + static const int WirelessDeviceId_HASH = HashingUtils::HashString("WirelessDeviceId"); + static const int DevEui_HASH = HashingUtils::HashString("DevEui"); + static const int ThingName_HASH = HashingUtils::HashString("ThingName"); + + + WirelessDeviceIdType GetWirelessDeviceIdTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == WirelessDeviceId_HASH) + { + return WirelessDeviceIdType::WirelessDeviceId; + } + else if (hashCode == DevEui_HASH) + { + return WirelessDeviceIdType::DevEui; + } + else if (hashCode == ThingName_HASH) + { + return WirelessDeviceIdType::ThingName; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WirelessDeviceIdType::NOT_SET; + } + + Aws::String GetNameForWirelessDeviceIdType(WirelessDeviceIdType enumValue) + { + switch(enumValue) + { + case WirelessDeviceIdType::WirelessDeviceId: + return "WirelessDeviceId"; + case WirelessDeviceIdType::DevEui: + return "DevEui"; + case WirelessDeviceIdType::ThingName: + return "ThingName"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WirelessDeviceIdTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceStatistics.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceStatistics.cpp new file mode 100644 index 00000000000..375ff949f59 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceStatistics.cpp @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +WirelessDeviceStatistics::WirelessDeviceStatistics() : + m_arnHasBeenSet(false), + m_idHasBeenSet(false), + m_type(WirelessDeviceType::NOT_SET), + m_typeHasBeenSet(false), + m_nameHasBeenSet(false), + m_destinationNameHasBeenSet(false), + m_lastUplinkReceivedAtHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_sidewalkHasBeenSet(false) +{ +} + +WirelessDeviceStatistics::WirelessDeviceStatistics(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_idHasBeenSet(false), + m_type(WirelessDeviceType::NOT_SET), + m_typeHasBeenSet(false), + m_nameHasBeenSet(false), + m_destinationNameHasBeenSet(false), + m_lastUplinkReceivedAtHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_sidewalkHasBeenSet(false) +{ + *this = jsonValue; +} + +WirelessDeviceStatistics& WirelessDeviceStatistics::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("Type")) + { + m_type = WirelessDeviceTypeMapper::GetWirelessDeviceTypeForName(jsonValue.GetString("Type")); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("DestinationName")) + { + m_destinationName = jsonValue.GetString("DestinationName"); + + m_destinationNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("LastUplinkReceivedAt")) + { + m_lastUplinkReceivedAt = jsonValue.GetString("LastUplinkReceivedAt"); + + m_lastUplinkReceivedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + m_loRaWANHasBeenSet = true; + } + + if(jsonValue.ValueExists("Sidewalk")) + { + m_sidewalk = jsonValue.GetObject("Sidewalk"); + + m_sidewalkHasBeenSet = true; + } + + return *this; +} + +JsonValue WirelessDeviceStatistics::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("Type", WirelessDeviceTypeMapper::GetNameForWirelessDeviceType(m_type)); + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_destinationNameHasBeenSet) + { + payload.WithString("DestinationName", m_destinationName); + + } + + if(m_lastUplinkReceivedAtHasBeenSet) + { + payload.WithString("LastUplinkReceivedAt", m_lastUplinkReceivedAt); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + if(m_sidewalkHasBeenSet) + { + payload.WithObject("Sidewalk", m_sidewalk.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp new file mode 100644 index 00000000000..76e8e3a9f68 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessDeviceType.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace WirelessDeviceTypeMapper + { + + static const int Sidewalk_HASH = HashingUtils::HashString("Sidewalk"); + static const int LoRaWAN_HASH = HashingUtils::HashString("LoRaWAN"); + + + WirelessDeviceType GetWirelessDeviceTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Sidewalk_HASH) + { + return WirelessDeviceType::Sidewalk; + } + else if (hashCode == LoRaWAN_HASH) + { + return WirelessDeviceType::LoRaWAN; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WirelessDeviceType::NOT_SET; + } + + Aws::String GetNameForWirelessDeviceType(WirelessDeviceType enumValue) + { + switch(enumValue) + { + case WirelessDeviceType::Sidewalk: + return "Sidewalk"; + case WirelessDeviceType::LoRaWAN: + return "LoRaWAN"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WirelessDeviceTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp new file mode 100644 index 00000000000..5c5e72c6716 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayIdType.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace WirelessGatewayIdTypeMapper + { + + static const int GatewayEui_HASH = HashingUtils::HashString("GatewayEui"); + static const int WirelessGatewayId_HASH = HashingUtils::HashString("WirelessGatewayId"); + static const int ThingName_HASH = HashingUtils::HashString("ThingName"); + + + WirelessGatewayIdType GetWirelessGatewayIdTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == GatewayEui_HASH) + { + return WirelessGatewayIdType::GatewayEui; + } + else if (hashCode == WirelessGatewayId_HASH) + { + return WirelessGatewayIdType::WirelessGatewayId; + } + else if (hashCode == ThingName_HASH) + { + return WirelessGatewayIdType::ThingName; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WirelessGatewayIdType::NOT_SET; + } + + Aws::String GetNameForWirelessGatewayIdType(WirelessGatewayIdType enumValue) + { + switch(enumValue) + { + case WirelessGatewayIdType::GatewayEui: + return "GatewayEui"; + case WirelessGatewayIdType::WirelessGatewayId: + return "WirelessGatewayId"; + case WirelessGatewayIdType::ThingName: + return "ThingName"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WirelessGatewayIdTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp new file mode 100644 index 00000000000..bdb5cd4916f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayServiceType.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace WirelessGatewayServiceTypeMapper + { + + static const int CUPS_HASH = HashingUtils::HashString("CUPS"); + static const int LNS_HASH = HashingUtils::HashString("LNS"); + + + WirelessGatewayServiceType GetWirelessGatewayServiceTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CUPS_HASH) + { + return WirelessGatewayServiceType::CUPS; + } + else if (hashCode == LNS_HASH) + { + return WirelessGatewayServiceType::LNS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WirelessGatewayServiceType::NOT_SET; + } + + Aws::String GetNameForWirelessGatewayServiceType(WirelessGatewayServiceType enumValue) + { + switch(enumValue) + { + case WirelessGatewayServiceType::CUPS: + return "CUPS"; + case WirelessGatewayServiceType::LNS: + return "LNS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WirelessGatewayServiceTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayStatistics.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayStatistics.cpp new file mode 100644 index 00000000000..e0db04e230b --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayStatistics.cpp @@ -0,0 +1,134 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +WirelessGatewayStatistics::WirelessGatewayStatistics() : + m_arnHasBeenSet(false), + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_lastUplinkReceivedAtHasBeenSet(false) +{ +} + +WirelessGatewayStatistics::WirelessGatewayStatistics(JsonView jsonValue) : + m_arnHasBeenSet(false), + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_loRaWANHasBeenSet(false), + m_lastUplinkReceivedAtHasBeenSet(false) +{ + *this = jsonValue; +} + +WirelessGatewayStatistics& WirelessGatewayStatistics::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + if(jsonValue.ValueExists("Id")) + { + m_id = jsonValue.GetString("Id"); + + m_idHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Description")) + { + m_description = jsonValue.GetString("Description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + m_loRaWANHasBeenSet = true; + } + + if(jsonValue.ValueExists("LastUplinkReceivedAt")) + { + m_lastUplinkReceivedAt = jsonValue.GetString("LastUplinkReceivedAt"); + + m_lastUplinkReceivedAtHasBeenSet = true; + } + + return *this; +} + +JsonValue WirelessGatewayStatistics::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + if(m_idHasBeenSet) + { + payload.WithString("Id", m_id); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("Description", m_description); + + } + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + if(m_lastUplinkReceivedAtHasBeenSet) + { + payload.WithString("LastUplinkReceivedAt", m_lastUplinkReceivedAt); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp new file mode 100644 index 00000000000..9ef34b247d7 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskDefinitionType.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace WirelessGatewayTaskDefinitionTypeMapper + { + + static const int UPDATE_HASH = HashingUtils::HashString("UPDATE"); + + + WirelessGatewayTaskDefinitionType GetWirelessGatewayTaskDefinitionTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == UPDATE_HASH) + { + return WirelessGatewayTaskDefinitionType::UPDATE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WirelessGatewayTaskDefinitionType::NOT_SET; + } + + Aws::String GetNameForWirelessGatewayTaskDefinitionType(WirelessGatewayTaskDefinitionType enumValue) + { + switch(enumValue) + { + case WirelessGatewayTaskDefinitionType::UPDATE: + return "UPDATE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WirelessGatewayTaskDefinitionTypeMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp new file mode 100644 index 00000000000..06aa6beb22f --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessGatewayTaskStatus.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace IoTWireless + { + namespace Model + { + namespace WirelessGatewayTaskStatusMapper + { + + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int IN_PROGRESS_HASH = HashingUtils::HashString("IN_PROGRESS"); + static const int FIRST_RETRY_HASH = HashingUtils::HashString("FIRST_RETRY"); + static const int SECOND_RETRY_HASH = HashingUtils::HashString("SECOND_RETRY"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + WirelessGatewayTaskStatus GetWirelessGatewayTaskStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PENDING_HASH) + { + return WirelessGatewayTaskStatus::PENDING; + } + else if (hashCode == IN_PROGRESS_HASH) + { + return WirelessGatewayTaskStatus::IN_PROGRESS; + } + else if (hashCode == FIRST_RETRY_HASH) + { + return WirelessGatewayTaskStatus::FIRST_RETRY; + } + else if (hashCode == SECOND_RETRY_HASH) + { + return WirelessGatewayTaskStatus::SECOND_RETRY; + } + else if (hashCode == COMPLETED_HASH) + { + return WirelessGatewayTaskStatus::COMPLETED; + } + else if (hashCode == FAILED_HASH) + { + return WirelessGatewayTaskStatus::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WirelessGatewayTaskStatus::NOT_SET; + } + + Aws::String GetNameForWirelessGatewayTaskStatus(WirelessGatewayTaskStatus enumValue) + { + switch(enumValue) + { + case WirelessGatewayTaskStatus::PENDING: + return "PENDING"; + case WirelessGatewayTaskStatus::IN_PROGRESS: + return "IN_PROGRESS"; + case WirelessGatewayTaskStatus::FIRST_RETRY: + return "FIRST_RETRY"; + case WirelessGatewayTaskStatus::SECOND_RETRY: + return "SECOND_RETRY"; + case WirelessGatewayTaskStatus::COMPLETED: + return "COMPLETED"; + case WirelessGatewayTaskStatus::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WirelessGatewayTaskStatusMapper + } // namespace Model + } // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-iotwireless/source/model/WirelessMetadata.cpp b/aws-cpp-sdk-iotwireless/source/model/WirelessMetadata.cpp new file mode 100644 index 00000000000..20b5f2b5eb8 --- /dev/null +++ b/aws-cpp-sdk-iotwireless/source/model/WirelessMetadata.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace IoTWireless +{ +namespace Model +{ + +WirelessMetadata::WirelessMetadata() : + m_loRaWANHasBeenSet(false), + m_sidewalkHasBeenSet(false) +{ +} + +WirelessMetadata::WirelessMetadata(JsonView jsonValue) : + m_loRaWANHasBeenSet(false), + m_sidewalkHasBeenSet(false) +{ + *this = jsonValue; +} + +WirelessMetadata& WirelessMetadata::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("LoRaWAN")) + { + m_loRaWAN = jsonValue.GetObject("LoRaWAN"); + + m_loRaWANHasBeenSet = true; + } + + if(jsonValue.ValueExists("Sidewalk")) + { + m_sidewalk = jsonValue.GetObject("Sidewalk"); + + m_sidewalkHasBeenSet = true; + } + + return *this; +} + +JsonValue WirelessMetadata::Jsonize() const +{ + JsonValue payload; + + if(m_loRaWANHasBeenSet) + { + payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); + + } + + if(m_sidewalkHasBeenSet) + { + payload.WithObject("Sidewalk", m_sidewalk.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace IoTWireless +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h b/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h index be39318be7d..922378014b0 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/LambdaClient.h @@ -574,10 +574,12 @@ namespace Model * href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html">Using AWS * Lambda with Amazon MQ

  • Using AWS - * Lambda with Amazon MSK

  • The following error handling - * options are only available for stream sources (DynamoDB and Kinesis):

    The following + * error handling options are only available for stream sources (DynamoDB and + * Kinesis):

    • BisectBatchOnFunctionError - If the + * function returns an error, split the batch in two and retry.

    • * DestinationConfig - Send discarded records to an Amazon SQS queue * or Amazon SNS topic.

    • MaximumRecordAgeInSeconds - * Discard records older than the specified age. The default value is infinite @@ -605,10 +607,12 @@ namespace Model * href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html">Using AWS * Lambda with Amazon MQ

    • Using AWS - * Lambda with Amazon MSK

    The following error handling - * options are only available for stream sources (DynamoDB and Kinesis):

    The following + * error handling options are only available for stream sources (DynamoDB and + * Kinesis):

    • BisectBatchOnFunctionError - If the + * function returns an error, split the batch in two and retry.

    • * DestinationConfig - Send discarded records to an Amazon SQS queue * or Amazon SNS topic.

    • MaximumRecordAgeInSeconds - * Discard records older than the specified age. The default value is infinite @@ -638,10 +642,12 @@ namespace Model * href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html">Using AWS * Lambda with Amazon MQ

    • Using AWS - * Lambda with Amazon MSK

    The following error handling - * options are only available for stream sources (DynamoDB and Kinesis):

    The following + * error handling options are only available for stream sources (DynamoDB and + * Kinesis):

    • BisectBatchOnFunctionError - If the + * function returns an error, split the batch in two and retry.

    • * DestinationConfig - Send discarded records to an Amazon SQS queue * or Amazon SNS topic.

    • MaximumRecordAgeInSeconds - * Discard records older than the specified age. The default value is infinite diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h index 0ba91aadca1..c6b1432d21a 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingRequest.h @@ -11,7 +11,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -260,9 +262,10 @@ namespace Model *

      The maximum number of items to retrieve in a single batch.

      • * Amazon Kinesis - Default 100. Max 10,000.

      • Amazon * DynamoDB Streams - Default 100. Max 1,000.

      • Amazon - * Simple Queue Service - Default 10. Max 10.

      • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

      • - *
      + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

    • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

    • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

    */ inline int GetBatchSize() const{ return m_batchSize; } @@ -270,9 +273,10 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } @@ -280,9 +284,10 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } @@ -290,34 +295,35 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline CreateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline CreateEventSourceMappingRequest& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -540,47 +546,72 @@ namespace Model /** - *

    (MSK) The name of the Kafka topic.

    + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSecondsHasBeenSet = true; m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline CreateEventSourceMappingRequest& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    The name of the Kafka topic.

    */ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; } /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(const Aws::Vector& value) { m_topicsHasBeenSet = true; m_topics = value; } /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(Aws::Vector&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); } /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingRequest& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingRequest& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingRequest& AddTopics(const Aws::String& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; } /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingRequest& AddTopics(Aws::String&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; } /** - *

    (MSK) The name of the Kafka topic.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingRequest& AddTopics(const char* value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; } @@ -632,101 +663,133 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingRequest& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingRequest& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingRequest& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingRequest& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + + /** + *

    The Self-Managed Apache Kafka cluster to send records.

    + */ + inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; } + + /** + *

    The Self-Managed Apache Kafka cluster to send records.

    + */ + inline bool SelfManagedEventSourceHasBeenSet() const { return m_selfManagedEventSourceHasBeenSet; } + + /** + *

    The Self-Managed Apache Kafka cluster to send records.

    + */ + inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = value; } + + /** + *

    The Self-Managed Apache Kafka cluster to send records.

    + */ + inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = std::move(value); } + + /** + *

    The Self-Managed Apache Kafka cluster to send records.

    + */ + inline CreateEventSourceMappingRequest& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;} + + /** + *

    The Self-Managed Apache Kafka cluster to send records.

    + */ + inline CreateEventSourceMappingRequest& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingRequest& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingRequest& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingRequest& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingRequest& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_eventSourceArn; @@ -765,6 +828,9 @@ namespace Model int m_maximumRetryAttempts; bool m_maximumRetryAttemptsHasBeenSet; + int m_tumblingWindowInSeconds; + bool m_tumblingWindowInSecondsHasBeenSet; + Aws::Vector m_topics; bool m_topicsHasBeenSet; @@ -773,6 +839,12 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; bool m_sourceAccessConfigurationsHasBeenSet; + + SelfManagedEventSource m_selfManagedEventSource; + bool m_selfManagedEventSourceHasBeenSet; + + Aws::Vector m_functionResponseTypes; + bool m_functionResponseTypesHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h index 85994b460c3..6b5aac20001 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/CreateEventSourceMappingResult.h @@ -10,7 +10,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -163,20 +165,20 @@ namespace Model /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline CreateEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -471,42 +473,42 @@ namespace Model /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(const Aws::Vector& value) { m_topics = value; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(Aws::Vector&& value) { m_topics = std::move(value); } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingResult& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingResult& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline CreateEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; } @@ -553,90 +555,74 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline CreateEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline CreateEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;} + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline CreateEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;} + + /** *

    (Streams) Discard records older than the specified age. The default value is * infinite (-1). When set to infinite (-1), failed records are retried until the @@ -699,6 +685,68 @@ namespace Model */ inline CreateEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline CreateEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline CreateEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_uUID; @@ -733,11 +781,17 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; + SelfManagedEventSource m_selfManagedEventSource; + int m_maximumRecordAgeInSeconds; bool m_bisectBatchOnFunctionError; int m_maximumRetryAttempts; + + int m_tumblingWindowInSeconds; + + Aws::Vector m_functionResponseTypes; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h index 8b0e49124fc..b146f2e9f33 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/DeleteEventSourceMappingResult.h @@ -10,7 +10,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -163,20 +165,20 @@ namespace Model /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline DeleteEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -471,42 +473,42 @@ namespace Model /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(const Aws::Vector& value) { m_topics = value; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(Aws::Vector&& value) { m_topics = std::move(value); } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline DeleteEventSourceMappingResult& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline DeleteEventSourceMappingResult& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline DeleteEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline DeleteEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline DeleteEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; } @@ -553,90 +555,74 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline DeleteEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline DeleteEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline DeleteEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline DeleteEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline DeleteEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;} + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline DeleteEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;} + + /** *

    (Streams) Discard records older than the specified age. The default value is * infinite (-1). When set to infinite (-1), failed records are retried until the @@ -699,6 +685,68 @@ namespace Model */ inline DeleteEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline DeleteEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline DeleteEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline DeleteEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline DeleteEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline DeleteEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_uUID; @@ -733,11 +781,17 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; + SelfManagedEventSource m_selfManagedEventSource; + int m_maximumRecordAgeInSeconds; bool m_bisectBatchOnFunctionError; int m_maximumRetryAttempts; + + int m_tumblingWindowInSeconds; + + Aws::Vector m_functionResponseTypes; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/EndPointType.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/EndPointType.h new file mode 100644 index 00000000000..b7d42b728a4 --- /dev/null +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/EndPointType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Lambda +{ +namespace Model +{ + enum class EndPointType + { + NOT_SET, + KAFKA_BOOTSTRAP_SERVERS + }; + +namespace EndPointTypeMapper +{ +AWS_LAMBDA_API EndPointType GetEndPointTypeForName(const Aws::String& name); + +AWS_LAMBDA_API Aws::String GetNameForEndPointType(EndPointType value); +} // namespace EndPointTypeMapper +} // namespace Model +} // namespace Lambda +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h index 40bde862e2d..478c59dfb38 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/EventSourceMappingConfiguration.h @@ -10,7 +10,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -186,26 +188,26 @@ namespace Model /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline EventSourceMappingConfiguration& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -547,47 +549,47 @@ namespace Model /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(const Aws::Vector& value) { m_topicsHasBeenSet = true; m_topics = value; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(Aws::Vector&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline EventSourceMappingConfiguration& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline EventSourceMappingConfiguration& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline EventSourceMappingConfiguration& AddTopics(const Aws::String& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline EventSourceMappingConfiguration& AddTopics(Aws::String&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline EventSourceMappingConfiguration& AddTopics(const char* value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; } @@ -639,102 +641,85 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline EventSourceMappingConfiguration& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline EventSourceMappingConfiguration& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline EventSourceMappingConfiguration& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline EventSourceMappingConfiguration& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline bool SelfManagedEventSourceHasBeenSet() const { return m_selfManagedEventSourceHasBeenSet; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = value; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSourceHasBeenSet = true; m_selfManagedEventSource = std::move(value); } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline EventSourceMappingConfiguration& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;} + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline EventSourceMappingConfiguration& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;} + + /** *

    (Streams) Discard records older than the specified age. The default value is * infinite (-1). When set to infinite (-1), failed records are retried until the @@ -817,6 +802,80 @@ namespace Model */ inline EventSourceMappingConfiguration& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSecondsHasBeenSet = true; m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline EventSourceMappingConfiguration& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline EventSourceMappingConfiguration& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline EventSourceMappingConfiguration& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline EventSourceMappingConfiguration& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline EventSourceMappingConfiguration& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_uUID; @@ -867,6 +926,9 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; bool m_sourceAccessConfigurationsHasBeenSet; + SelfManagedEventSource m_selfManagedEventSource; + bool m_selfManagedEventSourceHasBeenSet; + int m_maximumRecordAgeInSeconds; bool m_maximumRecordAgeInSecondsHasBeenSet; @@ -875,6 +937,12 @@ namespace Model int m_maximumRetryAttempts; bool m_maximumRetryAttemptsHasBeenSet; + + int m_tumblingWindowInSeconds; + bool m_tumblingWindowInSecondsHasBeenSet; + + Aws::Vector m_functionResponseTypes; + bool m_functionResponseTypesHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/FunctionResponseType.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/FunctionResponseType.h new file mode 100644 index 00000000000..d147f717d76 --- /dev/null +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/FunctionResponseType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Lambda +{ +namespace Model +{ + enum class FunctionResponseType + { + NOT_SET, + ReportBatchItemFailures + }; + +namespace FunctionResponseTypeMapper +{ +AWS_LAMBDA_API FunctionResponseType GetFunctionResponseTypeForName(const Aws::String& name); + +AWS_LAMBDA_API Aws::String GetNameForFunctionResponseType(FunctionResponseType value); +} // namespace FunctionResponseTypeMapper +} // namespace Model +} // namespace Lambda +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h index 68198ce53c0..ea0512a355d 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/GetEventSourceMappingResult.h @@ -10,7 +10,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -163,20 +165,20 @@ namespace Model /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline GetEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -471,42 +473,42 @@ namespace Model /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(const Aws::Vector& value) { m_topics = value; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(Aws::Vector&& value) { m_topics = std::move(value); } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline GetEventSourceMappingResult& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline GetEventSourceMappingResult& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline GetEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline GetEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline GetEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; } @@ -553,90 +555,74 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline GetEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline GetEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline GetEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline GetEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline GetEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;} + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline GetEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;} + + /** *

    (Streams) Discard records older than the specified age. The default value is * infinite (-1). When set to infinite (-1), failed records are retried until the @@ -699,6 +685,68 @@ namespace Model */ inline GetEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline GetEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline GetEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline GetEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline GetEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline GetEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_uUID; @@ -733,11 +781,17 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; + SelfManagedEventSource m_selfManagedEventSource; + int m_maximumRecordAgeInSeconds; bool m_bisectBatchOnFunctionError; int m_maximumRetryAttempts; + + int m_tumblingWindowInSeconds; + + Aws::Vector m_functionResponseTypes; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/ImageConfig.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/ImageConfig.h index 0a0ffe15aea..9f10452d1ec 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/ImageConfig.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/ImageConfig.h @@ -25,9 +25,10 @@ namespace Model { /** - *

    Configuration values that override the container image Dockerfile. See Override - * Container settings.

    See Also:

    Configuration values that override the container image Dockerfile settings. + * See Container + * settings.

    See Also:

    AWS * API Reference

    */ diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/SelfManagedEventSource.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/SelfManagedEventSource.h new file mode 100644 index 00000000000..aeca466f735 --- /dev/null +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/SelfManagedEventSource.h @@ -0,0 +1,122 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Lambda +{ +namespace Model +{ + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    See + * Also:

    AWS + * API Reference

    + */ + class AWS_LAMBDA_API SelfManagedEventSource + { + public: + SelfManagedEventSource(); + SelfManagedEventSource(Aws::Utils::Json::JsonView jsonValue); + SelfManagedEventSource& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline const Aws::Map>& GetEndpoints() const{ return m_endpoints; } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline void SetEndpoints(const Aws::Map>& value) { m_endpointsHasBeenSet = true; m_endpoints = value; } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline void SetEndpoints(Aws::Map>&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::move(value); } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline SelfManagedEventSource& WithEndpoints(const Aws::Map>& value) { SetEndpoints(value); return *this;} + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline SelfManagedEventSource& WithEndpoints(Aws::Map>&& value) { SetEndpoints(std::move(value)); return *this;} + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline SelfManagedEventSource& AddEndpoints(const EndPointType& key, const Aws::Vector& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(key, value); return *this; } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline SelfManagedEventSource& AddEndpoints(EndPointType&& key, const Aws::Vector& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(std::move(key), value); return *this; } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline SelfManagedEventSource& AddEndpoints(const EndPointType& key, Aws::Vector&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(key, std::move(value)); return *this; } + + /** + *

    The list of bootstrap servers for your Kafka brokers in the following format: + * "KAFKA_BOOTSTRAP_SERVERS": + * ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].

    + */ + inline SelfManagedEventSource& AddEndpoints(EndPointType&& key, Aws::Vector&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace(std::move(key), std::move(value)); return *this; } + + private: + + Aws::Map> m_endpoints; + bool m_endpointsHasBeenSet; + }; + +} // namespace Model +} // namespace Lambda +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessConfiguration.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessConfiguration.h index 91a569d1af2..4741c9aca55 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessConfiguration.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessConfiguration.h @@ -25,9 +25,8 @@ namespace Model { /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    See Also:

    You can specify the authentication protocol, or the VPC components to secure + * access to your event source.

    See Also:

    AWS * API Reference

    */ @@ -41,129 +40,149 @@ namespace Model /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The type of authentication protocol or the VPC components for your event + * source. For example: "Type":"SASL_SCRAM_512_AUTH".

    • + *

      BASIC_AUTH - (MQ) The Secrets Manager secret that stores your + * broker credentials.

    • VPC_SUBNET - The subnets + * associated with your VPC. Lambda connects to these subnets to fetch data from + * your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC + * security group used to manage access to your Kafka brokers.

    • + * SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL + * SCRAM-256 authentication of your Kafka brokers.

    • + * SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL + * SCRAM-512 authentication of your Kafka brokers.

    */ inline const SourceAccessType& GetType() const{ return m_type; } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The type of authentication protocol or the VPC components for your event + * source. For example: "Type":"SASL_SCRAM_512_AUTH".

    • + *

      BASIC_AUTH - (MQ) The Secrets Manager secret that stores your + * broker credentials.

    • VPC_SUBNET - The subnets + * associated with your VPC. Lambda connects to these subnets to fetch data from + * your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC + * security group used to manage access to your Kafka brokers.

    • + * SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL + * SCRAM-256 authentication of your Kafka brokers.

    • + * SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL + * SCRAM-512 authentication of your Kafka brokers.

    */ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The type of authentication protocol or the VPC components for your event + * source. For example: "Type":"SASL_SCRAM_512_AUTH".

    • + *

      BASIC_AUTH - (MQ) The Secrets Manager secret that stores your + * broker credentials.

    • VPC_SUBNET - The subnets + * associated with your VPC. Lambda connects to these subnets to fetch data from + * your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC + * security group used to manage access to your Kafka brokers.

    • + * SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL + * SCRAM-256 authentication of your Kafka brokers.

    • + * SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL + * SCRAM-512 authentication of your Kafka brokers.

    */ inline void SetType(const SourceAccessType& value) { m_typeHasBeenSet = true; m_type = value; } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The type of authentication protocol or the VPC components for your event + * source. For example: "Type":"SASL_SCRAM_512_AUTH".

    • + *

      BASIC_AUTH - (MQ) The Secrets Manager secret that stores your + * broker credentials.

    • VPC_SUBNET - The subnets + * associated with your VPC. Lambda connects to these subnets to fetch data from + * your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC + * security group used to manage access to your Kafka brokers.

    • + * SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL + * SCRAM-256 authentication of your Kafka brokers.

    • + * SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL + * SCRAM-512 authentication of your Kafka brokers.

    */ inline void SetType(SourceAccessType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The type of authentication protocol or the VPC components for your event + * source. For example: "Type":"SASL_SCRAM_512_AUTH".

    • + *

      BASIC_AUTH - (MQ) The Secrets Manager secret that stores your + * broker credentials.

    • VPC_SUBNET - The subnets + * associated with your VPC. Lambda connects to these subnets to fetch data from + * your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC + * security group used to manage access to your Kafka brokers.

    • + * SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL + * SCRAM-256 authentication of your Kafka brokers.

    • + * SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL + * SCRAM-512 authentication of your Kafka brokers.

    */ inline SourceAccessConfiguration& WithType(const SourceAccessType& value) { SetType(value); return *this;} /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The type of authentication protocol or the VPC components for your event + * source. For example: "Type":"SASL_SCRAM_512_AUTH".

    • + *

      BASIC_AUTH - (MQ) The Secrets Manager secret that stores your + * broker credentials.

    • VPC_SUBNET - The subnets + * associated with your VPC. Lambda connects to these subnets to fetch data from + * your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC + * security group used to manage access to your Kafka brokers.

    • + * SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL + * SCRAM-256 authentication of your Kafka brokers.

    • + * SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL + * SCRAM-512 authentication of your Kafka brokers.

    */ inline SourceAccessConfiguration& WithType(SourceAccessType&& value) { SetType(std::move(value)); return *this;} /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline const Aws::String& GetURI() const{ return m_uRI; } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); } /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline SourceAccessConfiguration& WithURI(const Aws::String& value) { SetURI(value); return *this;} /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline SourceAccessConfiguration& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;} /** - *

    To reference the secret, use the following format: [ { "Type": - * "BASIC_AUTH", "URI": "secretARN" } ]

    The value of - * Type is always BASIC_AUTH. To encrypt the secret, you - * can use customer or service managed keys. When using a customer managed KMS key, - * the Lambda execution role requires kms:Decrypt permissions.

    + *

    The value for your chosen configuration in Type. For example: + * "URI": + * "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".

    */ inline SourceAccessConfiguration& WithURI(const char* value) { SetURI(value); return *this;} diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessType.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessType.h index 78c2603ab64..976c1990fcf 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessType.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/SourceAccessType.h @@ -16,7 +16,11 @@ namespace Model enum class SourceAccessType { NOT_SET, - BASIC_AUTH + BASIC_AUTH, + VPC_SUBNET, + VPC_SECURITY_GROUP, + SASL_SCRAM_512_AUTH, + SASL_SCRAM_256_AUTH }; namespace SourceAccessTypeMapper diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingRequest.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingRequest.h index 723067dc9ae..5ad35b1edca 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingRequest.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include namespace Aws @@ -218,9 +219,10 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline int GetBatchSize() const{ return m_batchSize; } @@ -228,9 +230,10 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } @@ -238,9 +241,10 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } @@ -248,34 +252,35 @@ namespace Model *

    The maximum number of items to retrieve in a single batch.

    • * Amazon Kinesis - Default 100. Max 10,000.

    • Amazon * DynamoDB Streams - Default 100. Max 1,000.

    • Amazon - * Simple Queue Service - Default 10. Max 10.

    • Amazon - * Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • - *
    + * Simple Queue Service - Default 10. For standard queues the max is 10,000. + * For FIFO queues the max is 10.

  • Amazon Managed Streaming + * for Apache Kafka - Default 100. Max 10,000.

  • + * Self-Managed Apache Kafka - Default 100. Max 10,000.

  • */ inline UpdateEventSourceMappingRequest& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds.

    */ inline UpdateEventSourceMappingRequest& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -418,101 +423,127 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline bool SourceAccessConfigurationsHasBeenSet() const { return m_sourceAccessConfigurationsHasBeenSet; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingRequest& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingRequest& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingRequest& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingRequest& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurationsHasBeenSet = true; m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline bool TumblingWindowInSecondsHasBeenSet() const { return m_tumblingWindowInSecondsHasBeenSet; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSecondsHasBeenSet = true; m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline UpdateEventSourceMappingRequest& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline bool FunctionResponseTypesHasBeenSet() const { return m_functionResponseTypesHasBeenSet; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingRequest& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingRequest& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingRequest& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingRequest& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypesHasBeenSet = true; m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_uUID; @@ -547,6 +578,12 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; bool m_sourceAccessConfigurationsHasBeenSet; + + int m_tumblingWindowInSeconds; + bool m_tumblingWindowInSecondsHasBeenSet; + + Aws::Vector m_functionResponseTypes; + bool m_functionResponseTypesHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h b/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h index a91b6673fb9..7650eebf776 100644 --- a/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h +++ b/aws-cpp-sdk-lambda/include/aws/lambda/model/UpdateEventSourceMappingResult.h @@ -10,7 +10,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -163,20 +165,20 @@ namespace Model /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSeconds = value; } /** - *

    (Streams) The maximum amount of time to gather records before invoking the - * function, in seconds. The default value is zero.

    + *

    (Streams and SQS standard queues) The maximum amount of time to gather + * records before invoking the function, in seconds. The default value is zero.

    */ inline UpdateEventSourceMappingResult& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} @@ -471,42 +473,42 @@ namespace Model /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline const Aws::Vector& GetTopics() const{ return m_topics; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(const Aws::Vector& value) { m_topics = value; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline void SetTopics(Aws::Vector&& value) { m_topics = std::move(value); } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline UpdateEventSourceMappingResult& WithTopics(const Aws::Vector& value) { SetTopics(value); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline UpdateEventSourceMappingResult& WithTopics(Aws::Vector&& value) { SetTopics(std::move(value)); return *this;} /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline UpdateEventSourceMappingResult& AddTopics(const Aws::String& value) { m_topics.push_back(value); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline UpdateEventSourceMappingResult& AddTopics(Aws::String&& value) { m_topics.push_back(std::move(value)); return *this; } /** - *

    (MSK) The name of the Kafka topic to consume.

    + *

    The name of the Kafka topic.

    */ inline UpdateEventSourceMappingResult& AddTopics(const char* value) { m_topics.push_back(value); return *this; } @@ -553,90 +555,74 @@ namespace Model /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline const Aws::Vector& GetSourceAccessConfigurations() const{ return m_sourceAccessConfigurations; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(const Aws::Vector& value) { m_sourceAccessConfigurations = value; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline void SetSourceAccessConfigurations(Aws::Vector&& value) { m_sourceAccessConfigurations = std::move(value); } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingResult& WithSourceAccessConfigurations(const Aws::Vector& value) { SetSourceAccessConfigurations(value); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingResult& WithSourceAccessConfigurations(Aws::Vector&& value) { SetSourceAccessConfigurations(std::move(value)); return *this;} /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingResult& AddSourceAccessConfigurations(const SourceAccessConfiguration& value) { m_sourceAccessConfigurations.push_back(value); return *this; } /** - *

    (MQ) The Secrets Manager secret that stores your broker credentials. To - * store your secret, use the following format: { "username": "your - * username", "password": "your password" }

    To reference the secret, - * use the following format: [ { "Type": "BASIC_AUTH", "URI": "secretARN" } - * ]

    The value of Type is always - * BASIC_AUTH. To encrypt the secret, you can use customer or service - * managed keys. When using a customer managed KMS key, the Lambda execution role - * requires kms:Decrypt permissions.

    + *

    An array of the authentication protocol, or the VPC components to secure your + * event source.

    */ inline UpdateEventSourceMappingResult& AddSourceAccessConfigurations(SourceAccessConfiguration&& value) { m_sourceAccessConfigurations.push_back(std::move(value)); return *this; } + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline const SelfManagedEventSource& GetSelfManagedEventSource() const{ return m_selfManagedEventSource; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(const SelfManagedEventSource& value) { m_selfManagedEventSource = value; } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline void SetSelfManagedEventSource(SelfManagedEventSource&& value) { m_selfManagedEventSource = std::move(value); } + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline UpdateEventSourceMappingResult& WithSelfManagedEventSource(const SelfManagedEventSource& value) { SetSelfManagedEventSource(value); return *this;} + + /** + *

    The Self-Managed Apache Kafka cluster for your event source.

    + */ + inline UpdateEventSourceMappingResult& WithSelfManagedEventSource(SelfManagedEventSource&& value) { SetSelfManagedEventSource(std::move(value)); return *this;} + + /** *

    (Streams) Discard records older than the specified age. The default value is * infinite (-1). When set to infinite (-1), failed records are retried until the @@ -699,6 +685,68 @@ namespace Model */ inline UpdateEventSourceMappingResult& WithMaximumRetryAttempts(int value) { SetMaximumRetryAttempts(value); return *this;} + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline int GetTumblingWindowInSeconds() const{ return m_tumblingWindowInSeconds; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline void SetTumblingWindowInSeconds(int value) { m_tumblingWindowInSeconds = value; } + + /** + *

    (Streams) The duration of a processing window in seconds. The range is + * between 1 second up to 15 minutes.

    + */ + inline UpdateEventSourceMappingResult& WithTumblingWindowInSeconds(int value) { SetTumblingWindowInSeconds(value); return *this;} + + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline const Aws::Vector& GetFunctionResponseTypes() const{ return m_functionResponseTypes; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(const Aws::Vector& value) { m_functionResponseTypes = value; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline void SetFunctionResponseTypes(Aws::Vector&& value) { m_functionResponseTypes = std::move(value); } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingResult& WithFunctionResponseTypes(const Aws::Vector& value) { SetFunctionResponseTypes(value); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingResult& WithFunctionResponseTypes(Aws::Vector&& value) { SetFunctionResponseTypes(std::move(value)); return *this;} + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingResult& AddFunctionResponseTypes(const FunctionResponseType& value) { m_functionResponseTypes.push_back(value); return *this; } + + /** + *

    (Streams) A list of current response type enums applied to the event source + * mapping.

    + */ + inline UpdateEventSourceMappingResult& AddFunctionResponseTypes(FunctionResponseType&& value) { m_functionResponseTypes.push_back(std::move(value)); return *this; } + private: Aws::String m_uUID; @@ -733,11 +781,17 @@ namespace Model Aws::Vector m_sourceAccessConfigurations; + SelfManagedEventSource m_selfManagedEventSource; + int m_maximumRecordAgeInSeconds; bool m_bisectBatchOnFunctionError; int m_maximumRetryAttempts; + + int m_tumblingWindowInSeconds; + + Aws::Vector m_functionResponseTypes; }; } // namespace Model diff --git a/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp b/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp index 71f98da8f69..d88e8a49091 100644 --- a/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp +++ b/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingRequest.cpp @@ -33,9 +33,13 @@ CreateEventSourceMappingRequest::CreateEventSourceMappingRequest() : m_bisectBatchOnFunctionErrorHasBeenSet(false), m_maximumRetryAttempts(0), m_maximumRetryAttemptsHasBeenSet(false), + m_tumblingWindowInSeconds(0), + m_tumblingWindowInSecondsHasBeenSet(false), m_topicsHasBeenSet(false), m_queuesHasBeenSet(false), - m_sourceAccessConfigurationsHasBeenSet(false) + m_sourceAccessConfigurationsHasBeenSet(false), + m_selfManagedEventSourceHasBeenSet(false), + m_functionResponseTypesHasBeenSet(false) { } @@ -113,6 +117,12 @@ Aws::String CreateEventSourceMappingRequest::SerializePayload() const } + if(m_tumblingWindowInSecondsHasBeenSet) + { + payload.WithInteger("TumblingWindowInSeconds", m_tumblingWindowInSeconds); + + } + if(m_topicsHasBeenSet) { Array topicsJsonList(m_topics.size()); @@ -146,6 +156,23 @@ Aws::String CreateEventSourceMappingRequest::SerializePayload() const } + if(m_selfManagedEventSourceHasBeenSet) + { + payload.WithObject("SelfManagedEventSource", m_selfManagedEventSource.Jsonize()); + + } + + if(m_functionResponseTypesHasBeenSet) + { + Array functionResponseTypesJsonList(m_functionResponseTypes.size()); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + functionResponseTypesJsonList[functionResponseTypesIndex].AsString(FunctionResponseTypeMapper::GetNameForFunctionResponseType(m_functionResponseTypes[functionResponseTypesIndex])); + } + payload.WithArray("FunctionResponseTypes", std::move(functionResponseTypesJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp b/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp index 7cacbd0d3c3..931b8e7c348 100644 --- a/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp +++ b/aws-cpp-sdk-lambda/source/model/CreateEventSourceMappingResult.cpp @@ -23,7 +23,8 @@ CreateEventSourceMappingResult::CreateEventSourceMappingResult() : m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { } @@ -34,7 +35,8 @@ CreateEventSourceMappingResult::CreateEventSourceMappingResult(const Aws::Amazon m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { *this = result; } @@ -147,6 +149,12 @@ CreateEventSourceMappingResult& CreateEventSourceMappingResult::operator =(const } } + if(jsonValue.ValueExists("SelfManagedEventSource")) + { + m_selfManagedEventSource = jsonValue.GetObject("SelfManagedEventSource"); + + } + if(jsonValue.ValueExists("MaximumRecordAgeInSeconds")) { m_maximumRecordAgeInSeconds = jsonValue.GetInteger("MaximumRecordAgeInSeconds"); @@ -165,6 +173,21 @@ CreateEventSourceMappingResult& CreateEventSourceMappingResult::operator =(const } + if(jsonValue.ValueExists("TumblingWindowInSeconds")) + { + m_tumblingWindowInSeconds = jsonValue.GetInteger("TumblingWindowInSeconds"); + + } + + if(jsonValue.ValueExists("FunctionResponseTypes")) + { + Array functionResponseTypesJsonList = jsonValue.GetArray("FunctionResponseTypes"); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + m_functionResponseTypes.push_back(FunctionResponseTypeMapper::GetFunctionResponseTypeForName(functionResponseTypesJsonList[functionResponseTypesIndex].AsString())); + } + } + return *this; diff --git a/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp b/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp index b578611b209..cd37b0c3072 100644 --- a/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp +++ b/aws-cpp-sdk-lambda/source/model/DeleteEventSourceMappingResult.cpp @@ -23,7 +23,8 @@ DeleteEventSourceMappingResult::DeleteEventSourceMappingResult() : m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { } @@ -34,7 +35,8 @@ DeleteEventSourceMappingResult::DeleteEventSourceMappingResult(const Aws::Amazon m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { *this = result; } @@ -147,6 +149,12 @@ DeleteEventSourceMappingResult& DeleteEventSourceMappingResult::operator =(const } } + if(jsonValue.ValueExists("SelfManagedEventSource")) + { + m_selfManagedEventSource = jsonValue.GetObject("SelfManagedEventSource"); + + } + if(jsonValue.ValueExists("MaximumRecordAgeInSeconds")) { m_maximumRecordAgeInSeconds = jsonValue.GetInteger("MaximumRecordAgeInSeconds"); @@ -165,6 +173,21 @@ DeleteEventSourceMappingResult& DeleteEventSourceMappingResult::operator =(const } + if(jsonValue.ValueExists("TumblingWindowInSeconds")) + { + m_tumblingWindowInSeconds = jsonValue.GetInteger("TumblingWindowInSeconds"); + + } + + if(jsonValue.ValueExists("FunctionResponseTypes")) + { + Array functionResponseTypesJsonList = jsonValue.GetArray("FunctionResponseTypes"); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + m_functionResponseTypes.push_back(FunctionResponseTypeMapper::GetFunctionResponseTypeForName(functionResponseTypesJsonList[functionResponseTypesIndex].AsString())); + } + } + return *this; diff --git a/aws-cpp-sdk-lambda/source/model/EndPointType.cpp b/aws-cpp-sdk-lambda/source/model/EndPointType.cpp new file mode 100644 index 00000000000..d3bd32aeaef --- /dev/null +++ b/aws-cpp-sdk-lambda/source/model/EndPointType.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Lambda + { + namespace Model + { + namespace EndPointTypeMapper + { + + static const int KAFKA_BOOTSTRAP_SERVERS_HASH = HashingUtils::HashString("KAFKA_BOOTSTRAP_SERVERS"); + + + EndPointType GetEndPointTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == KAFKA_BOOTSTRAP_SERVERS_HASH) + { + return EndPointType::KAFKA_BOOTSTRAP_SERVERS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return EndPointType::NOT_SET; + } + + Aws::String GetNameForEndPointType(EndPointType enumValue) + { + switch(enumValue) + { + case EndPointType::KAFKA_BOOTSTRAP_SERVERS: + return "KAFKA_BOOTSTRAP_SERVERS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace EndPointTypeMapper + } // namespace Model + } // namespace Lambda +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp b/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp index 8c6e0f4b28c..a503e11808e 100644 --- a/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp +++ b/aws-cpp-sdk-lambda/source/model/EventSourceMappingConfiguration.cpp @@ -39,12 +39,16 @@ EventSourceMappingConfiguration::EventSourceMappingConfiguration() : m_topicsHasBeenSet(false), m_queuesHasBeenSet(false), m_sourceAccessConfigurationsHasBeenSet(false), + m_selfManagedEventSourceHasBeenSet(false), m_maximumRecordAgeInSeconds(0), m_maximumRecordAgeInSecondsHasBeenSet(false), m_bisectBatchOnFunctionError(false), m_bisectBatchOnFunctionErrorHasBeenSet(false), m_maximumRetryAttempts(0), - m_maximumRetryAttemptsHasBeenSet(false) + m_maximumRetryAttemptsHasBeenSet(false), + m_tumblingWindowInSeconds(0), + m_tumblingWindowInSecondsHasBeenSet(false), + m_functionResponseTypesHasBeenSet(false) { } @@ -69,12 +73,16 @@ EventSourceMappingConfiguration::EventSourceMappingConfiguration(JsonView jsonVa m_topicsHasBeenSet(false), m_queuesHasBeenSet(false), m_sourceAccessConfigurationsHasBeenSet(false), + m_selfManagedEventSourceHasBeenSet(false), m_maximumRecordAgeInSeconds(0), m_maximumRecordAgeInSecondsHasBeenSet(false), m_bisectBatchOnFunctionError(false), m_bisectBatchOnFunctionErrorHasBeenSet(false), m_maximumRetryAttempts(0), - m_maximumRetryAttemptsHasBeenSet(false) + m_maximumRetryAttemptsHasBeenSet(false), + m_tumblingWindowInSeconds(0), + m_tumblingWindowInSecondsHasBeenSet(false), + m_functionResponseTypesHasBeenSet(false) { *this = jsonValue; } @@ -202,6 +210,13 @@ EventSourceMappingConfiguration& EventSourceMappingConfiguration::operator =(Jso m_sourceAccessConfigurationsHasBeenSet = true; } + if(jsonValue.ValueExists("SelfManagedEventSource")) + { + m_selfManagedEventSource = jsonValue.GetObject("SelfManagedEventSource"); + + m_selfManagedEventSourceHasBeenSet = true; + } + if(jsonValue.ValueExists("MaximumRecordAgeInSeconds")) { m_maximumRecordAgeInSeconds = jsonValue.GetInteger("MaximumRecordAgeInSeconds"); @@ -223,6 +238,23 @@ EventSourceMappingConfiguration& EventSourceMappingConfiguration::operator =(Jso m_maximumRetryAttemptsHasBeenSet = true; } + if(jsonValue.ValueExists("TumblingWindowInSeconds")) + { + m_tumblingWindowInSeconds = jsonValue.GetInteger("TumblingWindowInSeconds"); + + m_tumblingWindowInSecondsHasBeenSet = true; + } + + if(jsonValue.ValueExists("FunctionResponseTypes")) + { + Array functionResponseTypesJsonList = jsonValue.GetArray("FunctionResponseTypes"); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + m_functionResponseTypes.push_back(FunctionResponseTypeMapper::GetFunctionResponseTypeForName(functionResponseTypesJsonList[functionResponseTypesIndex].AsString())); + } + m_functionResponseTypesHasBeenSet = true; + } + return *this; } @@ -338,6 +370,12 @@ JsonValue EventSourceMappingConfiguration::Jsonize() const } + if(m_selfManagedEventSourceHasBeenSet) + { + payload.WithObject("SelfManagedEventSource", m_selfManagedEventSource.Jsonize()); + + } + if(m_maximumRecordAgeInSecondsHasBeenSet) { payload.WithInteger("MaximumRecordAgeInSeconds", m_maximumRecordAgeInSeconds); @@ -356,6 +394,23 @@ JsonValue EventSourceMappingConfiguration::Jsonize() const } + if(m_tumblingWindowInSecondsHasBeenSet) + { + payload.WithInteger("TumblingWindowInSeconds", m_tumblingWindowInSeconds); + + } + + if(m_functionResponseTypesHasBeenSet) + { + Array functionResponseTypesJsonList(m_functionResponseTypes.size()); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + functionResponseTypesJsonList[functionResponseTypesIndex].AsString(FunctionResponseTypeMapper::GetNameForFunctionResponseType(m_functionResponseTypes[functionResponseTypesIndex])); + } + payload.WithArray("FunctionResponseTypes", std::move(functionResponseTypesJsonList)); + + } + return payload; } diff --git a/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp b/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp new file mode 100644 index 00000000000..f19e443c4fa --- /dev/null +++ b/aws-cpp-sdk-lambda/source/model/FunctionResponseType.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Lambda + { + namespace Model + { + namespace FunctionResponseTypeMapper + { + + static const int ReportBatchItemFailures_HASH = HashingUtils::HashString("ReportBatchItemFailures"); + + + FunctionResponseType GetFunctionResponseTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ReportBatchItemFailures_HASH) + { + return FunctionResponseType::ReportBatchItemFailures; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FunctionResponseType::NOT_SET; + } + + Aws::String GetNameForFunctionResponseType(FunctionResponseType enumValue) + { + switch(enumValue) + { + case FunctionResponseType::ReportBatchItemFailures: + return "ReportBatchItemFailures"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FunctionResponseTypeMapper + } // namespace Model + } // namespace Lambda +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp b/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp index 904b5803ac6..d7a6e1a88dc 100644 --- a/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp +++ b/aws-cpp-sdk-lambda/source/model/GetEventSourceMappingResult.cpp @@ -23,7 +23,8 @@ GetEventSourceMappingResult::GetEventSourceMappingResult() : m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { } @@ -34,7 +35,8 @@ GetEventSourceMappingResult::GetEventSourceMappingResult(const Aws::AmazonWebSer m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { *this = result; } @@ -147,6 +149,12 @@ GetEventSourceMappingResult& GetEventSourceMappingResult::operator =(const Aws:: } } + if(jsonValue.ValueExists("SelfManagedEventSource")) + { + m_selfManagedEventSource = jsonValue.GetObject("SelfManagedEventSource"); + + } + if(jsonValue.ValueExists("MaximumRecordAgeInSeconds")) { m_maximumRecordAgeInSeconds = jsonValue.GetInteger("MaximumRecordAgeInSeconds"); @@ -165,6 +173,21 @@ GetEventSourceMappingResult& GetEventSourceMappingResult::operator =(const Aws:: } + if(jsonValue.ValueExists("TumblingWindowInSeconds")) + { + m_tumblingWindowInSeconds = jsonValue.GetInteger("TumblingWindowInSeconds"); + + } + + if(jsonValue.ValueExists("FunctionResponseTypes")) + { + Array functionResponseTypesJsonList = jsonValue.GetArray("FunctionResponseTypes"); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + m_functionResponseTypes.push_back(FunctionResponseTypeMapper::GetFunctionResponseTypeForName(functionResponseTypesJsonList[functionResponseTypesIndex].AsString())); + } + } + return *this; diff --git a/aws-cpp-sdk-lambda/source/model/SelfManagedEventSource.cpp b/aws-cpp-sdk-lambda/source/model/SelfManagedEventSource.cpp new file mode 100644 index 00000000000..a97f098ff9d --- /dev/null +++ b/aws-cpp-sdk-lambda/source/model/SelfManagedEventSource.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Lambda +{ +namespace Model +{ + +SelfManagedEventSource::SelfManagedEventSource() : + m_endpointsHasBeenSet(false) +{ +} + +SelfManagedEventSource::SelfManagedEventSource(JsonView jsonValue) : + m_endpointsHasBeenSet(false) +{ + *this = jsonValue; +} + +SelfManagedEventSource& SelfManagedEventSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Endpoints")) + { + Aws::Map endpointsJsonMap = jsonValue.GetObject("Endpoints").GetAllObjects(); + for(auto& endpointsItem : endpointsJsonMap) + { + Array endpointListsJsonList = endpointsItem.second.AsArray(); + Aws::Vector endpointListsList; + endpointListsList.reserve((size_t)endpointListsJsonList.GetLength()); + for(unsigned endpointListsIndex = 0; endpointListsIndex < endpointListsJsonList.GetLength(); ++endpointListsIndex) + { + endpointListsList.push_back(endpointListsJsonList[endpointListsIndex].AsString()); + } + m_endpoints[EndPointTypeMapper::GetEndPointTypeForName(endpointsItem.first)] = std::move(endpointListsList); + } + m_endpointsHasBeenSet = true; + } + + return *this; +} + +JsonValue SelfManagedEventSource::Jsonize() const +{ + JsonValue payload; + + if(m_endpointsHasBeenSet) + { + JsonValue endpointsJsonMap; + for(auto& endpointsItem : m_endpoints) + { + Array endpointListsJsonList(endpointsItem.second.size()); + for(unsigned endpointListsIndex = 0; endpointListsIndex < endpointListsJsonList.GetLength(); ++endpointListsIndex) + { + endpointListsJsonList[endpointListsIndex].AsString(endpointsItem.second[endpointListsIndex]); + } + endpointsJsonMap.WithArray(EndPointTypeMapper::GetNameForEndPointType(endpointsItem.first), std::move(endpointListsJsonList)); + } + payload.WithObject("Endpoints", std::move(endpointsJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace Lambda +} // namespace Aws diff --git a/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp b/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp index 4617f01fdad..f516140da20 100644 --- a/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp +++ b/aws-cpp-sdk-lambda/source/model/SourceAccessType.cpp @@ -21,6 +21,10 @@ namespace Aws { static const int BASIC_AUTH_HASH = HashingUtils::HashString("BASIC_AUTH"); + static const int VPC_SUBNET_HASH = HashingUtils::HashString("VPC_SUBNET"); + static const int VPC_SECURITY_GROUP_HASH = HashingUtils::HashString("VPC_SECURITY_GROUP"); + static const int SASL_SCRAM_512_AUTH_HASH = HashingUtils::HashString("SASL_SCRAM_512_AUTH"); + static const int SASL_SCRAM_256_AUTH_HASH = HashingUtils::HashString("SASL_SCRAM_256_AUTH"); SourceAccessType GetSourceAccessTypeForName(const Aws::String& name) @@ -30,6 +34,22 @@ namespace Aws { return SourceAccessType::BASIC_AUTH; } + else if (hashCode == VPC_SUBNET_HASH) + { + return SourceAccessType::VPC_SUBNET; + } + else if (hashCode == VPC_SECURITY_GROUP_HASH) + { + return SourceAccessType::VPC_SECURITY_GROUP; + } + else if (hashCode == SASL_SCRAM_512_AUTH_HASH) + { + return SourceAccessType::SASL_SCRAM_512_AUTH; + } + else if (hashCode == SASL_SCRAM_256_AUTH_HASH) + { + return SourceAccessType::SASL_SCRAM_256_AUTH; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -46,6 +66,14 @@ namespace Aws { case SourceAccessType::BASIC_AUTH: return "BASIC_AUTH"; + case SourceAccessType::VPC_SUBNET: + return "VPC_SUBNET"; + case SourceAccessType::VPC_SECURITY_GROUP: + return "VPC_SECURITY_GROUP"; + case SourceAccessType::SASL_SCRAM_512_AUTH: + return "SASL_SCRAM_512_AUTH"; + case SourceAccessType::SASL_SCRAM_256_AUTH: + return "SASL_SCRAM_256_AUTH"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp b/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp index 808f58b6744..f5e62da46a8 100644 --- a/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp +++ b/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp @@ -30,7 +30,10 @@ UpdateEventSourceMappingRequest::UpdateEventSourceMappingRequest() : m_maximumRetryAttemptsHasBeenSet(false), m_parallelizationFactor(0), m_parallelizationFactorHasBeenSet(false), - m_sourceAccessConfigurationsHasBeenSet(false) + m_sourceAccessConfigurationsHasBeenSet(false), + m_tumblingWindowInSeconds(0), + m_tumblingWindowInSecondsHasBeenSet(false), + m_functionResponseTypesHasBeenSet(false) { } @@ -103,6 +106,23 @@ Aws::String UpdateEventSourceMappingRequest::SerializePayload() const } + if(m_tumblingWindowInSecondsHasBeenSet) + { + payload.WithInteger("TumblingWindowInSeconds", m_tumblingWindowInSeconds); + + } + + if(m_functionResponseTypesHasBeenSet) + { + Array functionResponseTypesJsonList(m_functionResponseTypes.size()); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + functionResponseTypesJsonList[functionResponseTypesIndex].AsString(FunctionResponseTypeMapper::GetNameForFunctionResponseType(m_functionResponseTypes[functionResponseTypesIndex])); + } + payload.WithArray("FunctionResponseTypes", std::move(functionResponseTypesJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp b/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp index ca6119cabe0..b1c4fa4ff2d 100644 --- a/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp +++ b/aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingResult.cpp @@ -23,7 +23,8 @@ UpdateEventSourceMappingResult::UpdateEventSourceMappingResult() : m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { } @@ -34,7 +35,8 @@ UpdateEventSourceMappingResult::UpdateEventSourceMappingResult(const Aws::Amazon m_parallelizationFactor(0), m_maximumRecordAgeInSeconds(0), m_bisectBatchOnFunctionError(false), - m_maximumRetryAttempts(0) + m_maximumRetryAttempts(0), + m_tumblingWindowInSeconds(0) { *this = result; } @@ -147,6 +149,12 @@ UpdateEventSourceMappingResult& UpdateEventSourceMappingResult::operator =(const } } + if(jsonValue.ValueExists("SelfManagedEventSource")) + { + m_selfManagedEventSource = jsonValue.GetObject("SelfManagedEventSource"); + + } + if(jsonValue.ValueExists("MaximumRecordAgeInSeconds")) { m_maximumRecordAgeInSeconds = jsonValue.GetInteger("MaximumRecordAgeInSeconds"); @@ -165,6 +173,21 @@ UpdateEventSourceMappingResult& UpdateEventSourceMappingResult::operator =(const } + if(jsonValue.ValueExists("TumblingWindowInSeconds")) + { + m_tumblingWindowInSeconds = jsonValue.GetInteger("TumblingWindowInSeconds"); + + } + + if(jsonValue.ValueExists("FunctionResponseTypes")) + { + Array functionResponseTypesJsonList = jsonValue.GetArray("FunctionResponseTypes"); + for(unsigned functionResponseTypesIndex = 0; functionResponseTypesIndex < functionResponseTypesJsonList.GetLength(); ++functionResponseTypesIndex) + { + m_functionResponseTypes.push_back(FunctionResponseTypeMapper::GetFunctionResponseTypeForName(functionResponseTypesJsonList[functionResponseTypesIndex].AsString())); + } + } + return *this; diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h b/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h index 8c837ecd2b8..b770ad021f6 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/SSMClient.h @@ -100,9 +100,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -122,6 +124,7 @@ #include #include #include +#include #include #include #include @@ -129,6 +132,7 @@ #include #include #include +#include #include #include #include @@ -266,9 +270,11 @@ namespace Model class ListCommandsRequest; class ListComplianceItemsRequest; class ListComplianceSummariesRequest; + class ListDocumentMetadataHistoryRequest; class ListDocumentVersionsRequest; class ListDocumentsRequest; class ListInventoryEntriesRequest; + class ListOpsItemEventsRequest; class ListOpsMetadataRequest; class ListResourceComplianceSummariesRequest; class ListResourceDataSyncRequest; @@ -288,6 +294,7 @@ namespace Model class SendCommandRequest; class StartAssociationsOnceRequest; class StartAutomationExecutionRequest; + class StartChangeRequestExecutionRequest; class StartSessionRequest; class StopAutomationExecutionRequest; class TerminateSessionRequest; @@ -295,6 +302,7 @@ namespace Model class UpdateAssociationStatusRequest; class UpdateDocumentRequest; class UpdateDocumentDefaultVersionRequest; + class UpdateDocumentMetadataRequest; class UpdateMaintenanceWindowRequest; class UpdateMaintenanceWindowTargetRequest; class UpdateMaintenanceWindowTaskRequest; @@ -394,9 +402,11 @@ namespace Model typedef Aws::Utils::Outcome ListCommandsOutcome; typedef Aws::Utils::Outcome ListComplianceItemsOutcome; typedef Aws::Utils::Outcome ListComplianceSummariesOutcome; + typedef Aws::Utils::Outcome ListDocumentMetadataHistoryOutcome; typedef Aws::Utils::Outcome ListDocumentVersionsOutcome; typedef Aws::Utils::Outcome ListDocumentsOutcome; typedef Aws::Utils::Outcome ListInventoryEntriesOutcome; + typedef Aws::Utils::Outcome ListOpsItemEventsOutcome; typedef Aws::Utils::Outcome ListOpsMetadataOutcome; typedef Aws::Utils::Outcome ListResourceComplianceSummariesOutcome; typedef Aws::Utils::Outcome ListResourceDataSyncOutcome; @@ -416,6 +426,7 @@ namespace Model typedef Aws::Utils::Outcome SendCommandOutcome; typedef Aws::Utils::Outcome StartAssociationsOnceOutcome; typedef Aws::Utils::Outcome StartAutomationExecutionOutcome; + typedef Aws::Utils::Outcome StartChangeRequestExecutionOutcome; typedef Aws::Utils::Outcome StartSessionOutcome; typedef Aws::Utils::Outcome StopAutomationExecutionOutcome; typedef Aws::Utils::Outcome TerminateSessionOutcome; @@ -423,6 +434,7 @@ namespace Model typedef Aws::Utils::Outcome UpdateAssociationStatusOutcome; typedef Aws::Utils::Outcome UpdateDocumentOutcome; typedef Aws::Utils::Outcome UpdateDocumentDefaultVersionOutcome; + typedef Aws::Utils::Outcome UpdateDocumentMetadataOutcome; typedef Aws::Utils::Outcome UpdateMaintenanceWindowOutcome; typedef Aws::Utils::Outcome UpdateMaintenanceWindowTargetOutcome; typedef Aws::Utils::Outcome UpdateMaintenanceWindowTaskOutcome; @@ -522,9 +534,11 @@ namespace Model typedef std::future ListCommandsOutcomeCallable; typedef std::future ListComplianceItemsOutcomeCallable; typedef std::future ListComplianceSummariesOutcomeCallable; + typedef std::future ListDocumentMetadataHistoryOutcomeCallable; typedef std::future ListDocumentVersionsOutcomeCallable; typedef std::future ListDocumentsOutcomeCallable; typedef std::future ListInventoryEntriesOutcomeCallable; + typedef std::future ListOpsItemEventsOutcomeCallable; typedef std::future ListOpsMetadataOutcomeCallable; typedef std::future ListResourceComplianceSummariesOutcomeCallable; typedef std::future ListResourceDataSyncOutcomeCallable; @@ -544,6 +558,7 @@ namespace Model typedef std::future SendCommandOutcomeCallable; typedef std::future StartAssociationsOnceOutcomeCallable; typedef std::future StartAutomationExecutionOutcomeCallable; + typedef std::future StartChangeRequestExecutionOutcomeCallable; typedef std::future StartSessionOutcomeCallable; typedef std::future StopAutomationExecutionOutcomeCallable; typedef std::future TerminateSessionOutcomeCallable; @@ -551,6 +566,7 @@ namespace Model typedef std::future UpdateAssociationStatusOutcomeCallable; typedef std::future UpdateDocumentOutcomeCallable; typedef std::future UpdateDocumentDefaultVersionOutcomeCallable; + typedef std::future UpdateDocumentMetadataOutcomeCallable; typedef std::future UpdateMaintenanceWindowOutcomeCallable; typedef std::future UpdateMaintenanceWindowTargetOutcomeCallable; typedef std::future UpdateMaintenanceWindowTaskOutcomeCallable; @@ -653,9 +669,11 @@ namespace Model typedef std::function&) > ListCommandsResponseReceivedHandler; typedef std::function&) > ListComplianceItemsResponseReceivedHandler; typedef std::function&) > ListComplianceSummariesResponseReceivedHandler; + typedef std::function&) > ListDocumentMetadataHistoryResponseReceivedHandler; typedef std::function&) > ListDocumentVersionsResponseReceivedHandler; typedef std::function&) > ListDocumentsResponseReceivedHandler; typedef std::function&) > ListInventoryEntriesResponseReceivedHandler; + typedef std::function&) > ListOpsItemEventsResponseReceivedHandler; typedef std::function&) > ListOpsMetadataResponseReceivedHandler; typedef std::function&) > ListResourceComplianceSummariesResponseReceivedHandler; typedef std::function&) > ListResourceDataSyncResponseReceivedHandler; @@ -675,6 +693,7 @@ namespace Model typedef std::function&) > SendCommandResponseReceivedHandler; typedef std::function&) > StartAssociationsOnceResponseReceivedHandler; typedef std::function&) > StartAutomationExecutionResponseReceivedHandler; + typedef std::function&) > StartChangeRequestExecutionResponseReceivedHandler; typedef std::function&) > StartSessionResponseReceivedHandler; typedef std::function&) > StopAutomationExecutionResponseReceivedHandler; typedef std::function&) > TerminateSessionResponseReceivedHandler; @@ -682,6 +701,7 @@ namespace Model typedef std::function&) > UpdateAssociationStatusResponseReceivedHandler; typedef std::function&) > UpdateDocumentResponseReceivedHandler; typedef std::function&) > UpdateDocumentDefaultVersionResponseReceivedHandler; + typedef std::function&) > UpdateDocumentMetadataResponseReceivedHandler; typedef std::function&) > UpdateMaintenanceWindowResponseReceivedHandler; typedef std::function&) > UpdateMaintenanceWindowTargetResponseReceivedHandler; typedef std::function&) > UpdateMaintenanceWindowTaskResponseReceivedHandler; @@ -1180,8 +1200,8 @@ namespace Model virtual void CreateOpsItemAsync(const Model::CreateOpsItemRequest& request, const CreateOpsItemResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** - *

    If you create a new application in AppManager, Systems Manager calls this API - * action to specify information about the new application, including the + *

    If you create a new application in Application Manager, Systems Manager calls + * this API action to specify information about the new application, including the * application type.

    See Also:

    AWS * API Reference

    @@ -1189,8 +1209,8 @@ namespace Model virtual Model::CreateOpsMetadataOutcome CreateOpsMetadata(const Model::CreateOpsMetadataRequest& request) const; /** - *

    If you create a new application in AppManager, Systems Manager calls this API - * action to specify information about the new application, including the + *

    If you create a new application in Application Manager, Systems Manager calls + * this API action to specify information about the new application, including the * application type.

    See Also:

    AWS * API Reference

    @@ -1200,8 +1220,8 @@ namespace Model virtual Model::CreateOpsMetadataOutcomeCallable CreateOpsMetadataCallable(const Model::CreateOpsMetadataRequest& request) const; /** - *

    If you create a new application in AppManager, Systems Manager calls this API - * action to specify information about the new application, including the + *

    If you create a new application in Application Manager, Systems Manager calls + * this API action to specify information about the new application, including the * application type.

    See Also:

    AWS * API Reference

    @@ -3284,16 +3304,16 @@ namespace Model virtual void GetOpsItemAsync(const Model::GetOpsItemRequest& request, const GetOpsItemResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** - *

    View operational metadata related to an application in - * AppManager.

    See Also:

    View operational metadata related to an application in Application + * Manager.

    See Also:

    AWS * API Reference

    */ virtual Model::GetOpsMetadataOutcome GetOpsMetadata(const Model::GetOpsMetadataRequest& request) const; /** - *

    View operational metadata related to an application in - * AppManager.

    See Also:

    View operational metadata related to an application in Application + * Manager.

    See Also:

    AWS * API Reference

    * @@ -3302,8 +3322,8 @@ namespace Model virtual Model::GetOpsMetadataOutcomeCallable GetOpsMetadataCallable(const Model::GetOpsMetadataRequest& request) const; /** - *

    View operational metadata related to an application in - * AppManager.

    See Also:

    View operational metadata related to an application in Application + * Manager.

    See Also:

    AWS * API Reference

    * @@ -3866,6 +3886,34 @@ namespace Model */ virtual void ListComplianceSummariesAsync(const Model::ListComplianceSummariesRequest& request, const ListComplianceSummariesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

    Information about approval reviews for a version of an SSM + * document.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListDocumentMetadataHistoryOutcome ListDocumentMetadataHistory(const Model::ListDocumentMetadataHistoryRequest& request) const; + + /** + *

    Information about approval reviews for a version of an SSM + * document.

    See Also:

    AWS + * API Reference

    + * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListDocumentMetadataHistoryOutcomeCallable ListDocumentMetadataHistoryCallable(const Model::ListDocumentMetadataHistoryRequest& request) const; + + /** + *

    Information about approval reviews for a version of an SSM + * document.

    See Also:

    AWS + * API Reference

    + * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListDocumentMetadataHistoryAsync(const Model::ListDocumentMetadataHistoryRequest& request, const ListDocumentMetadataHistoryResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

    List all versions for a document.

    See Also:

    AWS @@ -3951,7 +3999,38 @@ namespace Model virtual void ListInventoryEntriesAsync(const Model::ListInventoryEntriesRequest& request, const ListInventoryEntriesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** - *

    Systems Manager calls this API action when displaying all AppManager + *

    Returns a list of all OpsItem events in the current AWS account and Region. + * You can limit the results to events associated with specific OpsItems by + * specifying a filter.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListOpsItemEventsOutcome ListOpsItemEvents(const Model::ListOpsItemEventsRequest& request) const; + + /** + *

    Returns a list of all OpsItem events in the current AWS account and Region. + * You can limit the results to events associated with specific OpsItems by + * specifying a filter.

    See Also:

    AWS + * API Reference

    + * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::ListOpsItemEventsOutcomeCallable ListOpsItemEventsCallable(const Model::ListOpsItemEventsRequest& request) const; + + /** + *

    Returns a list of all OpsItem events in the current AWS account and Region. + * You can limit the results to events associated with specific OpsItems by + * specifying a filter.

    See Also:

    AWS + * API Reference

    + * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void ListOpsItemEventsAsync(const Model::ListOpsItemEventsRequest& request, const ListOpsItemEventsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + + /** + *

    Systems Manager calls this API action when displaying all Application Manager * OpsMetadata objects or blobs.

    See Also:

    AWS * API Reference

    @@ -3959,7 +4038,7 @@ namespace Model virtual Model::ListOpsMetadataOutcome ListOpsMetadata(const Model::ListOpsMetadataRequest& request) const; /** - *

    Systems Manager calls this API action when displaying all AppManager + *

    Systems Manager calls this API action when displaying all Application Manager * OpsMetadata objects or blobs.

    See Also:

    AWS * API Reference

    @@ -3969,7 +4048,7 @@ namespace Model virtual Model::ListOpsMetadataOutcomeCallable ListOpsMetadataCallable(const Model::ListOpsMetadataRequest& request) const; /** - *

    Systems Manager calls this API action when displaying all AppManager + *

    Systems Manager calls this API action when displaying all Application Manager * OpsMetadata objects or blobs.

    See Also:

    AWS * API Reference

    @@ -4626,6 +4705,37 @@ namespace Model */ virtual void StartAutomationExecutionAsync(const Model::StartAutomationExecutionRequest& request, const StartAutomationExecutionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

    Creates a change request for Change Manager. The runbooks (Automation + * documents) specified in the change request run only after all required approvals + * for the change request have been received.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::StartChangeRequestExecutionOutcome StartChangeRequestExecution(const Model::StartChangeRequestExecutionRequest& request) const; + + /** + *

    Creates a change request for Change Manager. The runbooks (Automation + * documents) specified in the change request run only after all required approvals + * for the change request have been received.

    See Also:

    AWS + * API Reference

    + * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::StartChangeRequestExecutionOutcomeCallable StartChangeRequestExecutionCallable(const Model::StartChangeRequestExecutionRequest& request) const; + + /** + *

    Creates a change request for Change Manager. The runbooks (Automation + * documents) specified in the change request run only after all required approvals + * for the change request have been received.

    See Also:

    AWS + * API Reference

    + * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void StartChangeRequestExecutionAsync(const Model::StartChangeRequestExecutionRequest& request, const StartChangeRequestExecutionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

    Initiates a connection to a target (for example, an instance) for a Session * Manager session. Returns a URL and token that can be used to open a WebSocket @@ -4867,6 +4977,34 @@ namespace Model */ virtual void UpdateDocumentDefaultVersionAsync(const Model::UpdateDocumentDefaultVersionRequest& request, const UpdateDocumentDefaultVersionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** + *

    Updates information related to approval reviews for a specific version of a + * document.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateDocumentMetadataOutcome UpdateDocumentMetadata(const Model::UpdateDocumentMetadataRequest& request) const; + + /** + *

    Updates information related to approval reviews for a specific version of a + * document.

    See Also:

    AWS + * API Reference

    + * + * returns a future to the operation so that it can be executed in parallel to other requests. + */ + virtual Model::UpdateDocumentMetadataOutcomeCallable UpdateDocumentMetadataCallable(const Model::UpdateDocumentMetadataRequest& request) const; + + /** + *

    Updates information related to approval reviews for a specific version of a + * document.

    See Also:

    AWS + * API Reference

    + * + * Queues the request into a thread executor and triggers associated callback when operation has finished. + */ + virtual void UpdateDocumentMetadataAsync(const Model::UpdateDocumentMetadataRequest& request, const UpdateDocumentMetadataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; + /** *

    Updates an existing maintenance window. Only specified parameters are * modified.

    The value you specify for Duration @@ -5132,7 +5270,7 @@ namespace Model /** *

    Systems Manager calls this API action when you edit OpsMetadata in - * AppManager.

    See Also:

    See Also:

    AWS * API Reference

    */ @@ -5140,7 +5278,7 @@ namespace Model /** *

    Systems Manager calls this API action when you edit OpsMetadata in - * AppManager.

    See Also:

    See Also:

    AWS * API Reference

    * @@ -5150,7 +5288,7 @@ namespace Model /** *

    Systems Manager calls this API action when you edit OpsMetadata in - * AppManager.

    See Also:

    See Also:

    AWS * API Reference

    * @@ -5398,9 +5536,11 @@ namespace Model void ListCommandsAsyncHelper(const Model::ListCommandsRequest& request, const ListCommandsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListComplianceItemsAsyncHelper(const Model::ListComplianceItemsRequest& request, const ListComplianceItemsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListComplianceSummariesAsyncHelper(const Model::ListComplianceSummariesRequest& request, const ListComplianceSummariesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListDocumentMetadataHistoryAsyncHelper(const Model::ListDocumentMetadataHistoryRequest& request, const ListDocumentMetadataHistoryResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListDocumentVersionsAsyncHelper(const Model::ListDocumentVersionsRequest& request, const ListDocumentVersionsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListDocumentsAsyncHelper(const Model::ListDocumentsRequest& request, const ListDocumentsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListInventoryEntriesAsyncHelper(const Model::ListInventoryEntriesRequest& request, const ListInventoryEntriesResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void ListOpsItemEventsAsyncHelper(const Model::ListOpsItemEventsRequest& request, const ListOpsItemEventsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListOpsMetadataAsyncHelper(const Model::ListOpsMetadataRequest& request, const ListOpsMetadataResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListResourceComplianceSummariesAsyncHelper(const Model::ListResourceComplianceSummariesRequest& request, const ListResourceComplianceSummariesResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListResourceDataSyncAsyncHelper(const Model::ListResourceDataSyncRequest& request, const ListResourceDataSyncResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -5420,6 +5560,7 @@ namespace Model void SendCommandAsyncHelper(const Model::SendCommandRequest& request, const SendCommandResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StartAssociationsOnceAsyncHelper(const Model::StartAssociationsOnceRequest& request, const StartAssociationsOnceResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StartAutomationExecutionAsyncHelper(const Model::StartAutomationExecutionRequest& request, const StartAutomationExecutionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void StartChangeRequestExecutionAsyncHelper(const Model::StartChangeRequestExecutionRequest& request, const StartChangeRequestExecutionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StartSessionAsyncHelper(const Model::StartSessionRequest& request, const StartSessionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void StopAutomationExecutionAsyncHelper(const Model::StopAutomationExecutionRequest& request, const StopAutomationExecutionResponseReceivedHandler& handler, const std::shared_ptr& context) const; void TerminateSessionAsyncHelper(const Model::TerminateSessionRequest& request, const TerminateSessionResponseReceivedHandler& handler, const std::shared_ptr& context) const; @@ -5427,6 +5568,7 @@ namespace Model void UpdateAssociationStatusAsyncHelper(const Model::UpdateAssociationStatusRequest& request, const UpdateAssociationStatusResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateDocumentAsyncHelper(const Model::UpdateDocumentRequest& request, const UpdateDocumentResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateDocumentDefaultVersionAsyncHelper(const Model::UpdateDocumentDefaultVersionRequest& request, const UpdateDocumentDefaultVersionResponseReceivedHandler& handler, const std::shared_ptr& context) const; + void UpdateDocumentMetadataAsyncHelper(const Model::UpdateDocumentMetadataRequest& request, const UpdateDocumentMetadataResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateMaintenanceWindowAsyncHelper(const Model::UpdateMaintenanceWindowRequest& request, const UpdateMaintenanceWindowResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateMaintenanceWindowTargetAsyncHelper(const Model::UpdateMaintenanceWindowTargetRequest& request, const UpdateMaintenanceWindowTargetResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateMaintenanceWindowTaskAsyncHelper(const Model::UpdateMaintenanceWindowTaskRequest& request, const UpdateMaintenanceWindowTaskResponseReceivedHandler& handler, const std::shared_ptr& context) const; diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/SSMErrors.h b/aws-cpp-sdk-ssm/include/aws/ssm/SSMErrors.h index 4ffdabcaf55..c00779be8cb 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/SSMErrors.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/SSMErrors.h @@ -54,6 +54,7 @@ enum class SSMErrors ASSOCIATION_EXECUTION_DOES_NOT_EXIST, ASSOCIATION_LIMIT_EXCEEDED, ASSOCIATION_VERSION_LIMIT_EXCEEDED, + AUTOMATION_DEFINITION_NOT_APPROVED, AUTOMATION_DEFINITION_NOT_FOUND, AUTOMATION_DEFINITION_VERSION_NOT_FOUND, AUTOMATION_EXECUTION_LIMIT_EXCEEDED, diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h index 58ede87a070..c807debf58f 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationDescription.h @@ -15,6 +15,7 @@ #include #include #include +#include #include namespace Aws @@ -1093,6 +1094,55 @@ namespace Model */ inline AssociationDescription& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;} + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline const Aws::Vector& GetTargetLocations() const{ return m_targetLocations; } + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; } + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline void SetTargetLocations(const Aws::Vector& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; } + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline void SetTargetLocations(Aws::Vector&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); } + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline AssociationDescription& WithTargetLocations(const Aws::Vector& value) { SetTargetLocations(value); return *this;} + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline AssociationDescription& WithTargetLocations(Aws::Vector&& value) { SetTargetLocations(std::move(value)); return *this;} + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline AssociationDescription& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; } + + /** + *

    The combination of AWS Regions and AWS accounts where you want to run the + * association.

    + */ + inline AssociationDescription& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; } + private: Aws::String m_name; @@ -1160,6 +1210,9 @@ namespace Model bool m_applyOnlyAtCronInterval; bool m_applyOnlyAtCronIntervalHasBeenSet; + + Aws::Vector m_targetLocations; + bool m_targetLocationsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h index d21f5869e5a..d5b7f66535c 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AssociationVersionInfo.h @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace Aws @@ -876,6 +877,55 @@ namespace Model */ inline AssociationVersionInfo& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;} + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline const Aws::Vector& GetTargetLocations() const{ return m_targetLocations; } + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; } + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline void SetTargetLocations(const Aws::Vector& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; } + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline void SetTargetLocations(Aws::Vector&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); } + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline AssociationVersionInfo& WithTargetLocations(const Aws::Vector& value) { SetTargetLocations(value); return *this;} + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline AssociationVersionInfo& WithTargetLocations(Aws::Vector&& value) { SetTargetLocations(std::move(value)); return *this;} + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline AssociationVersionInfo& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; } + + /** + *

    The combination of AWS Regions and AWS accounts where you wanted to run the + * association when this association version was created.

    + */ + inline AssociationVersionInfo& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; } + private: Aws::String m_associationId; @@ -922,6 +972,9 @@ namespace Model bool m_applyOnlyAtCronInterval; bool m_applyOnlyAtCronIntervalHasBeenSet; + + Aws::Vector m_targetLocations; + bool m_targetLocationsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecution.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecution.h index 22fe6f59e50..8459e2228ba 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecution.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecution.h @@ -13,9 +13,11 @@ #include #include #include +#include #include #include #include +#include #include namespace Aws @@ -1106,6 +1108,270 @@ namespace Model */ inline AutomationExecution& WithProgressCounters(ProgressCounters&& value) { SetProgressCounters(std::move(value)); return *this;} + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline const AutomationSubtype& GetAutomationSubtype() const{ return m_automationSubtype; } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline bool AutomationSubtypeHasBeenSet() const { return m_automationSubtypeHasBeenSet; } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline void SetAutomationSubtype(const AutomationSubtype& value) { m_automationSubtypeHasBeenSet = true; m_automationSubtype = value; } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline void SetAutomationSubtype(AutomationSubtype&& value) { m_automationSubtypeHasBeenSet = true; m_automationSubtype = std::move(value); } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline AutomationExecution& WithAutomationSubtype(const AutomationSubtype& value) { SetAutomationSubtype(value); return *this;} + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline AutomationExecution& WithAutomationSubtype(AutomationSubtype&& value) { SetAutomationSubtype(std::move(value)); return *this;} + + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline const Aws::Utils::DateTime& GetScheduledTime() const{ return m_scheduledTime; } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline void SetScheduledTime(const Aws::Utils::DateTime& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = value; } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline void SetScheduledTime(Aws::Utils::DateTime&& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = std::move(value); } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline AutomationExecution& WithScheduledTime(const Aws::Utils::DateTime& value) { SetScheduledTime(value); return *this;} + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline AutomationExecution& WithScheduledTime(Aws::Utils::DateTime&& value) { SetScheduledTime(std::move(value)); return *this;} + + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline const Aws::Vector& GetRunbooks() const{ return m_runbooks; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline void SetRunbooks(const Aws::Vector& value) { m_runbooksHasBeenSet = true; m_runbooks = value; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline void SetRunbooks(Aws::Vector&& value) { m_runbooksHasBeenSet = true; m_runbooks = std::move(value); } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline AutomationExecution& WithRunbooks(const Aws::Vector& value) { SetRunbooks(value); return *this;} + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline AutomationExecution& WithRunbooks(Aws::Vector&& value) { SetRunbooks(std::move(value)); return *this;} + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline AutomationExecution& AddRunbooks(const Runbook& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(value); return *this; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * as part of a runbook workflow.

    The Automation runbooks specified + * for the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline AutomationExecution& AddRunbooks(Runbook&& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(std::move(value)); return *this; } + + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline AutomationExecution& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;} + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline AutomationExecution& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;} + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline AutomationExecution& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;} + + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline const Aws::String& GetAssociationId() const{ return m_associationId; } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline AutomationExecution& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline AutomationExecution& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline AutomationExecution& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} + + + /** + *

    The name of the Change Manager change request.

    + */ + inline const Aws::String& GetChangeRequestName() const{ return m_changeRequestName; } + + /** + *

    The name of the Change Manager change request.

    + */ + inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; } + + /** + *

    The name of the Change Manager change request.

    + */ + inline void SetChangeRequestName(const Aws::String& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = value; } + + /** + *

    The name of the Change Manager change request.

    + */ + inline void SetChangeRequestName(Aws::String&& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = std::move(value); } + + /** + *

    The name of the Change Manager change request.

    + */ + inline void SetChangeRequestName(const char* value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName.assign(value); } + + /** + *

    The name of the Change Manager change request.

    + */ + inline AutomationExecution& WithChangeRequestName(const Aws::String& value) { SetChangeRequestName(value); return *this;} + + /** + *

    The name of the Change Manager change request.

    + */ + inline AutomationExecution& WithChangeRequestName(Aws::String&& value) { SetChangeRequestName(std::move(value)); return *this;} + + /** + *

    The name of the Change Manager change request.

    + */ + inline AutomationExecution& WithChangeRequestName(const char* value) { SetChangeRequestName(value); return *this;} + private: Aws::String m_automationExecutionId; @@ -1182,6 +1448,24 @@ namespace Model ProgressCounters m_progressCounters; bool m_progressCountersHasBeenSet; + + AutomationSubtype m_automationSubtype; + bool m_automationSubtypeHasBeenSet; + + Aws::Utils::DateTime m_scheduledTime; + bool m_scheduledTimeHasBeenSet; + + Aws::Vector m_runbooks; + bool m_runbooksHasBeenSet; + + Aws::String m_opsItemId; + bool m_opsItemIdHasBeenSet; + + Aws::String m_associationId; + bool m_associationIdHasBeenSet; + + Aws::String m_changeRequestName; + bool m_changeRequestNameHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionFilterKey.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionFilterKey.h index 694a4459d66..69f824d30db 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionFilterKey.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionFilterKey.h @@ -25,7 +25,9 @@ namespace Model StartTimeAfter, AutomationType, TagKey, - TargetResourceGroup + TargetResourceGroup, + AutomationSubtype, + OpsItemId }; namespace AutomationExecutionFilterKeyMapper diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionMetadata.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionMetadata.h index fea72e22ee9..406c3b772ae 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionMetadata.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionMetadata.h @@ -13,7 +13,9 @@ #include #include #include +#include #include +#include #include namespace Aws @@ -958,6 +960,270 @@ namespace Model */ inline AutomationExecutionMetadata& WithAutomationType(AutomationType&& value) { SetAutomationType(std::move(value)); return *this;} + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline const AutomationSubtype& GetAutomationSubtype() const{ return m_automationSubtype; } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline bool AutomationSubtypeHasBeenSet() const { return m_automationSubtypeHasBeenSet; } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline void SetAutomationSubtype(const AutomationSubtype& value) { m_automationSubtypeHasBeenSet = true; m_automationSubtype = value; } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline void SetAutomationSubtype(AutomationSubtype&& value) { m_automationSubtypeHasBeenSet = true; m_automationSubtype = std::move(value); } + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline AutomationExecutionMetadata& WithAutomationSubtype(const AutomationSubtype& value) { SetAutomationSubtype(value); return *this;} + + /** + *

    The subtype of the Automation operation. Currently, the only supported value + * is ChangeRequest.

    + */ + inline AutomationExecutionMetadata& WithAutomationSubtype(AutomationSubtype&& value) { SetAutomationSubtype(std::move(value)); return *this;} + + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline const Aws::Utils::DateTime& GetScheduledTime() const{ return m_scheduledTime; } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline void SetScheduledTime(const Aws::Utils::DateTime& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = value; } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline void SetScheduledTime(Aws::Utils::DateTime&& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = std::move(value); } + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline AutomationExecutionMetadata& WithScheduledTime(const Aws::Utils::DateTime& value) { SetScheduledTime(value); return *this;} + + /** + *

    The date and time the Automation operation is scheduled to start.

    + */ + inline AutomationExecutionMetadata& WithScheduledTime(Aws::Utils::DateTime&& value) { SetScheduledTime(std::move(value)); return *this;} + + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline const Aws::Vector& GetRunbooks() const{ return m_runbooks; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline void SetRunbooks(const Aws::Vector& value) { m_runbooksHasBeenSet = true; m_runbooks = value; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline void SetRunbooks(Aws::Vector&& value) { m_runbooksHasBeenSet = true; m_runbooks = std::move(value); } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline AutomationExecutionMetadata& WithRunbooks(const Aws::Vector& value) { SetRunbooks(value); return *this;} + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline AutomationExecutionMetadata& WithRunbooks(Aws::Vector&& value) { SetRunbooks(std::move(value)); return *this;} + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline AutomationExecutionMetadata& AddRunbooks(const Runbook& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(value); return *this; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during a runbook workflow in Change Manager.

    The Automation + * runbooks specified for the runbook workflow can't run until all required + * approvals for the change request have been received.

    + */ + inline AutomationExecutionMetadata& AddRunbooks(Runbook&& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(std::move(value)); return *this; } + + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); } + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline AutomationExecutionMetadata& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;} + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline AutomationExecutionMetadata& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;} + + /** + *

    The ID of an OpsItem that is created to represent a Change Manager change + * request.

    + */ + inline AutomationExecutionMetadata& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;} + + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline const Aws::String& GetAssociationId() const{ return m_associationId; } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline AutomationExecutionMetadata& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline AutomationExecutionMetadata& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} + + /** + *

    The ID of a State Manager association used in the Automation operation.

    + */ + inline AutomationExecutionMetadata& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} + + + /** + *

    The name of the Change Manager change request.

    + */ + inline const Aws::String& GetChangeRequestName() const{ return m_changeRequestName; } + + /** + *

    The name of the Change Manager change request.

    + */ + inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; } + + /** + *

    The name of the Change Manager change request.

    + */ + inline void SetChangeRequestName(const Aws::String& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = value; } + + /** + *

    The name of the Change Manager change request.

    + */ + inline void SetChangeRequestName(Aws::String&& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = std::move(value); } + + /** + *

    The name of the Change Manager change request.

    + */ + inline void SetChangeRequestName(const char* value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName.assign(value); } + + /** + *

    The name of the Change Manager change request.

    + */ + inline AutomationExecutionMetadata& WithChangeRequestName(const Aws::String& value) { SetChangeRequestName(value); return *this;} + + /** + *

    The name of the Change Manager change request.

    + */ + inline AutomationExecutionMetadata& WithChangeRequestName(Aws::String&& value) { SetChangeRequestName(std::move(value)); return *this;} + + /** + *

    The name of the Change Manager change request.

    + */ + inline AutomationExecutionMetadata& WithChangeRequestName(const char* value) { SetChangeRequestName(value); return *this;} + private: Aws::String m_automationExecutionId; @@ -1025,6 +1291,24 @@ namespace Model AutomationType m_automationType; bool m_automationTypeHasBeenSet; + + AutomationSubtype m_automationSubtype; + bool m_automationSubtypeHasBeenSet; + + Aws::Utils::DateTime m_scheduledTime; + bool m_scheduledTimeHasBeenSet; + + Aws::Vector m_runbooks; + bool m_runbooksHasBeenSet; + + Aws::String m_opsItemId; + bool m_opsItemIdHasBeenSet; + + Aws::String m_associationId; + bool m_associationIdHasBeenSet; + + Aws::String m_changeRequestName; + bool m_changeRequestNameHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionStatus.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionStatus.h index 554711e38a4..f3d10149d58 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionStatus.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationExecutionStatus.h @@ -23,7 +23,17 @@ namespace Model TimedOut, Cancelling, Cancelled, - Failed + Failed, + PendingApproval, + Approved, + Rejected, + Scheduled, + RunbookInProgress, + PendingChangeCalendarOverride, + ChangeCalendarOverrideApproved, + ChangeCalendarOverrideRejected, + CompletedWithSuccess, + CompletedWithFailure }; namespace AutomationExecutionStatusMapper diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationSubtype.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationSubtype.h new file mode 100644 index 00000000000..6151b1b88c8 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/AutomationSubtype.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class AutomationSubtype + { + NOT_SET, + ChangeRequest + }; + +namespace AutomationSubtypeMapper +{ +AWS_SSM_API AutomationSubtype GetAutomationSubtypeForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForAutomationSubtype(AutomationSubtype value); +} // namespace AutomationSubtypeMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h index 0dafb0689ab..d6cb4d7b680 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationBatchRequestEntry.h @@ -12,6 +12,7 @@ #include #include #include +#include #include namespace Aws @@ -911,6 +912,55 @@ namespace Model */ inline CreateAssociationBatchRequestEntry& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;} + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline const Aws::Vector& GetTargetLocations() const{ return m_targetLocations; } + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; } + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline void SetTargetLocations(const Aws::Vector& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; } + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline void SetTargetLocations(Aws::Vector&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); } + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline CreateAssociationBatchRequestEntry& WithTargetLocations(const Aws::Vector& value) { SetTargetLocations(value); return *this;} + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline CreateAssociationBatchRequestEntry& WithTargetLocations(Aws::Vector&& value) { SetTargetLocations(std::move(value)); return *this;} + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline CreateAssociationBatchRequestEntry& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; } + + /** + *

    Use this action to create an association in multiple Regions and multiple + * accounts.

    + */ + inline CreateAssociationBatchRequestEntry& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; } + private: Aws::String m_name; @@ -954,6 +1004,9 @@ namespace Model bool m_applyOnlyAtCronInterval; bool m_applyOnlyAtCronIntervalHasBeenSet; + + Aws::Vector m_targetLocations; + bool m_targetLocationsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h index b1e1b2ae9db..8851032bab9 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateAssociationRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace Aws @@ -1019,6 +1020,63 @@ namespace Model */ inline CreateAssociationRequest& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;} + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline const Aws::Vector& GetTargetLocations() const{ return m_targetLocations; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline void SetTargetLocations(const Aws::Vector& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline void SetTargetLocations(Aws::Vector&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline CreateAssociationRequest& WithTargetLocations(const Aws::Vector& value) { SetTargetLocations(value); return *this;} + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline CreateAssociationRequest& WithTargetLocations(Aws::Vector&& value) { SetTargetLocations(std::move(value)); return *this;} + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline CreateAssociationRequest& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to create an association in multiple + * Regions and multiple accounts.

    + */ + inline CreateAssociationRequest& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; } + private: Aws::String m_name; @@ -1062,6 +1120,9 @@ namespace Model bool m_applyOnlyAtCronInterval; bool m_applyOnlyAtCronIntervalHasBeenSet; + + Aws::Vector m_targetLocations; + bool m_targetLocationsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateMaintenanceWindowRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateMaintenanceWindowRequest.h index acf3c80e636..0ef7e1ccca7 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateMaintenanceWindowRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateMaintenanceWindowRequest.h @@ -293,8 +293,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; } @@ -302,8 +302,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; } @@ -311,8 +311,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = value; } @@ -320,8 +320,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::move(value); } @@ -329,8 +329,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const char* value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone.assign(value); } @@ -338,8 +338,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline CreateMaintenanceWindowRequest& WithScheduleTimezone(const Aws::String& value) { SetScheduleTimezone(value); return *this;} @@ -347,8 +347,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline CreateMaintenanceWindowRequest& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;} @@ -356,8 +356,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline CreateMaintenanceWindowRequest& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;} @@ -367,9 +367,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run on the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline int GetScheduleOffset() const{ return m_scheduleOffset; } @@ -377,9 +377,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run on the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; } @@ -387,9 +387,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run on the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; } @@ -397,9 +397,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run on the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline CreateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsItemRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsItemRequest.h index c08a7b96e50..627a558b7d5 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsItemRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsItemRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -81,6 +82,55 @@ namespace Model inline CreateOpsItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline const Aws::String& GetOpsItemType() const{ return m_opsItemType; } + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; } + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(const Aws::String& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = value; } + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(Aws::String&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::move(value); } + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(const char* value) { m_opsItemTypeHasBeenSet = true; m_opsItemType.assign(value); } + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline CreateOpsItemRequest& WithOpsItemType(const Aws::String& value) { SetOpsItemType(value); return *this;} + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline CreateOpsItemRequest& WithOpsItemType(Aws::String&& value) { SetOpsItemType(std::move(value)); return *this;} + + /** + *

    The type of OpsItem to create. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline CreateOpsItemRequest& WithOpsItemType(const char* value) { SetOpsItemType(value); return *this;} + + /** *

    Operational data is custom data that provides useful reference details about * the OpsItem. For example, you can specify log files, error strings, license @@ -761,11 +811,174 @@ namespace Model */ inline CreateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithActualStartTime(const Aws::Utils::DateTime& value) { SetActualStartTime(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;} + + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithActualEndTime(const Aws::Utils::DateTime& value) { SetActualEndTime(value); return *this;} + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithPlannedStartTime(const Aws::Utils::DateTime& value) { SetPlannedStartTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithPlannedEndTime(const Aws::Utils::DateTime& value) { SetPlannedEndTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline CreateOpsItemRequest& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;} + private: Aws::String m_description; bool m_descriptionHasBeenSet; + Aws::String m_opsItemType; + bool m_opsItemTypeHasBeenSet; + Aws::Map m_operationalData; bool m_operationalDataHasBeenSet; @@ -792,6 +1005,18 @@ namespace Model Aws::String m_severity; bool m_severityHasBeenSet; + + Aws::Utils::DateTime m_actualStartTime; + bool m_actualStartTimeHasBeenSet; + + Aws::Utils::DateTime m_actualEndTime; + bool m_actualEndTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedStartTime; + bool m_plannedStartTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedEndTime; + bool m_plannedEndTimeHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsMetadataRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsMetadataRequest.h index b9142d5a0b0..8ed570254e6 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsMetadataRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/CreateOpsMetadataRequest.h @@ -37,103 +37,103 @@ namespace Model /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** - *

    A resource ID for a new AppManager application.

    + *

    A resource ID for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline void SetMetadata(const Aws::Map& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline void SetMetadata(Aws::Map&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& AddMetadata(const Aws::String& key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& AddMetadata(Aws::String&& key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& AddMetadata(const Aws::String& key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& AddMetadata(Aws::String&& key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& AddMetadata(const char* key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** - *

    Metadata for a new AppManager application.

    + *

    Metadata for a new Application Manager application.

    */ inline CreateOpsMetadataRequest& AddMetadata(const char* key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentDescription.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentDescription.h index 59b426e7b0b..c30b2fae48d 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentDescription.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentDescription.h @@ -12,11 +12,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include namespace Aws @@ -993,6 +995,209 @@ namespace Model */ inline DocumentDescription& AddRequires(DocumentRequires&& value) { m_requiresHasBeenSet = true; m_requires.push_back(std::move(value)); return *this; } + + /** + *

    The user in your organization who created the document.

    + */ + inline const Aws::String& GetAuthor() const{ return m_author; } + + /** + *

    The user in your organization who created the document.

    + */ + inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; } + + /** + *

    The user in your organization who created the document.

    + */ + inline void SetAuthor(const Aws::String& value) { m_authorHasBeenSet = true; m_author = value; } + + /** + *

    The user in your organization who created the document.

    + */ + inline void SetAuthor(Aws::String&& value) { m_authorHasBeenSet = true; m_author = std::move(value); } + + /** + *

    The user in your organization who created the document.

    + */ + inline void SetAuthor(const char* value) { m_authorHasBeenSet = true; m_author.assign(value); } + + /** + *

    The user in your organization who created the document.

    + */ + inline DocumentDescription& WithAuthor(const Aws::String& value) { SetAuthor(value); return *this;} + + /** + *

    The user in your organization who created the document.

    + */ + inline DocumentDescription& WithAuthor(Aws::String&& value) { SetAuthor(std::move(value)); return *this;} + + /** + *

    The user in your organization who created the document.

    + */ + inline DocumentDescription& WithAuthor(const char* value) { SetAuthor(value); return *this;} + + + /** + *

    Details about the review of a document.

    + */ + inline const Aws::Vector& GetReviewInformation() const{ return m_reviewInformation; } + + /** + *

    Details about the review of a document.

    + */ + inline bool ReviewInformationHasBeenSet() const { return m_reviewInformationHasBeenSet; } + + /** + *

    Details about the review of a document.

    + */ + inline void SetReviewInformation(const Aws::Vector& value) { m_reviewInformationHasBeenSet = true; m_reviewInformation = value; } + + /** + *

    Details about the review of a document.

    + */ + inline void SetReviewInformation(Aws::Vector&& value) { m_reviewInformationHasBeenSet = true; m_reviewInformation = std::move(value); } + + /** + *

    Details about the review of a document.

    + */ + inline DocumentDescription& WithReviewInformation(const Aws::Vector& value) { SetReviewInformation(value); return *this;} + + /** + *

    Details about the review of a document.

    + */ + inline DocumentDescription& WithReviewInformation(Aws::Vector&& value) { SetReviewInformation(std::move(value)); return *this;} + + /** + *

    Details about the review of a document.

    + */ + inline DocumentDescription& AddReviewInformation(const ReviewInformation& value) { m_reviewInformationHasBeenSet = true; m_reviewInformation.push_back(value); return *this; } + + /** + *

    Details about the review of a document.

    + */ + inline DocumentDescription& AddReviewInformation(ReviewInformation&& value) { m_reviewInformationHasBeenSet = true; m_reviewInformation.push_back(std::move(value)); return *this; } + + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline const Aws::String& GetApprovedVersion() const{ return m_approvedVersion; } + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline bool ApprovedVersionHasBeenSet() const { return m_approvedVersionHasBeenSet; } + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline void SetApprovedVersion(const Aws::String& value) { m_approvedVersionHasBeenSet = true; m_approvedVersion = value; } + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline void SetApprovedVersion(Aws::String&& value) { m_approvedVersionHasBeenSet = true; m_approvedVersion = std::move(value); } + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline void SetApprovedVersion(const char* value) { m_approvedVersionHasBeenSet = true; m_approvedVersion.assign(value); } + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline DocumentDescription& WithApprovedVersion(const Aws::String& value) { SetApprovedVersion(value); return *this;} + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline DocumentDescription& WithApprovedVersion(Aws::String&& value) { SetApprovedVersion(std::move(value)); return *this;} + + /** + *

    The version of the document currently approved for use in the + * organization.

    + */ + inline DocumentDescription& WithApprovedVersion(const char* value) { SetApprovedVersion(value); return *this;} + + + /** + *

    The version of the document that is currently under review.

    + */ + inline const Aws::String& GetPendingReviewVersion() const{ return m_pendingReviewVersion; } + + /** + *

    The version of the document that is currently under review.

    + */ + inline bool PendingReviewVersionHasBeenSet() const { return m_pendingReviewVersionHasBeenSet; } + + /** + *

    The version of the document that is currently under review.

    + */ + inline void SetPendingReviewVersion(const Aws::String& value) { m_pendingReviewVersionHasBeenSet = true; m_pendingReviewVersion = value; } + + /** + *

    The version of the document that is currently under review.

    + */ + inline void SetPendingReviewVersion(Aws::String&& value) { m_pendingReviewVersionHasBeenSet = true; m_pendingReviewVersion = std::move(value); } + + /** + *

    The version of the document that is currently under review.

    + */ + inline void SetPendingReviewVersion(const char* value) { m_pendingReviewVersionHasBeenSet = true; m_pendingReviewVersion.assign(value); } + + /** + *

    The version of the document that is currently under review.

    + */ + inline DocumentDescription& WithPendingReviewVersion(const Aws::String& value) { SetPendingReviewVersion(value); return *this;} + + /** + *

    The version of the document that is currently under review.

    + */ + inline DocumentDescription& WithPendingReviewVersion(Aws::String&& value) { SetPendingReviewVersion(std::move(value)); return *this;} + + /** + *

    The version of the document that is currently under review.

    + */ + inline DocumentDescription& WithPendingReviewVersion(const char* value) { SetPendingReviewVersion(value); return *this;} + + + /** + *

    The current status of the review.

    + */ + inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; } + + /** + *

    The current status of the review.

    + */ + inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; } + + /** + *

    The current status of the review.

    + */ + inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; } + + /** + *

    The current status of the review.

    + */ + inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = std::move(value); } + + /** + *

    The current status of the review.

    + */ + inline DocumentDescription& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;} + + /** + *

    The current status of the review.

    + */ + inline DocumentDescription& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;} + private: Aws::String m_sha1; @@ -1060,6 +1265,21 @@ namespace Model Aws::Vector m_requires; bool m_requiresHasBeenSet; + + Aws::String m_author; + bool m_authorHasBeenSet; + + Aws::Vector m_reviewInformation; + bool m_reviewInformationHasBeenSet; + + Aws::String m_approvedVersion; + bool m_approvedVersionHasBeenSet; + + Aws::String m_pendingReviewVersion; + bool m_pendingReviewVersionHasBeenSet; + + ReviewStatus m_reviewStatus; + bool m_reviewStatusHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h index 4cec76752b3..ffcd1bd95c3 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentIdentifier.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -538,6 +539,78 @@ namespace Model */ inline DocumentIdentifier& AddRequires(DocumentRequires&& value) { m_requiresHasBeenSet = true; m_requires.push_back(std::move(value)); return *this; } + + /** + *

    The current status of a document review.

    + */ + inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; } + + /** + *

    The current status of a document review.

    + */ + inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; } + + /** + *

    The current status of a document review.

    + */ + inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; } + + /** + *

    The current status of a document review.

    + */ + inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = std::move(value); } + + /** + *

    The current status of a document review.

    + */ + inline DocumentIdentifier& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;} + + /** + *

    The current status of a document review.

    + */ + inline DocumentIdentifier& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;} + + + /** + *

    The user in your organization who created the document.

    + */ + inline const Aws::String& GetAuthor() const{ return m_author; } + + /** + *

    The user in your organization who created the document.

    + */ + inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; } + + /** + *

    The user in your organization who created the document.

    + */ + inline void SetAuthor(const Aws::String& value) { m_authorHasBeenSet = true; m_author = value; } + + /** + *

    The user in your organization who created the document.

    + */ + inline void SetAuthor(Aws::String&& value) { m_authorHasBeenSet = true; m_author = std::move(value); } + + /** + *

    The user in your organization who created the document.

    + */ + inline void SetAuthor(const char* value) { m_authorHasBeenSet = true; m_author.assign(value); } + + /** + *

    The user in your organization who created the document.

    + */ + inline DocumentIdentifier& WithAuthor(const Aws::String& value) { SetAuthor(value); return *this;} + + /** + *

    The user in your organization who created the document.

    + */ + inline DocumentIdentifier& WithAuthor(Aws::String&& value) { SetAuthor(std::move(value)); return *this;} + + /** + *

    The user in your organization who created the document.

    + */ + inline DocumentIdentifier& WithAuthor(const char* value) { SetAuthor(value); return *this;} + private: Aws::String m_name; @@ -572,6 +645,12 @@ namespace Model Aws::Vector m_requires; bool m_requiresHasBeenSet; + + ReviewStatus m_reviewStatus; + bool m_reviewStatusHasBeenSet; + + Aws::String m_author; + bool m_authorHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataEnum.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataEnum.h new file mode 100644 index 00000000000..1223453c11f --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataEnum.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class DocumentMetadataEnum + { + NOT_SET, + DocumentReviews + }; + +namespace DocumentMetadataEnumMapper +{ +AWS_SSM_API DocumentMetadataEnum GetDocumentMetadataEnumForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForDocumentMetadataEnum(DocumentMetadataEnum value); +} // namespace DocumentMetadataEnumMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataResponseInfo.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataResponseInfo.h new file mode 100644 index 00000000000..ca916885c9c --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentMetadataResponseInfo.h @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Details about the response to a document review request.

    See + * Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API DocumentMetadataResponseInfo + { + public: + DocumentMetadataResponseInfo(); + DocumentMetadataResponseInfo(Aws::Utils::Json::JsonView jsonValue); + DocumentMetadataResponseInfo& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline const Aws::Vector& GetReviewerResponse() const{ return m_reviewerResponse; } + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline bool ReviewerResponseHasBeenSet() const { return m_reviewerResponseHasBeenSet; } + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline void SetReviewerResponse(const Aws::Vector& value) { m_reviewerResponseHasBeenSet = true; m_reviewerResponse = value; } + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline void SetReviewerResponse(Aws::Vector&& value) { m_reviewerResponseHasBeenSet = true; m_reviewerResponse = std::move(value); } + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline DocumentMetadataResponseInfo& WithReviewerResponse(const Aws::Vector& value) { SetReviewerResponse(value); return *this;} + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline DocumentMetadataResponseInfo& WithReviewerResponse(Aws::Vector&& value) { SetReviewerResponse(std::move(value)); return *this;} + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline DocumentMetadataResponseInfo& AddReviewerResponse(const DocumentReviewerResponseSource& value) { m_reviewerResponseHasBeenSet = true; m_reviewerResponse.push_back(value); return *this; } + + /** + *

    Details about a reviewer's response to a document review request.

    + */ + inline DocumentMetadataResponseInfo& AddReviewerResponse(DocumentReviewerResponseSource&& value) { m_reviewerResponseHasBeenSet = true; m_reviewerResponse.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_reviewerResponse; + bool m_reviewerResponseHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewAction.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewAction.h new file mode 100644 index 00000000000..1fda8df961d --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewAction.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class DocumentReviewAction + { + NOT_SET, + SendForReview, + UpdateReview, + Approve, + Reject + }; + +namespace DocumentReviewActionMapper +{ +AWS_SSM_API DocumentReviewAction GetDocumentReviewActionForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForDocumentReviewAction(DocumentReviewAction value); +} // namespace DocumentReviewActionMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentSource.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentSource.h new file mode 100644 index 00000000000..2fb90c5a682 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentSource.h @@ -0,0 +1,138 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Information about comments added to a document review request.

    See + * Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API DocumentReviewCommentSource + { + public: + DocumentReviewCommentSource(); + DocumentReviewCommentSource(Aws::Utils::Json::JsonView jsonValue); + DocumentReviewCommentSource& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The type of information added to a review request. Currently, only the value + * Comment is supported.

    + */ + inline const DocumentReviewCommentType& GetType() const{ return m_type; } + + /** + *

    The type of information added to a review request. Currently, only the value + * Comment is supported.

    + */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

    The type of information added to a review request. Currently, only the value + * Comment is supported.

    + */ + inline void SetType(const DocumentReviewCommentType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

    The type of information added to a review request. Currently, only the value + * Comment is supported.

    + */ + inline void SetType(DocumentReviewCommentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

    The type of information added to a review request. Currently, only the value + * Comment is supported.

    + */ + inline DocumentReviewCommentSource& WithType(const DocumentReviewCommentType& value) { SetType(value); return *this;} + + /** + *

    The type of information added to a review request. Currently, only the value + * Comment is supported.

    + */ + inline DocumentReviewCommentSource& WithType(DocumentReviewCommentType&& value) { SetType(std::move(value)); return *this;} + + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline const Aws::String& GetContent() const{ return m_content; } + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline DocumentReviewCommentSource& WithContent(const Aws::String& value) { SetContent(value); return *this;} + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline DocumentReviewCommentSource& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} + + /** + *

    The content of a comment entered by a user who requests a review of a new + * document version, or who reviews the new version.

    + */ + inline DocumentReviewCommentSource& WithContent(const char* value) { SetContent(value); return *this;} + + private: + + DocumentReviewCommentType m_type; + bool m_typeHasBeenSet; + + Aws::String m_content; + bool m_contentHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentType.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentType.h new file mode 100644 index 00000000000..1b953eb69be --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewCommentType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class DocumentReviewCommentType + { + NOT_SET, + Comment + }; + +namespace DocumentReviewCommentTypeMapper +{ +AWS_SSM_API DocumentReviewCommentType GetDocumentReviewCommentTypeForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForDocumentReviewCommentType(DocumentReviewCommentType value); +} // namespace DocumentReviewCommentTypeMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewerResponseSource.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewerResponseSource.h new file mode 100644 index 00000000000..9e107f78319 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviewerResponseSource.h @@ -0,0 +1,289 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Information about a reviewer's response to a document review + * request.

    See Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API DocumentReviewerResponseSource + { + public: + DocumentReviewerResponseSource(); + DocumentReviewerResponseSource(Aws::Utils::Json::JsonView jsonValue); + DocumentReviewerResponseSource& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The date and time that a reviewer entered a response to a document review + * request.

    + */ + inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } + + /** + *

    The date and time that a reviewer entered a response to a document review + * request.

    + */ + inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } + + /** + *

    The date and time that a reviewer entered a response to a document review + * request.

    + */ + inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } + + /** + *

    The date and time that a reviewer entered a response to a document review + * request.

    + */ + inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } + + /** + *

    The date and time that a reviewer entered a response to a document review + * request.

    + */ + inline DocumentReviewerResponseSource& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} + + /** + *

    The date and time that a reviewer entered a response to a document review + * request.

    + */ + inline DocumentReviewerResponseSource& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} + + + /** + *

    The date and time that a reviewer last updated a response to a document + * review request.

    + */ + inline const Aws::Utils::DateTime& GetUpdatedTime() const{ return m_updatedTime; } + + /** + *

    The date and time that a reviewer last updated a response to a document + * review request.

    + */ + inline bool UpdatedTimeHasBeenSet() const { return m_updatedTimeHasBeenSet; } + + /** + *

    The date and time that a reviewer last updated a response to a document + * review request.

    + */ + inline void SetUpdatedTime(const Aws::Utils::DateTime& value) { m_updatedTimeHasBeenSet = true; m_updatedTime = value; } + + /** + *

    The date and time that a reviewer last updated a response to a document + * review request.

    + */ + inline void SetUpdatedTime(Aws::Utils::DateTime&& value) { m_updatedTimeHasBeenSet = true; m_updatedTime = std::move(value); } + + /** + *

    The date and time that a reviewer last updated a response to a document + * review request.

    + */ + inline DocumentReviewerResponseSource& WithUpdatedTime(const Aws::Utils::DateTime& value) { SetUpdatedTime(value); return *this;} + + /** + *

    The date and time that a reviewer last updated a response to a document + * review request.

    + */ + inline DocumentReviewerResponseSource& WithUpdatedTime(Aws::Utils::DateTime&& value) { SetUpdatedTime(std::move(value)); return *this;} + + + /** + *

    The current review status of a new custom SSM document created by a member of + * your organization, or of the latest version of an existing SSM document.

    + *

    Only one version of a document can be in the APPROVED state at a time. When a + * new version is approved, the status of the previous version changes to + * REJECTED.

    Only one version of a document can be in review, or PENDING, at + * a time.

    + */ + inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; } + + /** + *

    The current review status of a new custom SSM document created by a member of + * your organization, or of the latest version of an existing SSM document.

    + *

    Only one version of a document can be in the APPROVED state at a time. When a + * new version is approved, the status of the previous version changes to + * REJECTED.

    Only one version of a document can be in review, or PENDING, at + * a time.

    + */ + inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; } + + /** + *

    The current review status of a new custom SSM document created by a member of + * your organization, or of the latest version of an existing SSM document.

    + *

    Only one version of a document can be in the APPROVED state at a time. When a + * new version is approved, the status of the previous version changes to + * REJECTED.

    Only one version of a document can be in review, or PENDING, at + * a time.

    + */ + inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; } + + /** + *

    The current review status of a new custom SSM document created by a member of + * your organization, or of the latest version of an existing SSM document.

    + *

    Only one version of a document can be in the APPROVED state at a time. When a + * new version is approved, the status of the previous version changes to + * REJECTED.

    Only one version of a document can be in review, or PENDING, at + * a time.

    + */ + inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = std::move(value); } + + /** + *

    The current review status of a new custom SSM document created by a member of + * your organization, or of the latest version of an existing SSM document.

    + *

    Only one version of a document can be in the APPROVED state at a time. When a + * new version is approved, the status of the previous version changes to + * REJECTED.

    Only one version of a document can be in review, or PENDING, at + * a time.

    + */ + inline DocumentReviewerResponseSource& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;} + + /** + *

    The current review status of a new custom SSM document created by a member of + * your organization, or of the latest version of an existing SSM document.

    + *

    Only one version of a document can be in the APPROVED state at a time. When a + * new version is approved, the status of the previous version changes to + * REJECTED.

    Only one version of a document can be in review, or PENDING, at + * a time.

    + */ + inline DocumentReviewerResponseSource& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;} + + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline const Aws::Vector& GetComment() const{ return m_comment; } + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline void SetComment(const Aws::Vector& value) { m_commentHasBeenSet = true; m_comment = value; } + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline void SetComment(Aws::Vector&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline DocumentReviewerResponseSource& WithComment(const Aws::Vector& value) { SetComment(value); return *this;} + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline DocumentReviewerResponseSource& WithComment(Aws::Vector&& value) { SetComment(std::move(value)); return *this;} + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline DocumentReviewerResponseSource& AddComment(const DocumentReviewCommentSource& value) { m_commentHasBeenSet = true; m_comment.push_back(value); return *this; } + + /** + *

    The comment entered by a reviewer as part of their document review + * response.

    + */ + inline DocumentReviewerResponseSource& AddComment(DocumentReviewCommentSource&& value) { m_commentHasBeenSet = true; m_comment.push_back(std::move(value)); return *this; } + + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline const Aws::String& GetReviewer() const{ return m_reviewer; } + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline bool ReviewerHasBeenSet() const { return m_reviewerHasBeenSet; } + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline void SetReviewer(const Aws::String& value) { m_reviewerHasBeenSet = true; m_reviewer = value; } + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline void SetReviewer(Aws::String&& value) { m_reviewerHasBeenSet = true; m_reviewer = std::move(value); } + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline void SetReviewer(const char* value) { m_reviewerHasBeenSet = true; m_reviewer.assign(value); } + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline DocumentReviewerResponseSource& WithReviewer(const Aws::String& value) { SetReviewer(value); return *this;} + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline DocumentReviewerResponseSource& WithReviewer(Aws::String&& value) { SetReviewer(std::move(value)); return *this;} + + /** + *

    The user in your organization assigned to review a document request.

    + */ + inline DocumentReviewerResponseSource& WithReviewer(const char* value) { SetReviewer(value); return *this;} + + private: + + Aws::Utils::DateTime m_createTime; + bool m_createTimeHasBeenSet; + + Aws::Utils::DateTime m_updatedTime; + bool m_updatedTimeHasBeenSet; + + ReviewStatus m_reviewStatus; + bool m_reviewStatusHasBeenSet; + + Aws::Vector m_comment; + bool m_commentHasBeenSet; + + Aws::String m_reviewer; + bool m_reviewerHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviews.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviews.h new file mode 100644 index 00000000000..0700aa02cae --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentReviews.h @@ -0,0 +1,132 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Information about a document approval review.

    See Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API DocumentReviews + { + public: + DocumentReviews(); + DocumentReviews(Aws::Utils::Json::JsonView jsonValue); + DocumentReviews& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The action to take on a document approval review request.

    + */ + inline const DocumentReviewAction& GetAction() const{ return m_action; } + + /** + *

    The action to take on a document approval review request.

    + */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

    The action to take on a document approval review request.

    + */ + inline void SetAction(const DocumentReviewAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

    The action to take on a document approval review request.

    + */ + inline void SetAction(DocumentReviewAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

    The action to take on a document approval review request.

    + */ + inline DocumentReviews& WithAction(const DocumentReviewAction& value) { SetAction(value); return *this;} + + /** + *

    The action to take on a document approval review request.

    + */ + inline DocumentReviews& WithAction(DocumentReviewAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline const Aws::Vector& GetComment() const{ return m_comment; } + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline void SetComment(const Aws::Vector& value) { m_commentHasBeenSet = true; m_comment = value; } + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline void SetComment(Aws::Vector&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline DocumentReviews& WithComment(const Aws::Vector& value) { SetComment(value); return *this;} + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline DocumentReviews& WithComment(Aws::Vector&& value) { SetComment(std::move(value)); return *this;} + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline DocumentReviews& AddComment(const DocumentReviewCommentSource& value) { m_commentHasBeenSet = true; m_comment.push_back(value); return *this; } + + /** + *

    A comment entered by a user in your organization about the document review + * request.

    + */ + inline DocumentReviews& AddComment(DocumentReviewCommentSource&& value) { m_commentHasBeenSet = true; m_comment.push_back(std::move(value)); return *this; } + + private: + + DocumentReviewAction m_action; + bool m_actionHasBeenSet; + + Aws::Vector m_comment; + bool m_commentHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentType.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentType.h index e1e503cac5f..9a8616d764a 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentType.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentType.h @@ -24,7 +24,8 @@ namespace Model ApplicationConfiguration, ApplicationConfigurationSchema, DeploymentStrategy, - ChangeCalendar + ChangeCalendar, + Automation_ChangeTemplate }; namespace DocumentTypeMapper diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h index 5a2ef1de99a..fe2d370711e 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/DocumentVersionInfo.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -363,6 +364,43 @@ namespace Model */ inline DocumentVersionInfo& WithStatusInformation(const char* value) { SetStatusInformation(value); return *this;} + + /** + *

    The current status of the approval review for the latest version of the + * document.

    + */ + inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; } + + /** + *

    The current status of the approval review for the latest version of the + * document.

    + */ + inline bool ReviewStatusHasBeenSet() const { return m_reviewStatusHasBeenSet; } + + /** + *

    The current status of the approval review for the latest version of the + * document.

    + */ + inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = value; } + + /** + *

    The current status of the approval review for the latest version of the + * document.

    + */ + inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatusHasBeenSet = true; m_reviewStatus = std::move(value); } + + /** + *

    The current status of the approval review for the latest version of the + * document.

    + */ + inline DocumentVersionInfo& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;} + + /** + *

    The current status of the approval review for the latest version of the + * document.

    + */ + inline DocumentVersionInfo& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;} + private: Aws::String m_name; @@ -388,6 +426,9 @@ namespace Model Aws::String m_statusInformation; bool m_statusInformationHasBeenSet; + + ReviewStatus m_reviewStatus; + bool m_reviewStatusHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h index af7ab968607..be706cc5618 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/GetDocumentResult.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -433,6 +434,57 @@ namespace Model */ inline GetDocumentResult& AddAttachmentsContent(AttachmentContent&& value) { m_attachmentsContent.push_back(std::move(value)); return *this; } + + /** + *

    The current review status of a new custom Systems Manager document (SSM + * document) created by a member of your organization, or of the latest version of + * an existing SSM document.

    Only one version of an SSM document can be in + * the APPROVED state at a time. When a new version is approved, the status of the + * previous version changes to REJECTED.

    Only one version of an SSM document + * can be in review, or PENDING, at a time.

    + */ + inline const ReviewStatus& GetReviewStatus() const{ return m_reviewStatus; } + + /** + *

    The current review status of a new custom Systems Manager document (SSM + * document) created by a member of your organization, or of the latest version of + * an existing SSM document.

    Only one version of an SSM document can be in + * the APPROVED state at a time. When a new version is approved, the status of the + * previous version changes to REJECTED.

    Only one version of an SSM document + * can be in review, or PENDING, at a time.

    + */ + inline void SetReviewStatus(const ReviewStatus& value) { m_reviewStatus = value; } + + /** + *

    The current review status of a new custom Systems Manager document (SSM + * document) created by a member of your organization, or of the latest version of + * an existing SSM document.

    Only one version of an SSM document can be in + * the APPROVED state at a time. When a new version is approved, the status of the + * previous version changes to REJECTED.

    Only one version of an SSM document + * can be in review, or PENDING, at a time.

    + */ + inline void SetReviewStatus(ReviewStatus&& value) { m_reviewStatus = std::move(value); } + + /** + *

    The current review status of a new custom Systems Manager document (SSM + * document) created by a member of your organization, or of the latest version of + * an existing SSM document.

    Only one version of an SSM document can be in + * the APPROVED state at a time. When a new version is approved, the status of the + * previous version changes to REJECTED.

    Only one version of an SSM document + * can be in review, or PENDING, at a time.

    + */ + inline GetDocumentResult& WithReviewStatus(const ReviewStatus& value) { SetReviewStatus(value); return *this;} + + /** + *

    The current review status of a new custom Systems Manager document (SSM + * document) created by a member of your organization, or of the latest version of + * an existing SSM document.

    Only one version of an SSM document can be in + * the APPROVED state at a time. When a new version is approved, the status of the + * previous version changes to REJECTED.

    Only one version of an SSM document + * can be in review, or PENDING, at a time.

    + */ + inline GetDocumentResult& WithReviewStatus(ReviewStatus&& value) { SetReviewStatus(std::move(value)); return *this;} + private: Aws::String m_name; @@ -454,6 +506,8 @@ namespace Model Aws::Vector m_requires; Aws::Vector m_attachmentsContent; + + ReviewStatus m_reviewStatus; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/GetMaintenanceWindowResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/GetMaintenanceWindowResult.h index 6790e7dbaa2..27d2291a941 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/GetMaintenanceWindowResult.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/GetMaintenanceWindowResult.h @@ -287,8 +287,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; } @@ -296,8 +296,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezone = value; } @@ -305,8 +305,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezone = std::move(value); } @@ -314,8 +314,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const char* value) { m_scheduleTimezone.assign(value); } @@ -323,8 +323,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline GetMaintenanceWindowResult& WithScheduleTimezone(const Aws::String& value) { SetScheduleTimezone(value); return *this;} @@ -332,8 +332,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline GetMaintenanceWindowResult& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;} @@ -341,8 +341,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline GetMaintenanceWindowResult& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/GetOpsMetadataResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/GetOpsMetadataResult.h index 80a1e369a08..bbead9173f6 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/GetOpsMetadataResult.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/GetOpsMetadataResult.h @@ -35,93 +35,93 @@ namespace Model /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline void SetResourceId(const Aws::String& value) { m_resourceId = value; } /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); } /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline void SetResourceId(const char* value) { m_resourceId.assign(value); } /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline GetOpsMetadataResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline GetOpsMetadataResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** - *

    The resource ID of the AppManager application.

    + *

    The resource ID of the Application Manager application.

    */ inline GetOpsMetadataResult& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline void SetMetadata(const Aws::Map& value) { m_metadata = value; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline void SetMetadata(Aws::Map&& value) { m_metadata = std::move(value); } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& AddMetadata(const Aws::String& key, const MetadataValue& value) { m_metadata.emplace(key, value); return *this; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& AddMetadata(Aws::String&& key, const MetadataValue& value) { m_metadata.emplace(std::move(key), value); return *this; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& AddMetadata(const Aws::String& key, MetadataValue&& value) { m_metadata.emplace(key, std::move(value)); return *this; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& AddMetadata(Aws::String&& key, MetadataValue&& value) { m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& AddMetadata(const char* key, MetadataValue&& value) { m_metadata.emplace(key, std::move(value)); return *this; } /** - *

    OpsMetadata for an AppManager application.

    + *

    OpsMetadata for an Application Manager application.

    */ inline GetOpsMetadataResult& AddMetadata(const char* key, const MetadataValue& value) { m_metadata.emplace(key, value); return *this; } diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/InstanceInformation.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/InstanceInformation.h index 989a50d05e9..b5324b32ec1 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/InstanceInformation.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/InstanceInformation.h @@ -122,32 +122,38 @@ namespace Model /** - *

    The date and time when agent last pinged Systems Manager service.

    + *

    The date and time when the agent last pinged the Systems Manager service. + *

    */ inline const Aws::Utils::DateTime& GetLastPingDateTime() const{ return m_lastPingDateTime; } /** - *

    The date and time when agent last pinged Systems Manager service.

    + *

    The date and time when the agent last pinged the Systems Manager service. + *

    */ inline bool LastPingDateTimeHasBeenSet() const { return m_lastPingDateTimeHasBeenSet; } /** - *

    The date and time when agent last pinged Systems Manager service.

    + *

    The date and time when the agent last pinged the Systems Manager service. + *

    */ inline void SetLastPingDateTime(const Aws::Utils::DateTime& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = value; } /** - *

    The date and time when agent last pinged Systems Manager service.

    + *

    The date and time when the agent last pinged the Systems Manager service. + *

    */ inline void SetLastPingDateTime(Aws::Utils::DateTime&& value) { m_lastPingDateTimeHasBeenSet = true; m_lastPingDateTime = std::move(value); } /** - *

    The date and time when agent last pinged Systems Manager service.

    + *

    The date and time when the agent last pinged the Systems Manager service. + *

    */ inline InstanceInformation& WithLastPingDateTime(const Aws::Utils::DateTime& value) { SetLastPingDateTime(value); return *this;} /** - *

    The date and time when agent last pinged Systems Manager service.

    + *

    The date and time when the agent last pinged the Systems Manager service. + *

    */ inline InstanceInformation& WithLastPingDateTime(Aws::Utils::DateTime&& value) { SetLastPingDateTime(std::move(value)); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryRequest.h new file mode 100644 index 00000000000..91ada3ea5ef --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryRequest.h @@ -0,0 +1,254 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + + /** + */ + class AWS_SSM_API ListDocumentMetadataHistoryRequest : public SSMRequest + { + public: + ListDocumentMetadataHistoryRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListDocumentMetadataHistory"; } + + Aws::String SerializePayload() const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The name of the document.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the document.

    + */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

    The name of the document.

    + */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

    The name of the document.

    + */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

    The name of the document.

    + */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

    The name of the document.

    + */ + inline ListDocumentMetadataHistoryRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the document.

    + */ + inline ListDocumentMetadataHistoryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the document.

    + */ + inline ListDocumentMetadataHistoryRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    The version of the document.

    + */ + inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; } + + /** + *

    The version of the document.

    + */ + inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; } + + /** + *

    The version of the document.

    + */ + inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; } + + /** + *

    The version of the document.

    + */ + inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); } + + /** + *

    The version of the document.

    + */ + inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); } + + /** + *

    The version of the document.

    + */ + inline ListDocumentMetadataHistoryRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;} + + /** + *

    The version of the document.

    + */ + inline ListDocumentMetadataHistoryRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;} + + /** + *

    The version of the document.

    + */ + inline ListDocumentMetadataHistoryRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;} + + + /** + *

    The type of data for which details are being requested. Currently, the only + * supported value is DocumentReviews.

    + */ + inline const DocumentMetadataEnum& GetMetadata() const{ return m_metadata; } + + /** + *

    The type of data for which details are being requested. Currently, the only + * supported value is DocumentReviews.

    + */ + inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } + + /** + *

    The type of data for which details are being requested. Currently, the only + * supported value is DocumentReviews.

    + */ + inline void SetMetadata(const DocumentMetadataEnum& value) { m_metadataHasBeenSet = true; m_metadata = value; } + + /** + *

    The type of data for which details are being requested. Currently, the only + * supported value is DocumentReviews.

    + */ + inline void SetMetadata(DocumentMetadataEnum&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } + + /** + *

    The type of data for which details are being requested. Currently, the only + * supported value is DocumentReviews.

    + */ + inline ListDocumentMetadataHistoryRequest& WithMetadata(const DocumentMetadataEnum& value) { SetMetadata(value); return *this;} + + /** + *

    The type of data for which details are being requested. Currently, the only + * supported value is DocumentReviews.

    + */ + inline ListDocumentMetadataHistoryRequest& WithMetadata(DocumentMetadataEnum&& value) { SetMetadata(std::move(value)); return *this;} + + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline ListDocumentMetadataHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline ListDocumentMetadataHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The token for the next set of items to return. (You received this token from + * a previous call.)

    + */ + inline ListDocumentMetadataHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline ListDocumentMetadataHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_documentVersion; + bool m_documentVersionHasBeenSet; + + DocumentMetadataEnum m_metadata; + bool m_metadataHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryResult.h new file mode 100644 index 00000000000..f38ea560d2e --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListDocumentMetadataHistoryResult.h @@ -0,0 +1,241 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + class AWS_SSM_API ListDocumentMetadataHistoryResult + { + public: + ListDocumentMetadataHistoryResult(); + ListDocumentMetadataHistoryResult(const Aws::AmazonWebServiceResult& result); + ListDocumentMetadataHistoryResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The name of the document.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the document.

    + */ + inline void SetName(const Aws::String& value) { m_name = value; } + + /** + *

    The name of the document.

    + */ + inline void SetName(Aws::String&& value) { m_name = std::move(value); } + + /** + *

    The name of the document.

    + */ + inline void SetName(const char* value) { m_name.assign(value); } + + /** + *

    The name of the document.

    + */ + inline ListDocumentMetadataHistoryResult& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the document.

    + */ + inline ListDocumentMetadataHistoryResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the document.

    + */ + inline ListDocumentMetadataHistoryResult& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    The version of the document.

    + */ + inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; } + + /** + *

    The version of the document.

    + */ + inline void SetDocumentVersion(const Aws::String& value) { m_documentVersion = value; } + + /** + *

    The version of the document.

    + */ + inline void SetDocumentVersion(Aws::String&& value) { m_documentVersion = std::move(value); } + + /** + *

    The version of the document.

    + */ + inline void SetDocumentVersion(const char* value) { m_documentVersion.assign(value); } + + /** + *

    The version of the document.

    + */ + inline ListDocumentMetadataHistoryResult& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;} + + /** + *

    The version of the document.

    + */ + inline ListDocumentMetadataHistoryResult& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;} + + /** + *

    The version of the document.

    + */ + inline ListDocumentMetadataHistoryResult& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;} + + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline const Aws::String& GetAuthor() const{ return m_author; } + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline void SetAuthor(const Aws::String& value) { m_author = value; } + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline void SetAuthor(Aws::String&& value) { m_author = std::move(value); } + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline void SetAuthor(const char* value) { m_author.assign(value); } + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline ListDocumentMetadataHistoryResult& WithAuthor(const Aws::String& value) { SetAuthor(value); return *this;} + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline ListDocumentMetadataHistoryResult& WithAuthor(Aws::String&& value) { SetAuthor(std::move(value)); return *this;} + + /** + *

    The user ID of the person in the organization who requested the document + * review.

    + */ + inline ListDocumentMetadataHistoryResult& WithAuthor(const char* value) { SetAuthor(value); return *this;} + + + /** + *

    Information about the response to the document approval request.

    + */ + inline const DocumentMetadataResponseInfo& GetMetadata() const{ return m_metadata; } + + /** + *

    Information about the response to the document approval request.

    + */ + inline void SetMetadata(const DocumentMetadataResponseInfo& value) { m_metadata = value; } + + /** + *

    Information about the response to the document approval request.

    + */ + inline void SetMetadata(DocumentMetadataResponseInfo&& value) { m_metadata = std::move(value); } + + /** + *

    Information about the response to the document approval request.

    + */ + inline ListDocumentMetadataHistoryResult& WithMetadata(const DocumentMetadataResponseInfo& value) { SetMetadata(value); return *this;} + + /** + *

    Information about the response to the document approval request.

    + */ + inline ListDocumentMetadataHistoryResult& WithMetadata(DocumentMetadataResponseInfo&& value) { SetMetadata(std::move(value)); return *this;} + + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline ListDocumentMetadataHistoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline ListDocumentMetadataHistoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of + * results.

    + */ + inline ListDocumentMetadataHistoryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_name; + + Aws::String m_documentVersion; + + Aws::String m_author; + + DocumentMetadataResponseInfo m_metadata; + + Aws::String m_nextToken; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsRequest.h new file mode 100644 index 00000000000..a6dbe9c88b3 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsRequest.h @@ -0,0 +1,179 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + + /** + */ + class AWS_SSM_API ListOpsItemEventsRequest : public SSMRequest + { + public: + ListOpsItemEventsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListOpsItemEvents"; } + + Aws::String SerializePayload() const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline const Aws::Vector& GetFilters() const{ return m_filters; } + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline ListOpsItemEventsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline ListOpsItemEventsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline ListOpsItemEventsRequest& AddFilters(const OpsItemEventFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } + + /** + *

    One or more OpsItem filters. Use a filter to return a more specific list of + * results.

    + */ + inline ListOpsItemEventsRequest& AddFilters(OpsItemEventFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } + + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of results. + *

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of results. + *

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of results. + *

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The maximum number of items to return for this call. The call also returns a + * token that you can specify in a subsequent call to get the next set of results. + *

    + */ + inline ListOpsItemEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline ListOpsItemEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline ListOpsItemEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    A token to start the list. Use this token to get the next set of results. + *

    + */ + inline ListOpsItemEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::Vector m_filters; + bool m_filtersHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsResult.h new file mode 100644 index 00000000000..8d567c67233 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/ListOpsItemEventsResult.h @@ -0,0 +1,124 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + class AWS_SSM_API ListOpsItemEventsResult + { + public: + ListOpsItemEventsResult(); + ListOpsItemEventsResult(const Aws::AmazonWebServiceResult& result); + ListOpsItemEventsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline ListOpsItemEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline ListOpsItemEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    The token for the next set of items to return. Use this token to get the next + * set of results.

    + */ + inline ListOpsItemEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline const Aws::Vector& GetSummaries() const{ return m_summaries; } + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline void SetSummaries(const Aws::Vector& value) { m_summaries = value; } + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline void SetSummaries(Aws::Vector&& value) { m_summaries = std::move(value); } + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline ListOpsItemEventsResult& WithSummaries(const Aws::Vector& value) { SetSummaries(value); return *this;} + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline ListOpsItemEventsResult& WithSummaries(Aws::Vector&& value) { SetSummaries(std::move(value)); return *this;} + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline ListOpsItemEventsResult& AddSummaries(const OpsItemEventSummary& value) { m_summaries.push_back(value); return *this; } + + /** + *

    A list of event information for the specified OpsItems.

    + */ + inline ListOpsItemEventsResult& AddSummaries(OpsItemEventSummary&& value) { m_summaries.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::Vector m_summaries; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/MetadataValue.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/MetadataValue.h index fe1692c2ef9..6c373648f68 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/MetadataValue.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/MetadataValue.h @@ -24,8 +24,8 @@ namespace Model { /** - *

    Metadata to assign to an AppManager application.

    See Also:

    - * Metadata to assign to an Application Manager application.

    See + * Also:

    AWS * API Reference

    */ @@ -39,42 +39,42 @@ namespace Model /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline const Aws::String& GetValue() const{ return m_value; } /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline MetadataValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline MetadataValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** - *

    Metadata value to assign to an AppManager application.

    + *

    Metadata value to assign to an Application Manager application.

    */ inline MetadataValue& WithValue(const char* value) { SetValue(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItem.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItem.h index 5b33ca43fd1..7da5a7be5c6 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItem.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItem.h @@ -90,6 +90,55 @@ namespace Model inline OpsItem& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline const Aws::String& GetOpsItemType() const{ return m_opsItemType; } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(const Aws::String& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = value; } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(Aws::String&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::move(value); } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(const char* value) { m_opsItemTypeHasBeenSet = true; m_opsItemType.assign(value); } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline OpsItem& WithOpsItemType(const Aws::String& value) { SetOpsItemType(value); return *this;} + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline OpsItem& WithOpsItemType(Aws::String&& value) { SetOpsItemType(std::move(value)); return *this;} + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline OpsItem& WithOpsItemType(const char* value) { SetOpsItemType(value); return *this;} + + /** *

    The date and time the OpsItem was created.

    */ @@ -956,11 +1005,174 @@ namespace Model */ inline OpsItem& WithSeverity(const char* value) { SetSeverity(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItem& WithActualStartTime(const Aws::Utils::DateTime& value) { SetActualStartTime(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItem& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;} + + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItem& WithActualEndTime(const Aws::Utils::DateTime& value) { SetActualEndTime(value); return *this;} + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItem& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItem& WithPlannedStartTime(const Aws::Utils::DateTime& value) { SetPlannedStartTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItem& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItem& WithPlannedEndTime(const Aws::Utils::DateTime& value) { SetPlannedEndTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItem& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;} + private: Aws::String m_createdBy; bool m_createdByHasBeenSet; + Aws::String m_opsItemType; + bool m_opsItemTypeHasBeenSet; + Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet; @@ -1005,6 +1217,18 @@ namespace Model Aws::String m_severity; bool m_severityHasBeenSet; + + Aws::Utils::DateTime m_actualStartTime; + bool m_actualStartTimeHasBeenSet; + + Aws::Utils::DateTime m_actualEndTime; + bool m_actualEndTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedStartTime; + bool m_plannedStartTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedEndTime; + bool m_plannedEndTimeHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilter.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilter.h new file mode 100644 index 00000000000..7e1e3a13f31 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilter.h @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Describes a filter for a specific list of OpsItem events. You can filter + * event information by using tags. You specify tags by using a key-value pair + * mapping.

    See Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API OpsItemEventFilter + { + public: + OpsItemEventFilter(); + OpsItemEventFilter(Aws::Utils::Json::JsonView jsonValue); + OpsItemEventFilter& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the filter key. Currently, the only supported value is + * OpsItemId.

    + */ + inline const OpsItemEventFilterKey& GetKey() const{ return m_key; } + + /** + *

    The name of the filter key. Currently, the only supported value is + * OpsItemId.

    + */ + inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } + + /** + *

    The name of the filter key. Currently, the only supported value is + * OpsItemId.

    + */ + inline void SetKey(const OpsItemEventFilterKey& value) { m_keyHasBeenSet = true; m_key = value; } + + /** + *

    The name of the filter key. Currently, the only supported value is + * OpsItemId.

    + */ + inline void SetKey(OpsItemEventFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } + + /** + *

    The name of the filter key. Currently, the only supported value is + * OpsItemId.

    + */ + inline OpsItemEventFilter& WithKey(const OpsItemEventFilterKey& value) { SetKey(value); return *this;} + + /** + *

    The name of the filter key. Currently, the only supported value is + * OpsItemId.

    + */ + inline OpsItemEventFilter& WithKey(OpsItemEventFilterKey&& value) { SetKey(std::move(value)); return *this;} + + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline OpsItemEventFilter& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline OpsItemEventFilter& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline OpsItemEventFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline OpsItemEventFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + /** + *

    The values for the filter, consisting of one or more OpsItem IDs.

    + */ + inline OpsItemEventFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + + /** + *

    The operator used by the filter call. Currently, the only supported value is + * Equal.

    + */ + inline const OpsItemEventFilterOperator& GetOperator() const{ return m_operator; } + + /** + *

    The operator used by the filter call. Currently, the only supported value is + * Equal.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The operator used by the filter call. Currently, the only supported value is + * Equal.

    + */ + inline void SetOperator(const OpsItemEventFilterOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The operator used by the filter call. Currently, the only supported value is + * Equal.

    + */ + inline void SetOperator(OpsItemEventFilterOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The operator used by the filter call. Currently, the only supported value is + * Equal.

    + */ + inline OpsItemEventFilter& WithOperator(const OpsItemEventFilterOperator& value) { SetOperator(value); return *this;} + + /** + *

    The operator used by the filter call. Currently, the only supported value is + * Equal.

    + */ + inline OpsItemEventFilter& WithOperator(OpsItemEventFilterOperator&& value) { SetOperator(std::move(value)); return *this;} + + private: + + OpsItemEventFilterKey m_key; + bool m_keyHasBeenSet; + + Aws::Vector m_values; + bool m_valuesHasBeenSet; + + OpsItemEventFilterOperator m_operator; + bool m_operatorHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterKey.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterKey.h new file mode 100644 index 00000000000..2646d574e23 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterKey.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class OpsItemEventFilterKey + { + NOT_SET, + OpsItemId + }; + +namespace OpsItemEventFilterKeyMapper +{ +AWS_SSM_API OpsItemEventFilterKey GetOpsItemEventFilterKeyForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForOpsItemEventFilterKey(OpsItemEventFilterKey value); +} // namespace OpsItemEventFilterKeyMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterOperator.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterOperator.h new file mode 100644 index 00000000000..da77bf657df --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventFilterOperator.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class OpsItemEventFilterOperator + { + NOT_SET, + Equal + }; + +namespace OpsItemEventFilterOperatorMapper +{ +AWS_SSM_API OpsItemEventFilterOperator GetOpsItemEventFilterOperatorForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForOpsItemEventFilterOperator(OpsItemEventFilterOperator value); +} // namespace OpsItemEventFilterOperatorMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventSummary.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventSummary.h new file mode 100644 index 00000000000..7bfb08013f1 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemEventSummary.h @@ -0,0 +1,334 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Summary information about an OpsItem event.

    See Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API OpsItemEventSummary + { + public: + OpsItemEventSummary(); + OpsItemEventSummary(Aws::Utils::Json::JsonView jsonValue); + OpsItemEventSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The ID of the OpsItem.

    + */ + inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; } + + /** + *

    The ID of the OpsItem.

    + */ + inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; } + + /** + *

    The ID of the OpsItem.

    + */ + inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; } + + /** + *

    The ID of the OpsItem.

    + */ + inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); } + + /** + *

    The ID of the OpsItem.

    + */ + inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); } + + /** + *

    The ID of the OpsItem.

    + */ + inline OpsItemEventSummary& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;} + + /** + *

    The ID of the OpsItem.

    + */ + inline OpsItemEventSummary& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;} + + /** + *

    The ID of the OpsItem.

    + */ + inline OpsItemEventSummary& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;} + + + /** + *

    The ID of the OpsItem event.

    + */ + inline const Aws::String& GetEventId() const{ return m_eventId; } + + /** + *

    The ID of the OpsItem event.

    + */ + inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } + + /** + *

    The ID of the OpsItem event.

    + */ + inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } + + /** + *

    The ID of the OpsItem event.

    + */ + inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } + + /** + *

    The ID of the OpsItem event.

    + */ + inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } + + /** + *

    The ID of the OpsItem event.

    + */ + inline OpsItemEventSummary& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} + + /** + *

    The ID of the OpsItem event.

    + */ + inline OpsItemEventSummary& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} + + /** + *

    The ID of the OpsItem event.

    + */ + inline OpsItemEventSummary& WithEventId(const char* value) { SetEventId(value); return *this;} + + + /** + *

    The source of the OpsItem event.

    + */ + inline const Aws::String& GetSource() const{ return m_source; } + + /** + *

    The source of the OpsItem event.

    + */ + inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } + + /** + *

    The source of the OpsItem event.

    + */ + inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } + + /** + *

    The source of the OpsItem event.

    + */ + inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } + + /** + *

    The source of the OpsItem event.

    + */ + inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } + + /** + *

    The source of the OpsItem event.

    + */ + inline OpsItemEventSummary& WithSource(const Aws::String& value) { SetSource(value); return *this;} + + /** + *

    The source of the OpsItem event.

    + */ + inline OpsItemEventSummary& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} + + /** + *

    The source of the OpsItem event.

    + */ + inline OpsItemEventSummary& WithSource(const char* value) { SetSource(value); return *this;} + + + /** + *

    The type of information provided as a detail.

    + */ + inline const Aws::String& GetDetailType() const{ return m_detailType; } + + /** + *

    The type of information provided as a detail.

    + */ + inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; } + + /** + *

    The type of information provided as a detail.

    + */ + inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; } + + /** + *

    The type of information provided as a detail.

    + */ + inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); } + + /** + *

    The type of information provided as a detail.

    + */ + inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); } + + /** + *

    The type of information provided as a detail.

    + */ + inline OpsItemEventSummary& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;} + + /** + *

    The type of information provided as a detail.

    + */ + inline OpsItemEventSummary& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;} + + /** + *

    The type of information provided as a detail.

    + */ + inline OpsItemEventSummary& WithDetailType(const char* value) { SetDetailType(value); return *this;} + + + /** + *

    Specific information about the OpsItem event.

    + */ + inline const Aws::String& GetDetail() const{ return m_detail; } + + /** + *

    Specific information about the OpsItem event.

    + */ + inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } + + /** + *

    Specific information about the OpsItem event.

    + */ + inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; } + + /** + *

    Specific information about the OpsItem event.

    + */ + inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } + + /** + *

    Specific information about the OpsItem event.

    + */ + inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); } + + /** + *

    Specific information about the OpsItem event.

    + */ + inline OpsItemEventSummary& WithDetail(const Aws::String& value) { SetDetail(value); return *this;} + + /** + *

    Specific information about the OpsItem event.

    + */ + inline OpsItemEventSummary& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;} + + /** + *

    Specific information about the OpsItem event.

    + */ + inline OpsItemEventSummary& WithDetail(const char* value) { SetDetail(value); return *this;} + + + /** + *

    Information about the user or resource that created the OpsItem event.

    + */ + inline const OpsItemIdentity& GetCreatedBy() const{ return m_createdBy; } + + /** + *

    Information about the user or resource that created the OpsItem event.

    + */ + inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } + + /** + *

    Information about the user or resource that created the OpsItem event.

    + */ + inline void SetCreatedBy(const OpsItemIdentity& value) { m_createdByHasBeenSet = true; m_createdBy = value; } + + /** + *

    Information about the user or resource that created the OpsItem event.

    + */ + inline void SetCreatedBy(OpsItemIdentity&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } + + /** + *

    Information about the user or resource that created the OpsItem event.

    + */ + inline OpsItemEventSummary& WithCreatedBy(const OpsItemIdentity& value) { SetCreatedBy(value); return *this;} + + /** + *

    Information about the user or resource that created the OpsItem event.

    + */ + inline OpsItemEventSummary& WithCreatedBy(OpsItemIdentity&& value) { SetCreatedBy(std::move(value)); return *this;} + + + /** + *

    The date and time the OpsItem event was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } + + /** + *

    The date and time the OpsItem event was created.

    + */ + inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } + + /** + *

    The date and time the OpsItem event was created.

    + */ + inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } + + /** + *

    The date and time the OpsItem event was created.

    + */ + inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } + + /** + *

    The date and time the OpsItem event was created.

    + */ + inline OpsItemEventSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} + + /** + *

    The date and time the OpsItem event was created.

    + */ + inline OpsItemEventSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} + + private: + + Aws::String m_opsItemId; + bool m_opsItemIdHasBeenSet; + + Aws::String m_eventId; + bool m_eventIdHasBeenSet; + + Aws::String m_source; + bool m_sourceHasBeenSet; + + Aws::String m_detailType; + bool m_detailTypeHasBeenSet; + + Aws::String m_detail; + bool m_detailHasBeenSet; + + OpsItemIdentity m_createdBy; + bool m_createdByHasBeenSet; + + Aws::Utils::DateTime m_createdTime; + bool m_createdTimeHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemFilterKey.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemFilterKey.h index c0973876cd0..0bf8d306724 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemFilterKey.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemFilterKey.h @@ -24,13 +24,24 @@ namespace Model OpsItemId, CreatedTime, LastModifiedTime, + ActualStartTime, + ActualEndTime, + PlannedStartTime, + PlannedEndTime, OperationalData, OperationalDataKey, OperationalDataValue, ResourceId, AutomationId, Category, - Severity + Severity, + OpsItemType, + ChangeRequestByRequesterArn, + ChangeRequestByRequesterName, + ChangeRequestByApproverArn, + ChangeRequestByApproverName, + ChangeRequestByTemplate, + ChangeRequestByTargetsResourceGroup }; namespace OpsItemFilterKeyMapper diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemIdentity.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemIdentity.h new file mode 100644 index 00000000000..6a760949f06 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemIdentity.h @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Information about the user or resource that created an OpsItem + * event.

    See Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API OpsItemIdentity + { + public: + OpsItemIdentity(); + OpsItemIdentity(Aws::Utils::Json::JsonView jsonValue); + OpsItemIdentity& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline OpsItemIdentity& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline OpsItemIdentity& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem + * event.

    + */ + inline OpsItemIdentity& WithArn(const char* value) { SetArn(value); return *this;} + + private: + + Aws::String m_arn; + bool m_arnHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemStatus.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemStatus.h index f7f7ccce791..e2c471548e1 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemStatus.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemStatus.h @@ -18,7 +18,22 @@ namespace Model NOT_SET, Open, InProgress, - Resolved + Resolved, + Pending, + TimedOut, + Cancelling, + Cancelled, + Failed, + CompletedWithSuccess, + CompletedWithFailure, + Scheduled, + RunbookInProgress, + PendingChangeCalendarOverride, + ChangeCalendarOverrideApproved, + ChangeCalendarOverrideRejected, + PendingApproval, + Approved, + Rejected }; namespace OpsItemStatusMapper diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemSummary.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemSummary.h index 75df52705aa..0b56cd10b33 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemSummary.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsItemSummary.h @@ -548,6 +548,215 @@ namespace Model */ inline OpsItemSummary& WithSeverity(const char* value) { SetSeverity(value); return *this;} + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline const Aws::String& GetOpsItemType() const{ return m_opsItemType; } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline bool OpsItemTypeHasBeenSet() const { return m_opsItemTypeHasBeenSet; } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(const Aws::String& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = value; } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(Aws::String&& value) { m_opsItemTypeHasBeenSet = true; m_opsItemType = std::move(value); } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline void SetOpsItemType(const char* value) { m_opsItemTypeHasBeenSet = true; m_opsItemType.assign(value); } + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline OpsItemSummary& WithOpsItemType(const Aws::String& value) { SetOpsItemType(value); return *this;} + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline OpsItemSummary& WithOpsItemType(Aws::String&& value) { SetOpsItemType(std::move(value)); return *this;} + + /** + *

    The type of OpsItem. Currently, the only valid values are + * /aws/changerequest and /aws/issue.

    + */ + inline OpsItemSummary& WithOpsItemType(const char* value) { SetOpsItemType(value); return *this;} + + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItemSummary& WithActualStartTime(const Aws::Utils::DateTime& value) { SetActualStartTime(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItemSummary& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;} + + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItemSummary& WithActualEndTime(const Aws::Utils::DateTime& value) { SetActualEndTime(value); return *this;} + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline OpsItemSummary& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItemSummary& WithPlannedStartTime(const Aws::Utils::DateTime& value) { SetPlannedStartTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItemSummary& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItemSummary& WithPlannedEndTime(const Aws::Utils::DateTime& value) { SetPlannedEndTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline OpsItemSummary& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;} + private: Aws::String m_createdBy; @@ -585,6 +794,21 @@ namespace Model Aws::String m_severity; bool m_severityHasBeenSet; + + Aws::String m_opsItemType; + bool m_opsItemTypeHasBeenSet; + + Aws::Utils::DateTime m_actualStartTime; + bool m_actualStartTimeHasBeenSet; + + Aws::Utils::DateTime m_actualEndTime; + bool m_actualEndTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedStartTime; + bool m_plannedStartTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedEndTime; + bool m_plannedEndTimeHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsMetadata.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsMetadata.h index 678c3885e03..6b4901cd4fb 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsMetadata.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/OpsMetadata.h @@ -25,7 +25,7 @@ namespace Model { /** - *

    Operational metadata for an application in AppManager.

    See + *

    Operational metadata for an application in Application Manager.

    See * Also:

    AWS API * Reference

    @@ -40,42 +40,42 @@ namespace Model /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline OpsMetadata& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline OpsMetadata& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** - *

    The ID of the AppManager application.

    + *

    The ID of the Application Manager application.

    */ inline OpsMetadata& WithResourceId(const char* value) { SetResourceId(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/RegisterTaskWithMaintenanceWindowRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/RegisterTaskWithMaintenanceWindowRequest.h index 5a81f88a3c9..15d6e38d181 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/RegisterTaskWithMaintenanceWindowRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/RegisterTaskWithMaintenanceWindowRequest.h @@ -88,7 +88,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline const Aws::Vector& GetTargets() const{ return m_targets; } @@ -98,7 +98,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } @@ -108,7 +108,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline void SetTargets(const Aws::Vector& value) { m_targetsHasBeenSet = true; m_targets = value; } @@ -118,7 +118,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline void SetTargets(Aws::Vector&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); } @@ -128,7 +128,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline RegisterTaskWithMaintenanceWindowRequest& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} @@ -138,7 +138,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline RegisterTaskWithMaintenanceWindowRequest& WithTargets(Aws::Vector&& value) { SetTargets(std::move(value)); return *this;} @@ -148,7 +148,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline RegisterTaskWithMaintenanceWindowRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } @@ -158,7 +158,7 @@ namespace Model * instances using the following format:

    * Key=InstanceIds,Values=<instance-id-1>,<instance-id-2> *

    Specify maintenance window targets using the following format:

    - * Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2> + * Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2> *

    */ inline RegisterTaskWithMaintenanceWindowRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; } diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewInformation.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewInformation.h new file mode 100644 index 00000000000..8cc834f9240 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewInformation.h @@ -0,0 +1,159 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Information about the result of a document review request.

    See + * Also:

    AWS + * API Reference

    + */ + class AWS_SSM_API ReviewInformation + { + public: + ReviewInformation(); + ReviewInformation(Aws::Utils::Json::JsonView jsonValue); + ReviewInformation& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The time that the reviewer took action on the document review request.

    + */ + inline const Aws::Utils::DateTime& GetReviewedTime() const{ return m_reviewedTime; } + + /** + *

    The time that the reviewer took action on the document review request.

    + */ + inline bool ReviewedTimeHasBeenSet() const { return m_reviewedTimeHasBeenSet; } + + /** + *

    The time that the reviewer took action on the document review request.

    + */ + inline void SetReviewedTime(const Aws::Utils::DateTime& value) { m_reviewedTimeHasBeenSet = true; m_reviewedTime = value; } + + /** + *

    The time that the reviewer took action on the document review request.

    + */ + inline void SetReviewedTime(Aws::Utils::DateTime&& value) { m_reviewedTimeHasBeenSet = true; m_reviewedTime = std::move(value); } + + /** + *

    The time that the reviewer took action on the document review request.

    + */ + inline ReviewInformation& WithReviewedTime(const Aws::Utils::DateTime& value) { SetReviewedTime(value); return *this;} + + /** + *

    The time that the reviewer took action on the document review request.

    + */ + inline ReviewInformation& WithReviewedTime(Aws::Utils::DateTime&& value) { SetReviewedTime(std::move(value)); return *this;} + + + /** + *

    The current status of the document review request.

    + */ + inline const ReviewStatus& GetStatus() const{ return m_status; } + + /** + *

    The current status of the document review request.

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The current status of the document review request.

    + */ + inline void SetStatus(const ReviewStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The current status of the document review request.

    + */ + inline void SetStatus(ReviewStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The current status of the document review request.

    + */ + inline ReviewInformation& WithStatus(const ReviewStatus& value) { SetStatus(value); return *this;} + + /** + *

    The current status of the document review request.

    + */ + inline ReviewInformation& WithStatus(ReviewStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline const Aws::String& GetReviewer() const{ return m_reviewer; } + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline bool ReviewerHasBeenSet() const { return m_reviewerHasBeenSet; } + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline void SetReviewer(const Aws::String& value) { m_reviewerHasBeenSet = true; m_reviewer = value; } + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline void SetReviewer(Aws::String&& value) { m_reviewerHasBeenSet = true; m_reviewer = std::move(value); } + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline void SetReviewer(const char* value) { m_reviewerHasBeenSet = true; m_reviewer.assign(value); } + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline ReviewInformation& WithReviewer(const Aws::String& value) { SetReviewer(value); return *this;} + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline ReviewInformation& WithReviewer(Aws::String&& value) { SetReviewer(std::move(value)); return *this;} + + /** + *

    The reviewer assigned to take action on the document review request.

    + */ + inline ReviewInformation& WithReviewer(const char* value) { SetReviewer(value); return *this;} + + private: + + Aws::Utils::DateTime m_reviewedTime; + bool m_reviewedTimeHasBeenSet; + + ReviewStatus m_status; + bool m_statusHasBeenSet; + + Aws::String m_reviewer; + bool m_reviewerHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewStatus.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewStatus.h new file mode 100644 index 00000000000..78f914e4fef --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/ReviewStatus.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + enum class ReviewStatus + { + NOT_SET, + APPROVED, + NOT_REVIEWED, + PENDING, + REJECTED + }; + +namespace ReviewStatusMapper +{ +AWS_SSM_API ReviewStatus GetReviewStatusForName(const Aws::String& name); + +AWS_SSM_API Aws::String GetNameForReviewStatus(ReviewStatus value); +} // namespace ReviewStatusMapper +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/Runbook.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/Runbook.h new file mode 100644 index 00000000000..b16affb5ddf --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/Runbook.h @@ -0,0 +1,507 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + + /** + *

    Information about an Automation runbook (Automation document) used in a + * runbook workflow in Change Manager.

    The Automation runbooks + * specified for the runbook workflow can't run until all required approvals for + * the change request have been received.

    See Also:

    AWS API + * Reference

    + */ + class AWS_SSM_API Runbook + { + public: + Runbook(); + Runbook(Aws::Utils::Json::JsonView jsonValue); + Runbook& operator=(Aws::Utils::Json::JsonView jsonValue); + Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline const Aws::String& GetDocumentName() const{ return m_documentName; } + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; } + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; } + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); } + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); } + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline Runbook& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;} + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline Runbook& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;} + + /** + *

    The name of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline Runbook& WithDocumentName(const char* value) { SetDocumentName(value); return *this;} + + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; } + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; } + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; } + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); } + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); } + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline Runbook& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;} + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline Runbook& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;} + + /** + *

    The version of the Automation runbook (Automation document) used in a runbook + * workflow.

    + */ + inline Runbook& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;} + + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline const Aws::Map>& GetParameters() const{ return m_parameters; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline void SetParameters(const Aws::Map>& value) { m_parametersHasBeenSet = true; m_parameters = value; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline void SetParameters(Aws::Map>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& WithParameters(const Aws::Map>& value) { SetParameters(value); return *this;} + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& WithParameters(Aws::Map>&& value) { SetParameters(std::move(value)); return *this;} + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& AddParameters(const Aws::String& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& AddParameters(Aws::String&& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& AddParameters(const Aws::String& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& AddParameters(Aws::String&& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& AddParameters(const char* key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } + + /** + *

    The key-value map of execution parameters, which were supplied when calling + * StartChangeRequestExecution.

    + */ + inline Runbook& AddParameters(const char* key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } + + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline const Aws::String& GetTargetParameterName() const{ return m_targetParameterName; } + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; } + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline void SetTargetParameterName(const Aws::String& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = value; } + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline void SetTargetParameterName(Aws::String&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::move(value); } + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline void SetTargetParameterName(const char* value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName.assign(value); } + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline Runbook& WithTargetParameterName(const Aws::String& value) { SetTargetParameterName(value); return *this;} + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline Runbook& WithTargetParameterName(Aws::String&& value) { SetTargetParameterName(std::move(value)); return *this;} + + /** + *

    The name of the parameter used as the target resource for the rate-controlled + * runbook workflow. Required if you specify Targets.

    + */ + inline Runbook& WithTargetParameterName(const char* value) { SetTargetParameterName(value); return *this;} + + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline const Aws::Vector& GetTargets() const{ return m_targets; } + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline void SetTargets(const Aws::Vector& value) { m_targetsHasBeenSet = true; m_targets = value; } + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline void SetTargets(Aws::Vector&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); } + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline Runbook& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline Runbook& WithTargets(Aws::Vector&& value) { SetTargets(std::move(value)); return *this;} + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline Runbook& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } + + /** + *

    A key-value mapping to target resources that the Runbook operation performs + * tasks on. Required if you specify TargetParameterName.

    + */ + inline Runbook& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; } + + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; } + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; } + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; } + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); } + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); } + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline Runbook& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;} + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline Runbook& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;} + + /** + *

    The MaxConcurrency value specified by the user when the + * operation started, indicating the maximum number of resources that the runbook + * operation can run on at the same time.

    + */ + inline Runbook& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;} + + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; } + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; } + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; } + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); } + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); } + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline Runbook& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;} + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline Runbook& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;} + + /** + *

    The MaxErrors value specified by the user when the execution + * started, indicating the maximum number of errors that can occur during the + * operation before the updates are stopped or rolled back.

    + */ + inline Runbook& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;} + + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline const Aws::Vector& GetTargetLocations() const{ return m_targetLocations; } + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; } + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline void SetTargetLocations(const Aws::Vector& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; } + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline void SetTargetLocations(Aws::Vector&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); } + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline Runbook& WithTargetLocations(const Aws::Vector& value) { SetTargetLocations(value); return *this;} + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline Runbook& WithTargetLocations(Aws::Vector&& value) { SetTargetLocations(std::move(value)); return *this;} + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline Runbook& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; } + + /** + *

    Information about the AWS Regions and accounts targeted by the current + * Runbook operation.

    + */ + inline Runbook& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_documentName; + bool m_documentNameHasBeenSet; + + Aws::String m_documentVersion; + bool m_documentVersionHasBeenSet; + + Aws::Map> m_parameters; + bool m_parametersHasBeenSet; + + Aws::String m_targetParameterName; + bool m_targetParameterNameHasBeenSet; + + Aws::Vector m_targets; + bool m_targetsHasBeenSet; + + Aws::String m_maxConcurrency; + bool m_maxConcurrencyHasBeenSet; + + Aws::String m_maxErrors; + bool m_maxErrorsHasBeenSet; + + Aws::Vector m_targetLocations; + bool m_targetLocationsHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionRequest.h new file mode 100644 index 00000000000..da7efa5c192 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionRequest.h @@ -0,0 +1,542 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + + /** + */ + class AWS_SSM_API StartChangeRequestExecutionRequest : public SSMRequest + { + public: + StartChangeRequestExecutionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "StartChangeRequestExecution"; } + + Aws::String SerializePayload() const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The date and time specified in the change request to run the Automation + * runbooks.

    The Automation runbooks specified for the runbook + * workflow can't run until all required approvals for the change request have been + * received.

    + */ + inline const Aws::Utils::DateTime& GetScheduledTime() const{ return m_scheduledTime; } + + /** + *

    The date and time specified in the change request to run the Automation + * runbooks.

    The Automation runbooks specified for the runbook + * workflow can't run until all required approvals for the change request have been + * received.

    + */ + inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; } + + /** + *

    The date and time specified in the change request to run the Automation + * runbooks.

    The Automation runbooks specified for the runbook + * workflow can't run until all required approvals for the change request have been + * received.

    + */ + inline void SetScheduledTime(const Aws::Utils::DateTime& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = value; } + + /** + *

    The date and time specified in the change request to run the Automation + * runbooks.

    The Automation runbooks specified for the runbook + * workflow can't run until all required approvals for the change request have been + * received.

    + */ + inline void SetScheduledTime(Aws::Utils::DateTime&& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = std::move(value); } + + /** + *

    The date and time specified in the change request to run the Automation + * runbooks.

    The Automation runbooks specified for the runbook + * workflow can't run until all required approvals for the change request have been + * received.

    + */ + inline StartChangeRequestExecutionRequest& WithScheduledTime(const Aws::Utils::DateTime& value) { SetScheduledTime(value); return *this;} + + /** + *

    The date and time specified in the change request to run the Automation + * runbooks.

    The Automation runbooks specified for the runbook + * workflow can't run until all required approvals for the change request have been + * received.

    + */ + inline StartChangeRequestExecutionRequest& WithScheduledTime(Aws::Utils::DateTime&& value) { SetScheduledTime(std::move(value)); return *this;} + + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline const Aws::String& GetDocumentName() const{ return m_documentName; } + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; } + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; } + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); } + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); } + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline StartChangeRequestExecutionRequest& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;} + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline StartChangeRequestExecutionRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;} + + /** + *

    The name of the change template document to run during the runbook + * workflow.

    + */ + inline StartChangeRequestExecutionRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;} + + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; } + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; } + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; } + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); } + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); } + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline StartChangeRequestExecutionRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;} + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline StartChangeRequestExecutionRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;} + + /** + *

    The version of the change template document to run during the runbook + * workflow.

    + */ + inline StartChangeRequestExecutionRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;} + + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline const Aws::Map>& GetParameters() const{ return m_parameters; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline void SetParameters(const Aws::Map>& value) { m_parametersHasBeenSet = true; m_parameters = value; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline void SetParameters(Aws::Map>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& WithParameters(const Aws::Map>& value) { SetParameters(value); return *this;} + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& WithParameters(Aws::Map>&& value) { SetParameters(std::move(value)); return *this;} + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& AddParameters(const Aws::String& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& AddParameters(Aws::String&& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& AddParameters(const Aws::String& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& AddParameters(Aws::String&& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& AddParameters(const char* key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } + + /** + *

    A key-value map of parameters that match the declared parameters in the + * change template document.

    + */ + inline StartChangeRequestExecutionRequest& AddParameters(const char* key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } + + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline const Aws::String& GetChangeRequestName() const{ return m_changeRequestName; } + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; } + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline void SetChangeRequestName(const Aws::String& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = value; } + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline void SetChangeRequestName(Aws::String&& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = std::move(value); } + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline void SetChangeRequestName(const char* value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName.assign(value); } + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline StartChangeRequestExecutionRequest& WithChangeRequestName(const Aws::String& value) { SetChangeRequestName(value); return *this;} + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline StartChangeRequestExecutionRequest& WithChangeRequestName(Aws::String&& value) { SetChangeRequestName(std::move(value)); return *this;} + + /** + *

    The name of the change request associated with the runbook workflow to be + * run.

    + */ + inline StartChangeRequestExecutionRequest& WithChangeRequestName(const char* value) { SetChangeRequestName(value); return *this;} + + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline StartChangeRequestExecutionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline StartChangeRequestExecutionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    The user-provided idempotency token. The token must be unique, is case + * insensitive, enforces the UUID format, and can't be reused.

    + */ + inline StartChangeRequestExecutionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline const Aws::Vector& GetRunbooks() const{ return m_runbooks; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline void SetRunbooks(const Aws::Vector& value) { m_runbooksHasBeenSet = true; m_runbooks = value; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline void SetRunbooks(Aws::Vector&& value) { m_runbooksHasBeenSet = true; m_runbooks = std::move(value); } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline StartChangeRequestExecutionRequest& WithRunbooks(const Aws::Vector& value) { SetRunbooks(value); return *this;} + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline StartChangeRequestExecutionRequest& WithRunbooks(Aws::Vector&& value) { SetRunbooks(std::move(value)); return *this;} + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline StartChangeRequestExecutionRequest& AddRunbooks(const Runbook& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(value); return *this; } + + /** + *

    Information about the Automation runbooks (Automation documents) that are run + * during the runbook workflow.

    The Automation runbooks specified for + * the runbook workflow can't run until all required approvals for the change + * request have been received.

    + */ + inline StartChangeRequestExecutionRequest& AddRunbooks(Runbook&& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(std::move(value)); return *this; } + + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline StartChangeRequestExecutionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline StartChangeRequestExecutionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline StartChangeRequestExecutionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    Optional metadata that you assign to a resource. You can specify a maximum of + * five tags for a change request. Tags enable you to categorize a resource in + * different ways, such as by purpose, owner, or environment. For example, you + * might want to tag a change request to identify an environment or target AWS + * Region. In this case, you could specify the following key-value pairs:

      + *
    • Key=Environment,Value=Production

    • + * Key=Region,Value=us-east-2

    + */ + inline StartChangeRequestExecutionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::Utils::DateTime m_scheduledTime; + bool m_scheduledTimeHasBeenSet; + + Aws::String m_documentName; + bool m_documentNameHasBeenSet; + + Aws::String m_documentVersion; + bool m_documentVersionHasBeenSet; + + Aws::Map> m_parameters; + bool m_parametersHasBeenSet; + + Aws::String m_changeRequestName; + bool m_changeRequestNameHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + + Aws::Vector m_runbooks; + bool m_runbooksHasBeenSet; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionResult.h new file mode 100644 index 00000000000..a77161b95ad --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/StartChangeRequestExecutionResult.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + class AWS_SSM_API StartChangeRequestExecutionResult + { + public: + StartChangeRequestExecutionResult(); + StartChangeRequestExecutionResult(const Aws::AmazonWebServiceResult& result); + StartChangeRequestExecutionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline const Aws::String& GetAutomationExecutionId() const{ return m_automationExecutionId; } + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline void SetAutomationExecutionId(const Aws::String& value) { m_automationExecutionId = value; } + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline void SetAutomationExecutionId(Aws::String&& value) { m_automationExecutionId = std::move(value); } + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline void SetAutomationExecutionId(const char* value) { m_automationExecutionId.assign(value); } + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline StartChangeRequestExecutionResult& WithAutomationExecutionId(const Aws::String& value) { SetAutomationExecutionId(value); return *this;} + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline StartChangeRequestExecutionResult& WithAutomationExecutionId(Aws::String&& value) { SetAutomationExecutionId(std::move(value)); return *this;} + + /** + *

    The unique ID of a runbook workflow operation. (A runbook workflow is a type + * of Automation operation.)

    + */ + inline StartChangeRequestExecutionResult& WithAutomationExecutionId(const char* value) { SetAutomationExecutionId(value); return *this;} + + private: + + Aws::String m_automationExecutionId; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/TargetLocation.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/TargetLocation.h index baef714a276..03ba277b349 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/TargetLocation.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/TargetLocation.h @@ -133,139 +133,155 @@ namespace Model /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline const Aws::String& GetTargetLocationMaxConcurrency() const{ return m_targetLocationMaxConcurrency; } /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline bool TargetLocationMaxConcurrencyHasBeenSet() const { return m_targetLocationMaxConcurrencyHasBeenSet; } /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline void SetTargetLocationMaxConcurrency(const Aws::String& value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency = value; } /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline void SetTargetLocationMaxConcurrency(Aws::String&& value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency = std::move(value); } /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline void SetTargetLocationMaxConcurrency(const char* value) { m_targetLocationMaxConcurrencyHasBeenSet = true; m_targetLocationMaxConcurrency.assign(value); } /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline TargetLocation& WithTargetLocationMaxConcurrency(const Aws::String& value) { SetTargetLocationMaxConcurrency(value); return *this;} /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline TargetLocation& WithTargetLocationMaxConcurrency(Aws::String&& value) { SetTargetLocationMaxConcurrency(std::move(value)); return *this;} /** *

    The maximum number of AWS accounts and AWS regions allowed to run the - * Automation concurrently

    + * Automation concurrently.

    */ inline TargetLocation& WithTargetLocationMaxConcurrency(const char* value) { SetTargetLocationMaxConcurrency(value); return *this;} /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline const Aws::String& GetTargetLocationMaxErrors() const{ return m_targetLocationMaxErrors; } /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline bool TargetLocationMaxErrorsHasBeenSet() const { return m_targetLocationMaxErrorsHasBeenSet; } /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline void SetTargetLocationMaxErrors(const Aws::String& value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors = value; } /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline void SetTargetLocationMaxErrors(Aws::String&& value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors = std::move(value); } /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline void SetTargetLocationMaxErrors(const char* value) { m_targetLocationMaxErrorsHasBeenSet = true; m_targetLocationMaxErrors.assign(value); } /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline TargetLocation& WithTargetLocationMaxErrors(const Aws::String& value) { SetTargetLocationMaxErrors(value); return *this;} /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline TargetLocation& WithTargetLocationMaxErrors(Aws::String&& value) { SetTargetLocationMaxErrors(std::move(value)); return *this;} /** *

    The maximum number of errors allowed before the system stops queueing - * additional Automation executions for the currently running Automation.

    + * additional Automation executions for the currently running Automation.

    */ inline TargetLocation& WithTargetLocationMaxErrors(const char* value) { SetTargetLocationMaxErrors(value); return *this;} /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline const Aws::String& GetExecutionRoleName() const{ return m_executionRoleName; } /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; } /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline void SetExecutionRoleName(const Aws::String& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = value; } /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline void SetExecutionRoleName(Aws::String&& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = std::move(value); } /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline void SetExecutionRoleName(const char* value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName.assign(value); } /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline TargetLocation& WithExecutionRoleName(const Aws::String& value) { SetExecutionRoleName(value); return *this;} /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline TargetLocation& WithExecutionRoleName(Aws::String&& value) { SetExecutionRoleName(std::move(value)); return *this;} /** - *

    The Automation execution role used by the currently running Automation.

    + *

    The Automation execution role used by the currently running Automation. If + * not specified, the default value is + * AWS-SystemsManager-AutomationExecutionRole.

    */ inline TargetLocation& WithExecutionRoleName(const char* value) { SetExecutionRoleName(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h index cf3336354b4..9d40c33fdea 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateAssociationRequest.h @@ -13,6 +13,7 @@ #include #include #include +#include #include namespace Aws @@ -1020,6 +1021,63 @@ namespace Model */ inline UpdateAssociationRequest& WithApplyOnlyAtCronInterval(bool value) { SetApplyOnlyAtCronInterval(value); return *this;} + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline const Aws::Vector& GetTargetLocations() const{ return m_targetLocations; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline void SetTargetLocations(const Aws::Vector& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline void SetTargetLocations(Aws::Vector&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline UpdateAssociationRequest& WithTargetLocations(const Aws::Vector& value) { SetTargetLocations(value); return *this;} + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline UpdateAssociationRequest& WithTargetLocations(Aws::Vector&& value) { SetTargetLocations(std::move(value)); return *this;} + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline UpdateAssociationRequest& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; } + + /** + *

    A location is a combination of AWS Regions and AWS accounts where you want to + * run the association. Use this action to update an association in multiple + * Regions and multiple accounts.

    + */ + inline UpdateAssociationRequest& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; } + private: Aws::String m_associationId; @@ -1066,6 +1124,9 @@ namespace Model bool m_applyOnlyAtCronInterval; bool m_applyOnlyAtCronIntervalHasBeenSet; + + Aws::Vector m_targetLocations; + bool m_targetLocationsHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataRequest.h new file mode 100644 index 00000000000..03e7e04a6a7 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataRequest.h @@ -0,0 +1,164 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + + /** + */ + class AWS_SSM_API UpdateDocumentMetadataRequest : public SSMRequest + { + public: + UpdateDocumentMetadataRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateDocumentMetadata"; } + + Aws::String SerializePayload() const override; + + Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline UpdateDocumentMetadataRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline UpdateDocumentMetadataRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The name of the document for which a version is to be updated.

    + */ + inline UpdateDocumentMetadataRequest& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    The version of a document to update.

    + */ + inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; } + + /** + *

    The version of a document to update.

    + */ + inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; } + + /** + *

    The version of a document to update.

    + */ + inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; } + + /** + *

    The version of a document to update.

    + */ + inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); } + + /** + *

    The version of a document to update.

    + */ + inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); } + + /** + *

    The version of a document to update.

    + */ + inline UpdateDocumentMetadataRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;} + + /** + *

    The version of a document to update.

    + */ + inline UpdateDocumentMetadataRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;} + + /** + *

    The version of a document to update.

    + */ + inline UpdateDocumentMetadataRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;} + + + /** + *

    The document review details to update.

    + */ + inline const DocumentReviews& GetDocumentReviews() const{ return m_documentReviews; } + + /** + *

    The document review details to update.

    + */ + inline bool DocumentReviewsHasBeenSet() const { return m_documentReviewsHasBeenSet; } + + /** + *

    The document review details to update.

    + */ + inline void SetDocumentReviews(const DocumentReviews& value) { m_documentReviewsHasBeenSet = true; m_documentReviews = value; } + + /** + *

    The document review details to update.

    + */ + inline void SetDocumentReviews(DocumentReviews&& value) { m_documentReviewsHasBeenSet = true; m_documentReviews = std::move(value); } + + /** + *

    The document review details to update.

    + */ + inline UpdateDocumentMetadataRequest& WithDocumentReviews(const DocumentReviews& value) { SetDocumentReviews(value); return *this;} + + /** + *

    The document review details to update.

    + */ + inline UpdateDocumentMetadataRequest& WithDocumentReviews(DocumentReviews&& value) { SetDocumentReviews(std::move(value)); return *this;} + + private: + + Aws::String m_name; + bool m_nameHasBeenSet; + + Aws::String m_documentVersion; + bool m_documentVersionHasBeenSet; + + DocumentReviews m_documentReviews; + bool m_documentReviewsHasBeenSet; + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataResult.h new file mode 100644 index 00000000000..1d0efc58cb6 --- /dev/null +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateDocumentMetadataResult.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace SSM +{ +namespace Model +{ + class AWS_SSM_API UpdateDocumentMetadataResult + { + public: + UpdateDocumentMetadataResult(); + UpdateDocumentMetadataResult(const Aws::AmazonWebServiceResult& result); + UpdateDocumentMetadataResult& operator=(const Aws::AmazonWebServiceResult& result); + + }; + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowRequest.h index d75e2363d9e..6ecd1c9be36 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowRequest.h @@ -160,8 +160,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline const Aws::String& GetStartDate() const{ return m_startDate; } @@ -169,8 +169,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; } @@ -178,8 +178,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetStartDate(const Aws::String& value) { m_startDateHasBeenSet = true; m_startDate = value; } @@ -187,8 +187,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetStartDate(Aws::String&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); } @@ -196,8 +196,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetStartDate(const char* value) { m_startDateHasBeenSet = true; m_startDate.assign(value); } @@ -205,8 +205,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowRequest& WithStartDate(const Aws::String& value) { SetStartDate(value); return *this;} @@ -214,8 +214,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowRequest& WithStartDate(Aws::String&& value) { SetStartDate(std::move(value)); return *this;} @@ -223,8 +223,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowRequest& WithStartDate(const char* value) { SetStartDate(value); return *this;} @@ -339,8 +339,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; } @@ -348,8 +348,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline bool ScheduleTimezoneHasBeenSet() const { return m_scheduleTimezoneHasBeenSet; } @@ -357,8 +357,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = value; } @@ -366,8 +366,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone = std::move(value); } @@ -375,8 +375,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const char* value) { m_scheduleTimezoneHasBeenSet = true; m_scheduleTimezone.assign(value); } @@ -384,8 +384,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowRequest& WithScheduleTimezone(const Aws::String& value) { SetScheduleTimezone(value); return *this;} @@ -393,8 +393,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowRequest& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;} @@ -402,8 +402,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowRequest& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;} @@ -413,9 +413,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline int GetScheduleOffset() const{ return m_scheduleOffset; } @@ -423,9 +423,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; } @@ -433,9 +433,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; } @@ -443,9 +443,9 @@ namespace Model *

    The number of days to wait after the date and time specified by a CRON * expression before running the maintenance window.

    For example, the * following cron expression schedules a maintenance window to run the third - * Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 - * *)

    If the schedule offset is 2, the maintenance - * window won't run until two days later.

    + * Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *) + *

    If the schedule offset is 2, the maintenance window won't + * run until two days later.

    */ inline UpdateMaintenanceWindowRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowResult.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowResult.h index 38482dcfb91..311f359f5e8 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowResult.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateMaintenanceWindowResult.h @@ -286,8 +286,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline const Aws::String& GetScheduleTimezone() const{ return m_scheduleTimezone; } @@ -295,8 +295,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const Aws::String& value) { m_scheduleTimezone = value; } @@ -304,8 +304,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(Aws::String&& value) { m_scheduleTimezone = std::move(value); } @@ -313,8 +313,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline void SetScheduleTimezone(const char* value) { m_scheduleTimezone.assign(value); } @@ -322,8 +322,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowResult& WithScheduleTimezone(const Aws::String& value) { SetScheduleTimezone(value); return *this;} @@ -331,8 +331,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowResult& WithScheduleTimezone(Aws::String&& value) { SetScheduleTimezone(std::move(value)); return *this;} @@ -340,8 +340,8 @@ namespace Model /** *

    The time zone that the scheduled maintenance window executions are based on, * in Internet Assigned Numbers Authority (IANA) format. For example: - * "America/Los_Angeles", "etc/UTC", or "Asia/Seoul". For more information, see the - * Time Zone Database on the IANA + * "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA * website.

    */ inline UpdateMaintenanceWindowResult& WithScheduleTimezone(const char* value) { SetScheduleTimezone(value); return *this;} diff --git a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateOpsItemRequest.h b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateOpsItemRequest.h index 6220dd18e29..1f1b216685b 100644 --- a/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateOpsItemRequest.h +++ b/aws-cpp-sdk-ssm/include/aws/ssm/model/UpdateOpsItemRequest.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -775,6 +776,166 @@ namespace Model */ inline UpdateOpsItemRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualStartTime() const{ return m_actualStartTime; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualStartTimeHasBeenSet() const { return m_actualStartTimeHasBeenSet; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(const Aws::Utils::DateTime& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = value; } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualStartTime(Aws::Utils::DateTime&& value) { m_actualStartTimeHasBeenSet = true; m_actualStartTime = std::move(value); } + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithActualStartTime(const Aws::Utils::DateTime& value) { SetActualStartTime(value); return *this;} + + /** + *

    The time a runbook workflow started. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithActualStartTime(Aws::Utils::DateTime&& value) { SetActualStartTime(std::move(value)); return *this;} + + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetActualEndTime() const{ return m_actualEndTime; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline bool ActualEndTimeHasBeenSet() const { return m_actualEndTimeHasBeenSet; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(const Aws::Utils::DateTime& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = value; } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline void SetActualEndTime(Aws::Utils::DateTime&& value) { m_actualEndTimeHasBeenSet = true; m_actualEndTime = std::move(value); } + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithActualEndTime(const Aws::Utils::DateTime& value) { SetActualEndTime(value); return *this;} + + /** + *

    The time a runbook workflow ended. Currently reported only for the OpsItem + * type /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithActualEndTime(Aws::Utils::DateTime&& value) { SetActualEndTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedStartTime() const{ return m_plannedStartTime; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedStartTimeHasBeenSet() const { return m_plannedStartTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(const Aws::Utils::DateTime& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedStartTime(Aws::Utils::DateTime&& value) { m_plannedStartTimeHasBeenSet = true; m_plannedStartTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithPlannedStartTime(const Aws::Utils::DateTime& value) { SetPlannedStartTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to start. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithPlannedStartTime(Aws::Utils::DateTime&& value) { SetPlannedStartTime(std::move(value)); return *this;} + + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline const Aws::Utils::DateTime& GetPlannedEndTime() const{ return m_plannedEndTime; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline bool PlannedEndTimeHasBeenSet() const { return m_plannedEndTimeHasBeenSet; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(const Aws::Utils::DateTime& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = value; } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline void SetPlannedEndTime(Aws::Utils::DateTime&& value) { m_plannedEndTimeHasBeenSet = true; m_plannedEndTime = std::move(value); } + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithPlannedEndTime(const Aws::Utils::DateTime& value) { SetPlannedEndTime(value); return *this;} + + /** + *

    The time specified in a change request for a runbook workflow to end. + * Currently supported only for the OpsItem type + * /aws/changerequest.

    + */ + inline UpdateOpsItemRequest& WithPlannedEndTime(Aws::Utils::DateTime&& value) { SetPlannedEndTime(std::move(value)); return *this;} + private: Aws::String m_description; @@ -809,6 +970,18 @@ namespace Model Aws::String m_severity; bool m_severityHasBeenSet; + + Aws::Utils::DateTime m_actualStartTime; + bool m_actualStartTimeHasBeenSet; + + Aws::Utils::DateTime m_actualEndTime; + bool m_actualEndTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedStartTime; + bool m_plannedStartTimeHasBeenSet; + + Aws::Utils::DateTime m_plannedEndTime; + bool m_plannedEndTimeHasBeenSet; }; } // namespace Model diff --git a/aws-cpp-sdk-ssm/source/SSMClient.cpp b/aws-cpp-sdk-ssm/source/SSMClient.cpp index 52a714052d7..7483eff8f9d 100644 --- a/aws-cpp-sdk-ssm/source/SSMClient.cpp +++ b/aws-cpp-sdk-ssm/source/SSMClient.cpp @@ -109,9 +109,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include @@ -131,6 +133,7 @@ #include #include #include +#include #include #include #include @@ -138,6 +141,7 @@ #include #include #include +#include #include #include #include @@ -2624,6 +2628,33 @@ void SSMClient::ListComplianceSummariesAsyncHelper(const ListComplianceSummaries handler(this, request, ListComplianceSummaries(request), context); } +ListDocumentMetadataHistoryOutcome SSMClient::ListDocumentMetadataHistory(const ListDocumentMetadataHistoryRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListDocumentMetadataHistoryOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +ListDocumentMetadataHistoryOutcomeCallable SSMClient::ListDocumentMetadataHistoryCallable(const ListDocumentMetadataHistoryRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListDocumentMetadataHistoryOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDocumentMetadataHistory(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void SSMClient::ListDocumentMetadataHistoryAsync(const ListDocumentMetadataHistoryRequest& request, const ListDocumentMetadataHistoryResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListDocumentMetadataHistoryAsyncHelper( request, handler, context ); } ); +} + +void SSMClient::ListDocumentMetadataHistoryAsyncHelper(const ListDocumentMetadataHistoryRequest& request, const ListDocumentMetadataHistoryResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListDocumentMetadataHistory(request), context); +} + ListDocumentVersionsOutcome SSMClient::ListDocumentVersions(const ListDocumentVersionsRequest& request) const { Aws::Http::URI uri = m_uri; @@ -2705,6 +2736,33 @@ void SSMClient::ListInventoryEntriesAsyncHelper(const ListInventoryEntriesReques handler(this, request, ListInventoryEntries(request), context); } +ListOpsItemEventsOutcome SSMClient::ListOpsItemEvents(const ListOpsItemEventsRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/"; + uri.SetPath(uri.GetPath() + ss.str()); + return ListOpsItemEventsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +ListOpsItemEventsOutcomeCallable SSMClient::ListOpsItemEventsCallable(const ListOpsItemEventsRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< ListOpsItemEventsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListOpsItemEvents(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void SSMClient::ListOpsItemEventsAsync(const ListOpsItemEventsRequest& request, const ListOpsItemEventsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->ListOpsItemEventsAsyncHelper( request, handler, context ); } ); +} + +void SSMClient::ListOpsItemEventsAsyncHelper(const ListOpsItemEventsRequest& request, const ListOpsItemEventsResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, ListOpsItemEvents(request), context); +} + ListOpsMetadataOutcome SSMClient::ListOpsMetadata(const ListOpsMetadataRequest& request) const { Aws::Http::URI uri = m_uri; @@ -3218,6 +3276,33 @@ void SSMClient::StartAutomationExecutionAsyncHelper(const StartAutomationExecuti handler(this, request, StartAutomationExecution(request), context); } +StartChangeRequestExecutionOutcome SSMClient::StartChangeRequestExecution(const StartChangeRequestExecutionRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/"; + uri.SetPath(uri.GetPath() + ss.str()); + return StartChangeRequestExecutionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +StartChangeRequestExecutionOutcomeCallable SSMClient::StartChangeRequestExecutionCallable(const StartChangeRequestExecutionRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< StartChangeRequestExecutionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartChangeRequestExecution(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void SSMClient::StartChangeRequestExecutionAsync(const StartChangeRequestExecutionRequest& request, const StartChangeRequestExecutionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->StartChangeRequestExecutionAsyncHelper( request, handler, context ); } ); +} + +void SSMClient::StartChangeRequestExecutionAsyncHelper(const StartChangeRequestExecutionRequest& request, const StartChangeRequestExecutionResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, StartChangeRequestExecution(request), context); +} + StartSessionOutcome SSMClient::StartSession(const StartSessionRequest& request) const { Aws::Http::URI uri = m_uri; @@ -3407,6 +3492,33 @@ void SSMClient::UpdateDocumentDefaultVersionAsyncHelper(const UpdateDocumentDefa handler(this, request, UpdateDocumentDefaultVersion(request), context); } +UpdateDocumentMetadataOutcome SSMClient::UpdateDocumentMetadata(const UpdateDocumentMetadataRequest& request) const +{ + Aws::Http::URI uri = m_uri; + Aws::StringStream ss; + ss << "/"; + uri.SetPath(uri.GetPath() + ss.str()); + return UpdateDocumentMetadataOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); +} + +UpdateDocumentMetadataOutcomeCallable SSMClient::UpdateDocumentMetadataCallable(const UpdateDocumentMetadataRequest& request) const +{ + auto task = Aws::MakeShared< std::packaged_task< UpdateDocumentMetadataOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateDocumentMetadata(request); } ); + auto packagedFunction = [task]() { (*task)(); }; + m_executor->Submit(packagedFunction); + return task->get_future(); +} + +void SSMClient::UpdateDocumentMetadataAsync(const UpdateDocumentMetadataRequest& request, const UpdateDocumentMetadataResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + m_executor->Submit( [this, request, handler, context](){ this->UpdateDocumentMetadataAsyncHelper( request, handler, context ); } ); +} + +void SSMClient::UpdateDocumentMetadataAsyncHelper(const UpdateDocumentMetadataRequest& request, const UpdateDocumentMetadataResponseReceivedHandler& handler, const std::shared_ptr& context) const +{ + handler(this, request, UpdateDocumentMetadata(request), context); +} + UpdateMaintenanceWindowOutcome SSMClient::UpdateMaintenanceWindow(const UpdateMaintenanceWindowRequest& request) const { Aws::Http::URI uri = m_uri; diff --git a/aws-cpp-sdk-ssm/source/SSMErrors.cpp b/aws-cpp-sdk-ssm/source/SSMErrors.cpp index a6419a39892..3e8e8d746a2 100644 --- a/aws-cpp-sdk-ssm/source/SSMErrors.cpp +++ b/aws-cpp-sdk-ssm/source/SSMErrors.cpp @@ -115,6 +115,7 @@ static const int FEATURE_NOT_AVAILABLE_HASH = HashingUtils::HashString("FeatureN static const int INVALID_PLUGIN_NAME_HASH = HashingUtils::HashString("InvalidPluginName"); static const int INVALID_DOCUMENT_HASH = HashingUtils::HashString("InvalidDocument"); static const int INVALID_AUTOMATION_SIGNAL_HASH = HashingUtils::HashString("InvalidAutomationSignalException"); +static const int AUTOMATION_DEFINITION_NOT_APPROVED_HASH = HashingUtils::HashString("AutomationDefinitionNotApprovedException"); static const int AUTOMATION_EXECUTION_NOT_FOUND_HASH = HashingUtils::HashString("AutomationExecutionNotFoundException"); static const int INVALID_INVENTORY_ITEM_CONTEXT_HASH = HashingUtils::HashString("InvalidInventoryItemContextException"); static const int RESOURCE_IN_USE_HASH = HashingUtils::HashString("ResourceInUseException"); @@ -338,6 +339,10 @@ AWSError GetErrorForName(const char* errorName) { return AWSError(static_cast(SSMErrors::INVALID_AUTOMATION_SIGNAL), false); } + else if (hashCode == AUTOMATION_DEFINITION_NOT_APPROVED_HASH) + { + return AWSError(static_cast(SSMErrors::AUTOMATION_DEFINITION_NOT_APPROVED), false); + } else if (hashCode == AUTOMATION_EXECUTION_NOT_FOUND_HASH) { return AWSError(static_cast(SSMErrors::AUTOMATION_EXECUTION_NOT_FOUND), false); diff --git a/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp b/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp index 9f3b6843849..5fda4e3b237 100644 --- a/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp +++ b/aws-cpp-sdk-ssm/source/model/AssociationDescription.cpp @@ -43,7 +43,8 @@ AssociationDescription::AssociationDescription() : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { } @@ -72,7 +73,8 @@ AssociationDescription::AssociationDescription(JsonView jsonValue) : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { *this = jsonValue; } @@ -246,6 +248,16 @@ AssociationDescription& AssociationDescription::operator =(JsonView jsonValue) m_applyOnlyAtCronIntervalHasBeenSet = true; } + if(jsonValue.ValueExists("TargetLocations")) + { + Array targetLocationsJsonList = jsonValue.GetArray("TargetLocations"); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + m_targetLocations.push_back(targetLocationsJsonList[targetLocationsIndex].AsObject()); + } + m_targetLocationsHasBeenSet = true; + } + return *this; } @@ -394,6 +406,17 @@ JsonValue AssociationDescription::Jsonize() const } + if(m_targetLocationsHasBeenSet) + { + Array targetLocationsJsonList(m_targetLocations.size()); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + targetLocationsJsonList[targetLocationsIndex].AsObject(m_targetLocations[targetLocationsIndex].Jsonize()); + } + payload.WithArray("TargetLocations", std::move(targetLocationsJsonList)); + + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp b/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp index 43e8c95a70b..eba7f5953c5 100644 --- a/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp +++ b/aws-cpp-sdk-ssm/source/model/AssociationVersionInfo.cpp @@ -36,7 +36,8 @@ AssociationVersionInfo::AssociationVersionInfo() : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { } @@ -58,7 +59,8 @@ AssociationVersionInfo::AssociationVersionInfo(JsonView jsonValue) : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { *this = jsonValue; } @@ -183,6 +185,16 @@ AssociationVersionInfo& AssociationVersionInfo::operator =(JsonView jsonValue) m_applyOnlyAtCronIntervalHasBeenSet = true; } + if(jsonValue.ValueExists("TargetLocations")) + { + Array targetLocationsJsonList = jsonValue.GetArray("TargetLocations"); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + m_targetLocations.push_back(targetLocationsJsonList[targetLocationsIndex].AsObject()); + } + m_targetLocationsHasBeenSet = true; + } + return *this; } @@ -292,6 +304,17 @@ JsonValue AssociationVersionInfo::Jsonize() const } + if(m_targetLocationsHasBeenSet) + { + Array targetLocationsJsonList(m_targetLocations.size()); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + targetLocationsJsonList[targetLocationsIndex].AsObject(m_targetLocations[targetLocationsIndex].Jsonize()); + } + payload.WithArray("TargetLocations", std::move(targetLocationsJsonList)); + + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/AutomationExecution.cpp b/aws-cpp-sdk-ssm/source/model/AutomationExecution.cpp index db79e1f92c4..7761d6d8c98 100644 --- a/aws-cpp-sdk-ssm/source/model/AutomationExecution.cpp +++ b/aws-cpp-sdk-ssm/source/model/AutomationExecution.cpp @@ -46,7 +46,14 @@ AutomationExecution::AutomationExecution() : m_maxErrorsHasBeenSet(false), m_targetHasBeenSet(false), m_targetLocationsHasBeenSet(false), - m_progressCountersHasBeenSet(false) + m_progressCountersHasBeenSet(false), + m_automationSubtype(AutomationSubtype::NOT_SET), + m_automationSubtypeHasBeenSet(false), + m_scheduledTimeHasBeenSet(false), + m_runbooksHasBeenSet(false), + m_opsItemIdHasBeenSet(false), + m_associationIdHasBeenSet(false), + m_changeRequestNameHasBeenSet(false) { } @@ -78,7 +85,14 @@ AutomationExecution::AutomationExecution(JsonView jsonValue) : m_maxErrorsHasBeenSet(false), m_targetHasBeenSet(false), m_targetLocationsHasBeenSet(false), - m_progressCountersHasBeenSet(false) + m_progressCountersHasBeenSet(false), + m_automationSubtype(AutomationSubtype::NOT_SET), + m_automationSubtypeHasBeenSet(false), + m_scheduledTimeHasBeenSet(false), + m_runbooksHasBeenSet(false), + m_opsItemIdHasBeenSet(false), + m_associationIdHasBeenSet(false), + m_changeRequestNameHasBeenSet(false) { *this = jsonValue; } @@ -305,6 +319,51 @@ AutomationExecution& AutomationExecution::operator =(JsonView jsonValue) m_progressCountersHasBeenSet = true; } + if(jsonValue.ValueExists("AutomationSubtype")) + { + m_automationSubtype = AutomationSubtypeMapper::GetAutomationSubtypeForName(jsonValue.GetString("AutomationSubtype")); + + m_automationSubtypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ScheduledTime")) + { + m_scheduledTime = jsonValue.GetDouble("ScheduledTime"); + + m_scheduledTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Runbooks")) + { + Array runbooksJsonList = jsonValue.GetArray("Runbooks"); + for(unsigned runbooksIndex = 0; runbooksIndex < runbooksJsonList.GetLength(); ++runbooksIndex) + { + m_runbooks.push_back(runbooksJsonList[runbooksIndex].AsObject()); + } + m_runbooksHasBeenSet = true; + } + + if(jsonValue.ValueExists("OpsItemId")) + { + m_opsItemId = jsonValue.GetString("OpsItemId"); + + m_opsItemIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AssociationId")) + { + m_associationId = jsonValue.GetString("AssociationId"); + + m_associationIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ChangeRequestName")) + { + m_changeRequestName = jsonValue.GetString("ChangeRequestName"); + + m_changeRequestNameHasBeenSet = true; + } + return *this; } @@ -508,6 +567,45 @@ JsonValue AutomationExecution::Jsonize() const } + if(m_automationSubtypeHasBeenSet) + { + payload.WithString("AutomationSubtype", AutomationSubtypeMapper::GetNameForAutomationSubtype(m_automationSubtype)); + } + + if(m_scheduledTimeHasBeenSet) + { + payload.WithDouble("ScheduledTime", m_scheduledTime.SecondsWithMSPrecision()); + } + + if(m_runbooksHasBeenSet) + { + Array runbooksJsonList(m_runbooks.size()); + for(unsigned runbooksIndex = 0; runbooksIndex < runbooksJsonList.GetLength(); ++runbooksIndex) + { + runbooksJsonList[runbooksIndex].AsObject(m_runbooks[runbooksIndex].Jsonize()); + } + payload.WithArray("Runbooks", std::move(runbooksJsonList)); + + } + + if(m_opsItemIdHasBeenSet) + { + payload.WithString("OpsItemId", m_opsItemId); + + } + + if(m_associationIdHasBeenSet) + { + payload.WithString("AssociationId", m_associationId); + + } + + if(m_changeRequestNameHasBeenSet) + { + payload.WithString("ChangeRequestName", m_changeRequestName); + + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp b/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp index 35425f36ff0..aeb527088ea 100644 --- a/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp +++ b/aws-cpp-sdk-ssm/source/model/AutomationExecutionFilterKey.cpp @@ -30,6 +30,8 @@ namespace Aws static const int AutomationType_HASH = HashingUtils::HashString("AutomationType"); static const int TagKey_HASH = HashingUtils::HashString("TagKey"); static const int TargetResourceGroup_HASH = HashingUtils::HashString("TargetResourceGroup"); + static const int AutomationSubtype_HASH = HashingUtils::HashString("AutomationSubtype"); + static const int OpsItemId_HASH = HashingUtils::HashString("OpsItemId"); AutomationExecutionFilterKey GetAutomationExecutionFilterKeyForName(const Aws::String& name) @@ -75,6 +77,14 @@ namespace Aws { return AutomationExecutionFilterKey::TargetResourceGroup; } + else if (hashCode == AutomationSubtype_HASH) + { + return AutomationExecutionFilterKey::AutomationSubtype; + } + else if (hashCode == OpsItemId_HASH) + { + return AutomationExecutionFilterKey::OpsItemId; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -109,6 +119,10 @@ namespace Aws return "TagKey"; case AutomationExecutionFilterKey::TargetResourceGroup: return "TargetResourceGroup"; + case AutomationExecutionFilterKey::AutomationSubtype: + return "AutomationSubtype"; + case AutomationExecutionFilterKey::OpsItemId: + return "OpsItemId"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-ssm/source/model/AutomationExecutionMetadata.cpp b/aws-cpp-sdk-ssm/source/model/AutomationExecutionMetadata.cpp index 69833229cc4..10df42c203d 100644 --- a/aws-cpp-sdk-ssm/source/model/AutomationExecutionMetadata.cpp +++ b/aws-cpp-sdk-ssm/source/model/AutomationExecutionMetadata.cpp @@ -43,7 +43,14 @@ AutomationExecutionMetadata::AutomationExecutionMetadata() : m_maxErrorsHasBeenSet(false), m_targetHasBeenSet(false), m_automationType(AutomationType::NOT_SET), - m_automationTypeHasBeenSet(false) + m_automationTypeHasBeenSet(false), + m_automationSubtype(AutomationSubtype::NOT_SET), + m_automationSubtypeHasBeenSet(false), + m_scheduledTimeHasBeenSet(false), + m_runbooksHasBeenSet(false), + m_opsItemIdHasBeenSet(false), + m_associationIdHasBeenSet(false), + m_changeRequestNameHasBeenSet(false) { } @@ -72,7 +79,14 @@ AutomationExecutionMetadata::AutomationExecutionMetadata(JsonView jsonValue) : m_maxErrorsHasBeenSet(false), m_targetHasBeenSet(false), m_automationType(AutomationType::NOT_SET), - m_automationTypeHasBeenSet(false) + m_automationTypeHasBeenSet(false), + m_automationSubtype(AutomationSubtype::NOT_SET), + m_automationSubtypeHasBeenSet(false), + m_scheduledTimeHasBeenSet(false), + m_runbooksHasBeenSet(false), + m_opsItemIdHasBeenSet(false), + m_associationIdHasBeenSet(false), + m_changeRequestNameHasBeenSet(false) { *this = jsonValue; } @@ -262,6 +276,51 @@ AutomationExecutionMetadata& AutomationExecutionMetadata::operator =(JsonView js m_automationTypeHasBeenSet = true; } + if(jsonValue.ValueExists("AutomationSubtype")) + { + m_automationSubtype = AutomationSubtypeMapper::GetAutomationSubtypeForName(jsonValue.GetString("AutomationSubtype")); + + m_automationSubtypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ScheduledTime")) + { + m_scheduledTime = jsonValue.GetDouble("ScheduledTime"); + + m_scheduledTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Runbooks")) + { + Array runbooksJsonList = jsonValue.GetArray("Runbooks"); + for(unsigned runbooksIndex = 0; runbooksIndex < runbooksJsonList.GetLength(); ++runbooksIndex) + { + m_runbooks.push_back(runbooksJsonList[runbooksIndex].AsObject()); + } + m_runbooksHasBeenSet = true; + } + + if(jsonValue.ValueExists("OpsItemId")) + { + m_opsItemId = jsonValue.GetString("OpsItemId"); + + m_opsItemIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AssociationId")) + { + m_associationId = jsonValue.GetString("AssociationId"); + + m_associationIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ChangeRequestName")) + { + m_changeRequestName = jsonValue.GetString("ChangeRequestName"); + + m_changeRequestNameHasBeenSet = true; + } + return *this; } @@ -426,6 +485,45 @@ JsonValue AutomationExecutionMetadata::Jsonize() const payload.WithString("AutomationType", AutomationTypeMapper::GetNameForAutomationType(m_automationType)); } + if(m_automationSubtypeHasBeenSet) + { + payload.WithString("AutomationSubtype", AutomationSubtypeMapper::GetNameForAutomationSubtype(m_automationSubtype)); + } + + if(m_scheduledTimeHasBeenSet) + { + payload.WithDouble("ScheduledTime", m_scheduledTime.SecondsWithMSPrecision()); + } + + if(m_runbooksHasBeenSet) + { + Array runbooksJsonList(m_runbooks.size()); + for(unsigned runbooksIndex = 0; runbooksIndex < runbooksJsonList.GetLength(); ++runbooksIndex) + { + runbooksJsonList[runbooksIndex].AsObject(m_runbooks[runbooksIndex].Jsonize()); + } + payload.WithArray("Runbooks", std::move(runbooksJsonList)); + + } + + if(m_opsItemIdHasBeenSet) + { + payload.WithString("OpsItemId", m_opsItemId); + + } + + if(m_associationIdHasBeenSet) + { + payload.WithString("AssociationId", m_associationId); + + } + + if(m_changeRequestNameHasBeenSet) + { + payload.WithString("ChangeRequestName", m_changeRequestName); + + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp b/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp index 9230d554608..720fc3fe02c 100644 --- a/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp +++ b/aws-cpp-sdk-ssm/source/model/AutomationExecutionStatus.cpp @@ -28,6 +28,16 @@ namespace Aws static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); static const int Failed_HASH = HashingUtils::HashString("Failed"); + static const int PendingApproval_HASH = HashingUtils::HashString("PendingApproval"); + static const int Approved_HASH = HashingUtils::HashString("Approved"); + static const int Rejected_HASH = HashingUtils::HashString("Rejected"); + static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); + static const int RunbookInProgress_HASH = HashingUtils::HashString("RunbookInProgress"); + static const int PendingChangeCalendarOverride_HASH = HashingUtils::HashString("PendingChangeCalendarOverride"); + static const int ChangeCalendarOverrideApproved_HASH = HashingUtils::HashString("ChangeCalendarOverrideApproved"); + static const int ChangeCalendarOverrideRejected_HASH = HashingUtils::HashString("ChangeCalendarOverrideRejected"); + static const int CompletedWithSuccess_HASH = HashingUtils::HashString("CompletedWithSuccess"); + static const int CompletedWithFailure_HASH = HashingUtils::HashString("CompletedWithFailure"); AutomationExecutionStatus GetAutomationExecutionStatusForName(const Aws::String& name) @@ -65,6 +75,46 @@ namespace Aws { return AutomationExecutionStatus::Failed; } + else if (hashCode == PendingApproval_HASH) + { + return AutomationExecutionStatus::PendingApproval; + } + else if (hashCode == Approved_HASH) + { + return AutomationExecutionStatus::Approved; + } + else if (hashCode == Rejected_HASH) + { + return AutomationExecutionStatus::Rejected; + } + else if (hashCode == Scheduled_HASH) + { + return AutomationExecutionStatus::Scheduled; + } + else if (hashCode == RunbookInProgress_HASH) + { + return AutomationExecutionStatus::RunbookInProgress; + } + else if (hashCode == PendingChangeCalendarOverride_HASH) + { + return AutomationExecutionStatus::PendingChangeCalendarOverride; + } + else if (hashCode == ChangeCalendarOverrideApproved_HASH) + { + return AutomationExecutionStatus::ChangeCalendarOverrideApproved; + } + else if (hashCode == ChangeCalendarOverrideRejected_HASH) + { + return AutomationExecutionStatus::ChangeCalendarOverrideRejected; + } + else if (hashCode == CompletedWithSuccess_HASH) + { + return AutomationExecutionStatus::CompletedWithSuccess; + } + else if (hashCode == CompletedWithFailure_HASH) + { + return AutomationExecutionStatus::CompletedWithFailure; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -95,6 +145,26 @@ namespace Aws return "Cancelled"; case AutomationExecutionStatus::Failed: return "Failed"; + case AutomationExecutionStatus::PendingApproval: + return "PendingApproval"; + case AutomationExecutionStatus::Approved: + return "Approved"; + case AutomationExecutionStatus::Rejected: + return "Rejected"; + case AutomationExecutionStatus::Scheduled: + return "Scheduled"; + case AutomationExecutionStatus::RunbookInProgress: + return "RunbookInProgress"; + case AutomationExecutionStatus::PendingChangeCalendarOverride: + return "PendingChangeCalendarOverride"; + case AutomationExecutionStatus::ChangeCalendarOverrideApproved: + return "ChangeCalendarOverrideApproved"; + case AutomationExecutionStatus::ChangeCalendarOverrideRejected: + return "ChangeCalendarOverrideRejected"; + case AutomationExecutionStatus::CompletedWithSuccess: + return "CompletedWithSuccess"; + case AutomationExecutionStatus::CompletedWithFailure: + return "CompletedWithFailure"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp b/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp new file mode 100644 index 00000000000..276728cc3e1 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/AutomationSubtype.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace AutomationSubtypeMapper + { + + static const int ChangeRequest_HASH = HashingUtils::HashString("ChangeRequest"); + + + AutomationSubtype GetAutomationSubtypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ChangeRequest_HASH) + { + return AutomationSubtype::ChangeRequest; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AutomationSubtype::NOT_SET; + } + + Aws::String GetNameForAutomationSubtype(AutomationSubtype enumValue) + { + switch(enumValue) + { + case AutomationSubtype::ChangeRequest: + return "ChangeRequest"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AutomationSubtypeMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp b/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp index 5dd646c675c..aaa9588e148 100644 --- a/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp +++ b/aws-cpp-sdk-ssm/source/model/CreateAssociationBatchRequestEntry.cpp @@ -35,7 +35,8 @@ CreateAssociationBatchRequestEntry::CreateAssociationBatchRequestEntry() : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { } @@ -56,7 +57,8 @@ CreateAssociationBatchRequestEntry::CreateAssociationBatchRequestEntry(JsonView m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { *this = jsonValue; } @@ -174,6 +176,16 @@ CreateAssociationBatchRequestEntry& CreateAssociationBatchRequestEntry::operator m_applyOnlyAtCronIntervalHasBeenSet = true; } + if(jsonValue.ValueExists("TargetLocations")) + { + Array targetLocationsJsonList = jsonValue.GetArray("TargetLocations"); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + m_targetLocations.push_back(targetLocationsJsonList[targetLocationsIndex].AsObject()); + } + m_targetLocationsHasBeenSet = true; + } + return *this; } @@ -278,6 +290,17 @@ JsonValue CreateAssociationBatchRequestEntry::Jsonize() const } + if(m_targetLocationsHasBeenSet) + { + Array targetLocationsJsonList(m_targetLocations.size()); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + targetLocationsJsonList[targetLocationsIndex].AsObject(m_targetLocations[targetLocationsIndex].Jsonize()); + } + payload.WithArray("TargetLocations", std::move(targetLocationsJsonList)); + + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp b/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp index 74389e029da..5e898c05cdc 100644 --- a/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp +++ b/aws-cpp-sdk-ssm/source/model/CreateAssociationRequest.cpp @@ -29,7 +29,8 @@ CreateAssociationRequest::CreateAssociationRequest() : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { } @@ -134,6 +135,17 @@ Aws::String CreateAssociationRequest::SerializePayload() const } + if(m_targetLocationsHasBeenSet) + { + Array targetLocationsJsonList(m_targetLocations.size()); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + targetLocationsJsonList[targetLocationsIndex].AsObject(m_targetLocations[targetLocationsIndex].Jsonize()); + } + payload.WithArray("TargetLocations", std::move(targetLocationsJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-ssm/source/model/CreateOpsItemRequest.cpp b/aws-cpp-sdk-ssm/source/model/CreateOpsItemRequest.cpp index fea124d8b4e..0c855fbcce9 100644 --- a/aws-cpp-sdk-ssm/source/model/CreateOpsItemRequest.cpp +++ b/aws-cpp-sdk-ssm/source/model/CreateOpsItemRequest.cpp @@ -14,6 +14,7 @@ using namespace Aws::Utils; CreateOpsItemRequest::CreateOpsItemRequest() : m_descriptionHasBeenSet(false), + m_opsItemTypeHasBeenSet(false), m_operationalDataHasBeenSet(false), m_notificationsHasBeenSet(false), m_priority(0), @@ -23,7 +24,11 @@ CreateOpsItemRequest::CreateOpsItemRequest() : m_titleHasBeenSet(false), m_tagsHasBeenSet(false), m_categoryHasBeenSet(false), - m_severityHasBeenSet(false) + m_severityHasBeenSet(false), + m_actualStartTimeHasBeenSet(false), + m_actualEndTimeHasBeenSet(false), + m_plannedStartTimeHasBeenSet(false), + m_plannedEndTimeHasBeenSet(false) { } @@ -37,6 +42,12 @@ Aws::String CreateOpsItemRequest::SerializePayload() const } + if(m_opsItemTypeHasBeenSet) + { + payload.WithString("OpsItemType", m_opsItemType); + + } + if(m_operationalDataHasBeenSet) { JsonValue operationalDataJsonMap; @@ -111,6 +122,26 @@ Aws::String CreateOpsItemRequest::SerializePayload() const } + if(m_actualStartTimeHasBeenSet) + { + payload.WithDouble("ActualStartTime", m_actualStartTime.SecondsWithMSPrecision()); + } + + if(m_actualEndTimeHasBeenSet) + { + payload.WithDouble("ActualEndTime", m_actualEndTime.SecondsWithMSPrecision()); + } + + if(m_plannedStartTimeHasBeenSet) + { + payload.WithDouble("PlannedStartTime", m_plannedStartTime.SecondsWithMSPrecision()); + } + + if(m_plannedEndTimeHasBeenSet) + { + payload.WithDouble("PlannedEndTime", m_plannedEndTime.SecondsWithMSPrecision()); + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-ssm/source/model/DocumentDescription.cpp b/aws-cpp-sdk-ssm/source/model/DocumentDescription.cpp index 617d2195fb9..ebc7263ca19 100644 --- a/aws-cpp-sdk-ssm/source/model/DocumentDescription.cpp +++ b/aws-cpp-sdk-ssm/source/model/DocumentDescription.cpp @@ -44,7 +44,13 @@ DocumentDescription::DocumentDescription() : m_targetTypeHasBeenSet(false), m_tagsHasBeenSet(false), m_attachmentsInformationHasBeenSet(false), - m_requiresHasBeenSet(false) + m_requiresHasBeenSet(false), + m_authorHasBeenSet(false), + m_reviewInformationHasBeenSet(false), + m_approvedVersionHasBeenSet(false), + m_pendingReviewVersionHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false) { } @@ -74,7 +80,13 @@ DocumentDescription::DocumentDescription(JsonView jsonValue) : m_targetTypeHasBeenSet(false), m_tagsHasBeenSet(false), m_attachmentsInformationHasBeenSet(false), - m_requiresHasBeenSet(false) + m_requiresHasBeenSet(false), + m_authorHasBeenSet(false), + m_reviewInformationHasBeenSet(false), + m_approvedVersionHasBeenSet(false), + m_pendingReviewVersionHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false) { *this = jsonValue; } @@ -250,6 +262,44 @@ DocumentDescription& DocumentDescription::operator =(JsonView jsonValue) m_requiresHasBeenSet = true; } + if(jsonValue.ValueExists("Author")) + { + m_author = jsonValue.GetString("Author"); + + m_authorHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReviewInformation")) + { + Array reviewInformationJsonList = jsonValue.GetArray("ReviewInformation"); + for(unsigned reviewInformationIndex = 0; reviewInformationIndex < reviewInformationJsonList.GetLength(); ++reviewInformationIndex) + { + m_reviewInformation.push_back(reviewInformationJsonList[reviewInformationIndex].AsObject()); + } + m_reviewInformationHasBeenSet = true; + } + + if(jsonValue.ValueExists("ApprovedVersion")) + { + m_approvedVersion = jsonValue.GetString("ApprovedVersion"); + + m_approvedVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("PendingReviewVersion")) + { + m_pendingReviewVersion = jsonValue.GetString("PendingReviewVersion"); + + m_pendingReviewVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReviewStatus")) + { + m_reviewStatus = ReviewStatusMapper::GetReviewStatusForName(jsonValue.GetString("ReviewStatus")); + + m_reviewStatusHasBeenSet = true; + } + return *this; } @@ -409,6 +459,40 @@ JsonValue DocumentDescription::Jsonize() const } + if(m_authorHasBeenSet) + { + payload.WithString("Author", m_author); + + } + + if(m_reviewInformationHasBeenSet) + { + Array reviewInformationJsonList(m_reviewInformation.size()); + for(unsigned reviewInformationIndex = 0; reviewInformationIndex < reviewInformationJsonList.GetLength(); ++reviewInformationIndex) + { + reviewInformationJsonList[reviewInformationIndex].AsObject(m_reviewInformation[reviewInformationIndex].Jsonize()); + } + payload.WithArray("ReviewInformation", std::move(reviewInformationJsonList)); + + } + + if(m_approvedVersionHasBeenSet) + { + payload.WithString("ApprovedVersion", m_approvedVersion); + + } + + if(m_pendingReviewVersionHasBeenSet) + { + payload.WithString("PendingReviewVersion", m_pendingReviewVersion); + + } + + if(m_reviewStatusHasBeenSet) + { + payload.WithString("ReviewStatus", ReviewStatusMapper::GetNameForReviewStatus(m_reviewStatus)); + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/DocumentIdentifier.cpp b/aws-cpp-sdk-ssm/source/model/DocumentIdentifier.cpp index fe8c9ac1f4d..aab574371c3 100644 --- a/aws-cpp-sdk-ssm/source/model/DocumentIdentifier.cpp +++ b/aws-cpp-sdk-ssm/source/model/DocumentIdentifier.cpp @@ -31,7 +31,10 @@ DocumentIdentifier::DocumentIdentifier() : m_documentFormatHasBeenSet(false), m_targetTypeHasBeenSet(false), m_tagsHasBeenSet(false), - m_requiresHasBeenSet(false) + m_requiresHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false), + m_authorHasBeenSet(false) { } @@ -48,7 +51,10 @@ DocumentIdentifier::DocumentIdentifier(JsonView jsonValue) : m_documentFormatHasBeenSet(false), m_targetTypeHasBeenSet(false), m_tagsHasBeenSet(false), - m_requiresHasBeenSet(false) + m_requiresHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false), + m_authorHasBeenSet(false) { *this = jsonValue; } @@ -141,6 +147,20 @@ DocumentIdentifier& DocumentIdentifier::operator =(JsonView jsonValue) m_requiresHasBeenSet = true; } + if(jsonValue.ValueExists("ReviewStatus")) + { + m_reviewStatus = ReviewStatusMapper::GetReviewStatusForName(jsonValue.GetString("ReviewStatus")); + + m_reviewStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("Author")) + { + m_author = jsonValue.GetString("Author"); + + m_authorHasBeenSet = true; + } + return *this; } @@ -227,6 +247,17 @@ JsonValue DocumentIdentifier::Jsonize() const } + if(m_reviewStatusHasBeenSet) + { + payload.WithString("ReviewStatus", ReviewStatusMapper::GetNameForReviewStatus(m_reviewStatus)); + } + + if(m_authorHasBeenSet) + { + payload.WithString("Author", m_author); + + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp b/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp new file mode 100644 index 00000000000..2d5dc1d4d67 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentMetadataEnum.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace DocumentMetadataEnumMapper + { + + static const int DocumentReviews_HASH = HashingUtils::HashString("DocumentReviews"); + + + DocumentMetadataEnum GetDocumentMetadataEnumForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DocumentReviews_HASH) + { + return DocumentMetadataEnum::DocumentReviews; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DocumentMetadataEnum::NOT_SET; + } + + Aws::String GetNameForDocumentMetadataEnum(DocumentMetadataEnum enumValue) + { + switch(enumValue) + { + case DocumentMetadataEnum::DocumentReviews: + return "DocumentReviews"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DocumentMetadataEnumMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentMetadataResponseInfo.cpp b/aws-cpp-sdk-ssm/source/model/DocumentMetadataResponseInfo.cpp new file mode 100644 index 00000000000..1eaabf00ee3 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentMetadataResponseInfo.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +DocumentMetadataResponseInfo::DocumentMetadataResponseInfo() : + m_reviewerResponseHasBeenSet(false) +{ +} + +DocumentMetadataResponseInfo::DocumentMetadataResponseInfo(JsonView jsonValue) : + m_reviewerResponseHasBeenSet(false) +{ + *this = jsonValue; +} + +DocumentMetadataResponseInfo& DocumentMetadataResponseInfo::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ReviewerResponse")) + { + Array reviewerResponseJsonList = jsonValue.GetArray("ReviewerResponse"); + for(unsigned reviewerResponseIndex = 0; reviewerResponseIndex < reviewerResponseJsonList.GetLength(); ++reviewerResponseIndex) + { + m_reviewerResponse.push_back(reviewerResponseJsonList[reviewerResponseIndex].AsObject()); + } + m_reviewerResponseHasBeenSet = true; + } + + return *this; +} + +JsonValue DocumentMetadataResponseInfo::Jsonize() const +{ + JsonValue payload; + + if(m_reviewerResponseHasBeenSet) + { + Array reviewerResponseJsonList(m_reviewerResponse.size()); + for(unsigned reviewerResponseIndex = 0; reviewerResponseIndex < reviewerResponseJsonList.GetLength(); ++reviewerResponseIndex) + { + reviewerResponseJsonList[reviewerResponseIndex].AsObject(m_reviewerResponse[reviewerResponseIndex].Jsonize()); + } + payload.WithArray("ReviewerResponse", std::move(reviewerResponseJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp b/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp new file mode 100644 index 00000000000..780171731ea --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentReviewAction.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace DocumentReviewActionMapper + { + + static const int SendForReview_HASH = HashingUtils::HashString("SendForReview"); + static const int UpdateReview_HASH = HashingUtils::HashString("UpdateReview"); + static const int Approve_HASH = HashingUtils::HashString("Approve"); + static const int Reject_HASH = HashingUtils::HashString("Reject"); + + + DocumentReviewAction GetDocumentReviewActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SendForReview_HASH) + { + return DocumentReviewAction::SendForReview; + } + else if (hashCode == UpdateReview_HASH) + { + return DocumentReviewAction::UpdateReview; + } + else if (hashCode == Approve_HASH) + { + return DocumentReviewAction::Approve; + } + else if (hashCode == Reject_HASH) + { + return DocumentReviewAction::Reject; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DocumentReviewAction::NOT_SET; + } + + Aws::String GetNameForDocumentReviewAction(DocumentReviewAction enumValue) + { + switch(enumValue) + { + case DocumentReviewAction::SendForReview: + return "SendForReview"; + case DocumentReviewAction::UpdateReview: + return "UpdateReview"; + case DocumentReviewAction::Approve: + return "Approve"; + case DocumentReviewAction::Reject: + return "Reject"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DocumentReviewActionMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentSource.cpp b/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentSource.cpp new file mode 100644 index 00000000000..fbb7508b949 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentSource.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +DocumentReviewCommentSource::DocumentReviewCommentSource() : + m_type(DocumentReviewCommentType::NOT_SET), + m_typeHasBeenSet(false), + m_contentHasBeenSet(false) +{ +} + +DocumentReviewCommentSource::DocumentReviewCommentSource(JsonView jsonValue) : + m_type(DocumentReviewCommentType::NOT_SET), + m_typeHasBeenSet(false), + m_contentHasBeenSet(false) +{ + *this = jsonValue; +} + +DocumentReviewCommentSource& DocumentReviewCommentSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Type")) + { + m_type = DocumentReviewCommentTypeMapper::GetDocumentReviewCommentTypeForName(jsonValue.GetString("Type")); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Content")) + { + m_content = jsonValue.GetString("Content"); + + m_contentHasBeenSet = true; + } + + return *this; +} + +JsonValue DocumentReviewCommentSource::Jsonize() const +{ + JsonValue payload; + + if(m_typeHasBeenSet) + { + payload.WithString("Type", DocumentReviewCommentTypeMapper::GetNameForDocumentReviewCommentType(m_type)); + } + + if(m_contentHasBeenSet) + { + payload.WithString("Content", m_content); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp b/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp new file mode 100644 index 00000000000..15133a67678 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentReviewCommentType.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace DocumentReviewCommentTypeMapper + { + + static const int Comment_HASH = HashingUtils::HashString("Comment"); + + + DocumentReviewCommentType GetDocumentReviewCommentTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Comment_HASH) + { + return DocumentReviewCommentType::Comment; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return DocumentReviewCommentType::NOT_SET; + } + + Aws::String GetNameForDocumentReviewCommentType(DocumentReviewCommentType enumValue) + { + switch(enumValue) + { + case DocumentReviewCommentType::Comment: + return "Comment"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace DocumentReviewCommentTypeMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentReviewerResponseSource.cpp b/aws-cpp-sdk-ssm/source/model/DocumentReviewerResponseSource.cpp new file mode 100644 index 00000000000..e1a160e08a3 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentReviewerResponseSource.cpp @@ -0,0 +1,126 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +DocumentReviewerResponseSource::DocumentReviewerResponseSource() : + m_createTimeHasBeenSet(false), + m_updatedTimeHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false), + m_commentHasBeenSet(false), + m_reviewerHasBeenSet(false) +{ +} + +DocumentReviewerResponseSource::DocumentReviewerResponseSource(JsonView jsonValue) : + m_createTimeHasBeenSet(false), + m_updatedTimeHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false), + m_commentHasBeenSet(false), + m_reviewerHasBeenSet(false) +{ + *this = jsonValue; +} + +DocumentReviewerResponseSource& DocumentReviewerResponseSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CreateTime")) + { + m_createTime = jsonValue.GetDouble("CreateTime"); + + m_createTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("UpdatedTime")) + { + m_updatedTime = jsonValue.GetDouble("UpdatedTime"); + + m_updatedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReviewStatus")) + { + m_reviewStatus = ReviewStatusMapper::GetReviewStatusForName(jsonValue.GetString("ReviewStatus")); + + m_reviewStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("Comment")) + { + Array commentJsonList = jsonValue.GetArray("Comment"); + for(unsigned commentIndex = 0; commentIndex < commentJsonList.GetLength(); ++commentIndex) + { + m_comment.push_back(commentJsonList[commentIndex].AsObject()); + } + m_commentHasBeenSet = true; + } + + if(jsonValue.ValueExists("Reviewer")) + { + m_reviewer = jsonValue.GetString("Reviewer"); + + m_reviewerHasBeenSet = true; + } + + return *this; +} + +JsonValue DocumentReviewerResponseSource::Jsonize() const +{ + JsonValue payload; + + if(m_createTimeHasBeenSet) + { + payload.WithDouble("CreateTime", m_createTime.SecondsWithMSPrecision()); + } + + if(m_updatedTimeHasBeenSet) + { + payload.WithDouble("UpdatedTime", m_updatedTime.SecondsWithMSPrecision()); + } + + if(m_reviewStatusHasBeenSet) + { + payload.WithString("ReviewStatus", ReviewStatusMapper::GetNameForReviewStatus(m_reviewStatus)); + } + + if(m_commentHasBeenSet) + { + Array commentJsonList(m_comment.size()); + for(unsigned commentIndex = 0; commentIndex < commentJsonList.GetLength(); ++commentIndex) + { + commentJsonList[commentIndex].AsObject(m_comment[commentIndex].Jsonize()); + } + payload.WithArray("Comment", std::move(commentJsonList)); + + } + + if(m_reviewerHasBeenSet) + { + payload.WithString("Reviewer", m_reviewer); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentReviews.cpp b/aws-cpp-sdk-ssm/source/model/DocumentReviews.cpp new file mode 100644 index 00000000000..009e5f72026 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/DocumentReviews.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +DocumentReviews::DocumentReviews() : + m_action(DocumentReviewAction::NOT_SET), + m_actionHasBeenSet(false), + m_commentHasBeenSet(false) +{ +} + +DocumentReviews::DocumentReviews(JsonView jsonValue) : + m_action(DocumentReviewAction::NOT_SET), + m_actionHasBeenSet(false), + m_commentHasBeenSet(false) +{ + *this = jsonValue; +} + +DocumentReviews& DocumentReviews::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Action")) + { + m_action = DocumentReviewActionMapper::GetDocumentReviewActionForName(jsonValue.GetString("Action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Comment")) + { + Array commentJsonList = jsonValue.GetArray("Comment"); + for(unsigned commentIndex = 0; commentIndex < commentJsonList.GetLength(); ++commentIndex) + { + m_comment.push_back(commentJsonList[commentIndex].AsObject()); + } + m_commentHasBeenSet = true; + } + + return *this; +} + +JsonValue DocumentReviews::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("Action", DocumentReviewActionMapper::GetNameForDocumentReviewAction(m_action)); + } + + if(m_commentHasBeenSet) + { + Array commentJsonList(m_comment.size()); + for(unsigned commentIndex = 0; commentIndex < commentJsonList.GetLength(); ++commentIndex) + { + commentJsonList[commentIndex].AsObject(m_comment[commentIndex].Jsonize()); + } + payload.WithArray("Comment", std::move(commentJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/DocumentType.cpp b/aws-cpp-sdk-ssm/source/model/DocumentType.cpp index 09f496c2f81..582b8b7d28c 100644 --- a/aws-cpp-sdk-ssm/source/model/DocumentType.cpp +++ b/aws-cpp-sdk-ssm/source/model/DocumentType.cpp @@ -29,6 +29,7 @@ namespace Aws static const int ApplicationConfigurationSchema_HASH = HashingUtils::HashString("ApplicationConfigurationSchema"); static const int DeploymentStrategy_HASH = HashingUtils::HashString("DeploymentStrategy"); static const int ChangeCalendar_HASH = HashingUtils::HashString("ChangeCalendar"); + static const int Automation_ChangeTemplate_HASH = HashingUtils::HashString("Automation.ChangeTemplate"); DocumentType GetDocumentTypeForName(const Aws::String& name) @@ -70,6 +71,10 @@ namespace Aws { return DocumentType::ChangeCalendar; } + else if (hashCode == Automation_ChangeTemplate_HASH) + { + return DocumentType::Automation_ChangeTemplate; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -102,6 +107,8 @@ namespace Aws return "DeploymentStrategy"; case DocumentType::ChangeCalendar: return "ChangeCalendar"; + case DocumentType::Automation_ChangeTemplate: + return "Automation.ChangeTemplate"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-ssm/source/model/DocumentVersionInfo.cpp b/aws-cpp-sdk-ssm/source/model/DocumentVersionInfo.cpp index 287e2491787..772d8007894 100644 --- a/aws-cpp-sdk-ssm/source/model/DocumentVersionInfo.cpp +++ b/aws-cpp-sdk-ssm/source/model/DocumentVersionInfo.cpp @@ -29,7 +29,9 @@ DocumentVersionInfo::DocumentVersionInfo() : m_documentFormatHasBeenSet(false), m_status(DocumentStatus::NOT_SET), m_statusHasBeenSet(false), - m_statusInformationHasBeenSet(false) + m_statusInformationHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false) { } @@ -44,7 +46,9 @@ DocumentVersionInfo::DocumentVersionInfo(JsonView jsonValue) : m_documentFormatHasBeenSet(false), m_status(DocumentStatus::NOT_SET), m_statusHasBeenSet(false), - m_statusInformationHasBeenSet(false) + m_statusInformationHasBeenSet(false), + m_reviewStatus(ReviewStatus::NOT_SET), + m_reviewStatusHasBeenSet(false) { *this = jsonValue; } @@ -107,6 +111,13 @@ DocumentVersionInfo& DocumentVersionInfo::operator =(JsonView jsonValue) m_statusInformationHasBeenSet = true; } + if(jsonValue.ValueExists("ReviewStatus")) + { + m_reviewStatus = ReviewStatusMapper::GetReviewStatusForName(jsonValue.GetString("ReviewStatus")); + + m_reviewStatusHasBeenSet = true; + } + return *this; } @@ -159,6 +170,11 @@ JsonValue DocumentVersionInfo::Jsonize() const } + if(m_reviewStatusHasBeenSet) + { + payload.WithString("ReviewStatus", ReviewStatusMapper::GetNameForReviewStatus(m_reviewStatus)); + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/GetDocumentResult.cpp b/aws-cpp-sdk-ssm/source/model/GetDocumentResult.cpp index fcf4f477e93..367e7418450 100644 --- a/aws-cpp-sdk-ssm/source/model/GetDocumentResult.cpp +++ b/aws-cpp-sdk-ssm/source/model/GetDocumentResult.cpp @@ -19,14 +19,16 @@ using namespace Aws; GetDocumentResult::GetDocumentResult() : m_status(DocumentStatus::NOT_SET), m_documentType(DocumentType::NOT_SET), - m_documentFormat(DocumentFormat::NOT_SET) + m_documentFormat(DocumentFormat::NOT_SET), + m_reviewStatus(ReviewStatus::NOT_SET) { } GetDocumentResult::GetDocumentResult(const Aws::AmazonWebServiceResult& result) : m_status(DocumentStatus::NOT_SET), m_documentType(DocumentType::NOT_SET), - m_documentFormat(DocumentFormat::NOT_SET) + m_documentFormat(DocumentFormat::NOT_SET), + m_reviewStatus(ReviewStatus::NOT_SET) { *this = result; } @@ -100,6 +102,12 @@ GetDocumentResult& GetDocumentResult::operator =(const Aws::AmazonWebServiceResu } } + if(jsonValue.ValueExists("ReviewStatus")) + { + m_reviewStatus = ReviewStatusMapper::GetReviewStatusForName(jsonValue.GetString("ReviewStatus")); + + } + return *this; diff --git a/aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryRequest.cpp b/aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryRequest.cpp new file mode 100644 index 00000000000..a69c7874937 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryRequest.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListDocumentMetadataHistoryRequest::ListDocumentMetadataHistoryRequest() : + m_nameHasBeenSet(false), + m_documentVersionHasBeenSet(false), + m_metadata(DocumentMetadataEnum::NOT_SET), + m_metadataHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListDocumentMetadataHistoryRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_documentVersionHasBeenSet) + { + payload.WithString("DocumentVersion", m_documentVersion); + + } + + if(m_metadataHasBeenSet) + { + payload.WithString("Metadata", DocumentMetadataEnumMapper::GetNameForDocumentMetadataEnum(m_metadata)); + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListDocumentMetadataHistoryRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.ListDocumentMetadataHistory")); + return headers; + +} + + + + diff --git a/aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryResult.cpp b/aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryResult.cpp new file mode 100644 index 00000000000..c312c5a9456 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/ListDocumentMetadataHistoryResult.cpp @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListDocumentMetadataHistoryResult::ListDocumentMetadataHistoryResult() +{ +} + +ListDocumentMetadataHistoryResult::ListDocumentMetadataHistoryResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListDocumentMetadataHistoryResult& ListDocumentMetadataHistoryResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + } + + if(jsonValue.ValueExists("DocumentVersion")) + { + m_documentVersion = jsonValue.GetString("DocumentVersion"); + + } + + if(jsonValue.ValueExists("Author")) + { + m_author = jsonValue.GetString("Author"); + + } + + if(jsonValue.ValueExists("Metadata")) + { + m_metadata = jsonValue.GetObject("Metadata"); + + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-ssm/source/model/ListOpsItemEventsRequest.cpp b/aws-cpp-sdk-ssm/source/model/ListOpsItemEventsRequest.cpp new file mode 100644 index 00000000000..4ea80b25d7b --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/ListOpsItemEventsRequest.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListOpsItemEventsRequest::ListOpsItemEventsRequest() : + m_filtersHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListOpsItemEventsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_filtersHasBeenSet) + { + Array filtersJsonList(m_filters.size()); + for(unsigned filtersIndex = 0; filtersIndex < filtersJsonList.GetLength(); ++filtersIndex) + { + filtersJsonList[filtersIndex].AsObject(m_filters[filtersIndex].Jsonize()); + } + payload.WithArray("Filters", std::move(filtersJsonList)); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListOpsItemEventsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.ListOpsItemEvents")); + return headers; + +} + + + + diff --git a/aws-cpp-sdk-ssm/source/model/ListOpsItemEventsResult.cpp b/aws-cpp-sdk-ssm/source/model/ListOpsItemEventsResult.cpp new file mode 100644 index 00000000000..5b0078a6a96 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/ListOpsItemEventsResult.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListOpsItemEventsResult::ListOpsItemEventsResult() +{ +} + +ListOpsItemEventsResult::ListOpsItemEventsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListOpsItemEventsResult& ListOpsItemEventsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("Summaries")) + { + Array summariesJsonList = jsonValue.GetArray("Summaries"); + for(unsigned summariesIndex = 0; summariesIndex < summariesJsonList.GetLength(); ++summariesIndex) + { + m_summaries.push_back(summariesJsonList[summariesIndex].AsObject()); + } + } + + + + return *this; +} diff --git a/aws-cpp-sdk-ssm/source/model/OpsItem.cpp b/aws-cpp-sdk-ssm/source/model/OpsItem.cpp index 6a0f9fe3395..750b1ddd519 100644 --- a/aws-cpp-sdk-ssm/source/model/OpsItem.cpp +++ b/aws-cpp-sdk-ssm/source/model/OpsItem.cpp @@ -20,6 +20,7 @@ namespace Model OpsItem::OpsItem() : m_createdByHasBeenSet(false), + m_opsItemTypeHasBeenSet(false), m_createdTimeHasBeenSet(false), m_descriptionHasBeenSet(false), m_lastModifiedByHasBeenSet(false), @@ -36,12 +37,17 @@ OpsItem::OpsItem() : m_sourceHasBeenSet(false), m_operationalDataHasBeenSet(false), m_categoryHasBeenSet(false), - m_severityHasBeenSet(false) + m_severityHasBeenSet(false), + m_actualStartTimeHasBeenSet(false), + m_actualEndTimeHasBeenSet(false), + m_plannedStartTimeHasBeenSet(false), + m_plannedEndTimeHasBeenSet(false) { } OpsItem::OpsItem(JsonView jsonValue) : m_createdByHasBeenSet(false), + m_opsItemTypeHasBeenSet(false), m_createdTimeHasBeenSet(false), m_descriptionHasBeenSet(false), m_lastModifiedByHasBeenSet(false), @@ -58,7 +64,11 @@ OpsItem::OpsItem(JsonView jsonValue) : m_sourceHasBeenSet(false), m_operationalDataHasBeenSet(false), m_categoryHasBeenSet(false), - m_severityHasBeenSet(false) + m_severityHasBeenSet(false), + m_actualStartTimeHasBeenSet(false), + m_actualEndTimeHasBeenSet(false), + m_plannedStartTimeHasBeenSet(false), + m_plannedEndTimeHasBeenSet(false) { *this = jsonValue; } @@ -72,6 +82,13 @@ OpsItem& OpsItem::operator =(JsonView jsonValue) m_createdByHasBeenSet = true; } + if(jsonValue.ValueExists("OpsItemType")) + { + m_opsItemType = jsonValue.GetString("OpsItemType"); + + m_opsItemTypeHasBeenSet = true; + } + if(jsonValue.ValueExists("CreatedTime")) { m_createdTime = jsonValue.GetDouble("CreatedTime"); @@ -186,6 +203,34 @@ OpsItem& OpsItem::operator =(JsonView jsonValue) m_severityHasBeenSet = true; } + if(jsonValue.ValueExists("ActualStartTime")) + { + m_actualStartTime = jsonValue.GetDouble("ActualStartTime"); + + m_actualStartTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ActualEndTime")) + { + m_actualEndTime = jsonValue.GetDouble("ActualEndTime"); + + m_actualEndTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("PlannedStartTime")) + { + m_plannedStartTime = jsonValue.GetDouble("PlannedStartTime"); + + m_plannedStartTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("PlannedEndTime")) + { + m_plannedEndTime = jsonValue.GetDouble("PlannedEndTime"); + + m_plannedEndTimeHasBeenSet = true; + } + return *this; } @@ -199,6 +244,12 @@ JsonValue OpsItem::Jsonize() const } + if(m_opsItemTypeHasBeenSet) + { + payload.WithString("OpsItemType", m_opsItemType); + + } + if(m_createdTimeHasBeenSet) { payload.WithDouble("CreatedTime", m_createdTime.SecondsWithMSPrecision()); @@ -301,6 +352,26 @@ JsonValue OpsItem::Jsonize() const } + if(m_actualStartTimeHasBeenSet) + { + payload.WithDouble("ActualStartTime", m_actualStartTime.SecondsWithMSPrecision()); + } + + if(m_actualEndTimeHasBeenSet) + { + payload.WithDouble("ActualEndTime", m_actualEndTime.SecondsWithMSPrecision()); + } + + if(m_plannedStartTimeHasBeenSet) + { + payload.WithDouble("PlannedStartTime", m_plannedStartTime.SecondsWithMSPrecision()); + } + + if(m_plannedEndTimeHasBeenSet) + { + payload.WithDouble("PlannedEndTime", m_plannedEndTime.SecondsWithMSPrecision()); + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemEventFilter.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemEventFilter.cpp new file mode 100644 index 00000000000..fa15a923307 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/OpsItemEventFilter.cpp @@ -0,0 +1,99 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +OpsItemEventFilter::OpsItemEventFilter() : + m_key(OpsItemEventFilterKey::NOT_SET), + m_keyHasBeenSet(false), + m_valuesHasBeenSet(false), + m_operator(OpsItemEventFilterOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ +} + +OpsItemEventFilter::OpsItemEventFilter(JsonView jsonValue) : + m_key(OpsItemEventFilterKey::NOT_SET), + m_keyHasBeenSet(false), + m_valuesHasBeenSet(false), + m_operator(OpsItemEventFilterOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ + *this = jsonValue; +} + +OpsItemEventFilter& OpsItemEventFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Key")) + { + m_key = OpsItemEventFilterKeyMapper::GetOpsItemEventFilterKeyForName(jsonValue.GetString("Key")); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = OpsItemEventFilterOperatorMapper::GetOpsItemEventFilterOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + return *this; +} + +JsonValue OpsItemEventFilter::Jsonize() const +{ + JsonValue payload; + + if(m_keyHasBeenSet) + { + payload.WithString("Key", OpsItemEventFilterKeyMapper::GetNameForOpsItemEventFilterKey(m_key)); + } + + if(m_valuesHasBeenSet) + { + Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", OpsItemEventFilterOperatorMapper::GetNameForOpsItemEventFilterOperator(m_operator)); + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp new file mode 100644 index 00000000000..788d7755d99 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterKey.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace OpsItemEventFilterKeyMapper + { + + static const int OpsItemId_HASH = HashingUtils::HashString("OpsItemId"); + + + OpsItemEventFilterKey GetOpsItemEventFilterKeyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == OpsItemId_HASH) + { + return OpsItemEventFilterKey::OpsItemId; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return OpsItemEventFilterKey::NOT_SET; + } + + Aws::String GetNameForOpsItemEventFilterKey(OpsItemEventFilterKey enumValue) + { + switch(enumValue) + { + case OpsItemEventFilterKey::OpsItemId: + return "OpsItemId"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OpsItemEventFilterKeyMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp new file mode 100644 index 00000000000..a8c09be8ded --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/OpsItemEventFilterOperator.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace OpsItemEventFilterOperatorMapper + { + + static const int Equal_HASH = HashingUtils::HashString("Equal"); + + + OpsItemEventFilterOperator GetOpsItemEventFilterOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Equal_HASH) + { + return OpsItemEventFilterOperator::Equal; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return OpsItemEventFilterOperator::NOT_SET; + } + + Aws::String GetNameForOpsItemEventFilterOperator(OpsItemEventFilterOperator enumValue) + { + switch(enumValue) + { + case OpsItemEventFilterOperator::Equal: + return "Equal"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OpsItemEventFilterOperatorMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemEventSummary.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemEventSummary.cpp new file mode 100644 index 00000000000..10079fe660e --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/OpsItemEventSummary.cpp @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +OpsItemEventSummary::OpsItemEventSummary() : + m_opsItemIdHasBeenSet(false), + m_eventIdHasBeenSet(false), + m_sourceHasBeenSet(false), + m_detailTypeHasBeenSet(false), + m_detailHasBeenSet(false), + m_createdByHasBeenSet(false), + m_createdTimeHasBeenSet(false) +{ +} + +OpsItemEventSummary::OpsItemEventSummary(JsonView jsonValue) : + m_opsItemIdHasBeenSet(false), + m_eventIdHasBeenSet(false), + m_sourceHasBeenSet(false), + m_detailTypeHasBeenSet(false), + m_detailHasBeenSet(false), + m_createdByHasBeenSet(false), + m_createdTimeHasBeenSet(false) +{ + *this = jsonValue; +} + +OpsItemEventSummary& OpsItemEventSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("OpsItemId")) + { + m_opsItemId = jsonValue.GetString("OpsItemId"); + + m_opsItemIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("EventId")) + { + m_eventId = jsonValue.GetString("EventId"); + + m_eventIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Source")) + { + m_source = jsonValue.GetString("Source"); + + m_sourceHasBeenSet = true; + } + + if(jsonValue.ValueExists("DetailType")) + { + m_detailType = jsonValue.GetString("DetailType"); + + m_detailTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Detail")) + { + m_detail = jsonValue.GetString("Detail"); + + m_detailHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedBy")) + { + m_createdBy = jsonValue.GetObject("CreatedBy"); + + m_createdByHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedTime")) + { + m_createdTime = jsonValue.GetDouble("CreatedTime"); + + m_createdTimeHasBeenSet = true; + } + + return *this; +} + +JsonValue OpsItemEventSummary::Jsonize() const +{ + JsonValue payload; + + if(m_opsItemIdHasBeenSet) + { + payload.WithString("OpsItemId", m_opsItemId); + + } + + if(m_eventIdHasBeenSet) + { + payload.WithString("EventId", m_eventId); + + } + + if(m_sourceHasBeenSet) + { + payload.WithString("Source", m_source); + + } + + if(m_detailTypeHasBeenSet) + { + payload.WithString("DetailType", m_detailType); + + } + + if(m_detailHasBeenSet) + { + payload.WithString("Detail", m_detail); + + } + + if(m_createdByHasBeenSet) + { + payload.WithObject("CreatedBy", m_createdBy.Jsonize()); + + } + + if(m_createdTimeHasBeenSet) + { + payload.WithDouble("CreatedTime", m_createdTime.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp index 4aa8c3351cf..84bb2f60f52 100644 --- a/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp +++ b/aws-cpp-sdk-ssm/source/model/OpsItemFilterKey.cpp @@ -28,6 +28,10 @@ namespace Aws static const int OpsItemId_HASH = HashingUtils::HashString("OpsItemId"); static const int CreatedTime_HASH = HashingUtils::HashString("CreatedTime"); static const int LastModifiedTime_HASH = HashingUtils::HashString("LastModifiedTime"); + static const int ActualStartTime_HASH = HashingUtils::HashString("ActualStartTime"); + static const int ActualEndTime_HASH = HashingUtils::HashString("ActualEndTime"); + static const int PlannedStartTime_HASH = HashingUtils::HashString("PlannedStartTime"); + static const int PlannedEndTime_HASH = HashingUtils::HashString("PlannedEndTime"); static const int OperationalData_HASH = HashingUtils::HashString("OperationalData"); static const int OperationalDataKey_HASH = HashingUtils::HashString("OperationalDataKey"); static const int OperationalDataValue_HASH = HashingUtils::HashString("OperationalDataValue"); @@ -35,6 +39,13 @@ namespace Aws static const int AutomationId_HASH = HashingUtils::HashString("AutomationId"); static const int Category_HASH = HashingUtils::HashString("Category"); static const int Severity_HASH = HashingUtils::HashString("Severity"); + static const int OpsItemType_HASH = HashingUtils::HashString("OpsItemType"); + static const int ChangeRequestByRequesterArn_HASH = HashingUtils::HashString("ChangeRequestByRequesterArn"); + static const int ChangeRequestByRequesterName_HASH = HashingUtils::HashString("ChangeRequestByRequesterName"); + static const int ChangeRequestByApproverArn_HASH = HashingUtils::HashString("ChangeRequestByApproverArn"); + static const int ChangeRequestByApproverName_HASH = HashingUtils::HashString("ChangeRequestByApproverName"); + static const int ChangeRequestByTemplate_HASH = HashingUtils::HashString("ChangeRequestByTemplate"); + static const int ChangeRequestByTargetsResourceGroup_HASH = HashingUtils::HashString("ChangeRequestByTargetsResourceGroup"); OpsItemFilterKey GetOpsItemFilterKeyForName(const Aws::String& name) @@ -72,6 +83,22 @@ namespace Aws { return OpsItemFilterKey::LastModifiedTime; } + else if (hashCode == ActualStartTime_HASH) + { + return OpsItemFilterKey::ActualStartTime; + } + else if (hashCode == ActualEndTime_HASH) + { + return OpsItemFilterKey::ActualEndTime; + } + else if (hashCode == PlannedStartTime_HASH) + { + return OpsItemFilterKey::PlannedStartTime; + } + else if (hashCode == PlannedEndTime_HASH) + { + return OpsItemFilterKey::PlannedEndTime; + } else if (hashCode == OperationalData_HASH) { return OpsItemFilterKey::OperationalData; @@ -100,6 +127,34 @@ namespace Aws { return OpsItemFilterKey::Severity; } + else if (hashCode == OpsItemType_HASH) + { + return OpsItemFilterKey::OpsItemType; + } + else if (hashCode == ChangeRequestByRequesterArn_HASH) + { + return OpsItemFilterKey::ChangeRequestByRequesterArn; + } + else if (hashCode == ChangeRequestByRequesterName_HASH) + { + return OpsItemFilterKey::ChangeRequestByRequesterName; + } + else if (hashCode == ChangeRequestByApproverArn_HASH) + { + return OpsItemFilterKey::ChangeRequestByApproverArn; + } + else if (hashCode == ChangeRequestByApproverName_HASH) + { + return OpsItemFilterKey::ChangeRequestByApproverName; + } + else if (hashCode == ChangeRequestByTemplate_HASH) + { + return OpsItemFilterKey::ChangeRequestByTemplate; + } + else if (hashCode == ChangeRequestByTargetsResourceGroup_HASH) + { + return OpsItemFilterKey::ChangeRequestByTargetsResourceGroup; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -130,6 +185,14 @@ namespace Aws return "CreatedTime"; case OpsItemFilterKey::LastModifiedTime: return "LastModifiedTime"; + case OpsItemFilterKey::ActualStartTime: + return "ActualStartTime"; + case OpsItemFilterKey::ActualEndTime: + return "ActualEndTime"; + case OpsItemFilterKey::PlannedStartTime: + return "PlannedStartTime"; + case OpsItemFilterKey::PlannedEndTime: + return "PlannedEndTime"; case OpsItemFilterKey::OperationalData: return "OperationalData"; case OpsItemFilterKey::OperationalDataKey: @@ -144,6 +207,20 @@ namespace Aws return "Category"; case OpsItemFilterKey::Severity: return "Severity"; + case OpsItemFilterKey::OpsItemType: + return "OpsItemType"; + case OpsItemFilterKey::ChangeRequestByRequesterArn: + return "ChangeRequestByRequesterArn"; + case OpsItemFilterKey::ChangeRequestByRequesterName: + return "ChangeRequestByRequesterName"; + case OpsItemFilterKey::ChangeRequestByApproverArn: + return "ChangeRequestByApproverArn"; + case OpsItemFilterKey::ChangeRequestByApproverName: + return "ChangeRequestByApproverName"; + case OpsItemFilterKey::ChangeRequestByTemplate: + return "ChangeRequestByTemplate"; + case OpsItemFilterKey::ChangeRequestByTargetsResourceGroup: + return "ChangeRequestByTargetsResourceGroup"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemIdentity.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemIdentity.cpp new file mode 100644 index 00000000000..10ae2b9bacb --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/OpsItemIdentity.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +OpsItemIdentity::OpsItemIdentity() : + m_arnHasBeenSet(false) +{ +} + +OpsItemIdentity::OpsItemIdentity(JsonView jsonValue) : + m_arnHasBeenSet(false) +{ + *this = jsonValue; +} + +OpsItemIdentity& OpsItemIdentity::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Arn")) + { + m_arn = jsonValue.GetString("Arn"); + + m_arnHasBeenSet = true; + } + + return *this; +} + +JsonValue OpsItemIdentity::Jsonize() const +{ + JsonValue payload; + + if(m_arnHasBeenSet) + { + payload.WithString("Arn", m_arn); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp index e628ebdb237..f0f24eda6a3 100644 --- a/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp +++ b/aws-cpp-sdk-ssm/source/model/OpsItemStatus.cpp @@ -23,6 +23,21 @@ namespace Aws static const int Open_HASH = HashingUtils::HashString("Open"); static const int InProgress_HASH = HashingUtils::HashString("InProgress"); static const int Resolved_HASH = HashingUtils::HashString("Resolved"); + static const int Pending_HASH = HashingUtils::HashString("Pending"); + static const int TimedOut_HASH = HashingUtils::HashString("TimedOut"); + static const int Cancelling_HASH = HashingUtils::HashString("Cancelling"); + static const int Cancelled_HASH = HashingUtils::HashString("Cancelled"); + static const int Failed_HASH = HashingUtils::HashString("Failed"); + static const int CompletedWithSuccess_HASH = HashingUtils::HashString("CompletedWithSuccess"); + static const int CompletedWithFailure_HASH = HashingUtils::HashString("CompletedWithFailure"); + static const int Scheduled_HASH = HashingUtils::HashString("Scheduled"); + static const int RunbookInProgress_HASH = HashingUtils::HashString("RunbookInProgress"); + static const int PendingChangeCalendarOverride_HASH = HashingUtils::HashString("PendingChangeCalendarOverride"); + static const int ChangeCalendarOverrideApproved_HASH = HashingUtils::HashString("ChangeCalendarOverrideApproved"); + static const int ChangeCalendarOverrideRejected_HASH = HashingUtils::HashString("ChangeCalendarOverrideRejected"); + static const int PendingApproval_HASH = HashingUtils::HashString("PendingApproval"); + static const int Approved_HASH = HashingUtils::HashString("Approved"); + static const int Rejected_HASH = HashingUtils::HashString("Rejected"); OpsItemStatus GetOpsItemStatusForName(const Aws::String& name) @@ -40,6 +55,66 @@ namespace Aws { return OpsItemStatus::Resolved; } + else if (hashCode == Pending_HASH) + { + return OpsItemStatus::Pending; + } + else if (hashCode == TimedOut_HASH) + { + return OpsItemStatus::TimedOut; + } + else if (hashCode == Cancelling_HASH) + { + return OpsItemStatus::Cancelling; + } + else if (hashCode == Cancelled_HASH) + { + return OpsItemStatus::Cancelled; + } + else if (hashCode == Failed_HASH) + { + return OpsItemStatus::Failed; + } + else if (hashCode == CompletedWithSuccess_HASH) + { + return OpsItemStatus::CompletedWithSuccess; + } + else if (hashCode == CompletedWithFailure_HASH) + { + return OpsItemStatus::CompletedWithFailure; + } + else if (hashCode == Scheduled_HASH) + { + return OpsItemStatus::Scheduled; + } + else if (hashCode == RunbookInProgress_HASH) + { + return OpsItemStatus::RunbookInProgress; + } + else if (hashCode == PendingChangeCalendarOverride_HASH) + { + return OpsItemStatus::PendingChangeCalendarOverride; + } + else if (hashCode == ChangeCalendarOverrideApproved_HASH) + { + return OpsItemStatus::ChangeCalendarOverrideApproved; + } + else if (hashCode == ChangeCalendarOverrideRejected_HASH) + { + return OpsItemStatus::ChangeCalendarOverrideRejected; + } + else if (hashCode == PendingApproval_HASH) + { + return OpsItemStatus::PendingApproval; + } + else if (hashCode == Approved_HASH) + { + return OpsItemStatus::Approved; + } + else if (hashCode == Rejected_HASH) + { + return OpsItemStatus::Rejected; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -60,6 +135,36 @@ namespace Aws return "InProgress"; case OpsItemStatus::Resolved: return "Resolved"; + case OpsItemStatus::Pending: + return "Pending"; + case OpsItemStatus::TimedOut: + return "TimedOut"; + case OpsItemStatus::Cancelling: + return "Cancelling"; + case OpsItemStatus::Cancelled: + return "Cancelled"; + case OpsItemStatus::Failed: + return "Failed"; + case OpsItemStatus::CompletedWithSuccess: + return "CompletedWithSuccess"; + case OpsItemStatus::CompletedWithFailure: + return "CompletedWithFailure"; + case OpsItemStatus::Scheduled: + return "Scheduled"; + case OpsItemStatus::RunbookInProgress: + return "RunbookInProgress"; + case OpsItemStatus::PendingChangeCalendarOverride: + return "PendingChangeCalendarOverride"; + case OpsItemStatus::ChangeCalendarOverrideApproved: + return "ChangeCalendarOverrideApproved"; + case OpsItemStatus::ChangeCalendarOverrideRejected: + return "ChangeCalendarOverrideRejected"; + case OpsItemStatus::PendingApproval: + return "PendingApproval"; + case OpsItemStatus::Approved: + return "Approved"; + case OpsItemStatus::Rejected: + return "Rejected"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/aws-cpp-sdk-ssm/source/model/OpsItemSummary.cpp b/aws-cpp-sdk-ssm/source/model/OpsItemSummary.cpp index 9eca484248b..e36380c7ec2 100644 --- a/aws-cpp-sdk-ssm/source/model/OpsItemSummary.cpp +++ b/aws-cpp-sdk-ssm/source/model/OpsItemSummary.cpp @@ -32,7 +32,12 @@ OpsItemSummary::OpsItemSummary() : m_titleHasBeenSet(false), m_operationalDataHasBeenSet(false), m_categoryHasBeenSet(false), - m_severityHasBeenSet(false) + m_severityHasBeenSet(false), + m_opsItemTypeHasBeenSet(false), + m_actualStartTimeHasBeenSet(false), + m_actualEndTimeHasBeenSet(false), + m_plannedStartTimeHasBeenSet(false), + m_plannedEndTimeHasBeenSet(false) { } @@ -50,7 +55,12 @@ OpsItemSummary::OpsItemSummary(JsonView jsonValue) : m_titleHasBeenSet(false), m_operationalDataHasBeenSet(false), m_categoryHasBeenSet(false), - m_severityHasBeenSet(false) + m_severityHasBeenSet(false), + m_opsItemTypeHasBeenSet(false), + m_actualStartTimeHasBeenSet(false), + m_actualEndTimeHasBeenSet(false), + m_plannedStartTimeHasBeenSet(false), + m_plannedEndTimeHasBeenSet(false) { *this = jsonValue; } @@ -144,6 +154,41 @@ OpsItemSummary& OpsItemSummary::operator =(JsonView jsonValue) m_severityHasBeenSet = true; } + if(jsonValue.ValueExists("OpsItemType")) + { + m_opsItemType = jsonValue.GetString("OpsItemType"); + + m_opsItemTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ActualStartTime")) + { + m_actualStartTime = jsonValue.GetDouble("ActualStartTime"); + + m_actualStartTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("ActualEndTime")) + { + m_actualEndTime = jsonValue.GetDouble("ActualEndTime"); + + m_actualEndTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("PlannedStartTime")) + { + m_plannedStartTime = jsonValue.GetDouble("PlannedStartTime"); + + m_plannedStartTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("PlannedEndTime")) + { + m_plannedEndTime = jsonValue.GetDouble("PlannedEndTime"); + + m_plannedEndTimeHasBeenSet = true; + } + return *this; } @@ -225,6 +270,32 @@ JsonValue OpsItemSummary::Jsonize() const } + if(m_opsItemTypeHasBeenSet) + { + payload.WithString("OpsItemType", m_opsItemType); + + } + + if(m_actualStartTimeHasBeenSet) + { + payload.WithDouble("ActualStartTime", m_actualStartTime.SecondsWithMSPrecision()); + } + + if(m_actualEndTimeHasBeenSet) + { + payload.WithDouble("ActualEndTime", m_actualEndTime.SecondsWithMSPrecision()); + } + + if(m_plannedStartTimeHasBeenSet) + { + payload.WithDouble("PlannedStartTime", m_plannedStartTime.SecondsWithMSPrecision()); + } + + if(m_plannedEndTimeHasBeenSet) + { + payload.WithDouble("PlannedEndTime", m_plannedEndTime.SecondsWithMSPrecision()); + } + return payload; } diff --git a/aws-cpp-sdk-ssm/source/model/ReviewInformation.cpp b/aws-cpp-sdk-ssm/source/model/ReviewInformation.cpp new file mode 100644 index 00000000000..142edfebac2 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/ReviewInformation.cpp @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +ReviewInformation::ReviewInformation() : + m_reviewedTimeHasBeenSet(false), + m_status(ReviewStatus::NOT_SET), + m_statusHasBeenSet(false), + m_reviewerHasBeenSet(false) +{ +} + +ReviewInformation::ReviewInformation(JsonView jsonValue) : + m_reviewedTimeHasBeenSet(false), + m_status(ReviewStatus::NOT_SET), + m_statusHasBeenSet(false), + m_reviewerHasBeenSet(false) +{ + *this = jsonValue; +} + +ReviewInformation& ReviewInformation::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ReviewedTime")) + { + m_reviewedTime = jsonValue.GetDouble("ReviewedTime"); + + m_reviewedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = ReviewStatusMapper::GetReviewStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("Reviewer")) + { + m_reviewer = jsonValue.GetString("Reviewer"); + + m_reviewerHasBeenSet = true; + } + + return *this; +} + +JsonValue ReviewInformation::Jsonize() const +{ + JsonValue payload; + + if(m_reviewedTimeHasBeenSet) + { + payload.WithDouble("ReviewedTime", m_reviewedTime.SecondsWithMSPrecision()); + } + + if(m_statusHasBeenSet) + { + payload.WithString("Status", ReviewStatusMapper::GetNameForReviewStatus(m_status)); + } + + if(m_reviewerHasBeenSet) + { + payload.WithString("Reviewer", m_reviewer); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp b/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp new file mode 100644 index 00000000000..9f5c560bec9 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/ReviewStatus.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace SSM + { + namespace Model + { + namespace ReviewStatusMapper + { + + static const int APPROVED_HASH = HashingUtils::HashString("APPROVED"); + static const int NOT_REVIEWED_HASH = HashingUtils::HashString("NOT_REVIEWED"); + static const int PENDING_HASH = HashingUtils::HashString("PENDING"); + static const int REJECTED_HASH = HashingUtils::HashString("REJECTED"); + + + ReviewStatus GetReviewStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == APPROVED_HASH) + { + return ReviewStatus::APPROVED; + } + else if (hashCode == NOT_REVIEWED_HASH) + { + return ReviewStatus::NOT_REVIEWED; + } + else if (hashCode == PENDING_HASH) + { + return ReviewStatus::PENDING; + } + else if (hashCode == REJECTED_HASH) + { + return ReviewStatus::REJECTED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ReviewStatus::NOT_SET; + } + + Aws::String GetNameForReviewStatus(ReviewStatus enumValue) + { + switch(enumValue) + { + case ReviewStatus::APPROVED: + return "APPROVED"; + case ReviewStatus::NOT_REVIEWED: + return "NOT_REVIEWED"; + case ReviewStatus::PENDING: + return "PENDING"; + case ReviewStatus::REJECTED: + return "REJECTED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ReviewStatusMapper + } // namespace Model + } // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/Runbook.cpp b/aws-cpp-sdk-ssm/source/model/Runbook.cpp new file mode 100644 index 00000000000..e8999421a63 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/Runbook.cpp @@ -0,0 +1,200 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace SSM +{ +namespace Model +{ + +Runbook::Runbook() : + m_documentNameHasBeenSet(false), + m_documentVersionHasBeenSet(false), + m_parametersHasBeenSet(false), + m_targetParameterNameHasBeenSet(false), + m_targetsHasBeenSet(false), + m_maxConcurrencyHasBeenSet(false), + m_maxErrorsHasBeenSet(false), + m_targetLocationsHasBeenSet(false) +{ +} + +Runbook::Runbook(JsonView jsonValue) : + m_documentNameHasBeenSet(false), + m_documentVersionHasBeenSet(false), + m_parametersHasBeenSet(false), + m_targetParameterNameHasBeenSet(false), + m_targetsHasBeenSet(false), + m_maxConcurrencyHasBeenSet(false), + m_maxErrorsHasBeenSet(false), + m_targetLocationsHasBeenSet(false) +{ + *this = jsonValue; +} + +Runbook& Runbook::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DocumentName")) + { + m_documentName = jsonValue.GetString("DocumentName"); + + m_documentNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("DocumentVersion")) + { + m_documentVersion = jsonValue.GetString("DocumentVersion"); + + m_documentVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Parameters")) + { + Aws::Map parametersJsonMap = jsonValue.GetObject("Parameters").GetAllObjects(); + for(auto& parametersItem : parametersJsonMap) + { + Array automationParameterValueListJsonList = parametersItem.second.AsArray(); + Aws::Vector automationParameterValueListList; + automationParameterValueListList.reserve((size_t)automationParameterValueListJsonList.GetLength()); + for(unsigned automationParameterValueListIndex = 0; automationParameterValueListIndex < automationParameterValueListJsonList.GetLength(); ++automationParameterValueListIndex) + { + automationParameterValueListList.push_back(automationParameterValueListJsonList[automationParameterValueListIndex].AsString()); + } + m_parameters[parametersItem.first] = std::move(automationParameterValueListList); + } + m_parametersHasBeenSet = true; + } + + if(jsonValue.ValueExists("TargetParameterName")) + { + m_targetParameterName = jsonValue.GetString("TargetParameterName"); + + m_targetParameterNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Targets")) + { + Array targetsJsonList = jsonValue.GetArray("Targets"); + for(unsigned targetsIndex = 0; targetsIndex < targetsJsonList.GetLength(); ++targetsIndex) + { + m_targets.push_back(targetsJsonList[targetsIndex].AsObject()); + } + m_targetsHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaxConcurrency")) + { + m_maxConcurrency = jsonValue.GetString("MaxConcurrency"); + + m_maxConcurrencyHasBeenSet = true; + } + + if(jsonValue.ValueExists("MaxErrors")) + { + m_maxErrors = jsonValue.GetString("MaxErrors"); + + m_maxErrorsHasBeenSet = true; + } + + if(jsonValue.ValueExists("TargetLocations")) + { + Array targetLocationsJsonList = jsonValue.GetArray("TargetLocations"); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + m_targetLocations.push_back(targetLocationsJsonList[targetLocationsIndex].AsObject()); + } + m_targetLocationsHasBeenSet = true; + } + + return *this; +} + +JsonValue Runbook::Jsonize() const +{ + JsonValue payload; + + if(m_documentNameHasBeenSet) + { + payload.WithString("DocumentName", m_documentName); + + } + + if(m_documentVersionHasBeenSet) + { + payload.WithString("DocumentVersion", m_documentVersion); + + } + + if(m_parametersHasBeenSet) + { + JsonValue parametersJsonMap; + for(auto& parametersItem : m_parameters) + { + Array automationParameterValueListJsonList(parametersItem.second.size()); + for(unsigned automationParameterValueListIndex = 0; automationParameterValueListIndex < automationParameterValueListJsonList.GetLength(); ++automationParameterValueListIndex) + { + automationParameterValueListJsonList[automationParameterValueListIndex].AsString(parametersItem.second[automationParameterValueListIndex]); + } + parametersJsonMap.WithArray(parametersItem.first, std::move(automationParameterValueListJsonList)); + } + payload.WithObject("Parameters", std::move(parametersJsonMap)); + + } + + if(m_targetParameterNameHasBeenSet) + { + payload.WithString("TargetParameterName", m_targetParameterName); + + } + + if(m_targetsHasBeenSet) + { + Array targetsJsonList(m_targets.size()); + for(unsigned targetsIndex = 0; targetsIndex < targetsJsonList.GetLength(); ++targetsIndex) + { + targetsJsonList[targetsIndex].AsObject(m_targets[targetsIndex].Jsonize()); + } + payload.WithArray("Targets", std::move(targetsJsonList)); + + } + + if(m_maxConcurrencyHasBeenSet) + { + payload.WithString("MaxConcurrency", m_maxConcurrency); + + } + + if(m_maxErrorsHasBeenSet) + { + payload.WithString("MaxErrors", m_maxErrors); + + } + + if(m_targetLocationsHasBeenSet) + { + Array targetLocationsJsonList(m_targetLocations.size()); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + targetLocationsJsonList[targetLocationsIndex].AsObject(m_targetLocations[targetLocationsIndex].Jsonize()); + } + payload.WithArray("TargetLocations", std::move(targetLocationsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SSM +} // namespace Aws diff --git a/aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionRequest.cpp b/aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionRequest.cpp new file mode 100644 index 00000000000..b9957f6c710 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionRequest.cpp @@ -0,0 +1,111 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartChangeRequestExecutionRequest::StartChangeRequestExecutionRequest() : + m_scheduledTimeHasBeenSet(false), + m_documentNameHasBeenSet(false), + m_documentVersionHasBeenSet(false), + m_parametersHasBeenSet(false), + m_changeRequestNameHasBeenSet(false), + m_clientTokenHasBeenSet(false), + m_runbooksHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String StartChangeRequestExecutionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_scheduledTimeHasBeenSet) + { + payload.WithDouble("ScheduledTime", m_scheduledTime.SecondsWithMSPrecision()); + } + + if(m_documentNameHasBeenSet) + { + payload.WithString("DocumentName", m_documentName); + + } + + if(m_documentVersionHasBeenSet) + { + payload.WithString("DocumentVersion", m_documentVersion); + + } + + if(m_parametersHasBeenSet) + { + JsonValue parametersJsonMap; + for(auto& parametersItem : m_parameters) + { + Array automationParameterValueListJsonList(parametersItem.second.size()); + for(unsigned automationParameterValueListIndex = 0; automationParameterValueListIndex < automationParameterValueListJsonList.GetLength(); ++automationParameterValueListIndex) + { + automationParameterValueListJsonList[automationParameterValueListIndex].AsString(parametersItem.second[automationParameterValueListIndex]); + } + parametersJsonMap.WithArray(parametersItem.first, std::move(automationParameterValueListJsonList)); + } + payload.WithObject("Parameters", std::move(parametersJsonMap)); + + } + + if(m_changeRequestNameHasBeenSet) + { + payload.WithString("ChangeRequestName", m_changeRequestName); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_runbooksHasBeenSet) + { + Array runbooksJsonList(m_runbooks.size()); + for(unsigned runbooksIndex = 0; runbooksIndex < runbooksJsonList.GetLength(); ++runbooksIndex) + { + runbooksJsonList[runbooksIndex].AsObject(m_runbooks[runbooksIndex].Jsonize()); + } + payload.WithArray("Runbooks", std::move(runbooksJsonList)); + + } + + if(m_tagsHasBeenSet) + { + Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StartChangeRequestExecutionRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.StartChangeRequestExecution")); + return headers; + +} + + + + diff --git a/aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionResult.cpp b/aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionResult.cpp new file mode 100644 index 00000000000..ffa63c7274f --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/StartChangeRequestExecutionResult.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartChangeRequestExecutionResult::StartChangeRequestExecutionResult() +{ +} + +StartChangeRequestExecutionResult::StartChangeRequestExecutionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartChangeRequestExecutionResult& StartChangeRequestExecutionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AutomationExecutionId")) + { + m_automationExecutionId = jsonValue.GetString("AutomationExecutionId"); + + } + + + + return *this; +} diff --git a/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp b/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp index 5f0231c2f9b..0ec9e927d77 100644 --- a/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp +++ b/aws-cpp-sdk-ssm/source/model/UpdateAssociationRequest.cpp @@ -30,7 +30,8 @@ UpdateAssociationRequest::UpdateAssociationRequest() : m_syncCompliance(AssociationSyncCompliance::NOT_SET), m_syncComplianceHasBeenSet(false), m_applyOnlyAtCronInterval(false), - m_applyOnlyAtCronIntervalHasBeenSet(false) + m_applyOnlyAtCronIntervalHasBeenSet(false), + m_targetLocationsHasBeenSet(false) { } @@ -141,6 +142,17 @@ Aws::String UpdateAssociationRequest::SerializePayload() const } + if(m_targetLocationsHasBeenSet) + { + Array targetLocationsJsonList(m_targetLocations.size()); + for(unsigned targetLocationsIndex = 0; targetLocationsIndex < targetLocationsJsonList.GetLength(); ++targetLocationsIndex) + { + targetLocationsJsonList[targetLocationsIndex].AsObject(m_targetLocations[targetLocationsIndex].Jsonize()); + } + payload.WithArray("TargetLocations", std::move(targetLocationsJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataRequest.cpp b/aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataRequest.cpp new file mode 100644 index 00000000000..921e8dc80f3 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataRequest.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateDocumentMetadataRequest::UpdateDocumentMetadataRequest() : + m_nameHasBeenSet(false), + m_documentVersionHasBeenSet(false), + m_documentReviewsHasBeenSet(false) +{ +} + +Aws::String UpdateDocumentMetadataRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_documentVersionHasBeenSet) + { + payload.WithString("DocumentVersion", m_documentVersion); + + } + + if(m_documentReviewsHasBeenSet) + { + payload.WithObject("DocumentReviews", m_documentReviews.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateDocumentMetadataRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.UpdateDocumentMetadata")); + return headers; + +} + + + + diff --git a/aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataResult.cpp b/aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataResult.cpp new file mode 100644 index 00000000000..4f3cb95dcc5 --- /dev/null +++ b/aws-cpp-sdk-ssm/source/model/UpdateDocumentMetadataResult.cpp @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::SSM::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateDocumentMetadataResult::UpdateDocumentMetadataResult() +{ +} + +UpdateDocumentMetadataResult::UpdateDocumentMetadataResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateDocumentMetadataResult& UpdateDocumentMetadataResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + + return *this; +} diff --git a/aws-cpp-sdk-ssm/source/model/UpdateOpsItemRequest.cpp b/aws-cpp-sdk-ssm/source/model/UpdateOpsItemRequest.cpp index 74b4dadbe94..e2eb358d989 100644 --- a/aws-cpp-sdk-ssm/source/model/UpdateOpsItemRequest.cpp +++ b/aws-cpp-sdk-ssm/source/model/UpdateOpsItemRequest.cpp @@ -25,7 +25,11 @@ UpdateOpsItemRequest::UpdateOpsItemRequest() : m_opsItemIdHasBeenSet(false), m_titleHasBeenSet(false), m_categoryHasBeenSet(false), - m_severityHasBeenSet(false) + m_severityHasBeenSet(false), + m_actualStartTimeHasBeenSet(false), + m_actualEndTimeHasBeenSet(false), + m_plannedStartTimeHasBeenSet(false), + m_plannedEndTimeHasBeenSet(false) { } @@ -118,6 +122,26 @@ Aws::String UpdateOpsItemRequest::SerializePayload() const } + if(m_actualStartTimeHasBeenSet) + { + payload.WithDouble("ActualStartTime", m_actualStartTime.SecondsWithMSPrecision()); + } + + if(m_actualEndTimeHasBeenSet) + { + payload.WithDouble("ActualEndTime", m_actualEndTime.SecondsWithMSPrecision()); + } + + if(m_plannedStartTimeHasBeenSet) + { + payload.WithDouble("PlannedStartTime", m_plannedStartTime.SecondsWithMSPrecision()); + } + + if(m_plannedEndTimeHasBeenSet) + { + payload.WithDouble("PlannedEndTime", m_plannedEndTime.SecondsWithMSPrecision()); + } + return payload.View().WriteReadable(); } diff --git a/code-generation/api-descriptions/amp-2020-08-01.normal.json b/code-generation/api-descriptions/amp-2020-08-01.normal.json new file mode 100644 index 00000000000..11a07370994 --- /dev/null +++ b/code-generation/api-descriptions/amp-2020-08-01.normal.json @@ -0,0 +1,617 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-08-01", + "endpointPrefix":"aps", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"Amazon Prometheus Service", + "serviceId":"amp", + "signatureVersion":"v4", + "signingName":"aps", + "uid":"amp-2020-08-01" + }, + "operations":{ + "CreateWorkspace":{ + "name":"CreateWorkspace", + "http":{ + "method":"POST", + "requestUri":"/workspaces", + "responseCode":202 + }, + "input":{"shape":"CreateWorkspaceRequest"}, + "output":{"shape":"CreateWorkspaceResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "documentation":"

    Creates a new StealFire workspace.

    ", + "idempotent":true + }, + "DeleteWorkspace":{ + "name":"DeleteWorkspace", + "http":{ + "method":"DELETE", + "requestUri":"/workspaces/{workspaceId}", + "responseCode":202 + }, + "input":{"shape":"DeleteWorkspaceRequest"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Deletes a StealFire workspace.

    ", + "idempotent":true + }, + "DescribeWorkspace":{ + "name":"DescribeWorkspace", + "http":{ + "method":"GET", + "requestUri":"/workspaces/{workspaceId}", + "responseCode":200 + }, + "input":{"shape":"DescribeWorkspaceRequest"}, + "output":{"shape":"DescribeWorkspaceResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Describes an existing StealFire workspace.

    " + }, + "ListWorkspaces":{ + "name":"ListWorkspaces", + "http":{ + "method":"GET", + "requestUri":"/workspaces", + "responseCode":200 + }, + "input":{"shape":"ListWorkspacesRequest"}, + "output":{"shape":"ListWorkspacesResponse"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Lists all StealFire workspaces, including workspaces being created or deleted.

    " + }, + "UpdateWorkspaceAlias":{ + "name":"UpdateWorkspaceAlias", + "http":{ + "method":"POST", + "requestUri":"/workspaces/{workspaceId}/alias", + "responseCode":204 + }, + "input":{"shape":"UpdateWorkspaceAliasRequest"}, + "errors":[ + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"} + ], + "documentation":"

    Updates a StealFire workspace alias.

    ", + "idempotent":true + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + } + }, + "documentation":"

    User does not have sufficient access to perform this action.

    ", + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "ConflictException":{ + "type":"structure", + "required":[ + "message", + "resourceId", + "resourceType" + ], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + }, + "resourceId":{ + "shape":"String", + "documentation":"

    Identifier of the resource affected.

    " + }, + "resourceType":{ + "shape":"String", + "documentation":"

    Type of the resource affected.

    " + } + }, + "documentation":"

    Updating or deleting a resource can cause an inconsistent state.

    ", + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CreateWorkspaceRequest":{ + "type":"structure", + "members":{ + "alias":{ + "shape":"WorkspaceAlias", + "documentation":"

    An optional user-assigned alias for this workspace. This alias is for user reference and does not need to be unique.

    " + }, + "clientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

    ", + "idempotencyToken":true + } + }, + "documentation":"

    Represents the input of a CreateWorkspace operation.

    " + }, + "CreateWorkspaceResponse":{ + "type":"structure", + "required":[ + "arn", + "status", + "workspaceId" + ], + "members":{ + "arn":{ + "shape":"WorkspaceArn", + "documentation":"

    The ARN of the workspace that was just created.

    " + }, + "status":{ + "shape":"WorkspaceStatus", + "documentation":"

    The status of the workspace that was just created (usually CREATING).

    " + }, + "workspaceId":{ + "shape":"WorkspaceId", + "documentation":"

    The generated ID of the workspace that was just created.

    " + } + }, + "documentation":"

    Represents the output of a CreateWorkspace operation.

    " + }, + "DeleteWorkspaceRequest":{ + "type":"structure", + "required":["workspaceId"], + "members":{ + "clientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

    ", + "idempotencyToken":true, + "location":"querystring", + "locationName":"clientToken" + }, + "workspaceId":{ + "shape":"WorkspaceId", + "documentation":"

    The ID of the workspace to delete.

    ", + "location":"uri", + "locationName":"workspaceId" + } + }, + "documentation":"

    Represents the input of a DeleteWorkspace operation.

    " + }, + "DescribeWorkspaceRequest":{ + "type":"structure", + "required":["workspaceId"], + "members":{ + "workspaceId":{ + "shape":"WorkspaceId", + "documentation":"

    The ID of the workspace to describe.

    ", + "location":"uri", + "locationName":"workspaceId" + } + }, + "documentation":"

    Represents the input of a DescribeWorkspace operation.

    " + }, + "DescribeWorkspaceResponse":{ + "type":"structure", + "required":["workspace"], + "members":{ + "workspace":{ + "shape":"WorkspaceDescription", + "documentation":"

    The properties of the selected workspace.

    " + } + }, + "documentation":"

    Represents the output of a DescribeWorkspace operation.

    " + }, + "IdempotencyToken":{ + "type":"string", + "documentation":"

    An identifier used to ensure the idempotency of a write request.

    ", + "max":64, + "min":1, + "pattern":"[!-~]+" + }, + "Integer":{ + "type":"integer", + "box":true + }, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + }, + "retryAfterSeconds":{ + "shape":"Integer", + "documentation":"

    Advice to clients on when the call can be safely retried.

    ", + "location":"header", + "locationName":"Retry-After" + } + }, + "documentation":"

    Unexpected error during processing of request.

    ", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "ListWorkspacesRequest":{ + "type":"structure", + "members":{ + "alias":{ + "shape":"WorkspaceAlias", + "documentation":"

    Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.

    ", + "location":"querystring", + "locationName":"alias" + }, + "maxResults":{ + "shape":"ListWorkspacesRequestMaxResultsInteger", + "documentation":"

    Maximum results to return in response (default=100, maximum=1000).

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

    Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.

    ", + "location":"querystring", + "locationName":"nextToken" + } + }, + "documentation":"

    Represents the input of a ListWorkspaces operation.

    " + }, + "ListWorkspacesRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":1000, + "min":1 + }, + "ListWorkspacesResponse":{ + "type":"structure", + "required":["workspaces"], + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

    Pagination token to use when requesting the next page in this list.

    " + }, + "workspaces":{ + "shape":"WorkspaceSummaryList", + "documentation":"

    The list of existing workspaces, including those undergoing creation or deletion.

    " + } + }, + "documentation":"

    Represents the output of a ListWorkspaces operation.

    " + }, + "PaginationToken":{ + "type":"string", + "documentation":"

    A token used to access the next page in a paginated result set.

    " + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":[ + "message", + "resourceId", + "resourceType" + ], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + }, + "resourceId":{ + "shape":"String", + "documentation":"

    Identifier of the resource affected.

    " + }, + "resourceType":{ + "shape":"String", + "documentation":"

    Type of the resource affected.

    " + } + }, + "documentation":"

    Request references a resource which does not exist.

    ", + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":[ + "message", + "quotaCode", + "resourceId", + "resourceType", + "serviceCode" + ], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + }, + "quotaCode":{ + "shape":"String", + "documentation":"

    Service Quotas requirement to identify originating quota.

    " + }, + "resourceId":{ + "shape":"String", + "documentation":"

    Identifier of the resource affected.

    " + }, + "resourceType":{ + "shape":"String", + "documentation":"

    Type of the resource affected.

    " + }, + "serviceCode":{ + "shape":"String", + "documentation":"

    Service Quotas requirement to identify originating service.

    " + } + }, + "documentation":"

    Request would cause a service quota to be exceeded.

    ", + "error":{ + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, + "String":{"type":"string"}, + "ThrottlingException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + }, + "quotaCode":{ + "shape":"String", + "documentation":"

    Service Quotas requirement to identify originating quota.

    " + }, + "retryAfterSeconds":{ + "shape":"Integer", + "documentation":"

    Advice to clients on when the call can be safely retried.

    ", + "location":"header", + "locationName":"Retry-After" + }, + "serviceCode":{ + "shape":"String", + "documentation":"

    Service Quotas requirement to identify originating service.

    " + } + }, + "documentation":"

    Request was denied due to request throttling.

    ", + "error":{ + "httpStatusCode":429, + "senderFault":true + }, + "exception":true, + "retryable":{"throttling":false} + }, + "Timestamp":{"type":"timestamp"}, + "UpdateWorkspaceAliasRequest":{ + "type":"structure", + "required":["workspaceId"], + "members":{ + "alias":{ + "shape":"WorkspaceAlias", + "documentation":"

    The new alias of the workspace.

    " + }, + "clientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

    ", + "idempotencyToken":true + }, + "workspaceId":{ + "shape":"WorkspaceId", + "documentation":"

    The ID of the workspace being updated.

    ", + "location":"uri", + "locationName":"workspaceId" + } + }, + "documentation":"

    Represents the input of an UpdateWorkspaceAlias operation.

    " + }, + "Uri":{ + "type":"string", + "max":1024, + "min":1 + }, + "ValidationException":{ + "type":"structure", + "required":[ + "message", + "reason" + ], + "members":{ + "fieldList":{ + "shape":"ValidationExceptionFieldList", + "documentation":"

    The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.

    " + }, + "message":{ + "shape":"String", + "documentation":"

    Description of the error.

    " + }, + "reason":{ + "shape":"ValidationExceptionReason", + "documentation":"

    Reason the request failed validation.

    " + } + }, + "documentation":"

    The input fails to satisfy the constraints specified by an AWS service.

    ", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ValidationExceptionField":{ + "type":"structure", + "required":[ + "message", + "name" + ], + "members":{ + "message":{ + "shape":"String", + "documentation":"

    Message describing why the field failed validation.

    " + }, + "name":{ + "shape":"String", + "documentation":"

    The field name.

    " + } + }, + "documentation":"

    Stores information about a field passed inside a request that resulted in an exception.

    " + }, + "ValidationExceptionFieldList":{ + "type":"list", + "member":{"shape":"ValidationExceptionField"}, + "documentation":"

    A list of fields.

    " + }, + "ValidationExceptionReason":{ + "type":"string", + "documentation":"

    Possible reasons a request failed validation.

    ", + "enum":[ + "UNKNOWN_OPERATION", + "CANNOT_PARSE", + "FIELD_VALIDATION_FAILED", + "OTHER" + ] + }, + "WorkspaceAlias":{ + "type":"string", + "documentation":"

    A user-assigned workspace alias.

    ", + "max":100, + "min":1 + }, + "WorkspaceArn":{ + "type":"string", + "documentation":"

    An ARN identifying a Workspace.

    " + }, + "WorkspaceDescription":{ + "type":"structure", + "required":[ + "arn", + "createdAt", + "status", + "workspaceId" + ], + "members":{ + "alias":{ + "shape":"WorkspaceAlias", + "documentation":"

    Alias of this workspace.

    " + }, + "arn":{ + "shape":"WorkspaceArn", + "documentation":"

    The Amazon Resource Name (ARN) of this workspace.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    The time when the workspace was created.

    " + }, + "prometheusEndpoint":{ + "shape":"Uri", + "documentation":"

    Prometheus endpoint URI.

    " + }, + "status":{ + "shape":"WorkspaceStatus", + "documentation":"

    The status of this workspace.

    " + }, + "workspaceId":{ + "shape":"WorkspaceId", + "documentation":"

    Unique string identifying this workspace.

    " + } + }, + "documentation":"

    Represents the properties of a workspace.

    " + }, + "WorkspaceId":{ + "type":"string", + "documentation":"

    A workspace ID.

    ", + "max":64, + "min":1, + "pattern":"[0-9A-Za-z][-.0-9A-Z_a-z]*" + }, + "WorkspaceStatus":{ + "type":"structure", + "required":["statusCode"], + "members":{ + "statusCode":{ + "shape":"WorkspaceStatusCode", + "documentation":"

    Status code of this workspace.

    " + } + }, + "documentation":"

    Represents the status of a workspace.

    " + }, + "WorkspaceStatusCode":{ + "type":"string", + "documentation":"

    State of a workspace.

    ", + "enum":[ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "CREATION_FAILED" + ] + }, + "WorkspaceSummary":{ + "type":"structure", + "required":[ + "arn", + "createdAt", + "status", + "workspaceId" + ], + "members":{ + "alias":{ + "shape":"WorkspaceAlias", + "documentation":"

    Alias of this workspace.

    " + }, + "arn":{ + "shape":"WorkspaceArn", + "documentation":"

    The AmazonResourceName of this workspace.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    The time when the workspace was created.

    " + }, + "status":{ + "shape":"WorkspaceStatus", + "documentation":"

    The status of this workspace.

    " + }, + "workspaceId":{ + "shape":"WorkspaceId", + "documentation":"

    Unique string identifying this workspace.

    " + } + }, + "documentation":"

    Represents a summary of the properties of a workspace.

    " + }, + "WorkspaceSummaryList":{ + "type":"list", + "member":{"shape":"WorkspaceSummary"}, + "documentation":"

    A list of workspace summaries.

    " + } + }, + "documentation":"

    StealFire Service

    " +} diff --git a/code-generation/api-descriptions/greengrassv2-2020-11-30.normal.json b/code-generation/api-descriptions/greengrassv2-2020-11-30.normal.json new file mode 100644 index 00000000000..3461e894222 --- /dev/null +++ b/code-generation/api-descriptions/greengrassv2-2020-11-30.normal.json @@ -0,0 +1,2319 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-11-30", + "endpointPrefix":"greengrass", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"AWS GreengrassV2", + "serviceFullName":"AWS IoT Greengrass V2", + "serviceId":"GreengrassV2", + "signatureVersion":"v4", + "uid":"greengrassv2-2020-11-30" + }, + "operations":{ + "CancelDeployment":{ + "name":"CancelDeployment", + "http":{ + "method":"POST", + "requestUri":"/greengrass/v2/deployments/{deploymentId}/cancel" + }, + "input":{"shape":"CancelDeploymentRequest"}, + "output":{"shape":"CancelDeploymentResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Cancels a deployment. This operation cancels the deployment for devices that haven't yet received it. If a device already received the deployment, this operation doesn't change anything for that device.

    " + }, + "CreateComponentVersion":{ + "name":"CreateComponentVersion", + "http":{ + "method":"POST", + "requestUri":"/greengrass/v2/createComponentVersion", + "responseCode":201 + }, + "input":{"shape":"CreateComponentVersionRequest"}, + "output":{"shape":"CreateComponentVersionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Creates a component. Components are software that run on AWS IoT Greengrass core devices. After you develop and test a component on your core device, you can use this operation to upload your component to AWS IoT Greengrass. Then, you can deploy the component to other core devices.

    You can use this operation to do the following:

    • Create components from recipes

      Create a component from a recipe, which is a file that defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform capability. For more information, see AWS IoT Greengrass component recipe reference in the AWS IoT Greengrass V2 Developer Guide.

      To create a component from a recipe, specify inlineRecipe when you call this operation.

    • Create components from Lambda functions

      Create a component from an AWS Lambda function that runs on AWS IoT Greengrass. This creates a recipe and artifacts from the Lambda function's deployment package. You can use this operation to migrate Lambda functions from AWS IoT Greengrass V1 to AWS IoT Greengrass V2.

      This function only accepts Lambda functions that use the following runtimes:

      • Python 2.7 – python2.7

      • Python 3.7 – python3.7

      • Python 3.8 – python3.8

      • Java 8 – java8

      • Node.js 10 – nodejs10.x

      • Node.js 12 – nodejs12.x

      To create a component from a Lambda function, specify lambdaFunction when you call this operation.

    " + }, + "CreateDeployment":{ + "name":"CreateDeployment", + "http":{ + "method":"POST", + "requestUri":"/greengrass/v2/deployments", + "responseCode":201 + }, + "input":{"shape":"CreateDeploymentRequest"}, + "output":{"shape":"CreateDeploymentResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Creates a continuous deployment for a target, which is a AWS IoT Greengrass core device or group of core devices. When you add a new core device to a group of core devices that has a deployment, AWS IoT Greengrass deploys that group's deployment to the new device.

    You can define one deployment for each target. When you create a new deployment for a target that has an existing deployment, you replace the previous deployment. AWS IoT Greengrass applies the new deployment to the target devices.

    Every deployment has a revision number that indicates how many deployment revisions you define for a target. Use this operation to create a new revision of an existing deployment. This operation returns the revision number of the new deployment when you create it.

    For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "DeleteComponent":{ + "name":"DeleteComponent", + "http":{ + "method":"DELETE", + "requestUri":"/greengrass/v2/components/{arn}", + "responseCode":204 + }, + "input":{"shape":"DeleteComponentRequest"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Deletes a version of a component from AWS IoT Greengrass.

    This operation deletes the component's recipe and artifacts. As a result, deployments that refer to this component version will fail. If you have deployments that use this component version, you can remove the component from the deployment or update the deployment to use a valid version.

    " + }, + "DeleteCoreDevice":{ + "name":"DeleteCoreDevice", + "http":{ + "method":"DELETE", + "requestUri":"/greengrass/v2/coreDevices/{coreDeviceThingName}", + "responseCode":204 + }, + "input":{"shape":"DeleteCoreDeviceRequest"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This operation removes the core device from the list of core devices. This operation doesn't delete the AWS IoT thing. For more information about how to delete the AWS IoT thing, see DeleteThing in the AWS IoT API Reference.

    " + }, + "DescribeComponent":{ + "name":"DescribeComponent", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/components/{arn}/metadata" + }, + "input":{"shape":"DescribeComponentRequest"}, + "output":{"shape":"DescribeComponentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Retrieves metadata for a version of a component.

    " + }, + "GetComponent":{ + "name":"GetComponent", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/components/{arn}" + }, + "input":{"shape":"GetComponentRequest"}, + "output":{"shape":"GetComponentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Gets the recipe for a version of a component. Core devices can call this operation to identify the artifacts and requirements to install a component.

    " + }, + "GetComponentVersionArtifact":{ + "name":"GetComponentVersionArtifact", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/components/{arn}/artifacts/{artifactName+}" + }, + "input":{"shape":"GetComponentVersionArtifactRequest"}, + "output":{"shape":"GetComponentVersionArtifactResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Gets the pre-signed URL to a component artifact in an S3 bucket. Core devices can call this operation to identify the URL that they can use to download an artifact to install.

    " + }, + "GetCoreDevice":{ + "name":"GetCoreDevice", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/coreDevices/{coreDeviceThingName}" + }, + "input":{"shape":"GetCoreDeviceRequest"}, + "output":{"shape":"GetCoreDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves metadata for a AWS IoT Greengrass core device.

    " + }, + "GetDeployment":{ + "name":"GetDeployment", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/deployments/{deploymentId}" + }, + "input":{"shape":"GetDeploymentRequest"}, + "output":{"shape":"GetDeploymentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets a deployment. Deployments define the components that run on AWS IoT Greengrass core devices.

    " + }, + "ListComponentVersions":{ + "name":"ListComponentVersions", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/components/{arn}/versions" + }, + "input":{"shape":"ListComponentVersionsRequest"}, + "output":{"shape":"ListComponentVersionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Retrieves a paginated list of all versions for a component.

    " + }, + "ListComponents":{ + "name":"ListComponents", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/components" + }, + "input":{"shape":"ListComponentsRequest"}, + "output":{"shape":"ListComponentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Retrieves a paginated list of component summaries. This list includes components that you have permission to view.

    " + }, + "ListCoreDevices":{ + "name":"ListCoreDevices", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/coreDevices" + }, + "input":{"shape":"ListCoreDevicesRequest"}, + "output":{"shape":"ListCoreDevicesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves a paginated list of AWS IoT Greengrass core devices.

    " + }, + "ListDeployments":{ + "name":"ListDeployments", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/deployments" + }, + "input":{"shape":"ListDeploymentsRequest"}, + "output":{"shape":"ListDeploymentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves a paginated list of deployments.

    " + }, + "ListEffectiveDeployments":{ + "name":"ListEffectiveDeployments", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/coreDevices/{coreDeviceThingName}/effectiveDeployments" + }, + "input":{"shape":"ListEffectiveDeploymentsRequest"}, + "output":{"shape":"ListEffectiveDeploymentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends to AWS IoT Greengrass core devices.

    " + }, + "ListInstalledComponents":{ + "name":"ListInstalledComponents", + "http":{ + "method":"GET", + "requestUri":"/greengrass/v2/coreDevices/{coreDeviceThingName}/installedComponents" + }, + "input":{"shape":"ListInstalledComponentsRequest"}, + "output":{"shape":"ListInstalledComponentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves a paginated list of the components that a AWS IoT Greengrass core device runs.

    " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Retrieves the list of tags for an AWS IoT Greengrass resource.

    " + }, + "ResolveComponentCandidates":{ + "name":"ResolveComponentCandidates", + "http":{ + "method":"POST", + "requestUri":"/greengrass/v2/resolveComponentCandidates" + }, + "input":{"shape":"ResolveComponentCandidatesRequest"}, + "output":{"shape":"ResolveComponentCandidatesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Retrieves a list of components that meet the component, version, and platform requirements of a deployment. AWS IoT Greengrass core devices call this operation when they receive a deployment to identify the components to install.

    This operation identifies components that meet all dependency requirements for a deployment. If the requirements conflict, then this operation returns an error and the deployment fails. For example, this occurs if component A requires version >2.0.0 and component B requires version <2.0.0 of a component dependency.

    When you specify the component candidates to resolve, AWS IoT Greengrass compares each component's digest from the core device with the component's digest in the AWS Cloud. If the digests don't match, then AWS IoT Greengrass specifies to use the version from the AWS Cloud.

    To use this operation, you must use the data plane API endpoint and authenticate with an AWS IoT device certificate. For more information, see AWS IoT Greengrass endpoints and quotas.

    " + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the resource, this operation updates the tag's value.

    " + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Removes a tag from an AWS IoT Greengrass resource.

    " + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

    You don't have permission to perform the action.

    ", + "error":{"httpStatusCode":403}, + "exception":true + }, + "CancelDeploymentRequest":{ + "type":"structure", + "required":["deploymentId"], + "members":{ + "deploymentId":{ + "shape":"NonEmptyString", + "documentation":"

    The ID of the deployment.

    ", + "location":"uri", + "locationName":"deploymentId" + } + } + }, + "CancelDeploymentResponse":{ + "type":"structure", + "members":{ + "message":{ + "shape":"NonEmptyString", + "documentation":"

    A message that communicates if the cancel was successful.

    " + } + } + }, + "CloudComponentState":{ + "type":"string", + "enum":[ + "REQUESTED", + "INITIATED", + "DEPLOYABLE", + "FAILED", + "DEPRECATED" + ] + }, + "CloudComponentStatus":{ + "type":"structure", + "members":{ + "componentState":{ + "shape":"CloudComponentState", + "documentation":"

    The state of the component.

    " + }, + "message":{ + "shape":"NonEmptyString", + "documentation":"

    A message that communicates details, such as errors, about the status of the component.

    " + }, + "errors":{ + "shape":"StringMap", + "documentation":"

    A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT Greengrass can't access an artifact for the component, then errors contains the artifact's URI as a key, and the error message as the value for that key.

    " + } + }, + "documentation":"

    Contains the status of a component in the AWS IoT Greengrass service.

    " + }, + "Component":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"ComponentARN", + "documentation":"

    The ARN of the component version.

    " + }, + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "latestVersion":{ + "shape":"ComponentLatestVersion", + "documentation":"

    The latest version of the component and its details.

    " + } + }, + "documentation":"

    Contains information about a component.

    " + }, + "ComponentARN":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):components:[^:]+" + }, + "ComponentCandidate":{ + "type":"structure", + "members":{ + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "versionRequirements":{ + "shape":"ComponentVersionRequirementMap", + "documentation":"

    The version requirements for the component's dependencies. AWS IoT Greengrass core devices get the version requirements from component recipes.

    AWS IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

    " + } + }, + "documentation":"

    Contains information about a component that is a candidate to deploy to a AWS IoT Greengrass core device.

    " + }, + "ComponentCandidateList":{ + "type":"list", + "member":{"shape":"ComponentCandidate"} + }, + "ComponentConfigurationPath":{ + "type":"string", + "max":256, + "min":0 + }, + "ComponentConfigurationPathList":{ + "type":"list", + "member":{"shape":"ComponentConfigurationPath"} + }, + "ComponentConfigurationString":{ + "type":"string", + "max":65536, + "min":1 + }, + "ComponentConfigurationUpdate":{ + "type":"structure", + "members":{ + "merge":{ + "shape":"ComponentConfigurationString", + "documentation":"

    A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "reset":{ + "shape":"ComponentConfigurationPathList", + "documentation":"

    The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the AWS IoT Greengrass V2 Developer Guide.

    " + } + }, + "documentation":"

    Contains information about a deployment's update to a component's configuration on Greengrass core devices. For more information, see Update component configurations in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "ComponentDependencyMap":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"ComponentDependencyRequirement"} + }, + "ComponentDependencyRequirement":{ + "type":"structure", + "members":{ + "versionRequirement":{ + "shape":"NonEmptyString", + "documentation":"

    The component version requirement for the component dependency.

    AWS IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.

    " + }, + "dependencyType":{ + "shape":"ComponentDependencyType", + "documentation":"

    The type of this dependency. Choose from the following options:

    • SOFT – The component doesn't restart if the dependency changes state.

    • HARD – The component restarts if the dependency changes state.

    Default: HARD

    " + } + }, + "documentation":"

    Contains information about a component dependency for a Lambda function component.

    " + }, + "ComponentDependencyType":{ + "type":"string", + "enum":[ + "HARD", + "SOFT" + ] + }, + "ComponentDeploymentSpecification":{ + "type":"structure", + "members":{ + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "configurationUpdate":{ + "shape":"ComponentConfigurationUpdate", + "documentation":"

    The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The AWS IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "runWith":{ + "shape":"ComponentRunWith", + "documentation":"

    The system user and group that the AWS IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the AWS IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer Guide.

    " + } + }, + "documentation":"

    Contains information about a component to deploy.

    " + }, + "ComponentDeploymentSpecifications":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"ComponentDeploymentSpecification"} + }, + "ComponentLatestVersion":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "creationTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the component was created, expressed in ISO 8601 format.

    " + }, + "description":{ + "shape":"NonEmptyString", + "documentation":"

    The description of the component version.

    " + }, + "publisher":{ + "shape":"NonEmptyString", + "documentation":"

    The publisher of the component version.

    " + }, + "platforms":{ + "shape":"ComponentPlatformList", + "documentation":"

    The platforms that the component version supports.

    " + } + }, + "documentation":"

    Contains information about the latest version of a component.

    " + }, + "ComponentList":{ + "type":"list", + "member":{"shape":"Component"} + }, + "ComponentNameString":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9-_.]+" + }, + "ComponentPlatform":{ + "type":"structure", + "members":{ + "name":{ + "shape":"NonEmptyString", + "documentation":"

    The friendly name of the platform. This name helps you identify the platform.

    If you omit this parameter, AWS IoT Greengrass creates a friendly name from the os and architecture of the platform.

    " + }, + "attributes":{ + "shape":"PlatformAttributesMap", + "documentation":"

    A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide.

    " + } + }, + "documentation":"

    Contains information about a platform that a component supports.

    " + }, + "ComponentPlatformList":{ + "type":"list", + "member":{"shape":"ComponentPlatform"} + }, + "ComponentRunWith":{ + "type":"structure", + "members":{ + "posixUser":{ + "shape":"NonEmptyString", + "documentation":"

    The POSIX system user and (optional) group to use to run this component. Specify the user and group separated by a colon (:) in the following format: user:group. The group is optional. If you don't specify a group, the AWS IoT Greengrass Core software uses the primary user for the group.

    " + } + }, + "documentation":"

    Contains information system user and group that the AWS IoT Greengrass Core software uses to run component processes on the core device. For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "ComponentVersionARN":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):components:[^:]+:versions:[^:]+" + }, + "ComponentVersionList":{ + "type":"list", + "member":{"shape":"ComponentVersionListItem"} + }, + "ComponentVersionListItem":{ + "type":"structure", + "members":{ + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "arn":{ + "shape":"NonEmptyString", + "documentation":"

    The ARN of the component version.

    " + } + }, + "documentation":"

    Contains information about a component version in a list.

    " + }, + "ComponentVersionRequirementMap":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"NonEmptyString"} + }, + "ComponentVersionString":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[0-9a-zA-Z-.+]+" + }, + "ComponentVisibilityScope":{ + "type":"string", + "enum":[ + "PRIVATE", + "PUBLIC" + ] + }, + "ConflictException":{ + "type":"structure", + "required":[ + "message", + "resourceId", + "resourceType" + ], + "members":{ + "message":{"shape":"String"}, + "resourceId":{ + "shape":"String", + "documentation":"

    The ID of the resource that conflicts with the request.

    " + }, + "resourceType":{ + "shape":"String", + "documentation":"

    The type of the resource that conflicts with the request.

    " + } + }, + "documentation":"

    Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.

    ", + "error":{"httpStatusCode":409}, + "exception":true + }, + "CoreDevice":{ + "type":"structure", + "members":{ + "coreDeviceThingName":{ + "shape":"CoreDeviceThingName", + "documentation":"

    The name of the core device. This is also the name of the AWS IoT thing.

    " + }, + "status":{ + "shape":"CoreDeviceStatus", + "documentation":"

    The status of the core device. Core devices can have the following statuses:

    • HEALTHY – The AWS IoT Greengrass Core software and all components run on the core device without issue.

    • UNHEALTHY – The AWS IoT Greengrass Core software or a component is in a failed state on the core device.

    " + }, + "lastStatusUpdateTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the core device's status last updated, expressed in ISO 8601 format.

    " + } + }, + "documentation":"

    Contains information about a AWS IoT Greengrass core device, which is an AWS IoT thing that runs the AWS IoT Greengrass Core software.

    " + }, + "CoreDeviceArchitectureString":{ + "type":"string", + "max":255, + "min":1 + }, + "CoreDevicePlatformString":{ + "type":"string", + "max":255, + "min":1 + }, + "CoreDeviceStatus":{ + "type":"string", + "enum":[ + "HEALTHY", + "UNHEALTHY" + ] + }, + "CoreDeviceThingName":{ + "type":"string", + "max":128, + "min":1 + }, + "CoreDevicesList":{ + "type":"list", + "member":{"shape":"CoreDevice"} + }, + "CreateComponentVersionRequest":{ + "type":"structure", + "members":{ + "inlineRecipe":{ + "shape":"RecipeBlob", + "documentation":"

    The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.

    You must specify either inlineRecipe or lambdaFunction.

    " + }, + "lambdaFunction":{ + "shape":"LambdaFunctionRecipeSource", + "documentation":"

    The parameters to create a component from a Lambda function.

    You must specify either inlineRecipe or lambdaFunction.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "CreateComponentVersionResponse":{ + "type":"structure", + "required":[ + "componentName", + "componentVersion", + "creationTimestamp", + "status" + ], + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    " + }, + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "creationTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the component was created, expressed in ISO 8601 format.

    " + }, + "status":{ + "shape":"CloudComponentStatus", + "documentation":"

    The status of the component version in AWS IoT Greengrass V2. This status is different from the status of the component on a core device.

    " + } + } + }, + "CreateDeploymentRequest":{ + "type":"structure", + "required":["targetArn"], + "members":{ + "targetArn":{ + "shape":"TargetARN", + "documentation":"

    The ARN of the target AWS IoT thing or thing group.

    " + }, + "deploymentName":{ + "shape":"NonEmptyString", + "documentation":"

    The name of the deployment.

    You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.

    " + }, + "components":{ + "shape":"ComponentDeploymentSpecifications", + "documentation":"

    The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.

    " + }, + "iotJobConfiguration":{ + "shape":"DeploymentIoTJobConfiguration", + "documentation":"

    The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.

    " + }, + "deploymentPolicies":{ + "shape":"DeploymentPolicies", + "documentation":"

    The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "CreateDeploymentResponse":{ + "type":"structure", + "members":{ + "deploymentId":{ + "shape":"NonEmptyString", + "documentation":"

    The ID of the deployment.

    " + }, + "iotJobId":{ + "shape":"NonEmptyString", + "documentation":"

    The ID of the AWS IoT job that applies the deployment to target devices.

    " + }, + "iotJobArn":{ + "shape":"IoTJobARN", + "documentation":"

    The ARN of the AWS IoT job that applies the deployment to target devices.

    " + } + } + }, + "DefaultMaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "DeleteComponentRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    ", + "location":"uri", + "locationName":"arn" + } + } + }, + "DeleteCoreDeviceRequest":{ + "type":"structure", + "required":["coreDeviceThingName"], + "members":{ + "coreDeviceThingName":{ + "shape":"CoreDeviceThingName", + "documentation":"

    The name of the core device. This is also the name of the AWS IoT thing.

    ", + "location":"uri", + "locationName":"coreDeviceThingName" + } + } + }, + "Deployment":{ + "type":"structure", + "members":{ + "targetArn":{ + "shape":"TargetARN", + "documentation":"

    The ARN of the target AWS IoT thing or thing group.

    " + }, + "revisionId":{ + "shape":"NonEmptyString", + "documentation":"

    The revision number of the deployment.

    " + }, + "deploymentId":{ + "shape":"NonEmptyString", + "documentation":"

    The ID of the deployment.

    " + }, + "deploymentName":{ + "shape":"NonEmptyString", + "documentation":"

    The name of the deployment.

    You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.

    " + }, + "creationTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the deployment was created, expressed in ISO 8601 format.

    " + }, + "deploymentStatus":{ + "shape":"DeploymentStatus", + "documentation":"

    The status of the deployment.

    " + }, + "isLatestForTarget":{ + "shape":"IsLatestForTarget", + "documentation":"

    Whether or not the deployment is the latest revision for its target.

    " + } + }, + "documentation":"

    Contains information about a deployment.

    " + }, + "DeploymentComponentUpdatePolicy":{ + "type":"structure", + "members":{ + "timeoutInSeconds":{ + "shape":"OptionalInteger", + "documentation":"

    The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device.

    Default: 60

    ", + "box":true + }, + "action":{ + "shape":"DeploymentComponentUpdatePolicyAction", + "documentation":"

    Whether or not to notify components and wait for components to become safe to update. Choose from the following options:

    • NOTIFY_COMPONENTS – The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide.

    • SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify components or wait for them to be safe to update.

    Default: NOTIFY_COMPONENTS

    " + } + }, + "documentation":"

    Contains information about a deployment's policy that defines when components are safe to update.

    Each component on a device can report whether or not it's ready to update. After a component and its dependencies are ready, they can apply the update in the deployment. You can configure whether or not the deployment notifies components of an update and waits for a response. You specify the amount of time each component has to respond to the update notification.

    " + }, + "DeploymentComponentUpdatePolicyAction":{ + "type":"string", + "enum":[ + "NOTIFY_COMPONENTS", + "SKIP_NOTIFY_COMPONENTS" + ] + }, + "DeploymentConfigurationValidationPolicy":{ + "type":"structure", + "members":{ + "timeoutInSeconds":{ + "shape":"OptionalInteger", + "documentation":"

    The amount of time in seconds that a component can validate its configuration updates. If the validation time exceeds this timeout, then the deployment proceeds for the device.

    Default: 30

    ", + "box":true + } + }, + "documentation":"

    Contains information about how long a component on a core device can validate its configuration updates before it times out. Components can use the SubscribeToValidateConfigurationUpdates IPC operation to receive notifications when a deployment specifies a configuration update. Then, components can respond with the SendConfigurationValidityReport IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "DeploymentFailureHandlingPolicy":{ + "type":"string", + "enum":[ + "ROLLBACK", + "DO_NOTHING" + ] + }, + "DeploymentHistoryFilter":{ + "type":"string", + "enum":[ + "ALL", + "LATEST_ONLY" + ] + }, + "DeploymentID":{"type":"string"}, + "DeploymentIoTJobConfiguration":{ + "type":"structure", + "members":{ + "jobExecutionsRolloutConfig":{ + "shape":"IoTJobExecutionsRolloutConfig", + "documentation":"

    The rollout configuration for the job. This configuration defines the rate at which the job rolls out to the fleet of target devices.

    " + }, + "abortConfig":{ + "shape":"IoTJobAbortConfig", + "documentation":"

    The stop configuration for the job. This configuration defines when and how to stop a job rollout.

    " + }, + "timeoutConfig":{ + "shape":"IoTJobTimeoutConfig", + "documentation":"

    The timeout configuration for the job. This configuration defines the amount of time each device has to complete the job.

    " + } + }, + "documentation":"

    Contains information about an AWS IoT job configuration.

    " + }, + "DeploymentList":{ + "type":"list", + "member":{"shape":"Deployment"} + }, + "DeploymentName":{"type":"string"}, + "DeploymentPolicies":{ + "type":"structure", + "members":{ + "failureHandlingPolicy":{ + "shape":"DeploymentFailureHandlingPolicy", + "documentation":"

    The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.

    Default: ROLLBACK

    " + }, + "componentUpdatePolicy":{ + "shape":"DeploymentComponentUpdatePolicy", + "documentation":"

    The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.

    " + }, + "configurationValidationPolicy":{ + "shape":"DeploymentConfigurationValidationPolicy", + "documentation":"

    The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.

    " + } + }, + "documentation":"

    Contains information about policies that define how a deployment updates components and handles failure.

    " + }, + "DeploymentStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "COMPLETED", + "CANCELED", + "FAILED", + "INACTIVE" + ] + }, + "DescribeComponentRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    ", + "location":"uri", + "locationName":"arn" + } + } + }, + "DescribeComponentResponse":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    " + }, + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "creationTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the component was created, expressed in ISO 8601 format.

    " + }, + "publisher":{ + "shape":"PublisherString", + "documentation":"

    The publisher of the component version.

    " + }, + "description":{ + "shape":"DescriptionString", + "documentation":"

    The description of the component version.

    " + }, + "status":{ + "shape":"CloudComponentStatus", + "documentation":"

    The status of the component version in AWS IoT Greengrass V2. This status is different from the status of the component on a core device.

    " + }, + "platforms":{ + "shape":"ComponentPlatformList", + "documentation":"

    The platforms that the component version supports.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "Description":{ + "type":"string", + "max":500, + "min":1 + }, + "DescriptionString":{"type":"string"}, + "EffectiveDeployment":{ + "type":"structure", + "required":[ + "deploymentId", + "deploymentName", + "targetArn", + "coreDeviceExecutionStatus", + "creationTimestamp", + "modifiedTimestamp" + ], + "members":{ + "deploymentId":{ + "shape":"DeploymentID", + "documentation":"

    The ID of the deployment.

    " + }, + "deploymentName":{ + "shape":"DeploymentName", + "documentation":"

    The name of the deployment.

    You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.

    " + }, + "iotJobId":{ + "shape":"IoTJobId", + "documentation":"

    The ID of the AWS IoT job that applies the deployment to target devices.

    " + }, + "iotJobArn":{ + "shape":"IoTJobARN", + "documentation":"

    The ARN of the AWS IoT job that applies the deployment to target devices.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the deployment job.

    " + }, + "targetArn":{ + "shape":"TargetARN", + "documentation":"

    The ARN of the target AWS IoT thing or thing group.

    " + }, + "coreDeviceExecutionStatus":{ + "shape":"EffectiveDeploymentExecutionStatus", + "documentation":"

    The status of the deployment job on the AWS IoT Greengrass core device.

    " + }, + "reason":{ + "shape":"Reason", + "documentation":"

    The reason code for the update, if the job was updated.

    " + }, + "creationTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the deployment was created, expressed in ISO 8601 format.

    " + }, + "modifiedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the deployment job was last modified, expressed in ISO 8601 format.

    " + } + }, + "documentation":"

    Contains information about a deployment job that AWS IoT Greengrass sends to a AWS IoT Greengrass core device.

    " + }, + "EffectiveDeploymentExecutionStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "QUEUED", + "FAILED", + "COMPLETED", + "TIMED_OUT", + "CANCELED", + "REJECTED" + ] + }, + "EffectiveDeploymentsList":{ + "type":"list", + "member":{"shape":"EffectiveDeployment"} + }, + "FileSystemPath":{"type":"string"}, + "GGCVersion":{ + "type":"string", + "max":255, + "min":1 + }, + "GenericV2ARN":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:greengrass:[^:]+:(aws|[0-9]+):(components|deployments|coreDevices):.+" + }, + "GetComponentRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "recipeOutputFormat":{ + "shape":"RecipeOutputFormat", + "documentation":"

    The format of the recipe.

    ", + "location":"querystring", + "locationName":"recipeOutputFormat" + }, + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    ", + "location":"uri", + "locationName":"arn" + } + } + }, + "GetComponentResponse":{ + "type":"structure", + "required":[ + "recipeOutputFormat", + "recipe" + ], + "members":{ + "recipeOutputFormat":{ + "shape":"RecipeOutputFormat", + "documentation":"

    The format of the recipe.

    " + }, + "recipe":{ + "shape":"RecipeBlob", + "documentation":"

    The recipe of the component version.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "GetComponentVersionArtifactRequest":{ + "type":"structure", + "required":[ + "arn", + "artifactName" + ], + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    ", + "location":"uri", + "locationName":"arn" + }, + "artifactName":{ + "shape":"NonEmptyString", + "documentation":"

    The name of the artifact.

    ", + "location":"uri", + "locationName":"artifactName" + } + } + }, + "GetComponentVersionArtifactResponse":{ + "type":"structure", + "required":["preSignedUrl"], + "members":{ + "preSignedUrl":{ + "shape":"NonEmptyString", + "documentation":"

    The URL to the artifact.

    " + } + } + }, + "GetCoreDeviceRequest":{ + "type":"structure", + "required":["coreDeviceThingName"], + "members":{ + "coreDeviceThingName":{ + "shape":"CoreDeviceThingName", + "documentation":"

    The name of the core device. This is also the name of the AWS IoT thing.

    ", + "location":"uri", + "locationName":"coreDeviceThingName" + } + } + }, + "GetCoreDeviceResponse":{ + "type":"structure", + "members":{ + "coreDeviceThingName":{ + "shape":"CoreDeviceThingName", + "documentation":"

    The name of the core device. This is also the name of the AWS IoT thing.

    " + }, + "coreVersion":{ + "shape":"GGCVersion", + "documentation":"

    The version of the AWS IoT Greengrass Core software that the core device runs. This version is equivalent to the version of the AWS IoT Greengrass nucleus component that runs on the core device. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide.

    " + }, + "platform":{ + "shape":"CoreDevicePlatformString", + "documentation":"

    The operating system platform that the core device runs.

    " + }, + "architecture":{ + "shape":"CoreDeviceArchitectureString", + "documentation":"

    The computer architecture of the core device.

    " + }, + "status":{ + "shape":"CoreDeviceStatus", + "documentation":"

    The status of the core device. The core device status can be:

    • HEALTHY – The AWS IoT Greengrass Core software and all components run on the core device without issue.

    • UNHEALTHY – The AWS IoT Greengrass Core software or a component is in a failed state on the core device.

    " + }, + "lastStatusUpdateTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the core device's status last updated, expressed in ISO 8601 format.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "GetDeploymentRequest":{ + "type":"structure", + "required":["deploymentId"], + "members":{ + "deploymentId":{ + "shape":"NonEmptyString", + "documentation":"

    The ID of the deployment.

    ", + "location":"uri", + "locationName":"deploymentId" + } + } + }, + "GetDeploymentResponse":{ + "type":"structure", + "members":{ + "targetArn":{ + "shape":"TargetARN", + "documentation":"

    The ARN of the target AWS IoT thing or thing group.

    " + }, + "revisionId":{ + "shape":"NonEmptyString", + "documentation":"

    The revision number of the deployment.

    " + }, + "deploymentId":{ + "shape":"NonEmptyString", + "documentation":"

    The ID of the deployment.

    " + }, + "deploymentName":{ + "shape":"NullableString", + "documentation":"

    The name of the deployment.

    You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.

    " + }, + "deploymentStatus":{ + "shape":"DeploymentStatus", + "documentation":"

    The status of the deployment.

    " + }, + "iotJobId":{ + "shape":"NullableString", + "documentation":"

    The ID of the AWS IoT job that applies the deployment to target devices.

    " + }, + "iotJobArn":{ + "shape":"IoTJobARN", + "documentation":"

    The ARN of the AWS IoT job that applies the deployment to target devices.

    " + }, + "components":{ + "shape":"ComponentDeploymentSpecifications", + "documentation":"

    The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.

    " + }, + "deploymentPolicies":{ + "shape":"DeploymentPolicies", + "documentation":"

    The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.

    " + }, + "iotJobConfiguration":{ + "shape":"DeploymentIoTJobConfiguration", + "documentation":"

    The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.

    " + }, + "creationTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The time at which the deployment was created, expressed in ISO 8601 format.

    " + }, + "isLatestForTarget":{ + "shape":"IsLatestForTarget", + "documentation":"

    Whether or not the deployment is the latest revision for its target.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "InstalledComponent":{ + "type":"structure", + "members":{ + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "lifecycleState":{ + "shape":"InstalledComponentLifecycleState", + "documentation":"

    The lifecycle state of the component.

    " + }, + "lifecycleStateDetails":{ + "shape":"LifecycleStateDetails", + "documentation":"

    The details about the lifecycle state of the component.

    " + }, + "isRoot":{ + "shape":"IsRoot", + "documentation":"

    Whether or not the component is a root component.

    " + } + }, + "documentation":"

    Contains information about a component on a AWS IoT Greengrass core device.

    " + }, + "InstalledComponentLifecycleState":{ + "type":"string", + "enum":[ + "NEW", + "INSTALLED", + "STARTING", + "RUNNING", + "STOPPING", + "ERRORED", + "BROKEN", + "FINISHED" + ] + }, + "InstalledComponentList":{ + "type":"list", + "member":{"shape":"InstalledComponent"} + }, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "retryAfterSeconds":{ + "shape":"RetryAfterSeconds", + "documentation":"

    The amount of time to wait before you retry the request.

    ", + "location":"header", + "locationName":"Retry-After" + } + }, + "documentation":"

    AWS IoT Greengrass can't process your request right now. Try again later.

    ", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "IoTJobARN":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:job/.+" + }, + "IoTJobAbortAction":{ + "type":"string", + "enum":["CANCEL"] + }, + "IoTJobAbortConfig":{ + "type":"structure", + "required":["criteriaList"], + "members":{ + "criteriaList":{ + "shape":"IoTJobAbortCriteriaList", + "documentation":"

    The list of criteria that define when and how to cancel the configuration deployment.

    " + } + }, + "documentation":"

    Contains a list of criteria that define when and how to cancel a configuration deployment.

    " + }, + "IoTJobAbortCriteria":{ + "type":"structure", + "required":[ + "failureType", + "action", + "thresholdPercentage", + "minNumberOfExecutedThings" + ], + "members":{ + "failureType":{ + "shape":"IoTJobExecutionFailureType", + "documentation":"

    The type of job deployment failure that can cancel a job.

    " + }, + "action":{ + "shape":"IoTJobAbortAction", + "documentation":"

    The action to perform when the criteria are met.

    " + }, + "thresholdPercentage":{ + "shape":"IoTJobAbortThresholdPercentage", + "documentation":"

    The minimum percentage of failureType failures that occur before the job can cancel.

    This parameter supports up to two digits after the decimal (for example, you can specify 10.9 or 10.99, but not 10.999).

    " + }, + "minNumberOfExecutedThings":{ + "shape":"IoTJobMinimumNumberOfExecutedThings", + "documentation":"

    The minimum number of things that receive the configuration before the job can cancel.

    " + } + }, + "documentation":"

    Contains criteria that define when and how to cancel a job.

    The deployment stops if the following conditions are true:

    1. The number of things that receive the deployment exceeds the minNumberOfExecutedThings.

    2. The percentage of failures with type failureType exceeds the thresholdPercentage.

    " + }, + "IoTJobAbortCriteriaList":{ + "type":"list", + "member":{"shape":"IoTJobAbortCriteria"}, + "min":1 + }, + "IoTJobAbortThresholdPercentage":{ + "type":"double", + "max":100 + }, + "IoTJobExecutionFailureType":{ + "type":"string", + "enum":[ + "FAILED", + "REJECTED", + "TIMED_OUT", + "ALL" + ] + }, + "IoTJobExecutionsRolloutConfig":{ + "type":"structure", + "members":{ + "exponentialRate":{ + "shape":"IoTJobExponentialRolloutRate", + "documentation":"

    The exponential rate to increase the job rollout rate.

    " + }, + "maximumPerMinute":{ + "shape":"IoTJobMaxExecutionsPerMin", + "documentation":"

    The maximum number of devices that receive a pending job notification, per minute.

    ", + "box":true + } + }, + "documentation":"

    Contains information about the rollout configuration for a job. This configuration defines the rate at which the job deploys a configuration to a fleet of target devices.

    " + }, + "IoTJobExponentialRolloutRate":{ + "type":"structure", + "required":[ + "baseRatePerMinute", + "incrementFactor", + "rateIncreaseCriteria" + ], + "members":{ + "baseRatePerMinute":{ + "shape":"IoTJobRolloutBaseRatePerMinute", + "documentation":"

    The minimum number of devices that receive a pending job notification, per minute, when the job starts. This parameter defines the initial rollout rate of the job.

    " + }, + "incrementFactor":{ + "shape":"IoTJobRolloutIncrementFactor", + "documentation":"

    The exponential factor to increase the rollout rate for the job.

    This parameter supports up to one digit after the decimal (for example, you can specify 1.5, but not 1.55).

    " + }, + "rateIncreaseCriteria":{ + "shape":"IoTJobRateIncreaseCriteria", + "documentation":"

    The criteria to increase the rollout rate for the job.

    " + } + }, + "documentation":"

    Contains information about an exponential rollout rate for a configuration deployment job.

    " + }, + "IoTJobId":{ + "type":"string", + "max":255, + "min":1 + }, + "IoTJobInProgressTimeoutInMinutes":{"type":"long"}, + "IoTJobMaxExecutionsPerMin":{ + "type":"integer", + "max":1000, + "min":1 + }, + "IoTJobMinimumNumberOfExecutedThings":{ + "type":"integer", + "min":1 + }, + "IoTJobNumberOfThings":{ + "type":"integer", + "min":1 + }, + "IoTJobRateIncreaseCriteria":{ + "type":"structure", + "members":{ + "numberOfNotifiedThings":{ + "shape":"IoTJobNumberOfThings", + "documentation":"

    The number of devices to receive the job notification before the rollout rate increases.

    ", + "box":true + }, + "numberOfSucceededThings":{ + "shape":"IoTJobNumberOfThings", + "documentation":"

    The number of devices to successfully run the configuration job before the rollout rate increases.

    ", + "box":true + } + }, + "documentation":"

    Contains information about criteria to meet before a job increases its rollout rate. Specify either numberOfNotifiedThings or numberOfSucceededThings.

    " + }, + "IoTJobRolloutBaseRatePerMinute":{ + "type":"integer", + "max":1000, + "min":1 + }, + "IoTJobRolloutIncrementFactor":{ + "type":"double", + "max":5, + "min":1 + }, + "IoTJobTimeoutConfig":{ + "type":"structure", + "members":{ + "inProgressTimeoutInMinutes":{ + "shape":"IoTJobInProgressTimeoutInMinutes", + "documentation":"

    The amount of time, in minutes, that devices have to complete the job. The timer starts when the job status is set to IN_PROGRESS. If the job status doesn't change to a terminal state before the time expires, then the job status is set to TIMED_OUT.

    The timeout interval must be between 1 minute and 7 days (10080 minutes).

    ", + "box":true + } + }, + "documentation":"

    Contains information about the timeout configuration for a job.

    " + }, + "IsLatestForTarget":{"type":"boolean"}, + "IsRoot":{"type":"boolean"}, + "LambdaContainerParams":{ + "type":"structure", + "members":{ + "memorySizeInKB":{ + "shape":"OptionalInteger", + "documentation":"

    The memory size of the container, expressed in kilobytes.

    Default: 16384 (16 MB)

    ", + "box":true + }, + "mountROSysfs":{ + "shape":"OptionalBoolean", + "documentation":"

    Whether or not the container can read information from the device's /sys folder.

    Default: false

    ", + "box":true + }, + "volumes":{ + "shape":"LambdaVolumeList", + "documentation":"

    The list of volumes that the container can access.

    " + }, + "devices":{ + "shape":"LambdaDeviceList", + "documentation":"

    The list of system devices that the container can access.

    " + } + }, + "documentation":"

    Contains information about a container in which AWS Lambda functions run on AWS IoT Greengrass core devices.

    " + }, + "LambdaDeviceList":{ + "type":"list", + "member":{"shape":"LambdaDeviceMount"} + }, + "LambdaDeviceMount":{ + "type":"structure", + "required":["path"], + "members":{ + "path":{ + "shape":"FileSystemPath", + "documentation":"

    The mount path for the device in the file system.

    " + }, + "permission":{ + "shape":"LambdaFilesystemPermission", + "documentation":"

    The permission to access the device: read/only (ro) or read/write (rw).

    Default: ro

    " + }, + "addGroupOwner":{ + "shape":"OptionalBoolean", + "documentation":"

    Whether or not to add the component's system user as an owner of the device.

    Default: false

    ", + "box":true + } + }, + "documentation":"

    Contains information about a device that Linux processes in a container can access.

    " + }, + "LambdaEnvironmentVariables":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"String"} + }, + "LambdaEventSource":{ + "type":"structure", + "required":[ + "topic", + "type" + ], + "members":{ + "topic":{ + "shape":"TopicString", + "documentation":"

    The topic to which to subscribe to receive event messages.

    " + }, + "type":{ + "shape":"LambdaEventSourceType", + "documentation":"

    The type of event source. Choose from the following options:

    • PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic.

    • IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

    " + } + }, + "documentation":"

    Contains information about an event source for an AWS Lambda function. The event source defines the topics on which this Lambda function subscribes to receive messages that run the function.

    " + }, + "LambdaEventSourceList":{ + "type":"list", + "member":{"shape":"LambdaEventSource"} + }, + "LambdaEventSourceType":{ + "type":"string", + "enum":[ + "PUB_SUB", + "IOT_CORE" + ] + }, + "LambdaExecArg":{"type":"string"}, + "LambdaExecArgsList":{ + "type":"list", + "member":{"shape":"LambdaExecArg"} + }, + "LambdaExecutionParameters":{ + "type":"structure", + "members":{ + "eventSources":{ + "shape":"LambdaEventSourceList", + "documentation":"

    The list of event sources to which to subscribe to receive work messages. The Lambda function runs when it receives a message from an event source. You can subscribe this function to local publish/subscribe messages and AWS IoT Core MQTT messages.

    " + }, + "maxQueueSize":{ + "shape":"OptionalInteger", + "documentation":"

    The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.

    ", + "box":true + }, + "maxInstancesCount":{ + "shape":"OptionalInteger", + "documentation":"

    The maximum number of instances that a non-pinned Lambda function can run at the same time.

    ", + "box":true + }, + "maxIdleTimeInSeconds":{ + "shape":"OptionalInteger", + "documentation":"

    The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.

    ", + "box":true + }, + "timeoutInSeconds":{ + "shape":"OptionalInteger", + "documentation":"

    The maximum amount of time in seconds that the Lambda function can process a work item.

    ", + "box":true + }, + "statusTimeoutInSeconds":{ + "shape":"OptionalInteger", + "documentation":"

    The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.

    ", + "box":true + }, + "pinned":{ + "shape":"OptionalBoolean", + "documentation":"

    Whether or not the Lambda function is pinned, or long-lived.

    • A pinned Lambda function starts when AWS IoT Greengrass starts and keeps running in its own container.

    • A non-pinned Lambda function starts only when it receives a work item and exists after it idles for maxIdleTimeInSeconds. If the function has multiple work items, the AWS IoT Greengrass Core software creates multiple instances of the function.

    Default: true

    ", + "box":true + }, + "inputPayloadEncodingType":{ + "shape":"LambdaInputPayloadEncodingType", + "documentation":"

    The encoding type that the Lambda function supports.

    Default: json

    " + }, + "execArgs":{ + "shape":"LambdaExecArgsList", + "documentation":"

    The list of arguments to pass to the Lambda function when it runs.

    " + }, + "environmentVariables":{ + "shape":"LambdaEnvironmentVariables", + "documentation":"

    The map of environment variables that are available to the Lambda function when it runs.

    " + }, + "linuxProcessParams":{ + "shape":"LambdaLinuxProcessParams", + "documentation":"

    The parameters for the Linux process that contains the Lambda function.

    " + } + }, + "documentation":"

    Contains parameters for a Lambda function that runs on AWS IoT Greengrass.

    " + }, + "LambdaFilesystemPermission":{ + "type":"string", + "enum":[ + "ro", + "rw" + ] + }, + "LambdaFunctionARNWithVersionNumber":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:lambda:[^:]+:[0-9]+:function:[a-zA-Z0-9-_]+:[0-9]+" + }, + "LambdaFunctionRecipeSource":{ + "type":"structure", + "required":["lambdaArn"], + "members":{ + "lambdaArn":{ + "shape":"LambdaFunctionARNWithVersionNumber", + "documentation":"

    The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like $LATEST.

    " + }, + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    Defaults to the name of the Lambda function.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    Defaults to the version of the Lambda function as a semantic version. For example, if your function version is 3, the component version becomes 3.0.0.

    " + }, + "componentPlatforms":{ + "shape":"ComponentPlatformList", + "documentation":"

    The platforms that the component version supports.

    " + }, + "componentDependencies":{ + "shape":"ComponentDependencyMap", + "documentation":"

    The component versions on which this Lambda function component depends.

    " + }, + "componentLambdaParameters":{ + "shape":"LambdaExecutionParameters", + "documentation":"

    The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.

    " + } + }, + "documentation":"

    Contains information about an AWS Lambda function to import to create a component.

    " + }, + "LambdaInputPayloadEncodingType":{ + "type":"string", + "enum":[ + "json", + "binary" + ] + }, + "LambdaIsolationMode":{ + "type":"string", + "enum":[ + "GreengrassContainer", + "NoContainer" + ] + }, + "LambdaLinuxProcessParams":{ + "type":"structure", + "members":{ + "isolationMode":{ + "shape":"LambdaIsolationMode", + "documentation":"

    The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container.

    Default: GreengrassContainer

    " + }, + "containerParams":{ + "shape":"LambdaContainerParams", + "documentation":"

    The parameters for the container in which the Lambda function runs.

    " + } + }, + "documentation":"

    Contains parameters for a Linux process that contains an AWS Lambda function.

    " + }, + "LambdaVolumeList":{ + "type":"list", + "member":{"shape":"LambdaVolumeMount"} + }, + "LambdaVolumeMount":{ + "type":"structure", + "required":[ + "sourcePath", + "destinationPath" + ], + "members":{ + "sourcePath":{ + "shape":"FileSystemPath", + "documentation":"

    The path to the physical volume in the file system.

    " + }, + "destinationPath":{ + "shape":"FileSystemPath", + "documentation":"

    The path to the logical volume in the file system.

    " + }, + "permission":{ + "shape":"LambdaFilesystemPermission", + "documentation":"

    The permission to access the volume: read/only (ro) or read/write (rw).

    Default: ro

    " + }, + "addGroupOwner":{ + "shape":"OptionalBoolean", + "documentation":"

    Whether or not to add the AWS IoT Greengrass user group as an owner of the volume.

    Default: false

    ", + "box":true + } + }, + "documentation":"

    Contains information about a volume that Linux processes in a container can access. When you define a volume, the AWS IoT Greengrass Core software mounts the source files to the destination inside the container.

    " + }, + "LifecycleStateDetails":{ + "type":"string", + "max":1000, + "min":1 + }, + "ListComponentVersionsRequest":{ + "type":"structure", + "required":["arn"], + "members":{ + "arn":{ + "shape":"ComponentARN", + "documentation":"

    The ARN of the component version.

    ", + "location":"uri", + "locationName":"arn" + }, + "maxResults":{ + "shape":"DefaultMaxResults", + "documentation":"

    The maximum number of results to be returned per paginated request.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token to be used for the next set of paginated results.

    ", + "box":true, + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListComponentVersionsResponse":{ + "type":"structure", + "members":{ + "componentVersions":{ + "shape":"ComponentVersionList", + "documentation":"

    A list of versions that exist for the component.

    " + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token for the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListComponentsRequest":{ + "type":"structure", + "members":{ + "scope":{ + "shape":"ComponentVisibilityScope", + "documentation":"

    The scope of the components to list.

    Default: PRIVATE

    ", + "location":"querystring", + "locationName":"scope" + }, + "maxResults":{ + "shape":"DefaultMaxResults", + "documentation":"

    The maximum number of results to be returned per paginated request.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token to be used for the next set of paginated results.

    ", + "box":true, + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListComponentsResponse":{ + "type":"structure", + "members":{ + "components":{ + "shape":"ComponentList", + "documentation":"

    A list that summarizes each component.

    " + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token for the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListCoreDevicesRequest":{ + "type":"structure", + "members":{ + "thingGroupArn":{ + "shape":"ThingGroupARN", + "documentation":"

    The ARN of the AWS IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that are members of this thing group.

    ", + "location":"querystring", + "locationName":"thingGroupArn" + }, + "status":{ + "shape":"CoreDeviceStatus", + "documentation":"

    The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options:

    • HEALTHY – The AWS IoT Greengrass Core software and all components run on the core device without issue.

    • UNHEALTHY – The AWS IoT Greengrass Core software or a component is in a failed state on the core device.

    ", + "location":"querystring", + "locationName":"status" + }, + "maxResults":{ + "shape":"DefaultMaxResults", + "documentation":"

    The maximum number of results to be returned per paginated request.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token to be used for the next set of paginated results.

    ", + "box":true, + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListCoreDevicesResponse":{ + "type":"structure", + "members":{ + "coreDevices":{ + "shape":"CoreDevicesList", + "documentation":"

    A list that summarizes each core device.

    " + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token for the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListDeploymentsRequest":{ + "type":"structure", + "members":{ + "targetArn":{ + "shape":"TargetARN", + "documentation":"

    The ARN of the target AWS IoT thing or thing group.

    ", + "location":"querystring", + "locationName":"targetArn" + }, + "historyFilter":{ + "shape":"DeploymentHistoryFilter", + "documentation":"

    The filter for the list of deployments. Choose one of the following options:

    • ALL – The list includes all deployments.

    • LATEST_ONLY – The list includes only the latest revision of each deployment.

    Default: LATEST_ONLY

    ", + "location":"querystring", + "locationName":"historyFilter" + }, + "maxResults":{ + "shape":"DefaultMaxResults", + "documentation":"

    The maximum number of results to be returned per paginated request.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token to be used for the next set of paginated results.

    ", + "box":true, + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDeploymentsResponse":{ + "type":"structure", + "members":{ + "deployments":{ + "shape":"DeploymentList", + "documentation":"

    A list that summarizes each deployment.

    " + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token for the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListEffectiveDeploymentsRequest":{ + "type":"structure", + "required":["coreDeviceThingName"], + "members":{ + "coreDeviceThingName":{ + "shape":"CoreDeviceThingName", + "documentation":"

    The name of the core device. This is also the name of the AWS IoT thing.

    ", + "location":"uri", + "locationName":"coreDeviceThingName" + }, + "maxResults":{ + "shape":"DefaultMaxResults", + "documentation":"

    The maximum number of results to be returned per paginated request.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token to be used for the next set of paginated results.

    ", + "box":true, + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListEffectiveDeploymentsResponse":{ + "type":"structure", + "members":{ + "effectiveDeployments":{ + "shape":"EffectiveDeploymentsList", + "documentation":"

    A list that summarizes each deployment on the core device.

    " + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token for the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListInstalledComponentsRequest":{ + "type":"structure", + "required":["coreDeviceThingName"], + "members":{ + "coreDeviceThingName":{ + "shape":"CoreDeviceThingName", + "documentation":"

    The name of the core device. This is also the name of the AWS IoT thing.

    ", + "location":"uri", + "locationName":"coreDeviceThingName" + }, + "maxResults":{ + "shape":"DefaultMaxResults", + "documentation":"

    The maximum number of results to be returned per paginated request.

    ", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token to be used for the next set of paginated results.

    ", + "box":true, + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListInstalledComponentsResponse":{ + "type":"structure", + "members":{ + "installedComponents":{ + "shape":"InstalledComponentList", + "documentation":"

    A list that summarizes each component on the core device.

    " + }, + "nextToken":{ + "shape":"NextTokenString", + "documentation":"

    The token for the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"GenericV2ARN", + "documentation":"

    The ARN of the resource.

    ", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "NextTokenString":{"type":"string"}, + "NonEmptyString":{ + "type":"string", + "min":1 + }, + "NullableString":{"type":"string"}, + "OptionalBoolean":{"type":"boolean"}, + "OptionalInteger":{"type":"integer"}, + "PlatformAttributesMap":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"NonEmptyString"} + }, + "PublisherString":{"type":"string"}, + "Reason":{"type":"string"}, + "RecipeBlob":{"type":"blob"}, + "RecipeOutputFormat":{ + "type":"string", + "enum":[ + "JSON", + "YAML" + ] + }, + "ResolveComponentCandidatesRequest":{ + "type":"structure", + "required":[ + "platform", + "componentCandidates" + ], + "members":{ + "platform":{ + "shape":"ComponentPlatform", + "documentation":"

    The platform to use to resolve compatible components.

    " + }, + "componentCandidates":{ + "shape":"ComponentCandidateList", + "documentation":"

    The list of components to resolve.

    " + } + } + }, + "ResolveComponentCandidatesResponse":{ + "type":"structure", + "members":{ + "resolvedComponentVersions":{ + "shape":"ResolvedComponentVersionsList", + "documentation":"

    A list of components that meet the requirements that you specify in the request. This list includes each component's recipe that you can use to install the component.

    " + } + } + }, + "ResolvedComponentVersion":{ + "type":"structure", + "members":{ + "arn":{ + "shape":"ComponentVersionARN", + "documentation":"

    The ARN of the component version.

    " + }, + "componentName":{ + "shape":"ComponentNameString", + "documentation":"

    The name of the component.

    " + }, + "componentVersion":{ + "shape":"ComponentVersionString", + "documentation":"

    The version of the component.

    " + }, + "recipe":{ + "shape":"RecipeBlob", + "documentation":"

    The recipe of the component version.

    " + } + }, + "documentation":"

    Contains information about a component version that is compatible to run on a AWS IoT Greengrass core device.

    " + }, + "ResolvedComponentVersionsList":{ + "type":"list", + "member":{"shape":"ResolvedComponentVersion"} + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":[ + "message", + "resourceId", + "resourceType" + ], + "members":{ + "message":{"shape":"String"}, + "resourceId":{ + "shape":"String", + "documentation":"

    The ID of the resource that isn't found.

    " + }, + "resourceType":{ + "shape":"String", + "documentation":"

    The type of the resource that isn't found.

    " + } + }, + "documentation":"

    The requested resource can't be found.

    ", + "error":{"httpStatusCode":404}, + "exception":true + }, + "RetryAfterSeconds":{"type":"integer"}, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":[ + "message", + "quotaCode", + "serviceCode" + ], + "members":{ + "message":{"shape":"String"}, + "resourceId":{ + "shape":"String", + "documentation":"

    The ID of the resource that exceeds the service quota.

    " + }, + "resourceType":{ + "shape":"String", + "documentation":"

    The type of the resource that exceeds the service quota.

    " + }, + "quotaCode":{ + "shape":"String", + "documentation":"

    The code for the quota in Service Quotas.

    " + }, + "serviceCode":{ + "shape":"String", + "documentation":"

    The code for the service in Service Quotas.

    " + } + }, + "documentation":"

    Your request exceeds a service quota. For example, you might have the maximum number of components that you can create.

    ", + "error":{"httpStatusCode":402}, + "exception":true + }, + "String":{"type":"string"}, + "StringMap":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"NonEmptyString"} + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":1 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":50, + "min":1 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"GenericV2ARN", + "documentation":"

    The ARN of the resource to tag.

    ", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.

    " + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256 + }, + "TargetARN":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:(thing|thinggroup)/.+" + }, + "ThingGroupARN":{ + "type":"string", + "pattern":"arn:aws(-cn|-us-gov)?:iot:[^:]+:[0-9]+:thinggroup/.+" + }, + "ThrottlingException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "quotaCode":{ + "shape":"String", + "documentation":"

    The code for the quota in Service Quotas.

    " + }, + "serviceCode":{ + "shape":"String", + "documentation":"

    The code for the service in Service Quotas.

    " + }, + "retryAfterSeconds":{ + "shape":"RetryAfterSeconds", + "documentation":"

    The amount of time to wait before you retry the request.

    ", + "location":"header", + "locationName":"Retry-After" + } + }, + "documentation":"

    Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.

    ", + "error":{"httpStatusCode":429}, + "exception":true + }, + "Timestamp":{"type":"timestamp"}, + "TopicString":{"type":"string"}, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"GenericV2ARN", + "documentation":"

    The ARN of the resource to untag.

    ", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "documentation":"

    A list of keys for tags to remove from the resource.

    ", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "ValidationException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "reason":{ + "shape":"ValidationExceptionReason", + "documentation":"

    The reason for the validation exception.

    " + }, + "fields":{ + "shape":"ValidationExceptionFieldList", + "documentation":"

    The list of fields that failed to validate.

    " + } + }, + "documentation":"

    The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "ValidationExceptionField":{ + "type":"structure", + "required":[ + "name", + "message" + ], + "members":{ + "name":{ + "shape":"String", + "documentation":"

    The name of the exception field.

    " + }, + "message":{ + "shape":"String", + "documentation":"

    The message of the exception field.

    " + } + }, + "documentation":"

    Contains information about a validation exception field.

    " + }, + "ValidationExceptionFieldList":{ + "type":"list", + "member":{"shape":"ValidationExceptionField"} + }, + "ValidationExceptionReason":{ + "type":"string", + "enum":[ + "UNKNOWN_OPERATION", + "CANNOT_PARSE", + "FIELD_VALIDATION_FAILED", + "OTHER" + ] + } + }, + "documentation":"

    AWS IoT Greengrass brings local compute, messaging, data management, sync, and ML inference capabilities to edge devices. This enables devices to collect and analyze data closer to the source of information, react autonomously to local events, and communicate securely with each other on local networks. Local devices can also communicate securely with AWS IoT Core and export IoT data to the AWS Cloud. AWS IoT Greengrass developers can use AWS Lambda functions and components to create and deploy applications to fleets of edge devices for local operation.

    AWS IoT Greengrass Version 2 provides a new major version of the AWS IoT Greengrass Core software, new APIs, and a new console. Use this API reference to learn how to use the AWS IoT Greengrass V2 API operations to manage components, manage deployments, and core devices.

    For more information, see What is AWS IoT Greengrass? in the AWS IoT Greengrass V2 Developer Guide.

    " +} diff --git a/code-generation/api-descriptions/iot-2015-05-28.normal.json b/code-generation/api-descriptions/iot-2015-05-28.normal.json index 3cbd4f4d20d..d4a812b262d 100644 --- a/code-generation/api-descriptions/iot-2015-05-28.normal.json +++ b/code-generation/api-descriptions/iot-2015-05-28.normal.json @@ -181,7 +181,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} ], - "documentation":"

    Cancels an audit that is in progress. The audit can be either scheduled or on-demand. If the audit is not in progress, an \"InvalidRequestException\" occurs.

    " + "documentation":"

    Cancels an audit that is in progress. The audit can be either scheduled or on demand. If the audit isn't in progress, an \"InvalidRequestException\" occurs.

    " }, "CancelCertificateTransfer":{ "name":"CancelCertificateTransfer", @@ -201,6 +201,22 @@ ], "documentation":"

    Cancels a pending transfer for the specified certificate.

    Note Only the transfer source account can use this operation to cancel a transfer. (Transfer destinations can use RejectCertificateTransfer instead.) After transfer, AWS IoT returns the certificate to the source account in the INACTIVE state. After the destination account has accepted the transfer, the transfer cannot be cancelled.

    After a certificate transfer is cancelled, the status of the certificate changes from PENDING_TRANSFER to INACTIVE.

    " }, + "CancelDetectMitigationActionsTask":{ + "name":"CancelDetectMitigationActionsTask", + "http":{ + "method":"PUT", + "requestUri":"/detect/mitigationactions/tasks/{taskId}/cancel" + }, + "input":{"shape":"CancelDetectMitigationActionsTaskRequest"}, + "output":{"shape":"CancelDetectMitigationActionsTaskResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Cancels a Device Defender ML Detect mitigation action.

    " + }, "CancelJob":{ "name":"CancelJob", "http":{ @@ -338,6 +354,23 @@ ], "documentation":"

    Creates an X.509 certificate using the specified certificate signing request.

    Note: The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-256 or NIST P-384 curves.

    Note: Reusing the same certificate signing request (CSR) results in a distinct certificate.

    You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs.

    Assuming a set of CSRs are located inside of the directory my-csr-directory:

    On Linux and OS X, the command is:

    $ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

    This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr AWS CLI command to create a certificate for the corresponding CSR.

    The aws iot create-certificate-from-csr part of the command can also be run in parallel to speed up the certificate creation process:

    $ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

    On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is:

    > ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_}

    On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is:

    > forfiles /p my-csr-directory /c \"cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path\"

    " }, + "CreateCustomMetric":{ + "name":"CreateCustomMetric", + "http":{ + "method":"POST", + "requestUri":"/custom-metric/{metricName}" + }, + "input":{"shape":"CreateCustomMetricRequest"}, + "output":{"shape":"CreateCustomMetricResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Use this API to define a Custom Metric published by your devices to Device Defender.

    " + }, "CreateDimension":{ "name":"CreateDimension", "http":{ @@ -823,6 +856,21 @@ ], "documentation":"

    Deletes the specified certificate.

    A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

    " }, + "DeleteCustomMetric":{ + "name":"DeleteCustomMetric", + "http":{ + "method":"DELETE", + "requestUri":"/custom-metric/{metricName}" + }, + "input":{"shape":"DeleteCustomMetricRequest"}, + "output":{"shape":"DeleteCustomMetricResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Before you can delete a custom metric, you must first remove the custom metric from all security profiles it's a part of. The security profile associated with the custom metric can be found using the ListSecurityProfiles API with metricName set to your custom metric name.

    Deletes a Device Defender detect custom metric.

    " + }, "DeleteDimension":{ "name":"DeleteDimension", "http":{ @@ -1246,7 +1294,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} ], - "documentation":"

    Gets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and when the audit that returned the finding was started.

    " + "documentation":"

    Gets information about a single audit finding. Properties include the reason for noncompliance, the severity of the issue, and the start time when the audit that returned the finding.

    " }, "DescribeAuditMitigationActionsTask":{ "name":"DescribeAuditMitigationActionsTask", @@ -1366,6 +1414,22 @@ ], "documentation":"

    Gets information about the specified certificate.

    " }, + "DescribeCustomMetric":{ + "name":"DescribeCustomMetric", + "http":{ + "method":"GET", + "requestUri":"/custom-metric/{metricName}" + }, + "input":{"shape":"DescribeCustomMetricRequest"}, + "output":{"shape":"DescribeCustomMetricResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Gets information about a Device Defender detect custom metric.

    " + }, "DescribeDefaultAuthorizer":{ "name":"DescribeDefaultAuthorizer", "http":{ @@ -1384,6 +1448,22 @@ ], "documentation":"

    Describes the default authorizer.

    " }, + "DescribeDetectMitigationActionsTask":{ + "name":"DescribeDetectMitigationActionsTask", + "http":{ + "method":"GET", + "requestUri":"/detect/mitigationactions/tasks/{taskId}" + }, + "input":{"shape":"DescribeDetectMitigationActionsTaskRequest"}, + "output":{"shape":"DescribeDetectMitigationActionsTaskResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Gets information about a Device Defender ML Detect mitigation action.

    " + }, "DescribeDimension":{ "name":"DescribeDimension", "http":{ @@ -1786,6 +1866,22 @@ ], "documentation":"

    Enables the rule.

    " }, + "GetBehaviorModelTrainingSummaries":{ + "name":"GetBehaviorModelTrainingSummaries", + "http":{ + "method":"GET", + "requestUri":"/behavior-model-training/summaries" + }, + "input":{"shape":"GetBehaviorModelTrainingSummariesRequest"}, + "output":{"shape":"GetBehaviorModelTrainingSummariesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Returns a Device Defender's ML Detect Security Profile training model's status.

    " + }, "GetCardinality":{ "name":"GetCardinality", "http":{ @@ -2228,6 +2324,51 @@ ], "documentation":"

    List the device certificates signed by the specified CA certificate.

    " }, + "ListCustomMetrics":{ + "name":"ListCustomMetrics", + "http":{ + "method":"GET", + "requestUri":"/custom-metrics" + }, + "input":{"shape":"ListCustomMetricsRequest"}, + "output":{"shape":"ListCustomMetricsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Lists your Device Defender detect custom metrics.

    " + }, + "ListDetectMitigationActionsExecutions":{ + "name":"ListDetectMitigationActionsExecutions", + "http":{ + "method":"GET", + "requestUri":"/detect/mitigationactions/executions" + }, + "input":{"shape":"ListDetectMitigationActionsExecutionsRequest"}, + "output":{"shape":"ListDetectMitigationActionsExecutionsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Lists mitigation actions executions for a Device Defender ML Detect Security Profile.

    " + }, + "ListDetectMitigationActionsTasks":{ + "name":"ListDetectMitigationActionsTasks", + "http":{ + "method":"GET", + "requestUri":"/detect/mitigationactions/tasks" + }, + "input":{"shape":"ListDetectMitigationActionsTasksRequest"}, + "output":{"shape":"ListDetectMitigationActionsTasksResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    List of Device Defender ML Detect mitigation actions tasks.

    " + }, "ListDimensions":{ "name":"ListDimensions", "http":{ @@ -2544,7 +2685,7 @@ {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

    Lists the Device Defender security profiles you have created. You can use filters to list only those security profiles associated with a thing group or only those associated with your account.

    " + "documentation":"

    Lists the Device Defender security profiles you've created. You can filter security profiles by dimension or custom metric.

    dimensionName and metricName cannot be used in the same request.

    " }, "ListSecurityProfilesForTarget":{ "name":"ListSecurityProfilesForTarget", @@ -3105,6 +3246,23 @@ ], "documentation":"

    Starts a task that applies a set of mitigation actions to the specified target.

    " }, + "StartDetectMitigationActionsTask":{ + "name":"StartDetectMitigationActionsTask", + "http":{ + "method":"PUT", + "requestUri":"/detect/mitigationactions/tasks/{taskId}" + }, + "input":{"shape":"StartDetectMitigationActionsTaskRequest"}, + "output":{"shape":"StartDetectMitigationActionsTaskResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TaskAlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Starts a Device Defender ML Detect mitigation actions task.

    " + }, "StartOnDemandAuditTask":{ "name":"StartOnDemandAuditTask", "http":{ @@ -3347,6 +3505,22 @@ ], "documentation":"

    Updates the status of the specified certificate. This operation is idempotent.

    Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to AWS IoT.

    Within a few minutes of updating a certificate from the ACTIVE state to any other state, AWS IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.

    " }, + "UpdateCustomMetric":{ + "name":"UpdateCustomMetric", + "http":{ + "method":"PATCH", + "requestUri":"/custom-metric/{metricName}" + }, + "input":{"shape":"UpdateCustomMetricRequest"}, + "output":{"shape":"UpdateCustomMetricResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ], + "documentation":"

    Updates a Device Defender detect custom metric.

    " + }, "UpdateDimension":{ "name":"UpdateDimension", "http":{ @@ -3361,7 +3535,7 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"} ], - "documentation":"

    Updates the definition for a dimension. You cannot change the type of a dimension after it is created (you can delete it and re-create it).

    " + "documentation":"

    Updates the definition for a dimension. You cannot change the type of a dimension after it is created (you can delete it and recreate it).

    " }, "UpdateDomainConfiguration":{ "name":"UpdateDomainConfiguration", @@ -3794,6 +3968,10 @@ "http":{ "shape":"HttpAction", "documentation":"

    Send data to an HTTPS endpoint.

    " + }, + "kafka":{ + "shape":"KafkaAction", + "documentation":"

    Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.

    " } }, "documentation":"

    Describes the actions associated with a rule.

    " @@ -3826,15 +4004,19 @@ }, "securityProfileName":{ "shape":"SecurityProfileName", - "documentation":"

    The security profile whose behavior is in violation.

    " + "documentation":"

    The security profile with the behavior is in violation.

    " }, "behavior":{ "shape":"Behavior", - "documentation":"

    The behavior which is being violated.

    " + "documentation":"

    The behavior that is being violated.

    " }, "lastViolationValue":{ "shape":"MetricValue", - "documentation":"

    The value of the metric (the measurement) which caused the most recent violation.

    " + "documentation":"

    The value of the metric (the measurement) that caused the most recent violation.

    " + }, + "violationEventAdditionalInfo":{ + "shape":"ViolationEventAdditionalInfo", + "documentation":"

    The details of a violation event.

    " }, "lastViolationTime":{ "shape":"Timestamp", @@ -3913,11 +4095,11 @@ "members":{ "thingGroupNames":{ "shape":"ThingGroupNames", - "documentation":"

    The list of groups to which you want to add the things that triggered the mitigation action. You can add a thing to a maximum of 10 groups, but you cannot add a thing to more than one group in the same hierarchy.

    " + "documentation":"

    The list of groups to which you want to add the things that triggered the mitigation action. You can add a thing to a maximum of 10 groups, but you can't add a thing to more than one group in the same hierarchy.

    " }, "overrideDynamicGroups":{ "shape":"OverrideDynamicGroups", - "documentation":"

    Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic things groups.

    " + "documentation":"

    Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups.

    " } }, "documentation":"

    Parameters used when defining a mitigation action that move a set of things to a thing group.

    " @@ -3949,7 +4131,7 @@ "members":{ "alertTargetArn":{ "shape":"AlertTargetArn", - "documentation":"

    The ARN of the notification target to which alerts are sent.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the notification target to which alerts are sent.

    " }, "roleArn":{ "shape":"RoleArn", @@ -4401,7 +4583,7 @@ "type":"structure", "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    The unique identifier for the task that applies the mitigation action.

    " }, "findingId":{ @@ -4454,17 +4636,11 @@ "PENDING" ] }, - "AuditMitigationActionsTaskId":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[a-zA-Z0-9_-]+" - }, "AuditMitigationActionsTaskMetadata":{ "type":"structure", "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    The unique identifier for the task.

    " }, "startTime":{ @@ -4940,7 +5116,7 @@ "members":{ "name":{ "shape":"BehaviorName", - "documentation":"

    The name you have given to the behavior.

    " + "documentation":"

    The name you've given to the behavior.

    " }, "metric":{ "shape":"BehaviorMetric", @@ -4948,11 +5124,15 @@ }, "metricDimension":{ "shape":"MetricDimension", - "documentation":"

    The dimension for a metric in your behavior. For example, using a TOPIC_FILTER dimension, you can narrow down the scope of the metric only to MQTT topics whose name match the pattern specified in the dimension.

    " + "documentation":"

    The dimension for a metric in your behavior. For example, using a TOPIC_FILTER dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. This can't be used with custom metrics.

    " }, "criteria":{ "shape":"BehaviorCriteria", "documentation":"

    The criteria that determine if a device is behaving normally in regard to the metric.

    " + }, + "suppressAlerts":{ + "shape":"SuppressAlerts", + "documentation":"

    Suppresses alerts.

    " } }, "documentation":"

    A Device Defender security profile behavior.

    " @@ -4962,7 +5142,7 @@ "members":{ "comparisonOperator":{ "shape":"ComparisonOperator", - "documentation":"

    The operator that relates the thing measured (metric) to the criteria (containing a value or statisticalThreshold).

    " + "documentation":"

    The operator that relates the thing measured (metric) to the criteria (containing a value or statisticalThreshold). Valid operators include:

    • string-list: in-set and not-in-set

    • number-list: in-set and not-in-set

    • ip-address-list: in-cidr-set and not-in-cidr-set

    • number: less-than, less-than-equals, greater-than, and greater-than-equals

    " }, "value":{ "shape":"MetricValue", @@ -4970,7 +5150,7 @@ }, "durationSeconds":{ "shape":"DurationSeconds", - "documentation":"

    Use this to specify the time duration over which the behavior is evaluated, for those criteria which have a time dimension (for example, NUM_MESSAGES_SENT). For a statisticalThreshhold metric comparison, measurements from all devices are accumulated over this time duration before being used to calculate percentiles, and later, measurements from an individual device are also accumulated over this time duration before being given a percentile rank.

    " + "documentation":"

    Use this to specify the time duration over which the behavior is evaluated, for those criteria that have a time dimension (for example, NUM_MESSAGES_SENT). For a statisticalThreshhold metric comparison, measurements from all devices are accumulated over this time duration before being used to calculate percentiles, and later, measurements from an individual device are also accumulated over this time duration before being given a percentile rank. Cannot be used with list-based metric datatypes.

    " }, "consecutiveDatapointsToAlarm":{ "shape":"ConsecutiveDatapointsToAlarm", @@ -4982,12 +5162,58 @@ }, "statisticalThreshold":{ "shape":"StatisticalThreshold", - "documentation":"

    A statistical ranking (percentile) which indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.

    " + "documentation":"

    A statistical ranking (percentile)that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.

    " + }, + "mlDetectionConfig":{ + "shape":"MachineLearningDetectionConfig", + "documentation":"

    The configuration of an ML Detect

    " } }, "documentation":"

    The criteria by which the behavior is determined to be normal.

    " }, + "BehaviorCriteriaType":{ + "type":"string", + "enum":[ + "STATIC", + "STATISTICAL", + "MACHINE_LEARNING" + ] + }, "BehaviorMetric":{"type":"string"}, + "BehaviorModelTrainingSummaries":{ + "type":"list", + "member":{"shape":"BehaviorModelTrainingSummary"} + }, + "BehaviorModelTrainingSummary":{ + "type":"structure", + "members":{ + "securityProfileName":{ + "shape":"SecurityProfileName", + "documentation":"

    The name of the security profile.

    " + }, + "behaviorName":{ + "shape":"BehaviorName", + "documentation":"

    The name of the behavior.

    " + }, + "trainingDataCollectionStartDate":{ + "shape":"Timestamp", + "documentation":"

    The date a training model started collecting data.

    " + }, + "modelStatus":{ + "shape":"ModelStatus", + "documentation":"

    The status of the behavior model.

    " + }, + "datapointsCollectionPercentage":{ + "shape":"DataCollectionPercentage", + "documentation":"

    The percentage of datapoints collected.

    " + }, + "lastModelRefreshDate":{ + "shape":"Timestamp", + "documentation":"

    The date the model was last refreshed.

    " + } + }, + "documentation":"

    The summary of an ML Detect behavior model.

    " + }, "BehaviorName":{ "type":"string", "max":128, @@ -5136,7 +5362,7 @@ "required":["taskId"], "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    The unique identifier for the task that you want to cancel.

    ", "location":"uri", "locationName":"taskId" @@ -5178,6 +5404,23 @@ }, "documentation":"

    The input for the CancelCertificateTransfer operation.

    " }, + "CancelDetectMitigationActionsTaskRequest":{ + "type":"structure", + "required":["taskId"], + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    ", + "location":"uri", + "locationName":"taskId" + } + } + }, + "CancelDetectMitigationActionsTaskResponse":{ + "type":"structure", + "members":{ + } + }, "CancelJobExecutionRequest":{ "type":"structure", "required":[ @@ -5474,6 +5717,11 @@ } }, "ClientId":{"type":"string"}, + "ClientProperties":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, "ClientRequestToken":{ "type":"string", "max":64, @@ -5622,10 +5870,20 @@ "in-cidr-set", "not-in-cidr-set", "in-port-set", - "not-in-port-set" + "not-in-port-set", + "in-set", + "not-in-set" ] }, "CompliantChecksCount":{"type":"integer"}, + "ConfidenceLevel":{ + "type":"string", + "enum":[ + "LOW", + "MEDIUM", + "HIGH" + ] + }, "Configuration":{ "type":"structure", "members":{ @@ -5840,6 +6098,52 @@ }, "documentation":"

    The output from the CreateCertificateFromCsr operation.

    " }, + "CreateCustomMetricRequest":{ + "type":"structure", + "required":[ + "metricName", + "metricType", + "clientRequestToken" + ], + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't begin with aws:. Cannot be updated once defined.

    ", + "location":"uri", + "locationName":"metricName" + }, + "displayName":{ + "shape":"CustomMetricDisplayName", + "documentation":"

    Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.

    " + }, + "metricType":{ + "shape":"CustomMetricType", + "documentation":"

    The type of the custom metric. Types include string-list, ip-address-list, number-list, and number.

    " + }, + "tags":{ + "shape":"TagList", + "documentation":"

    Metadata that can be used to manage the custom metric.

    " + }, + "clientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "CreateCustomMetricResponse":{ + "type":"structure", + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric to be used in the metric report.

    " + }, + "metricArn":{ + "shape":"CustomMetricArn", + "documentation":"

    The Amazon Resource Number (ARN) of the custom metric, e.g. arn:aws-partition:iot:region:accountId:custommetric/metricName

    " + } + } + }, "CreateDimensionRequest":{ "type":"structure", "required":[ @@ -5883,7 +6187,7 @@ }, "arn":{ "shape":"DimensionArn", - "documentation":"

    The ARN (Amazon resource name) of the created dimension.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the created dimension.

    " } } }, @@ -6519,15 +6823,15 @@ "members":{ "frequency":{ "shape":"AuditFrequency", - "documentation":"

    How often the scheduled audit takes place. Can be one of \"DAILY\", \"WEEKLY\", \"BIWEEKLY\" or \"MONTHLY\". The start time of each audit is determined by the system.

    " + "documentation":"

    How often the scheduled audit takes place, either DAILY, WEEKLY, BIWEEKLY or MONTHLY. The start time of each audit is determined by the system.

    " }, "dayOfMonth":{ "shape":"DayOfMonth", - "documentation":"

    The day of the month on which the scheduled audit takes place. Can be \"1\" through \"31\" or \"LAST\". This field is required if the \"frequency\" parameter is set to \"MONTHLY\". If days 29-31 are specified, and the month does not have that many days, the audit takes place on the \"LAST\" day of the month.

    " + "documentation":"

    The day of the month on which the scheduled audit takes place. This can be \"1\" through \"31\" or \"LAST\". This field is required if the \"frequency\" parameter is set to MONTHLY. If days 29 to 31 are specified, and the month doesn't have that many days, the audit takes place on the LAST day of the month.

    " }, "dayOfWeek":{ "shape":"DayOfWeek", - "documentation":"

    The day of the week on which the scheduled audit takes place. Can be one of \"SUN\", \"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\", or \"SAT\". This field is required if the \"frequency\" parameter is set to \"WEEKLY\" or \"BIWEEKLY\".

    " + "documentation":"

    The day of the week on which the scheduled audit takes place, either SUN, MON, TUE, WED, THU, FRI, or SAT. This field is required if the frequency parameter is set to WEEKLY or BIWEEKLY.

    " }, "targetCheckNames":{ "shape":"TargetAuditCheckNames", @@ -6578,13 +6882,13 @@ }, "additionalMetricsToRetain":{ "shape":"AdditionalMetricsToRetainList", - "documentation":"

    Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here.

    ", + "documentation":"

    Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

    ", "deprecated":true, "deprecatedMessage":"Use additionalMetricsToRetainV2." }, "additionalMetricsToRetainV2":{ "shape":"AdditionalMetricsToRetainV2List", - "documentation":"

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here.

    " + "documentation":"

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

    " }, "tags":{ "shape":"TagList", @@ -6856,10 +7160,30 @@ }, "documentation":"

    Describes a custom method used to code sign a file.

    " }, + "CustomMetricArn":{"type":"string"}, + "CustomMetricDisplayName":{ + "type":"string", + "max":128, + "pattern":"[\\p{Graph}\\x20]*" + }, + "CustomMetricType":{ + "type":"string", + "enum":[ + "string-list", + "ip-address-list", + "number-list", + "number" + ] + }, "CustomerVersion":{ "type":"integer", "min":1 }, + "DataCollectionPercentage":{ + "type":"double", + "max":100, + "min":0 + }, "DateType":{"type":"timestamp"}, "DayOfMonth":{ "type":"string", @@ -7002,6 +7326,23 @@ "error":{"httpStatusCode":409}, "exception":true }, + "DeleteCustomMetricRequest":{ + "type":"structure", + "required":["metricName"], + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric.

    ", + "location":"uri", + "locationName":"metricName" + } + } + }, + "DeleteCustomMetricResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteDimensionRequest":{ "type":"structure", "required":["name"], @@ -7537,7 +7878,7 @@ "required":["taskId"], "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    The unique identifier for the audit mitigation task.

    ", "location":"uri", "locationName":"taskId" @@ -7760,6 +8101,47 @@ }, "documentation":"

    The output of the DescribeCertificate operation.

    " }, + "DescribeCustomMetricRequest":{ + "type":"structure", + "required":["metricName"], + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric.

    ", + "location":"uri", + "locationName":"metricName" + } + } + }, + "DescribeCustomMetricResponse":{ + "type":"structure", + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric.

    " + }, + "metricArn":{ + "shape":"CustomMetricArn", + "documentation":"

    The Amazon Resource Number (ARN) of the custom metric.

    " + }, + "metricType":{ + "shape":"CustomMetricType", + "documentation":"

    The type of the custom metric. Types include string-list, ip-address-list, number-list, and number.

    " + }, + "displayName":{ + "shape":"CustomMetricDisplayName", + "documentation":"

    Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.

    " + }, + "creationDate":{ + "shape":"Timestamp", + "documentation":"

    The creation date of the custom metric in milliseconds since epoch.

    " + }, + "lastModifiedDate":{ + "shape":"Timestamp", + "documentation":"

    The time the custom metric was last modified in milliseconds since epoch.

    " + } + } + }, "DescribeDefaultAuthorizerRequest":{ "type":"structure", "members":{ @@ -7774,6 +8156,27 @@ } } }, + "DescribeDetectMitigationActionsTaskRequest":{ + "type":"structure", + "required":["taskId"], + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    ", + "location":"uri", + "locationName":"taskId" + } + } + }, + "DescribeDetectMitigationActionsTaskResponse":{ + "type":"structure", + "members":{ + "taskSummary":{ + "shape":"DetectMitigationActionsTaskSummary", + "documentation":"

    The description of a task.

    " + } + } + }, "DescribeDimensionRequest":{ "type":"structure", "required":["name"], @@ -7795,7 +8198,7 @@ }, "arn":{ "shape":"DimensionArn", - "documentation":"

    The ARN (Amazon resource name) for the dimension.

    " + "documentation":"

    The Amazon Resource Name (ARN) for the dimension.

    " }, "type":{ "shape":"DimensionType", @@ -8188,15 +8591,15 @@ "members":{ "frequency":{ "shape":"AuditFrequency", - "documentation":"

    How often the scheduled audit takes place. One of \"DAILY\", \"WEEKLY\", \"BIWEEKLY\", or \"MONTHLY\". The start time of each audit is determined by the system.

    " + "documentation":"

    How often the scheduled audit takes place, either one of DAILY, WEEKLY, BIWEEKLY, or MONTHLY. The start time of each audit is determined by the system.

    " }, "dayOfMonth":{ "shape":"DayOfMonth", - "documentation":"

    The day of the month on which the scheduled audit takes place. Will be \"1\" through \"31\" or \"LAST\". If days 29-31 are specified, and the month does not have that many days, the audit takes place on the \"LAST\" day of the month.

    " + "documentation":"

    The day of the month on which the scheduled audit takes place. This is will be 1 through 31 or LAST. If days 29-31 are specified, and the month does not have that many days, the audit takes place on the LAST day of the month.

    " }, "dayOfWeek":{ "shape":"DayOfWeek", - "documentation":"

    The day of the week on which the scheduled audit takes place. One of \"SUN\", \"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\", or \"SAT\".

    " + "documentation":"

    The day of the week on which the scheduled audit takes place, either one of SUN, MON, TUE, WED, THU, FRI, or SAT.

    " }, "targetCheckNames":{ "shape":"TargetAuditCheckNames", @@ -8626,16 +9029,173 @@ "min":1, "pattern":"[^\\p{C}]+" }, - "DeviceCertificateUpdateAction":{ - "type":"string", - "enum":["DEACTIVATE"] - }, - "DeviceDefenderThingName":{ - "type":"string", - "max":128, - "min":1 - }, - "DimensionArn":{"type":"string"}, + "DetectMitigationActionExecution":{ + "type":"structure", + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    " + }, + "violationId":{ + "shape":"ViolationId", + "documentation":"

    The unique identifier of the violation.

    " + }, + "actionName":{ + "shape":"MitigationActionName", + "documentation":"

    The friendly name that uniquely identifies the mitigation action.

    " + }, + "thingName":{ + "shape":"DeviceDefenderThingName", + "documentation":"

    The name of the thing.

    " + }, + "executionStartDate":{ + "shape":"Timestamp", + "documentation":"

    The date a mitigation action was started.

    " + }, + "executionEndDate":{ + "shape":"Timestamp", + "documentation":"

    The date a mitigation action ended.

    " + }, + "status":{ + "shape":"DetectMitigationActionExecutionStatus", + "documentation":"

    The status of a mitigation action.

    " + }, + "errorCode":{ + "shape":"DetectMitigationActionExecutionErrorCode", + "documentation":"

    The error code of a mitigation action.

    " + }, + "message":{ + "shape":"ErrorMessage", + "documentation":"

    The message of a mitigation action.

    " + } + }, + "documentation":"

    Describes which mitigation actions should be executed.

    " + }, + "DetectMitigationActionExecutionErrorCode":{"type":"string"}, + "DetectMitigationActionExecutionList":{ + "type":"list", + "member":{"shape":"DetectMitigationActionExecution"} + }, + "DetectMitigationActionExecutionStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "SUCCESSFUL", + "FAILED", + "SKIPPED" + ] + }, + "DetectMitigationActionsTaskStatistics":{ + "type":"structure", + "members":{ + "actionsExecuted":{ + "shape":"GenericLongValue", + "documentation":"

    The actions that were performed.

    " + }, + "actionsSkipped":{ + "shape":"GenericLongValue", + "documentation":"

    The actions that were skipped.

    " + }, + "actionsFailed":{ + "shape":"GenericLongValue", + "documentation":"

    The actions that failed.

    " + } + }, + "documentation":"

    The statistics of a mitigation action task.

    " + }, + "DetectMitigationActionsTaskStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "SUCCESSFUL", + "FAILED", + "CANCELED" + ] + }, + "DetectMitigationActionsTaskSummary":{ + "type":"structure", + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    " + }, + "taskStatus":{ + "shape":"DetectMitigationActionsTaskStatus", + "documentation":"

    The status of the task.

    " + }, + "taskStartTime":{ + "shape":"Timestamp", + "documentation":"

    The date the task started.

    " + }, + "taskEndTime":{ + "shape":"Timestamp", + "documentation":"

    The date the task ended.

    " + }, + "target":{ + "shape":"DetectMitigationActionsTaskTarget", + "documentation":"

    Specifies the ML Detect findings to which the mitigation actions are applied.

    " + }, + "violationEventOccurrenceRange":{ + "shape":"ViolationEventOccurrenceRange", + "documentation":"

    Specifies the time period of which violation events occurred between.

    " + }, + "onlyActiveViolationsIncluded":{ + "shape":"PrimitiveBoolean", + "documentation":"

    Includes only active violations.

    " + }, + "suppressedAlertsIncluded":{ + "shape":"PrimitiveBoolean", + "documentation":"

    Includes suppressed alerts.

    " + }, + "actionsDefinition":{ + "shape":"MitigationActionList", + "documentation":"

    The definition of the actions.

    " + }, + "taskStatistics":{ + "shape":"DetectMitigationActionsTaskStatistics", + "documentation":"

    The statistics of a mitigation action task.

    " + } + }, + "documentation":"

    The summary of the mitigation action tasks.

    " + }, + "DetectMitigationActionsTaskSummaryList":{ + "type":"list", + "member":{"shape":"DetectMitigationActionsTaskSummary"} + }, + "DetectMitigationActionsTaskTarget":{ + "type":"structure", + "members":{ + "violationIds":{ + "shape":"TargetViolationIdsForDetectMitigationActions", + "documentation":"

    The unique identifiers of the violations.

    " + }, + "securityProfileName":{ + "shape":"SecurityProfileName", + "documentation":"

    The name of the security profile.

    " + }, + "behaviorName":{ + "shape":"BehaviorName", + "documentation":"

    The name of the behavior.

    " + } + }, + "documentation":"

    The target of a mitigation action task.

    " + }, + "DetectMitigationActionsToExecuteList":{ + "type":"list", + "member":{"shape":"MitigationActionName"}, + "max":5, + "min":1 + }, + "DeviceCertificateUpdateAction":{ + "type":"string", + "enum":["DEACTIVATE"] + }, + "DeviceDefenderThingName":{ + "type":"string", + "max":128, + "min":1 + }, + "DimensionArn":{"type":"string"}, "DimensionName":{ "type":"string", "max":128, @@ -8889,11 +9449,11 @@ "members":{ "roleArnForLogging":{ "shape":"RoleArn", - "documentation":"

    The ARN of the IAM role used for logging.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the IAM role used for logging.

    " }, "logLevel":{ "shape":"LogLevel", - "documentation":"

    Specifies the types of information to be logged.

    " + "documentation":"

    Specifies the type of information to be logged.

    " } }, "documentation":"

    Parameters used when defining a mitigation action that enable AWS IoT logging.

    " @@ -9107,6 +9667,43 @@ "Forced":{"type":"boolean"}, "FunctionArn":{"type":"string"}, "GenerationId":{"type":"string"}, + "GenericLongValue":{"type":"long"}, + "GetBehaviorModelTrainingSummariesRequest":{ + "type":"structure", + "members":{ + "securityProfileName":{ + "shape":"SecurityProfileName", + "documentation":"

    The name of the security profile.

    ", + "location":"querystring", + "locationName":"securityProfileName" + }, + "maxResults":{ + "shape":"TinyMaxResults", + "documentation":"

    The maximum number of results to return at one time. The default is 25.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "GetBehaviorModelTrainingSummariesResponse":{ + "type":"structure", + "members":{ + "summaries":{ + "shape":"BehaviorModelTrainingSummaries", + "documentation":"

    A list of all ML Detect behaviors and their model status for a given Security Profile.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token that can be used to retrieve the next set of results, or null if there are no additional results.

    " + } + } + }, "GetCardinalityRequest":{ "type":"structure", "required":["queryString"], @@ -10214,6 +10811,37 @@ "min":1 }, "JsonDocument":{"type":"string"}, + "KafkaAction":{ + "type":"structure", + "required":[ + "destinationArn", + "topic", + "clientProperties" + ], + "members":{ + "destinationArn":{ + "shape":"AwsArn", + "documentation":"

    The ARN of Kafka action's VPC TopicRuleDestination.

    " + }, + "topic":{ + "shape":"String", + "documentation":"

    The Kafka topic for messages to be sent to the Kafka broker.

    " + }, + "key":{ + "shape":"String", + "documentation":"

    The Kafka message key.

    " + }, + "partition":{ + "shape":"String", + "documentation":"

    The Kafka message partition.

    " + }, + "clientProperties":{ + "shape":"ClientProperties", + "documentation":"

    Properties of the Apache Kafka producer client.

    " + } + }, + "documentation":"

    Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.

    " + }, "Key":{"type":"string"}, "KeyName":{ "type":"string", @@ -10278,6 +10906,7 @@ "min":1 }, "LastModifiedDate":{"type":"timestamp"}, + "LastUpdatedAtDate":{"type":"timestamp"}, "LimitExceededException":{ "type":"structure", "members":{ @@ -10305,6 +10934,18 @@ "location":"querystring", "locationName":"securityProfileName" }, + "behaviorCriteriaType":{ + "shape":"BehaviorCriteriaType", + "documentation":"

    The criteria for a behavior.

    ", + "location":"querystring", + "locationName":"behaviorCriteriaType" + }, + "listSuppressedAlerts":{ + "shape":"ListSuppressedAlerts", + "documentation":"

    A list of all suppressed alerts.

    ", + "location":"querystring", + "locationName":"listSuppressedAlerts" + }, "nextToken":{ "shape":"NextToken", "documentation":"

    The token for the next set of results.

    ", @@ -10433,7 +11074,7 @@ ], "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    Specify this filter to limit results to actions for a specific audit mitigation actions task.

    ", "location":"querystring", "locationName":"taskId" @@ -10830,6 +11471,142 @@ }, "documentation":"

    The output of the ListCertificates operation.

    " }, + "ListCustomMetricsRequest":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return at one time. The default is 25.

    ", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListCustomMetricsResponse":{ + "type":"structure", + "members":{ + "metricNames":{ + "shape":"MetricNames", + "documentation":"

    The name of the custom metric.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token that can be used to retrieve the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListDetectMitigationActionsExecutionsRequest":{ + "type":"structure", + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    ", + "location":"querystring", + "locationName":"taskId" + }, + "violationId":{ + "shape":"ViolationId", + "documentation":"

    The unique identifier of the violation.

    ", + "location":"querystring", + "locationName":"violationId" + }, + "thingName":{ + "shape":"DeviceDefenderThingName", + "documentation":"

    The name of the thing whose mitigation actions are listed.

    ", + "location":"querystring", + "locationName":"thingName" + }, + "startTime":{ + "shape":"Timestamp", + "documentation":"

    A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.

    ", + "location":"querystring", + "locationName":"startTime" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

    The end of the time period for which ML Detect mitigation actions executions are returned.

    ", + "location":"querystring", + "locationName":"endTime" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return at one time. The default is 25.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDetectMitigationActionsExecutionsResponse":{ + "type":"structure", + "members":{ + "actionsExecutions":{ + "shape":"DetectMitigationActionExecutionList", + "documentation":"

    List of actions executions.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token that can be used to retrieve the next set of results, or null if there are no additional results.

    " + } + } + }, + "ListDetectMitigationActionsTasksRequest":{ + "type":"structure", + "required":[ + "startTime", + "endTime" + ], + "members":{ + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return at one time. The default is 25.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "startTime":{ + "shape":"Timestamp", + "documentation":"

    A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.

    ", + "location":"querystring", + "locationName":"startTime" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

    The end of the time period for which ML Detect mitigation actions tasks are returned.

    ", + "location":"querystring", + "locationName":"endTime" + } + } + }, + "ListDetectMitigationActionsTasksResponse":{ + "type":"structure", + "members":{ + "tasks":{ + "shape":"DetectMitigationActionsTaskSummaryList", + "documentation":"

    The collection of ML Detect mitigation tasks that matched the filter criteria.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token that can be used to retrieve the next set of results, or null if there are no additional results.

    " + } + } + }, "ListDimensionsRequest":{ "type":"structure", "members":{ @@ -11571,9 +12348,15 @@ }, "dimensionName":{ "shape":"DimensionName", - "documentation":"

    A filter to limit results to the security profiles that use the defined dimension.

    ", + "documentation":"

    A filter to limit results to the security profiles that use the defined dimension. Cannot be used with metricName

    ", "location":"querystring", "locationName":"dimensionName" + }, + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric. Cannot be used with dimensionName.

    ", + "location":"querystring", + "locationName":"metricName" } } }, @@ -11626,6 +12409,7 @@ } } }, + "ListSuppressedAlerts":{"type":"boolean"}, "ListSuppressedFindings":{"type":"boolean"}, "ListTagsForResourceRequest":{ "type":"structure", @@ -12251,6 +13035,18 @@ "location":"querystring", "locationName":"securityProfileName" }, + "behaviorCriteriaType":{ + "shape":"BehaviorCriteriaType", + "documentation":"

    The criteria for a behavior.

    ", + "location":"querystring", + "locationName":"behaviorCriteriaType" + }, + "listSuppressedAlerts":{ + "shape":"ListSuppressedAlerts", + "documentation":"

    A list of all suppressed alerts.

    ", + "location":"querystring", + "locationName":"listSuppressedAlerts" + }, "nextToken":{ "shape":"NextToken", "documentation":"

    The token for the next set of results.

    ", @@ -12345,6 +13141,17 @@ }, "documentation":"

    Describes the logging options payload.

    " }, + "MachineLearningDetectionConfig":{ + "type":"structure", + "required":["confidenceLevel"], + "members":{ + "confidenceLevel":{ + "shape":"ConfidenceLevel", + "documentation":"

    The sensitivity of anomalous behavior evaluation. Can be Low, Medium, or High.

    " + } + }, + "documentation":"

    The configuration of an ML Detect Security Profile.

    " + }, "MalformedPolicyException":{ "type":"structure", "members":{ @@ -12408,6 +13215,16 @@ }, "documentation":"

    The dimension of a metric.

    " }, + "MetricName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9:_-]+" + }, + "MetricNames":{ + "type":"list", + "member":{"shape":"MetricName"} + }, "MetricToRetain":{ "type":"structure", "required":["metric"], @@ -12418,7 +13235,7 @@ }, "metricDimension":{ "shape":"MetricDimension", - "documentation":"

    The dimension of a metric.

    " + "documentation":"

    The dimension of a metric. This can't be used with custom metrics.

    " } }, "documentation":"

    The metric you want to retain. Dimensions are optional.

    " @@ -12437,6 +13254,18 @@ "ports":{ "shape":"Ports", "documentation":"

    If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.

    " + }, + "number":{ + "shape":"Number", + "documentation":"

    The numeral value of a metric.

    " + }, + "numbers":{ + "shape":"NumberList", + "documentation":"

    The numeral values of a metric.

    " + }, + "strings":{ + "shape":"StringList", + "documentation":"

    The string values of a metric.

    " } }, "documentation":"

    The value to be compared with the metric.

    " @@ -12537,7 +13366,7 @@ }, "publishFindingToSnsParams":{ "shape":"PublishFindingToSnsParams", - "documentation":"

    Parameters to define a mitigation action that publishes findings to Amazon SNS. You can implement your own custom actions in response to the Amazon SNS messages.

    " + "documentation":"

    Parameters to define a mitigation action that publishes findings to Amazon Simple Notification Service (Amazon SNS. You can implement your own custom actions in response to the Amazon SNS messages.

    " } }, "documentation":"

    The set of parameters for this mitigation action. You can specify only one type of parameter (in other words, you can apply only one action for each defined mitigation action).

    " @@ -12553,6 +13382,20 @@ "PUBLISH_FINDING_TO_SNS" ] }, + "MitigationActionsTaskId":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9_-]+" + }, + "ModelStatus":{ + "type":"string", + "enum":[ + "PENDING_BUILD", + "ACTIVE", + "EXPIRED" + ] + }, "MqttClientId":{ "type":"string", "max":65535, @@ -12625,6 +13468,12 @@ "error":{"httpStatusCode":404}, "exception":true }, + "NullableBoolean":{"type":"boolean"}, + "Number":{"type":"double"}, + "NumberList":{ + "type":"list", + "member":{"shape":"Number"} + }, "NumberOfThings":{ "type":"integer", "min":1 @@ -12976,6 +13825,7 @@ }, "documentation":"

    Configuration for pre-signed S3 URLs.

    " }, + "PrimitiveBoolean":{"type":"boolean"}, "Principal":{"type":"string"}, "PrincipalArn":{"type":"string"}, "PrincipalId":{ @@ -13917,6 +14767,11 @@ "member":{"shape":"AttributeName"} }, "Seconds":{"type":"integer"}, + "SecurityGroupId":{"type":"string"}, + "SecurityGroupList":{ + "type":"list", + "member":{"shape":"SecurityGroupId"} + }, "SecurityProfileArn":{"type":"string"}, "SecurityProfileDescription":{ "type":"string", @@ -13932,7 +14787,7 @@ "members":{ "name":{ "shape":"SecurityProfileName", - "documentation":"

    The name you have given to the security profile.

    " + "documentation":"

    The name you've given to the security profile.

    " }, "arn":{ "shape":"SecurityProfileArn", @@ -14264,14 +15119,14 @@ ], "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.

    ", "location":"uri", "locationName":"taskId" }, "target":{ "shape":"AuditMitigationActionsTaskTarget", - "documentation":"

    Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a speecific set of findings.

    " + "documentation":"

    Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.

    " }, "auditCheckToActionsMapping":{ "shape":"AuditCheckToActionsMapping", @@ -14288,11 +15143,62 @@ "type":"structure", "members":{ "taskId":{ - "shape":"AuditMitigationActionsTaskId", + "shape":"MitigationActionsTaskId", "documentation":"

    The unique identifier for the audit mitigation task. This matches the taskId that you specified in the request.

    " } } }, + "StartDetectMitigationActionsTaskRequest":{ + "type":"structure", + "required":[ + "taskId", + "target", + "actions", + "clientRequestToken" + ], + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    ", + "location":"uri", + "locationName":"taskId" + }, + "target":{ + "shape":"DetectMitigationActionsTaskTarget", + "documentation":"

    Specifies the ML Detect findings to which the mitigation actions are applied.

    " + }, + "actions":{ + "shape":"DetectMitigationActionsToExecuteList", + "documentation":"

    The actions to be performed when a device has unexpected behavior.

    " + }, + "violationEventOccurrenceRange":{ + "shape":"ViolationEventOccurrenceRange", + "documentation":"

    Specifies the time period of which violation events occurred between.

    " + }, + "includeOnlyActiveViolations":{ + "shape":"NullableBoolean", + "documentation":"

    Specifies to list only active violations.

    " + }, + "includeSuppressedAlerts":{ + "shape":"NullableBoolean", + "documentation":"

    Specifies to include suppressed alerts.

    " + }, + "clientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each mitigation action task must have a unique client request token. If you try to create a new task with the same token as a task that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "StartDetectMitigationActionsTaskResponse":{ + "type":"structure", + "members":{ + "taskId":{ + "shape":"MitigationActionsTaskId", + "documentation":"

    The unique identifier of the task.

    " + } + } + }, "StartOnDemandAuditTaskRequest":{ "type":"structure", "required":["targetCheckNames"], @@ -14374,10 +15280,10 @@ "members":{ "statistic":{ "shape":"EvaluationStatistic", - "documentation":"

    The percentile which resolves to a threshold value by which compliance with a behavior is determined. Metrics are collected over the specified period (durationSeconds) from all reporting devices in your account and statistical ranks are calculated. Then, the measurements from a device are collected over the same period. If the accumulated measurements from the device fall above or below (comparisonOperator) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.

    " + "documentation":"

    The percentile that resolves to a threshold value by which compliance with a behavior is determined. Metrics are collected over the specified period (durationSeconds) from all reporting devices in your account and statistical ranks are calculated. Then, the measurements from a device are collected over the same period. If the accumulated measurements from the device fall above or below (comparisonOperator) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.

    " } }, - "documentation":"

    A statistical ranking (percentile) which indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.

    " + "documentation":"

    A statistical ranking (percentile) that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.

    " }, "Statistics":{ "type":"structure", @@ -14591,15 +15497,25 @@ "member":{"shape":"StreamSummary"} }, "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"stringValue"} + }, "StringMap":{ "type":"map", "key":{"shape":"String"}, "value":{"shape":"String"} }, + "SubnetId":{"type":"string"}, + "SubnetIdList":{ + "type":"list", + "member":{"shape":"SubnetId"} + }, "SucceededFindingsCount":{"type":"long"}, "SucceededThings":{"type":"integer"}, "Sum":{"type":"double"}, "SumOfSquares":{"type":"double"}, + "SuppressAlerts":{"type":"boolean"}, "SuppressIndefinitely":{"type":"boolean"}, "SuppressedNonCompliantResourcesCount":{"type":"long"}, "TableName":{"type":"string"}, @@ -14675,6 +15591,12 @@ "SNAPSHOT" ] }, + "TargetViolationIdsForDetectMitigationActions":{ + "type":"list", + "member":{"shape":"ViolationId"}, + "max":25, + "min":1 + }, "Targets":{ "type":"list", "member":{"shape":"Target"}, @@ -14685,7 +15607,7 @@ "members":{ "message":{"shape":"errorMessage"} }, - "documentation":"

    This exception occurs if you attempt to start a task with the same task-id as an existing task but with a different clientRequestToken.

    ", + "documentation":"

    This exception occurs if you attempt to start a task with the same task-id as an existing task but with a different clientRequestToken.

    ", "error":{"httpStatusCode":400}, "exception":true }, @@ -15301,6 +16223,11 @@ }, "TimestreamTimestampUnit":{"type":"string"}, "TimestreamTimestampValue":{"type":"string"}, + "TinyMaxResults":{ + "type":"integer", + "max":10, + "min":1 + }, "TlsContext":{ "type":"structure", "members":{ @@ -15379,6 +16306,14 @@ "shape":"TopicRuleDestinationStatus", "documentation":"

    The status of the topic rule destination. Valid values are:

    IN_PROGRESS

    A topic rule destination was created but has not been confirmed. You can set status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your confirmation endpoint.

    ENABLED

    Confirmation was completed, and traffic to this destination is allowed. You can set status to DISABLED by calling UpdateTopicRuleDestination.

    DISABLED

    Confirmation was completed, and traffic to this destination is not allowed. You can set status to ENABLED by calling UpdateTopicRuleDestination.

    ERROR

    Confirmation could not be completed, for example if the confirmation timed out. You can call GetTopicRuleDestination for details about the error. You can set status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your confirmation endpoint.

    " }, + "createdAt":{ + "shape":"CreatedAtDate", + "documentation":"

    The date and time when the topic rule destination was created.

    " + }, + "lastUpdatedAt":{ + "shape":"LastUpdatedAtDate", + "documentation":"

    The date and time when the topic rule destination was last updated.

    " + }, "statusReason":{ "shape":"String", "documentation":"

    Additional details or reason why the topic rule destination is in the current status.

    " @@ -15386,6 +16321,10 @@ "httpUrlProperties":{ "shape":"HttpUrlDestinationProperties", "documentation":"

    Properties of the HTTP URL.

    " + }, + "vpcProperties":{ + "shape":"VpcDestinationProperties", + "documentation":"

    Properties of the virtual private cloud (VPC) connection.

    " } }, "documentation":"

    A topic rule destination.

    " @@ -15396,6 +16335,10 @@ "httpUrlConfiguration":{ "shape":"HttpUrlDestinationConfiguration", "documentation":"

    Configuration of the HTTP URL.

    " + }, + "vpcConfiguration":{ + "shape":"VpcDestinationConfiguration", + "documentation":"

    Configuration of the virtual private cloud (VPC) connection.

    " } }, "documentation":"

    Configuration of the topic rule destination.

    " @@ -15411,7 +16354,8 @@ "ENABLED", "IN_PROGRESS", "DISABLED", - "ERROR" + "ERROR", + "DELETING" ] }, "TopicRuleDestinationSummaries":{ @@ -15429,6 +16373,14 @@ "shape":"TopicRuleDestinationStatus", "documentation":"

    The status of the topic rule destination. Valid values are:

    IN_PROGRESS

    A topic rule destination was created but has not been confirmed. You can set status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your confirmation endpoint.

    ENABLED

    Confirmation was completed, and traffic to this destination is allowed. You can set status to DISABLED by calling UpdateTopicRuleDestination.

    DISABLED

    Confirmation was completed, and traffic to this destination is not allowed. You can set status to ENABLED by calling UpdateTopicRuleDestination.

    ERROR

    Confirmation could not be completed, for example if the confirmation timed out. You can call GetTopicRuleDestination for details about the error. You can set status to IN_PROGRESS by calling UpdateTopicRuleDestination. Calling UpdateTopicRuleDestination causes a new confirmation challenge to be sent to your confirmation endpoint.

    " }, + "createdAt":{ + "shape":"CreatedAtDate", + "documentation":"

    The date and time when the topic rule destination was created.

    " + }, + "lastUpdatedAt":{ + "shape":"LastUpdatedAtDate", + "documentation":"

    The date and time when the topic rule destination was last updated.

    " + }, "statusReason":{ "shape":"String", "documentation":"

    The reason the topic rule destination is in the current status.

    " @@ -15436,6 +16388,10 @@ "httpUrlSummary":{ "shape":"HttpUrlDestinationSummary", "documentation":"

    Information about the HTTP URL.

    " + }, + "vpcDestinationSummary":{ + "shape":"VpcDestinationSummary", + "documentation":"

    Information about the virtual private cloud (VPC) connection.

    " } }, "documentation":"

    Information about the topic rule destination.

    " @@ -15642,7 +16598,7 @@ "members":{ "roleArn":{ "shape":"RoleArn", - "documentation":"

    The ARN of the role that grants permission to AWS IoT to access information about your devices, policies, certificates and other items as required when performing an audit.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the role that grants permission to AWS IoT to access information about your devices, policies, certificates, and other items as required when performing an audit.

    " }, "auditNotificationTargetConfigurations":{ "shape":"AuditNotificationTargetConfigurations", @@ -15650,7 +16606,7 @@ }, "auditCheckConfigurations":{ "shape":"AuditCheckConfigurations", - "documentation":"

    Specifies which audit checks are enabled and disabled for this account. Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are currently enabled.

    Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted.

    You cannot disable a check if it is used by any scheduled audit. You must first delete the check from the scheduled audit or delete the scheduled audit itself.

    On the first call to UpdateAccountAuditConfiguration, this parameter is required and must specify at least one enabled check.

    " + "documentation":"

    Specifies which audit checks are enabled and disabled for this account. Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are currently enabled.

    Some data collection might start immediately when certain checks are enabled. When a check is disabled, any data collected so far in relation to the check is deleted.

    You cannot disable a check if it's used by any scheduled audit. You must first delete the check from the scheduled audit or delete the scheduled audit itself.

    On the first call to UpdateAccountAuditConfiguration, this parameter is required and must specify at least one enabled check.

    " } } }, @@ -15766,7 +16722,7 @@ "members":{ "action":{ "shape":"CACertificateUpdateAction", - "documentation":"

    The action that you want to apply to the CA cerrtificate. The only supported value is DEACTIVATE.

    " + "documentation":"

    The action that you want to apply to the CA certificate. The only supported value is DEACTIVATE.

    " } }, "documentation":"

    Parameters to define a mitigation action that changes the state of the CA certificate to inactive.

    " @@ -15826,13 +16782,61 @@ }, "documentation":"

    The input for the UpdateCertificate operation.

    " }, + "UpdateCustomMetricRequest":{ + "type":"structure", + "required":[ + "metricName", + "displayName" + ], + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric. Cannot be updated.

    ", + "location":"uri", + "locationName":"metricName" + }, + "displayName":{ + "shape":"CustomMetricDisplayName", + "documentation":"

    Field represents a friendly name in the console for the custom metric, it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.

    " + } + } + }, + "UpdateCustomMetricResponse":{ + "type":"structure", + "members":{ + "metricName":{ + "shape":"MetricName", + "documentation":"

    The name of the custom metric.

    " + }, + "metricArn":{ + "shape":"CustomMetricArn", + "documentation":"

    The Amazon Resource Number (ARN) of the custom metric.

    " + }, + "metricType":{ + "shape":"CustomMetricType", + "documentation":"

    The type of the custom metric. Types include string-list, ip-address-list, number-list, and number.

    " + }, + "displayName":{ + "shape":"CustomMetricDisplayName", + "documentation":"

    A friendly name in the console for the custom metric

    " + }, + "creationDate":{ + "shape":"Timestamp", + "documentation":"

    The creation date of the custom metric in milliseconds since epoch.

    " + }, + "lastModifiedDate":{ + "shape":"Timestamp", + "documentation":"

    The time the custom metric was last modified in milliseconds since epoch.

    " + } + } + }, "UpdateDeviceCertificateParams":{ "type":"structure", "required":["action"], "members":{ "action":{ "shape":"DeviceCertificateUpdateAction", - "documentation":"

    The action that you want to apply to the device cerrtificate. The only supported value is DEACTIVATE.

    " + "documentation":"

    The action that you want to apply to the device certificate. The only supported value is DEACTIVATE.

    " } }, "documentation":"

    Parameters to define a mitigation action that changes the state of the device certificate to inactive.

    " @@ -15865,7 +16869,7 @@ }, "arn":{ "shape":"DimensionArn", - "documentation":"

    The ARN (Amazon resource name) of the created dimension.

    " + "documentation":"

    The Amazon Resource Name (ARN)of the created dimension.

    " }, "type":{ "shape":"DimensionType", @@ -16042,7 +17046,7 @@ "members":{ "actionName":{ "shape":"MitigationActionName", - "documentation":"

    The friendly name for the mitigation action. You can't change the name by using UpdateMitigationAction. Instead, you must delete and re-create the mitigation action with the new name.

    ", + "documentation":"

    The friendly name for the mitigation action. You cannot change the name by using UpdateMitigationAction. Instead, you must delete and recreate the mitigation action with the new name.

    ", "location":"uri", "locationName":"actionName" }, @@ -16149,15 +17153,15 @@ "members":{ "frequency":{ "shape":"AuditFrequency", - "documentation":"

    How often the scheduled audit takes place. Can be one of \"DAILY\", \"WEEKLY\", \"BIWEEKLY\", or \"MONTHLY\". The start time of each audit is determined by the system.

    " + "documentation":"

    How often the scheduled audit takes place, either DAILY, WEEKLY, BIWEEKLY, or MONTHLY. The start time of each audit is determined by the system.

    " }, "dayOfMonth":{ "shape":"DayOfMonth", - "documentation":"

    The day of the month on which the scheduled audit takes place. Can be \"1\" through \"31\" or \"LAST\". This field is required if the \"frequency\" parameter is set to \"MONTHLY\". If days 29-31 are specified, and the month does not have that many days, the audit takes place on the \"LAST\" day of the month.

    " + "documentation":"

    The day of the month on which the scheduled audit takes place. This can be 1 through 31 or LAST. This field is required if the frequency parameter is set to MONTHLY. If days 29-31 are specified, and the month does not have that many days, the audit takes place on the \"LAST\" day of the month.

    " }, "dayOfWeek":{ "shape":"DayOfWeek", - "documentation":"

    The day of the week on which the scheduled audit takes place. Can be one of \"SUN\", \"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\", or \"SAT\". This field is required if the \"frequency\" parameter is set to \"WEEKLY\" or \"BIWEEKLY\".

    " + "documentation":"

    The day of the week on which the scheduled audit takes place. This can be one of SUN, MON, TUE, WED, THU, FRI, or SAT. This field is required if the \"frequency\" parameter is set to WEEKLY or BIWEEKLY.

    " }, "targetCheckNames":{ "shape":"TargetAuditCheckNames", @@ -16204,13 +17208,13 @@ }, "additionalMetricsToRetain":{ "shape":"AdditionalMetricsToRetainList", - "documentation":"

    Please use UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here.

    ", + "documentation":"

    Please use UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

    ", "deprecated":true, "deprecatedMessage":"Use additionalMetricsToRetainV2." }, "additionalMetricsToRetainV2":{ "shape":"AdditionalMetricsToRetainV2List", - "documentation":"

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here.

    " + "documentation":"

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

    " }, "deleteBehaviors":{ "shape":"DeleteBehaviors", @@ -16263,7 +17267,7 @@ }, "additionalMetricsToRetainV2":{ "shape":"AdditionalMetricsToRetainV2List", - "documentation":"

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here.

    " + "documentation":"

    A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.

    " }, "version":{ "shape":"Version", @@ -16527,12 +17531,16 @@ }, "behavior":{ "shape":"Behavior", - "documentation":"

    The behavior which was violated.

    " + "documentation":"

    The behavior that was violated.

    " }, "metricValue":{ "shape":"MetricValue", "documentation":"

    The value of the metric (the measurement).

    " }, + "violationEventAdditionalInfo":{ + "shape":"ViolationEventAdditionalInfo", + "documentation":"

    The details of a violation event.

    " + }, "violationEventType":{ "shape":"ViolationEventType", "documentation":"

    The type of violation event.

    " @@ -16544,6 +17552,34 @@ }, "documentation":"

    Information about a Device Defender security profile behavior violation.

    " }, + "ViolationEventAdditionalInfo":{ + "type":"structure", + "members":{ + "confidenceLevel":{ + "shape":"ConfidenceLevel", + "documentation":"

    The sensitivity of anomalous behavior evaluation. Can be Low, Medium, or High.

    " + } + }, + "documentation":"

    The details of a violation event.

    " + }, + "ViolationEventOccurrenceRange":{ + "type":"structure", + "required":[ + "startTime", + "endTime" + ], + "members":{ + "startTime":{ + "shape":"Timestamp", + "documentation":"

    The start date and time of a time period in which violation events occurred.

    " + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

    The end date and time of a time period in which violation events occurred.

    " + } + }, + "documentation":"

    Specifies the time period of which violation events occurred between.

    " + }, "ViolationEventType":{ "type":"string", "enum":[ @@ -16562,10 +17598,83 @@ "min":1, "pattern":"[a-zA-Z0-9\\-]+" }, + "VpcDestinationConfiguration":{ + "type":"structure", + "required":[ + "subnetIds", + "vpcId", + "roleArn" + ], + "members":{ + "subnetIds":{ + "shape":"SubnetIdList", + "documentation":"

    The subnet IDs of the VPC destination.

    " + }, + "securityGroups":{ + "shape":"SecurityGroupList", + "documentation":"

    The security groups of the VPC destination.

    " + }, + "vpcId":{ + "shape":"VpcId", + "documentation":"

    The ID of the VPC.

    " + }, + "roleArn":{ + "shape":"AwsArn", + "documentation":"

    The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).

    " + } + }, + "documentation":"

    The configuration information for a virtual private cloud (VPC) destination.

    " + }, + "VpcDestinationProperties":{ + "type":"structure", + "members":{ + "subnetIds":{ + "shape":"SubnetIdList", + "documentation":"

    The subnet IDs of the VPC destination.

    " + }, + "securityGroups":{ + "shape":"SecurityGroupList", + "documentation":"

    The security groups of the VPC destination.

    " + }, + "vpcId":{ + "shape":"VpcId", + "documentation":"

    The ID of the VPC.

    " + }, + "roleArn":{ + "shape":"AwsArn", + "documentation":"

    The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).

    " + } + }, + "documentation":"

    The properties of a virtual private cloud (VPC) destination.

    " + }, + "VpcDestinationSummary":{ + "type":"structure", + "members":{ + "subnetIds":{ + "shape":"SubnetIdList", + "documentation":"

    The subnet IDs of the VPC destination.

    " + }, + "securityGroups":{ + "shape":"SecurityGroupList", + "documentation":"

    The security groups of the VPC destination.

    " + }, + "vpcId":{ + "shape":"VpcId", + "documentation":"

    The ID of the VPC.

    " + }, + "roleArn":{ + "shape":"AwsArn", + "documentation":"

    The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).

    " + } + }, + "documentation":"

    The summary of a virtual private cloud (VPC) destination.

    " + }, + "VpcId":{"type":"string"}, "WaitingForDataCollectionChecksCount":{"type":"integer"}, "errorMessage":{"type":"string"}, "resourceArn":{"type":"string"}, - "resourceId":{"type":"string"} + "resourceId":{"type":"string"}, + "stringValue":{"type":"string"} }, "documentation":"AWS IoT

    AWS IoT provides secure, bi-directional communication between Internet-connected devices (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate with, configure rules for data processing and integration with other services, organize resources associated with each device (Registry), configure logging, and create and manage policies and credentials to authenticate devices.

    The service endpoints that expose this API are listed in AWS IoT Core Endpoints and Quotas. You must use the endpoint for the region that has the resources you want to access.

    The service name used by AWS Signature Version 4 to sign the request is: execute-api.

    For more information about how AWS IoT works, see the Developer Guide.

    For information about how to use the credentials provider for AWS IoT, see Authorizing Direct Calls to AWS Services.

    " } diff --git a/code-generation/api-descriptions/iotanalytics-2017-11-27.normal.json b/code-generation/api-descriptions/iotanalytics-2017-11-27.normal.json index 508b6a032c5..80ff4376345 100644 --- a/code-generation/api-descriptions/iotanalytics-2017-11-27.normal.json +++ b/code-generation/api-descriptions/iotanalytics-2017-11-27.normal.json @@ -793,6 +793,16 @@ "documentation":"

    The activity that determines the source of the messages to be processed.

    " }, "ChannelArn":{"type":"string"}, + "ChannelMessages":{ + "type":"structure", + "members":{ + "s3Paths":{ + "shape":"S3PathChannelMessages", + "documentation":"

    Specifies one or more keys that identify the Amazon Simple Storage Service (Amazon S3) objects that save your channel messages.

    " + } + }, + "documentation":"

    Specifies one or more sets of channel messages.

    " + }, "ChannelName":{ "type":"string", "max":128, @@ -879,6 +889,40 @@ }, "documentation":"

    A summary of information about a channel.

    " }, + "Column":{ + "type":"structure", + "required":[ + "name", + "type" + ], + "members":{ + "name":{ + "shape":"ColumnName", + "documentation":"

    The name of the column.

    " + }, + "type":{ + "shape":"ColumnDataType", + "documentation":"

    The type of data. For more information about the supported data types, see Common data types in the AWS Glue Developer Guide.

    " + } + }, + "documentation":"

    Contains information about a column that stores your data.

    " + }, + "ColumnDataType":{ + "type":"string", + "max":131072, + "min":1, + "pattern":"^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*$" + }, + "ColumnName":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^[A-Za-z_]([A-Za-z0-9]*|[A-Za-z0-9][A-Za-z0-9_]*)$" + }, + "Columns":{ + "type":"list", + "member":{"shape":"Column"} + }, "ComputeType":{ "type":"string", "enum":[ @@ -1054,6 +1098,10 @@ "tags":{ "shape":"TagList", "documentation":"

    Metadata which can be used to manage the data store.

    " + }, + "fileFormatConfiguration":{ + "shape":"FileFormatConfiguration", + "documentation":"

    Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet.

    The default file format is JSON. You can specify only one format.

    You can't change the file format after you create the data store.

    " } } }, @@ -1519,6 +1567,10 @@ "lastMessageArrivalTime":{ "shape":"Timestamp", "documentation":"

    The last time when a new message arrived in the data store.

    AWS IoT Analytics updates this value at most once per minute for one data store. Hence, the lastMessageArrivalTime value is an approximation.

    This feature only applies to messages that arrived in the data store after October 23, 2020.

    " + }, + "fileFormatConfiguration":{ + "shape":"FileFormatConfiguration", + "documentation":"

    Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet.

    The default file format is JSON. You can specify only one format.

    You can't change the file format after you create the data store.

    " } }, "documentation":"

    Information about a data store.

    " @@ -1624,6 +1676,10 @@ "lastMessageArrivalTime":{ "shape":"Timestamp", "documentation":"

    The last time when a new message arrived in the data store.

    AWS IoT Analytics updates this value at most once per minute for one data store. Hence, the lastMessageArrivalTime value is an approximation.

    This feature only applies to messages that arrived in the data store after October 23, 2020.

    " + }, + "fileFormatType":{ + "shape":"FileFormatType", + "documentation":"

    The file format of the data in the data store.

    " } }, "documentation":"

    A summary of information about a data store.

    " @@ -1924,6 +1980,27 @@ }, "documentation":"

    The estimated size of the resource.

    " }, + "FileFormatConfiguration":{ + "type":"structure", + "members":{ + "jsonConfiguration":{ + "shape":"JsonConfiguration", + "documentation":"

    Contains the configuration information of the JSON format.

    " + }, + "parquetConfiguration":{ + "shape":"ParquetConfiguration", + "documentation":"

    Contains the configuration information of the Parquet format.

    " + } + }, + "documentation":"

    Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet.

    The default file format is JSON. You can specify only one format.

    You can't change the file format after you create the data store.

    " + }, + "FileFormatType":{ + "type":"string", + "enum":[ + "JSON", + "PARQUET" + ] + }, "FilterActivity":{ "type":"structure", "required":[ @@ -2064,6 +2141,12 @@ "min":1, "pattern":"^[a-zA-Z][a-zA-Z0-9_]*$" }, + "JsonConfiguration":{ + "type":"structure", + "members":{ + }, + "documentation":"

    Contains the configuration information of the JSON format.

    " + }, "LambdaActivity":{ "type":"structure", "required":[ @@ -2460,6 +2543,16 @@ }, "documentation":"

    The value of the variable as a structure that specifies an output file URI.

    " }, + "ParquetConfiguration":{ + "type":"structure", + "members":{ + "schemaDefinition":{ + "shape":"SchemaDefinition", + "documentation":"

    Information needed to define a schema.

    " + } + }, + "documentation":"

    Contains the configuration information of the Parquet format.

    " + }, "Pipeline":{ "type":"structure", "members":{ @@ -2792,6 +2885,18 @@ "min":1, "pattern":"^[a-zA-Z0-9!_.*'()/{}:-]*/$" }, + "S3PathChannelMessage":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^[a-zA-Z0-9/_!'(){}\\*\\s\\.\\-\\=\\:]+$" + }, + "S3PathChannelMessages":{ + "type":"list", + "member":{"shape":"S3PathChannelMessage"}, + "max":100, + "min":1 + }, "SampleChannelDataRequest":{ "type":"structure", "required":["channelName"], @@ -2842,6 +2947,16 @@ "documentation":"

    The schedule for when to trigger an update.

    " }, "ScheduleExpression":{"type":"string"}, + "SchemaDefinition":{ + "type":"structure", + "members":{ + "columns":{ + "shape":"Columns", + "documentation":"

    Specifies one or more columns that store your data.

    Each schema can have up to 100 columns. Each column can have up to 100 nested types

    " + } + }, + "documentation":"

    Information needed to define a schema.

    " + }, "SelectAttributesActivity":{ "type":"structure", "required":[ @@ -2932,11 +3047,15 @@ }, "startTime":{ "shape":"StartTime", - "documentation":"

    The start time (inclusive) of raw message data that is reprocessed.

    " + "documentation":"

    The start time (inclusive) of raw message data that is reprocessed.

    If you specify a value for the startTime parameter, you must not use the channelMessages object.

    " }, "endTime":{ "shape":"EndTime", - "documentation":"

    The end time (exclusive) of raw message data that is reprocessed.

    " + "documentation":"

    The end time (exclusive) of raw message data that is reprocessed.

    If you specify a value for the endTime parameter, you must not use the channelMessages object.

    " + }, + "channelMessages":{ + "shape":"ChannelMessages", + "documentation":"

    Specifies one or more sets of channel messages that you want to reprocess.

    If you use the channelMessages object, you must not specify a value for startTime and endTime.

    " } } }, @@ -3145,6 +3264,10 @@ "datastoreStorage":{ "shape":"DatastoreStorage", "documentation":"

    Where data store data is stored. You can choose one of serviceManagedS3 or customerManagedS3 storage. If not specified, the default isserviceManagedS3. You cannot change this storage option after the data store is created.

    " + }, + "fileFormatConfiguration":{ + "shape":"FileFormatConfiguration", + "documentation":"

    Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet.

    The default file format is JSON. You can specify only one format.

    You can't change the file format after you create the data store.

    " } } }, diff --git a/code-generation/api-descriptions/iotdeviceadvisor-2020-09-18.normal.json b/code-generation/api-descriptions/iotdeviceadvisor-2020-09-18.normal.json new file mode 100644 index 00000000000..629489c602c --- /dev/null +++ b/code-generation/api-descriptions/iotdeviceadvisor-2020-09-18.normal.json @@ -0,0 +1,1129 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-09-18", + "endpointPrefix":"api.iotdeviceadvisor", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"AWSIoTDeviceAdvisor", + "serviceFullName":"AWS IoT Core Device Advisor", + "serviceId":"IotDeviceAdvisor", + "signatureVersion":"v4", + "signingName":"iotdeviceadvisor", + "uid":"iotdeviceadvisor-2020-09-18" + }, + "operations":{ + "CreateSuiteDefinition":{ + "name":"CreateSuiteDefinition", + "http":{ + "method":"POST", + "requestUri":"/suiteDefinitions" + }, + "input":{"shape":"CreateSuiteDefinitionRequest"}, + "output":{"shape":"CreateSuiteDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Creates a Device Advisor test suite.

    " + }, + "DeleteSuiteDefinition":{ + "name":"DeleteSuiteDefinition", + "http":{ + "method":"DELETE", + "requestUri":"/suiteDefinitions/{suiteDefinitionId}" + }, + "input":{"shape":"DeleteSuiteDefinitionRequest"}, + "output":{"shape":"DeleteSuiteDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Deletes a Device Advisor test suite.

    " + }, + "GetSuiteDefinition":{ + "name":"GetSuiteDefinition", + "http":{ + "method":"GET", + "requestUri":"/suiteDefinitions/{suiteDefinitionId}" + }, + "input":{"shape":"GetSuiteDefinitionRequest"}, + "output":{"shape":"GetSuiteDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Gets information about a Device Advisor test suite.

    " + }, + "GetSuiteRun":{ + "name":"GetSuiteRun", + "http":{ + "method":"GET", + "requestUri":"/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}" + }, + "input":{"shape":"GetSuiteRunRequest"}, + "output":{"shape":"GetSuiteRunResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Gets information about a Device Advisor test suite run.

    " + }, + "GetSuiteRunReport":{ + "name":"GetSuiteRunReport", + "http":{ + "method":"GET", + "requestUri":"/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report" + }, + "input":{"shape":"GetSuiteRunReportRequest"}, + "output":{"shape":"GetSuiteRunReportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Gets a report download link for a successful Device Advisor qualifying test suite run.

    " + }, + "ListSuiteDefinitions":{ + "name":"ListSuiteDefinitions", + "http":{ + "method":"GET", + "requestUri":"/suiteDefinitions" + }, + "input":{"shape":"ListSuiteDefinitionsRequest"}, + "output":{"shape":"ListSuiteDefinitionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Lists the Device Advisor test suites you have created.

    " + }, + "ListSuiteRuns":{ + "name":"ListSuiteRuns", + "http":{ + "method":"GET", + "requestUri":"/suiteRuns" + }, + "input":{"shape":"ListSuiteRunsRequest"}, + "output":{"shape":"ListSuiteRunsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Lists the runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a specific version of the test suite.

    " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Lists the tags attached to an IoT Device Advisor resource.

    " + }, + "ListTestCases":{ + "name":"ListTestCases", + "http":{ + "method":"GET", + "requestUri":"/testCases" + }, + "input":{"shape":"ListTestCasesRequest"}, + "output":{"shape":"ListTestCasesResponse"}, + "errors":[ + {"shape":"InternalServerException"} + ], + "documentation":"

    Lists all the test cases in the test suite.

    " + }, + "StartSuiteRun":{ + "name":"StartSuiteRun", + "http":{ + "method":"POST", + "requestUri":"/suiteDefinitions/{suiteDefinitionId}/suiteRuns" + }, + "input":{"shape":"StartSuiteRunRequest"}, + "output":{"shape":"StartSuiteRunResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Starts a Device Advisor test suite run.

    " + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Adds to and modifies existing tags of an IoT Device Advisor resource.

    " + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Removes tags from an IoT Device Advisor resource.

    " + }, + "UpdateSuiteDefinition":{ + "name":"UpdateSuiteDefinition", + "http":{ + "method":"PATCH", + "requestUri":"/suiteDefinitions/{suiteDefinitionId}" + }, + "input":{"shape":"UpdateSuiteDefinitionRequest"}, + "output":{"shape":"UpdateSuiteDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Updates a Device Advisor test suite.

    " + } + }, + "shapes":{ + "AmazonResourceName":{ + "type":"string", + "max":2048, + "min":20 + }, + "CategoryName":{"type":"string"}, + "ConfigString":{"type":"string"}, + "ConflictException":{ + "type":"structure", + "members":{ + "message":{ + "shape":"Message", + "documentation":"

    Sends Conflict Exception message.

    " + } + }, + "documentation":"

    Sends Conflict Exception.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "CreateSuiteDefinitionRequest":{ + "type":"structure", + "members":{ + "suiteDefinitionConfiguration":{ + "shape":"SuiteDefinitionConfiguration", + "documentation":"

    Creates a Device Advisor test suite with suite definition configuration.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags to be attached to the suite definition.

    " + } + } + }, + "CreateSuiteDefinitionResponse":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Creates a Device Advisor test suite with suite UUID.

    " + }, + "suiteDefinitionArn":{ + "shape":"AmazonResourceName", + "documentation":"

    Creates a Device Advisor test suite with Amazon Resource name.

    " + }, + "suiteDefinitionName":{ + "shape":"SuiteDefinitionName", + "documentation":"

    Creates a Device Advisor test suite with suite definition name.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    Creates a Device Advisor test suite with TimeStamp of when it was created.

    " + } + } + }, + "DeleteSuiteDefinitionRequest":{ + "type":"structure", + "required":["suiteDefinitionId"], + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Deletes a Device Advisor test suite with defined suite Id.

    ", + "location":"uri", + "locationName":"suiteDefinitionId" + } + } + }, + "DeleteSuiteDefinitionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeviceUnderTest":{ + "type":"structure", + "members":{ + "thingArn":{ + "shape":"AmazonResourceName", + "documentation":"

    Lists devices thing arn

    " + }, + "certificateArn":{ + "shape":"AmazonResourceName", + "documentation":"

    Lists devices certificate arn

    " + } + }, + "documentation":"

    Lists all the devices under test

    " + }, + "DeviceUnderTestList":{ + "type":"list", + "member":{"shape":"DeviceUnderTest"}, + "max":2, + "min":0 + }, + "ErrorReason":{"type":"string"}, + "Failure":{"type":"string"}, + "GetSuiteDefinitionRequest":{ + "type":"structure", + "required":["suiteDefinitionId"], + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Requests suite definition Id with GetSuiteDefinition API call.

    ", + "location":"uri", + "locationName":"suiteDefinitionId" + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Requests the suite definition version of a test suite.

    ", + "location":"querystring", + "locationName":"suiteDefinitionVersion" + } + } + }, + "GetSuiteDefinitionResponse":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Gets suite definition Id with GetSuiteDefinition API call.

    " + }, + "suiteDefinitionArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The ARN of the suite definition.

    " + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Gets suite definition version with GetSuiteDefinition API call.

    " + }, + "latestVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Gets latest suite definition version with GetSuiteDefinition API call.

    " + }, + "suiteDefinitionConfiguration":{ + "shape":"SuiteDefinitionConfiguration", + "documentation":"

    Gets the suite configuration with GetSuiteDefinition API call.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    Gets the timestamp of the time suite was created with GetSuiteDefinition API call.

    " + }, + "lastModifiedAt":{ + "shape":"Timestamp", + "documentation":"

    Gets the timestamp of the time suite was modified with GetSuiteDefinition API call.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    Tags attached to the suite definition.

    " + } + } + }, + "GetSuiteRunReportRequest":{ + "type":"structure", + "required":[ + "suiteDefinitionId", + "suiteRunId" + ], + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Device Advisor suite definition Id.

    ", + "location":"uri", + "locationName":"suiteDefinitionId" + }, + "suiteRunId":{ + "shape":"UUID", + "documentation":"

    Device Advisor suite run Id.

    ", + "location":"uri", + "locationName":"suiteRunId" + } + } + }, + "GetSuiteRunReportResponse":{ + "type":"structure", + "members":{ + "qualificationReportDownloadUrl":{ + "shape":"QualificationReportDownloadUrl", + "documentation":"

    Gets the download URL of the qualification report.

    " + } + } + }, + "GetSuiteRunRequest":{ + "type":"structure", + "required":[ + "suiteDefinitionId", + "suiteRunId" + ], + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Requests the information about Device Advisor test suite run based on suite definition Id.

    ", + "location":"uri", + "locationName":"suiteDefinitionId" + }, + "suiteRunId":{ + "shape":"UUID", + "documentation":"

    Requests the information about Device Advisor test suite run based on suite run Id.

    ", + "location":"uri", + "locationName":"suiteRunId" + } + } + }, + "GetSuiteRunResponse":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Gets the information about Device Advisor test suite run based on suite definition Id.

    " + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Gets the information about Device Advisor test suite run based on suite definition version.

    " + }, + "suiteRunId":{ + "shape":"UUID", + "documentation":"

    Gets the information about Device Advisor test suite run based on suite run Id.

    " + }, + "suiteRunArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The ARN of the suite run.

    " + }, + "suiteRunConfiguration":{ + "shape":"SuiteRunConfiguration", + "documentation":"

    Gets the information about Device Advisor test suite run based on suite configuration.

    " + }, + "testResult":{ + "shape":"TestResult", + "documentation":"

    Gets the information about Device Advisor test suite run based on test case runs.

    " + }, + "startTime":{ + "shape":"Timestamp", + "documentation":"

    Gets the information about Device Advisor test suite run based on start time.

    " + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

    Gets the information about Device Advisor test suite run based on end time.

    " + }, + "status":{ + "shape":"SuiteRunStatus", + "documentation":"

    Gets the information about Device Advisor test suite run based on its status.

    " + }, + "errorReason":{ + "shape":"ErrorReason", + "documentation":"

    Gets the information about Device Advisor test suite run based on error.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags attached to the suite run.

    " + } + } + }, + "GroupName":{"type":"string"}, + "GroupResult":{ + "type":"structure", + "members":{ + "groupId":{ + "shape":"UUID", + "documentation":"

    Show Group Result Id.

    " + }, + "groupName":{ + "shape":"GroupName", + "documentation":"

    Show Group Result Name.

    " + }, + "tests":{ + "shape":"TestCaseRuns", + "documentation":"

    Show Group Result.

    " + } + }, + "documentation":"

    Show Group Result.

    " + }, + "GroupResultList":{ + "type":"list", + "member":{"shape":"GroupResult"}, + "documentation":"

    how Group Result list.

    " + }, + "IntendedForQualificationBoolean":{"type":"boolean"}, + "InternalServerException":{ + "type":"structure", + "members":{ + "message":{ + "shape":"Message", + "documentation":"

    Sends Internal Failure Exception message.

    " + } + }, + "documentation":"

    Sends Internal Failure Exception.

    ", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "ListSuiteDefinitionsRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    Request the list of all the Device Advisor test suites.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"Token", + "documentation":"

    Requests the Device Advisor test suites next token.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListSuiteDefinitionsResponse":{ + "type":"structure", + "members":{ + "suiteDefinitionInformationList":{ + "shape":"SuiteDefinitionInformationList", + "documentation":"

    Lists test suite information using List suite definition.

    " + }, + "nextToken":{ + "shape":"Token", + "documentation":"

    Creates a Device Advisor test suite.

    " + } + } + }, + "ListSuiteRunsRequest":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Lists the runs of the specified Device Advisor test suite based on suite definition Id.

    ", + "location":"querystring", + "locationName":"suiteDefinitionId" + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Lists the runs of the specified Device Advisor test suite based on suite definition version.

    ", + "location":"querystring", + "locationName":"suiteDefinitionVersion" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    MaxResults for list suite run API request.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"Token", + "documentation":"

    Next pagination token for list suite run request.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListSuiteRunsResponse":{ + "type":"structure", + "members":{ + "suiteRunsList":{ + "shape":"SuiteRunsList", + "documentation":"

    Lists the runs of the specified Device Advisor test suite.

    " + }, + "nextToken":{ + "shape":"Token", + "documentation":"

    Next pagination token for list suite run response.

    " + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The ARN of the IoT Device Advisor resource.

    ", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags attached to the IoT Device Advisor resource.

    " + } + } + }, + "ListTestCasesRequest":{ + "type":"structure", + "members":{ + "intendedForQualification":{ + "shape":"IntendedForQualificationBoolean", + "documentation":"

    Lists all the qualification test cases in the test suite.

    ", + "location":"querystring", + "locationName":"intendedForQualification" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    Requests the test cases max results.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"Token", + "documentation":"

    Requests the test cases next token.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListTestCasesResponse":{ + "type":"structure", + "members":{ + "categories":{ + "shape":"TestCategory", + "documentation":"

    Gets the category of test case.

    " + }, + "rootGroupConfiguration":{ + "shape":"TestConfiguration", + "documentation":"

    Gets the configuration of root test group.

    " + }, + "groupConfiguration":{ + "shape":"TestConfiguration", + "documentation":"

    Gets the configuration of test group.

    " + }, + "nextToken":{ + "shape":"Token", + "documentation":"

    Test cases next token response.

    " + } + } + }, + "LogUrl":{"type":"string"}, + "MaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "Message":{ + "type":"string", + "max":2048, + "min":1 + }, + "QualificationReportDownloadUrl":{"type":"string"}, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "message":{ + "shape":"Message", + "documentation":"

    Sends Resource Not Found Exception message.

    " + } + }, + "documentation":"

    Sends Resource Not Found Exception.

    ", + "error":{"httpStatusCode":404}, + "exception":true + }, + "RootGroup":{ + "type":"string", + "max":2048, + "min":1 + }, + "SelectedTestList":{ + "type":"list", + "member":{"shape":"UUID"}, + "max":100, + "min":0 + }, + "StartSuiteRunRequest":{ + "type":"structure", + "required":["suiteDefinitionId"], + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Request to start suite run based on suite definition Id.

    ", + "location":"uri", + "locationName":"suiteDefinitionId" + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Request to start suite run based on suite definition version.

    " + }, + "suiteRunConfiguration":{ + "shape":"SuiteRunConfiguration", + "documentation":"

    Request to start suite run based on suite configuration.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags to be attached to the suite run.

    " + } + } + }, + "StartSuiteRunResponse":{ + "type":"structure", + "members":{ + "suiteRunId":{ + "shape":"UUID", + "documentation":"

    Starts a Device Advisor test suite run based on suite Run Id.

    " + }, + "suiteRunArn":{ + "shape":"AmazonResourceName", + "documentation":"

    Starts a Device Advisor test suite run based on suite run arn.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    Starts a Device Advisor test suite run based on suite create time.

    " + } + } + }, + "Status":{ + "type":"string", + "enum":[ + "PASS", + "FAIL", + "CANCELED", + "PENDING", + "RUNNING", + "PASS_WITH_WARNINGS", + "ERROR" + ] + }, + "String128":{ + "type":"string", + "max":128, + "min":1 + }, + "String256":{ + "type":"string", + "max":256, + "min":1 + }, + "SuiteDefinitionConfiguration":{ + "type":"structure", + "members":{ + "suiteDefinitionName":{ + "shape":"SuiteDefinitionName", + "documentation":"

    Gets Suite Definition Configuration name.

    " + }, + "devices":{ + "shape":"DeviceUnderTestList", + "documentation":"

    Gets the devices configured.

    " + }, + "intendedForQualification":{ + "shape":"IntendedForQualificationBoolean", + "documentation":"

    Gets the tests intended for qualification in a suite.

    " + }, + "rootGroup":{ + "shape":"RootGroup", + "documentation":"

    Gets test suite root group.

    " + }, + "devicePermissionRoleArn":{ + "shape":"AmazonResourceName", + "documentation":"

    Gets device permission arn.

    " + } + }, + "documentation":"

    Gets Suite Definition Configuration.

    " + }, + "SuiteDefinitionInformation":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Get suite definition Id.

    " + }, + "suiteDefinitionName":{ + "shape":"SuiteDefinitionName", + "documentation":"

    Get test suite name.

    " + }, + "defaultDevices":{ + "shape":"DeviceUnderTestList", + "documentation":"

    Specifies the devices under test.

    " + }, + "intendedForQualification":{ + "shape":"IntendedForQualificationBoolean", + "documentation":"

    Gets the test suites which will be used for qualification.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    Gets the information of when the test suite was created.

    " + } + }, + "documentation":"

    Get suite definition information.

    " + }, + "SuiteDefinitionInformationList":{ + "type":"list", + "member":{"shape":"SuiteDefinitionInformation"} + }, + "SuiteDefinitionName":{ + "type":"string", + "max":256, + "min":1 + }, + "SuiteDefinitionVersion":{ + "type":"string", + "max":255, + "min":2 + }, + "SuiteRunConfiguration":{ + "type":"structure", + "members":{ + "primaryDevice":{ + "shape":"DeviceUnderTest", + "documentation":"

    Gets the primary device for suite run.

    " + }, + "secondaryDevice":{ + "shape":"DeviceUnderTest", + "documentation":"

    Gets the secondary device for suite run.

    " + }, + "selectedTestList":{ + "shape":"SelectedTestList", + "documentation":"

    Gets test case list.

    " + } + }, + "documentation":"

    Gets suite run configuration.

    " + }, + "SuiteRunInformation":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Get suite run information based on suite definition Id.

    " + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Get suite run information based on suite definition version.

    " + }, + "suiteDefinitionName":{ + "shape":"SuiteDefinitionName", + "documentation":"

    Get suite run information based on suite definition name.

    " + }, + "suiteRunId":{ + "shape":"UUID", + "documentation":"

    Get suite run information based on suite run Id.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    Get suite run information based on time suite was created.

    " + }, + "startedAt":{ + "shape":"Timestamp", + "documentation":"

    Get suite run information based on start time of the run.

    " + }, + "endAt":{ + "shape":"Timestamp", + "documentation":"

    Get suite run information based on end time of the run.

    " + }, + "status":{ + "shape":"SuiteRunStatus", + "documentation":"

    Get suite run information based on test run status.

    " + }, + "passed":{ + "shape":"SuiteRunResultCount", + "documentation":"

    Get suite run information based on result of the test suite run.

    " + }, + "failed":{ + "shape":"SuiteRunResultCount", + "documentation":"

    Get suite run information based on result of the test suite run.

    " + } + }, + "documentation":"

    Get suite run information.

    " + }, + "SuiteRunResultCount":{ + "type":"integer", + "max":500, + "min":0 + }, + "SuiteRunStatus":{ + "type":"string", + "enum":[ + "PASS", + "FAIL", + "CANCELED", + "PENDING", + "RUNNING", + "PASS_WITH_WARNINGS", + "ERROR" + ] + }, + "SuiteRunsList":{ + "type":"list", + "member":{"shape":"SuiteRunInformation"} + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"String128"}, + "max":50, + "min":0 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"String128"}, + "value":{"shape":"String256"}, + "max":50, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The resource ARN of an IoT Device Advisor resource.

    ", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The tags to be attached to the IoT Device Advisor resource.

    " + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TestCase":{ + "type":"structure", + "members":{ + "name":{ + "shape":"TestCaseName", + "documentation":"

    Shows test case name.

    " + }, + "configuration":{ + "shape":"TestConfiguration", + "documentation":"

    Shows test case configuration.

    " + }, + "test":{ + "shape":"TestCaseDefinition", + "documentation":"

    Specifies a test.

    " + } + }, + "documentation":"

    Shows tests in a test group.

    " + }, + "TestCaseCategory":{ + "type":"structure", + "members":{ + "name":{ + "shape":"CategoryName", + "documentation":"

    Lists all the tests name in the specified category.

    " + }, + "tests":{ + "shape":"TestCaseList", + "documentation":"

    Lists all the tests in the specified category.

    " + } + }, + "documentation":"

    Gets the test case category.

    " + }, + "TestCaseDefinition":{ + "type":"structure", + "members":{ + "id":{ + "shape":"TestCaseName", + "documentation":"

    Provides test case definition Id.

    " + }, + "testCaseVersion":{ + "shape":"TestCaseVersion", + "documentation":"

    Provides test case definition version.

    " + } + }, + "documentation":"

    Provides test case definition.

    " + }, + "TestCaseDefinitionName":{"type":"string"}, + "TestCaseList":{ + "type":"list", + "member":{"shape":"TestCase"} + }, + "TestCaseName":{"type":"string"}, + "TestCaseRun":{ + "type":"structure", + "members":{ + "testCaseRunId":{ + "shape":"UUID", + "documentation":"

    Provides test case run Id.

    " + }, + "testCaseDefinitionId":{ + "shape":"UUID", + "documentation":"

    Provides test case run definition Id.

    " + }, + "testCaseDefinitionName":{ + "shape":"TestCaseDefinitionName", + "documentation":"

    Provides test case run definition Name.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    Provides test case run status.

    " + }, + "startTime":{ + "shape":"Timestamp", + "documentation":"

    Provides test case run start time.

    " + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

    Provides test case run end time.

    " + }, + "logUrl":{ + "shape":"LogUrl", + "documentation":"

    Provides test case run log Url.

    " + }, + "warnings":{ + "shape":"Warnings", + "documentation":"

    Provides test case run warnings.

    " + }, + "failure":{ + "shape":"Failure", + "documentation":"

    Provides test case run failure result.

    " + } + }, + "documentation":"

    Provides test case run.

    " + }, + "TestCaseRuns":{ + "type":"list", + "member":{"shape":"TestCaseRun"}, + "documentation":"

    Show each group result.

    " + }, + "TestCaseVersion":{"type":"string"}, + "TestCategory":{ + "type":"list", + "member":{"shape":"TestCaseCategory"} + }, + "TestConfiguration":{ + "type":"map", + "key":{"shape":"ConfigString"}, + "value":{"shape":"ConfigString"} + }, + "TestResult":{ + "type":"structure", + "members":{ + "groups":{ + "shape":"GroupResultList", + "documentation":"

    Show each group of test results.

    " + } + }, + "documentation":"

    Show each group result.

    " + }, + "Timestamp":{"type":"timestamp"}, + "Token":{ + "type":"string", + "max":2000 + }, + "UUID":{ + "type":"string", + "max":36, + "min":36 + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The resource ARN of an IoT Device Advisor resource.

    ", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "documentation":"

    List of tag keys to remove from the IoT Device Advisor resource.

    ", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateSuiteDefinitionRequest":{ + "type":"structure", + "required":["suiteDefinitionId"], + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Updates a Device Advisor test suite with suite definition id.

    ", + "location":"uri", + "locationName":"suiteDefinitionId" + }, + "suiteDefinitionConfiguration":{ + "shape":"SuiteDefinitionConfiguration", + "documentation":"

    Updates a Device Advisor test suite with suite definition configuration.

    " + } + } + }, + "UpdateSuiteDefinitionResponse":{ + "type":"structure", + "members":{ + "suiteDefinitionId":{ + "shape":"UUID", + "documentation":"

    Updates a Device Advisor test suite with suite UUID.

    " + }, + "suiteDefinitionArn":{ + "shape":"AmazonResourceName", + "documentation":"

    Updates a Device Advisor test suite with Amazon Resource name.

    " + }, + "suiteDefinitionName":{ + "shape":"SuiteDefinitionName", + "documentation":"

    Updates a Device Advisor test suite with suite definition name.

    " + }, + "suiteDefinitionVersion":{ + "shape":"SuiteDefinitionVersion", + "documentation":"

    Updates a Device Advisor test suite with suite definition version.

    " + }, + "createdAt":{ + "shape":"Timestamp", + "documentation":"

    Updates a Device Advisor test suite with TimeStamp of when it was created.

    " + }, + "lastUpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    Updates a Device Advisor test suite with TimeStamp of when it was updated.

    " + } + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "message":{ + "shape":"Message", + "documentation":"

    Sends invalid request exception message.

    " + } + }, + "documentation":"

    Sends invalid request exception.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "Warnings":{"type":"string"} + }, + "documentation":"

    AWS IoT Core Device Advisor is a cloud-based, fully managed test capability for validating IoT devices during device software development. Device Advisor provides pre-built tests that you can use to validate IoT devices for reliable and secure connectivity with AWS IoT Core before deploying devices to production. By using Device Advisor, you can confirm that your devices can connect to AWS IoT Core, follow security best practices and, if applicable, receive software updates from IoT Device Management. You can also download signed qualification reports to submit to the AWS Partner Network to get your device qualified for the AWS Partner Device Catalog without the need to send your device in and wait for it to be tested.

    " +} diff --git a/code-generation/api-descriptions/iotfleethub-2020-11-03.normal.json b/code-generation/api-descriptions/iotfleethub-2020-11-03.normal.json new file mode 100644 index 00000000000..48da59f76fc --- /dev/null +++ b/code-generation/api-descriptions/iotfleethub-2020-11-03.normal.json @@ -0,0 +1,597 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-11-03", + "endpointPrefix":"api.fleethub.iot", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"AWS IoT Fleet Hub", + "serviceId":"IoTFleetHub", + "signatureVersion":"v4", + "signingName":"iotfleethub", + "uid":"iotfleethub-2020-11-03" + }, + "operations":{ + "CreateApplication":{ + "name":"CreateApplication", + "http":{ + "method":"POST", + "requestUri":"/applications", + "responseCode":201 + }, + "input":{"shape":"CreateApplicationRequest"}, + "output":{"shape":"CreateApplicationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"} + ], + "documentation":"

    Creates a Fleet Hub for AWS IoT Device Management web application.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "DeleteApplication":{ + "name":"DeleteApplication", + "http":{ + "method":"DELETE", + "requestUri":"/applications/{applicationId}", + "responseCode":204 + }, + "input":{"shape":"DeleteApplicationRequest"}, + "output":{"shape":"DeleteApplicationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a Fleet Hub for AWS IoT Device Management web application.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "DescribeApplication":{ + "name":"DescribeApplication", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}", + "responseCode":200 + }, + "input":{"shape":"DescribeApplicationRequest"}, + "output":{"shape":"DescribeApplicationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a Fleet Hub for AWS IoT Device Management web application.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "ListApplications":{ + "name":"ListApplications", + "http":{ + "method":"GET", + "requestUri":"/applications", + "responseCode":200 + }, + "input":{"shape":"ListApplicationsRequest"}, + "output":{"shape":"ListApplicationsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets a list of Fleet Hub for AWS IoT Device Management web applications for the current account.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalFailureException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Lists the tags for the specified resource.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InternalFailureException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Adds to or modifies the tags of the specified resource. Tags are metadata which can be used to manage a resource.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InternalFailureException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Removes the specified tags (metadata) from the resource.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "UpdateApplication":{ + "name":"UpdateApplication", + "http":{ + "method":"PATCH", + "requestUri":"/applications/{applicationId}", + "responseCode":202 + }, + "input":{"shape":"UpdateApplicationRequest"}, + "output":{"shape":"UpdateApplicationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates information about a Fleet Hub for a AWS IoT Device Management web application.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + } + }, + "shapes":{ + "ApplicationState":{ + "type":"string", + "enum":[ + "CREATING", + "DELETING", + "ACTIVE", + "CREATE_FAILED", + "DELETE_FAILED" + ] + }, + "ApplicationSummaries":{ + "type":"list", + "member":{"shape":"ApplicationSummary"} + }, + "ApplicationSummary":{ + "type":"structure", + "required":[ + "applicationId", + "applicationName", + "applicationUrl" + ], + "members":{ + "applicationId":{ + "shape":"Id", + "documentation":"

    The unique Id of the web application.

    " + }, + "applicationName":{ + "shape":"Name", + "documentation":"

    The name of the web application.

    " + }, + "applicationDescription":{ + "shape":"Description", + "documentation":"

    An optional description of the web application.

    " + }, + "applicationUrl":{ + "shape":"Url", + "documentation":"

    The URL of the web application.

    " + }, + "applicationCreationDate":{ + "shape":"Timestamp", + "documentation":"

    The date (in Unix epoch time) when the web application was created.

    " + }, + "applicationLastUpdateDate":{ + "shape":"Timestamp", + "documentation":"

    The date (in Unix epoch time) when the web application was last updated.

    " + }, + "applicationState":{ + "shape":"ApplicationState", + "documentation":"

    The current state of the web application.

    " + } + }, + "documentation":"

    A summary of information about a AWS IoT Device Management web application.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " + }, + "Arn":{ + "type":"string", + "max":1600, + "min":1, + "pattern":"^arn:[!-~]+$" + }, + "ClientRequestToken":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9-_]+$" + }, + "ConflictException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "documentation":"

    The request conflicts with the current state of the resource.

    ", + "error":{"httpStatusCode":409}, + "exception":true + }, + "CreateApplicationRequest":{ + "type":"structure", + "required":[ + "applicationName", + "roleArn" + ], + "members":{ + "applicationName":{ + "shape":"Name", + "documentation":"

    The name of the web application.

    " + }, + "applicationDescription":{ + "shape":"Description", + "documentation":"

    An optional description of the web application.

    " + }, + "clientToken":{ + "shape":"ClientRequestToken", + "documentation":"

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    ", + "idempotencyToken":true + }, + "roleArn":{ + "shape":"Arn", + "documentation":"

    The ARN of the role that the web application assumes when it interacts with AWS IoT Core.

    The name of the role must be in the form AWSIotFleetHub_random_string .

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A set of key/value pairs that you can use to manage the web application resource.

    " + } + } + }, + "CreateApplicationResponse":{ + "type":"structure", + "required":[ + "applicationId", + "applicationArn" + ], + "members":{ + "applicationId":{ + "shape":"Id", + "documentation":"

    The unique Id of the web application.

    " + }, + "applicationArn":{ + "shape":"Arn", + "documentation":"

    The ARN of the web application.

    " + } + } + }, + "DeleteApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Id", + "documentation":"

    The unique Id of the web application.

    ", + "location":"uri", + "locationName":"applicationId" + }, + "clientToken":{ + "shape":"ClientRequestToken", + "documentation":"

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    ", + "idempotencyToken":true, + "location":"querystring", + "locationName":"clientToken" + } + } + }, + "DeleteApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Id", + "documentation":"

    The unique Id of the web application.

    ", + "location":"uri", + "locationName":"applicationId" + } + } + }, + "DescribeApplicationResponse":{ + "type":"structure", + "required":[ + "applicationId", + "applicationArn", + "applicationName", + "applicationUrl", + "applicationState", + "applicationCreationDate", + "applicationLastUpdateDate", + "roleArn" + ], + "members":{ + "applicationId":{ + "shape":"Id", + "documentation":"

    The unique Id of the web application.

    " + }, + "applicationArn":{ + "shape":"Arn", + "documentation":"

    The ARN of the web application.

    " + }, + "applicationName":{ + "shape":"Name", + "documentation":"

    The name of the web application.

    " + }, + "applicationDescription":{ + "shape":"Description", + "documentation":"

    An optional description of the web application.

    " + }, + "applicationUrl":{ + "shape":"Url", + "documentation":"

    The URL of the web application.

    " + }, + "applicationState":{ + "shape":"ApplicationState", + "documentation":"

    The current state of the web application.

    " + }, + "applicationCreationDate":{ + "shape":"Timestamp", + "documentation":"

    The date (in Unix epoch time) when the application was created.

    " + }, + "applicationLastUpdateDate":{ + "shape":"Timestamp", + "documentation":"

    The date (in Unix epoch time) when the application was last updated.

    " + }, + "roleArn":{ + "shape":"Arn", + "documentation":"

    The ARN of the role that the web application assumes when it interacts with AWS IoT Core.

    " + }, + "ssoClientId":{ + "shape":"SsoClientId", + "documentation":"

    The Id of the single sign-on client that you use to authenticate and authorize users on the web application.

    " + }, + "errorMessage":{ + "shape":"ErrorMessage", + "documentation":"

    A message indicating why the DescribeApplication API failed.

    " + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    A set of key/value pairs that you can use to manage the web application resource.

    " + } + } + }, + "Description":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[ -~]*$" + }, + "ErrorMessage":{"type":"string"}, + "Id":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + }, + "InternalFailureException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "documentation":"

    An unexpected error has occurred.

    ", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "documentation":"

    The request is not valid.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "documentation":"

    A limit has been exceeded.

    ", + "error":{"httpStatusCode":410}, + "exception":true + }, + "ListApplicationsRequest":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token used to get the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListApplicationsResponse":{ + "type":"structure", + "members":{ + "applicationSummaries":{ + "shape":"ApplicationSummaries", + "documentation":"

    An array of objects that provide summaries of information about the web applications in the list.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    A token used to get the next set of results.

    " + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "documentation":"

    The ARN of the resource.

    ", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{ + "shape":"TagMap", + "documentation":"

    The list of tags assigned to the resource.

    " + } + } + }, + "Name":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[ -~]*$" + }, + "NextToken":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[A-Za-z0-9+/=]+$" + }, + "ResourceArn":{"type":"string"}, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "documentation":"

    The specified resource does not exist.

    ", + "error":{"httpStatusCode":404}, + "exception":true + }, + "SsoClientId":{"type":"string"}, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":50, + "min":1 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "documentation":"

    The ARN of the resource.

    ", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{ + "shape":"TagMap", + "documentation":"

    The new or modified tags for the resource.

    " + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":1 + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "documentation":"

    The rate exceeds the limit.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "Timestamp":{"type":"long"}, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "documentation":"

    The ARN of the resource.

    ", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "documentation":"

    A list of the keys of the tags to be removed from the resource.

    ", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Id", + "documentation":"

    The unique Id of the web application.

    ", + "location":"uri", + "locationName":"applicationId" + }, + "applicationName":{ + "shape":"Name", + "documentation":"

    The name of the web application.

    " + }, + "applicationDescription":{ + "shape":"Description", + "documentation":"

    An optional description of the web application.

    " + }, + "clientToken":{ + "shape":"ClientRequestToken", + "documentation":"

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    ", + "idempotencyToken":true + } + } + }, + "UpdateApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "Url":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^https\\://\\S+$" + }, + "errorMessage":{"type":"string"} + }, + "documentation":"

    With Fleet Hub for AWS IoT Device Management you can build stand-alone web applications for monitoring the health of your device fleets.

    Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.

    " +} diff --git a/code-generation/api-descriptions/iotwireless-2020-11-22.normal.json b/code-generation/api-descriptions/iotwireless-2020-11-22.normal.json new file mode 100644 index 00000000000..f9e72491119 --- /dev/null +++ b/code-generation/api-descriptions/iotwireless-2020-11-22.normal.json @@ -0,0 +1,3703 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-11-22", + "endpointPrefix":"api.iotwireless", + "protocol":"rest-json", + "serviceFullName":"AWS IoT Wireless", + "serviceId":"IoT Wireless", + "signatureVersion":"v4", + "signingName":"iotwireless", + "uid":"iotwireless-2020-11-22" + }, + "operations":{ + "AssociateAwsAccountWithPartnerAccount":{ + "name":"AssociateAwsAccountWithPartnerAccount", + "http":{ + "method":"POST", + "requestUri":"/partner-accounts" + }, + "input":{"shape":"AssociateAwsAccountWithPartnerAccountRequest"}, + "output":{"shape":"AssociateAwsAccountWithPartnerAccountResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Associates a partner account with your AWS account.

    " + }, + "AssociateWirelessDeviceWithThing":{ + "name":"AssociateWirelessDeviceWithThing", + "http":{ + "method":"PUT", + "requestUri":"/wireless-devices/{Id}/thing", + "responseCode":204 + }, + "input":{"shape":"AssociateWirelessDeviceWithThingRequest"}, + "output":{"shape":"AssociateWirelessDeviceWithThingResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Associates a wireless device with a thing.

    " + }, + "AssociateWirelessGatewayWithCertificate":{ + "name":"AssociateWirelessGatewayWithCertificate", + "http":{ + "method":"PUT", + "requestUri":"/wireless-gateways/{Id}/certificate" + }, + "input":{"shape":"AssociateWirelessGatewayWithCertificateRequest"}, + "output":{"shape":"AssociateWirelessGatewayWithCertificateResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Associates a wireless gateway with a certificate.

    " + }, + "AssociateWirelessGatewayWithThing":{ + "name":"AssociateWirelessGatewayWithThing", + "http":{ + "method":"PUT", + "requestUri":"/wireless-gateways/{Id}/thing", + "responseCode":204 + }, + "input":{"shape":"AssociateWirelessGatewayWithThingRequest"}, + "output":{"shape":"AssociateWirelessGatewayWithThingResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Associates a wireless gateway with a thing.

    " + }, + "CreateDestination":{ + "name":"CreateDestination", + "http":{ + "method":"POST", + "requestUri":"/destinations", + "responseCode":201 + }, + "input":{"shape":"CreateDestinationRequest"}, + "output":{"shape":"CreateDestinationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates a new destination that maps a device message to an AWS IoT rule.

    " + }, + "CreateDeviceProfile":{ + "name":"CreateDeviceProfile", + "http":{ + "method":"POST", + "requestUri":"/device-profiles", + "responseCode":201 + }, + "input":{"shape":"CreateDeviceProfileRequest"}, + "output":{"shape":"CreateDeviceProfileResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates a new device profile.

    " + }, + "CreateServiceProfile":{ + "name":"CreateServiceProfile", + "http":{ + "method":"POST", + "requestUri":"/service-profiles", + "responseCode":201 + }, + "input":{"shape":"CreateServiceProfileRequest"}, + "output":{"shape":"CreateServiceProfileResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates a new service profile.

    " + }, + "CreateWirelessDevice":{ + "name":"CreateWirelessDevice", + "http":{ + "method":"POST", + "requestUri":"/wireless-devices", + "responseCode":201 + }, + "input":{"shape":"CreateWirelessDeviceRequest"}, + "output":{"shape":"CreateWirelessDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Provisions a wireless device.

    " + }, + "CreateWirelessGateway":{ + "name":"CreateWirelessGateway", + "http":{ + "method":"POST", + "requestUri":"/wireless-gateways", + "responseCode":201 + }, + "input":{"shape":"CreateWirelessGatewayRequest"}, + "output":{"shape":"CreateWirelessGatewayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Provisions a wireless gateway.

    " + }, + "CreateWirelessGatewayTask":{ + "name":"CreateWirelessGatewayTask", + "http":{ + "method":"POST", + "requestUri":"/wireless-gateways/{Id}/tasks", + "responseCode":201 + }, + "input":{"shape":"CreateWirelessGatewayTaskRequest"}, + "output":{"shape":"CreateWirelessGatewayTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates a task for a wireless gateway.

    " + }, + "CreateWirelessGatewayTaskDefinition":{ + "name":"CreateWirelessGatewayTaskDefinition", + "http":{ + "method":"POST", + "requestUri":"/wireless-gateway-task-definitions", + "responseCode":201 + }, + "input":{"shape":"CreateWirelessGatewayTaskDefinitionRequest"}, + "output":{"shape":"CreateWirelessGatewayTaskDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates a gateway task definition.

    " + }, + "DeleteDestination":{ + "name":"DeleteDestination", + "http":{ + "method":"DELETE", + "requestUri":"/destinations/{Name}", + "responseCode":204 + }, + "input":{"shape":"DeleteDestinationRequest"}, + "output":{"shape":"DeleteDestinationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a destination.

    " + }, + "DeleteDeviceProfile":{ + "name":"DeleteDeviceProfile", + "http":{ + "method":"DELETE", + "requestUri":"/device-profiles/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteDeviceProfileRequest"}, + "output":{"shape":"DeleteDeviceProfileResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a device profile.

    " + }, + "DeleteServiceProfile":{ + "name":"DeleteServiceProfile", + "http":{ + "method":"DELETE", + "requestUri":"/service-profiles/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteServiceProfileRequest"}, + "output":{"shape":"DeleteServiceProfileResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a service profile.

    " + }, + "DeleteWirelessDevice":{ + "name":"DeleteWirelessDevice", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-devices/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteWirelessDeviceRequest"}, + "output":{"shape":"DeleteWirelessDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a wireless device.

    " + }, + "DeleteWirelessGateway":{ + "name":"DeleteWirelessGateway", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-gateways/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteWirelessGatewayRequest"}, + "output":{"shape":"DeleteWirelessGatewayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a wireless gateway.

    " + }, + "DeleteWirelessGatewayTask":{ + "name":"DeleteWirelessGatewayTask", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-gateways/{Id}/tasks", + "responseCode":204 + }, + "input":{"shape":"DeleteWirelessGatewayTaskRequest"}, + "output":{"shape":"DeleteWirelessGatewayTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a wireless gateway task.

    " + }, + "DeleteWirelessGatewayTaskDefinition":{ + "name":"DeleteWirelessGatewayTaskDefinition", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-gateway-task-definitions/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteWirelessGatewayTaskDefinitionRequest"}, + "output":{"shape":"DeleteWirelessGatewayTaskDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes a wireless gateway task definition. Deleting this task definition does not affect tasks that are currently in progress.

    " + }, + "DisassociateAwsAccountFromPartnerAccount":{ + "name":"DisassociateAwsAccountFromPartnerAccount", + "http":{ + "method":"DELETE", + "requestUri":"/partner-accounts/{PartnerAccountId}", + "responseCode":204 + }, + "input":{"shape":"DisassociateAwsAccountFromPartnerAccountRequest"}, + "output":{"shape":"DisassociateAwsAccountFromPartnerAccountResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Disassociates your AWS account from a partner account. If PartnerAccountId and PartnerType are null, disassociates your AWS account from all partner accounts.

    " + }, + "DisassociateWirelessDeviceFromThing":{ + "name":"DisassociateWirelessDeviceFromThing", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-devices/{Id}/thing", + "responseCode":204 + }, + "input":{"shape":"DisassociateWirelessDeviceFromThingRequest"}, + "output":{"shape":"DisassociateWirelessDeviceFromThingResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Disassociates a wireless device from its currently associated thing.

    " + }, + "DisassociateWirelessGatewayFromCertificate":{ + "name":"DisassociateWirelessGatewayFromCertificate", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-gateways/{Id}/certificate", + "responseCode":204 + }, + "input":{"shape":"DisassociateWirelessGatewayFromCertificateRequest"}, + "output":{"shape":"DisassociateWirelessGatewayFromCertificateResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Disassociates a wireless gateway from its currently associated certificate.

    " + }, + "DisassociateWirelessGatewayFromThing":{ + "name":"DisassociateWirelessGatewayFromThing", + "http":{ + "method":"DELETE", + "requestUri":"/wireless-gateways/{Id}/thing", + "responseCode":204 + }, + "input":{"shape":"DisassociateWirelessGatewayFromThingRequest"}, + "output":{"shape":"DisassociateWirelessGatewayFromThingResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Disassociates a wireless gateway from its currently associated thing.

    " + }, + "GetDestination":{ + "name":"GetDestination", + "http":{ + "method":"GET", + "requestUri":"/destinations/{Name}" + }, + "input":{"shape":"GetDestinationRequest"}, + "output":{"shape":"GetDestinationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a destination.

    " + }, + "GetDeviceProfile":{ + "name":"GetDeviceProfile", + "http":{ + "method":"GET", + "requestUri":"/device-profiles/{Id}" + }, + "input":{"shape":"GetDeviceProfileRequest"}, + "output":{"shape":"GetDeviceProfileResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a device profile.

    " + }, + "GetPartnerAccount":{ + "name":"GetPartnerAccount", + "http":{ + "method":"GET", + "requestUri":"/partner-accounts/{PartnerAccountId}" + }, + "input":{"shape":"GetPartnerAccountRequest"}, + "output":{"shape":"GetPartnerAccountResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a partner account. If PartnerAccountId and PartnerType are null, returns all partner accounts.

    " + }, + "GetServiceEndpoint":{ + "name":"GetServiceEndpoint", + "http":{ + "method":"GET", + "requestUri":"/service-endpoint" + }, + "input":{"shape":"GetServiceEndpointRequest"}, + "output":{"shape":"GetServiceEndpointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets the account-specific endpoint for Configuration and Update Server (CUPS) protocol or LoRaWAN Network Server (LNS) connections.

    " + }, + "GetServiceProfile":{ + "name":"GetServiceProfile", + "http":{ + "method":"GET", + "requestUri":"/service-profiles/{Id}" + }, + "input":{"shape":"GetServiceProfileRequest"}, + "output":{"shape":"GetServiceProfileResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a service profile.

    " + }, + "GetWirelessDevice":{ + "name":"GetWirelessDevice", + "http":{ + "method":"GET", + "requestUri":"/wireless-devices/{Identifier}" + }, + "input":{"shape":"GetWirelessDeviceRequest"}, + "output":{"shape":"GetWirelessDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a wireless device.

    " + }, + "GetWirelessDeviceStatistics":{ + "name":"GetWirelessDeviceStatistics", + "http":{ + "method":"GET", + "requestUri":"/wireless-devices/{Id}/statistics", + "responseCode":200 + }, + "input":{"shape":"GetWirelessDeviceStatisticsRequest"}, + "output":{"shape":"GetWirelessDeviceStatisticsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets operating information about a wireless device.

    " + }, + "GetWirelessGateway":{ + "name":"GetWirelessGateway", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateways/{Identifier}" + }, + "input":{"shape":"GetWirelessGatewayRequest"}, + "output":{"shape":"GetWirelessGatewayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a wireless gateway.

    " + }, + "GetWirelessGatewayCertificate":{ + "name":"GetWirelessGatewayCertificate", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateways/{Id}/certificate" + }, + "input":{"shape":"GetWirelessGatewayCertificateRequest"}, + "output":{"shape":"GetWirelessGatewayCertificateResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets the ID of the certificate that is currently associated with a wireless gateway.

    " + }, + "GetWirelessGatewayFirmwareInformation":{ + "name":"GetWirelessGatewayFirmwareInformation", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateways/{Id}/firmware-information" + }, + "input":{"shape":"GetWirelessGatewayFirmwareInformationRequest"}, + "output":{"shape":"GetWirelessGatewayFirmwareInformationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets the firmware version and other information about a wireless gateway.

    " + }, + "GetWirelessGatewayStatistics":{ + "name":"GetWirelessGatewayStatistics", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateways/{Id}/statistics", + "responseCode":200 + }, + "input":{"shape":"GetWirelessGatewayStatisticsRequest"}, + "output":{"shape":"GetWirelessGatewayStatisticsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets operating information about a wireless gateway.

    " + }, + "GetWirelessGatewayTask":{ + "name":"GetWirelessGatewayTask", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateways/{Id}/tasks" + }, + "input":{"shape":"GetWirelessGatewayTaskRequest"}, + "output":{"shape":"GetWirelessGatewayTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a wireless gateway task.

    " + }, + "GetWirelessGatewayTaskDefinition":{ + "name":"GetWirelessGatewayTaskDefinition", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateway-task-definitions/{Id}" + }, + "input":{"shape":"GetWirelessGatewayTaskDefinitionRequest"}, + "output":{"shape":"GetWirelessGatewayTaskDefinitionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets information about a wireless gateway task definition.

    " + }, + "ListDestinations":{ + "name":"ListDestinations", + "http":{ + "method":"GET", + "requestUri":"/destinations" + }, + "input":{"shape":"ListDestinationsRequest"}, + "output":{"shape":"ListDestinationsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists the destinations registered to your AWS account.

    " + }, + "ListDeviceProfiles":{ + "name":"ListDeviceProfiles", + "http":{ + "method":"GET", + "requestUri":"/device-profiles" + }, + "input":{"shape":"ListDeviceProfilesRequest"}, + "output":{"shape":"ListDeviceProfilesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists the device profiles registered to your AWS account.

    " + }, + "ListPartnerAccounts":{ + "name":"ListPartnerAccounts", + "http":{ + "method":"GET", + "requestUri":"/partner-accounts" + }, + "input":{"shape":"ListPartnerAccountsRequest"}, + "output":{"shape":"ListPartnerAccountsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists the partner accounts associated with your AWS account.

    " + }, + "ListServiceProfiles":{ + "name":"ListServiceProfiles", + "http":{ + "method":"GET", + "requestUri":"/service-profiles" + }, + "input":{"shape":"ListServiceProfilesRequest"}, + "output":{"shape":"ListServiceProfilesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists the service profiles registered to your AWS account.

    " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists the tags (metadata) you have assigned to the resource.

    " + }, + "ListWirelessDevices":{ + "name":"ListWirelessDevices", + "http":{ + "method":"GET", + "requestUri":"/wireless-devices" + }, + "input":{"shape":"ListWirelessDevicesRequest"}, + "output":{"shape":"ListWirelessDevicesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Lists the wireless devices registered to your AWS account.

    " + }, + "ListWirelessGatewayTaskDefinitions":{ + "name":"ListWirelessGatewayTaskDefinitions", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateway-task-definitions" + }, + "input":{"shape":"ListWirelessGatewayTaskDefinitionsRequest"}, + "output":{"shape":"ListWirelessGatewayTaskDefinitionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    List the wireless gateway tasks definitions registered to your AWS account.

    " + }, + "ListWirelessGateways":{ + "name":"ListWirelessGateways", + "http":{ + "method":"GET", + "requestUri":"/wireless-gateways" + }, + "input":{"shape":"ListWirelessGatewaysRequest"}, + "output":{"shape":"ListWirelessGatewaysResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

    Lists the wireless gateways registered to your AWS account.

    " + }, + "SendDataToWirelessDevice":{ + "name":"SendDataToWirelessDevice", + "http":{ + "method":"POST", + "requestUri":"/wireless-devices/{Id}/data", + "responseCode":202 + }, + "input":{"shape":"SendDataToWirelessDeviceRequest"}, + "output":{"shape":"SendDataToWirelessDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Sends a decrypted application data frame to a device.

    " + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags", + "responseCode":204 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"TooManyTagsException"} + ], + "documentation":"

    Adds a tag to a resource.

    " + }, + "TestWirelessDevice":{ + "name":"TestWirelessDevice", + "http":{ + "method":"POST", + "requestUri":"/wireless-devices/{Id}/test", + "responseCode":200 + }, + "input":{"shape":"TestWirelessDeviceRequest"}, + "output":{"shape":"TestWirelessDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ], + "documentation":"

    Simulates a provisioned device by sending an uplink data payload of Hello.

    " + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags", + "responseCode":204 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Removes one or more tags from a resource.

    " + }, + "UpdateDestination":{ + "name":"UpdateDestination", + "http":{ + "method":"PATCH", + "requestUri":"/destinations/{Name}", + "responseCode":204 + }, + "input":{"shape":"UpdateDestinationRequest"}, + "output":{"shape":"UpdateDestinationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates properties of a destination.

    " + }, + "UpdatePartnerAccount":{ + "name":"UpdatePartnerAccount", + "http":{ + "method":"PATCH", + "requestUri":"/partner-accounts/{PartnerAccountId}", + "responseCode":204 + }, + "input":{"shape":"UpdatePartnerAccountRequest"}, + "output":{"shape":"UpdatePartnerAccountResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates properties of a partner account.

    " + }, + "UpdateWirelessDevice":{ + "name":"UpdateWirelessDevice", + "http":{ + "method":"PATCH", + "requestUri":"/wireless-devices/{Id}", + "responseCode":204 + }, + "input":{"shape":"UpdateWirelessDeviceRequest"}, + "output":{"shape":"UpdateWirelessDeviceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates properties of a wireless device.

    " + }, + "UpdateWirelessGateway":{ + "name":"UpdateWirelessGateway", + "http":{ + "method":"PATCH", + "requestUri":"/wireless-gateways/{Id}", + "responseCode":204 + }, + "input":{"shape":"UpdateWirelessGatewayRequest"}, + "output":{"shape":"UpdateWirelessGatewayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates properties of a wireless gateway.

    " + } + }, + "shapes":{ + "AbpV1_0_x":{ + "type":"structure", + "members":{ + "DevAddr":{ + "shape":"DevAddr", + "documentation":"

    The DevAddr value.

    " + }, + "SessionKeys":{ + "shape":"SessionKeysAbpV1_0_x", + "documentation":"

    Session keys for ABP v1.0.x

    " + } + }, + "documentation":"

    ABP device object for LoRaWAN specification v1.0.x

    " + }, + "AbpV1_1":{ + "type":"structure", + "members":{ + "DevAddr":{ + "shape":"DevAddr", + "documentation":"

    The DevAddr value.

    " + }, + "SessionKeys":{ + "shape":"SessionKeysAbpV1_1", + "documentation":"

    Session keys for ABP v1.1

    " + } + }, + "documentation":"

    ABP device object for LoRaWAN specification v1.1

    " + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "documentation":"

    User does not have permission to perform this action.

    ", + "error":{"httpStatusCode":403}, + "exception":true + }, + "AccountLinked":{"type":"boolean"}, + "AddGwMetadata":{"type":"boolean"}, + "AmazonId":{ + "type":"string", + "max":2048 + }, + "AmazonResourceName":{ + "type":"string", + "max":1011, + "min":1 + }, + "AppEui":{ + "type":"string", + "pattern":"[a-fA-F0-9]{16}" + }, + "AppKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "AppSKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "AppServerPrivateKey":{ + "type":"string", + "max":4096, + "min":1, + "pattern":"[a-fA-F0-9]{64}", + "sensitive":true + }, + "AssociateAwsAccountWithPartnerAccountRequest":{ + "type":"structure", + "required":["Sidewalk"], + "members":{ + "Sidewalk":{ + "shape":"SidewalkAccountInfo", + "documentation":"

    The Sidewalk account credentials.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "AssociateAwsAccountWithPartnerAccountResponse":{ + "type":"structure", + "members":{ + "Sidewalk":{ + "shape":"SidewalkAccountInfo", + "documentation":"

    The Sidewalk account credentials.

    " + } + } + }, + "AssociateWirelessDeviceWithThingRequest":{ + "type":"structure", + "required":[ + "Id", + "ThingArn" + ], + "members":{ + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + }, + "ThingArn":{ + "shape":"ThingArn", + "documentation":"

    The ARN of the thing to associate with the wireless device.

    " + } + } + }, + "AssociateWirelessDeviceWithThingResponse":{ + "type":"structure", + "members":{ + } + }, + "AssociateWirelessGatewayWithCertificateRequest":{ + "type":"structure", + "required":[ + "Id", + "IotCertificateId" + ], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + }, + "IotCertificateId":{ + "shape":"IotCertificateId", + "documentation":"

    The ID of the certificate to associate with the wireless gateway.

    " + } + } + }, + "AssociateWirelessGatewayWithCertificateResponse":{ + "type":"structure", + "members":{ + "IotCertificateId":{ + "shape":"IotCertificateId", + "documentation":"

    The ID of the certificate associated with the wireless gateway.

    " + } + } + }, + "AssociateWirelessGatewayWithThingRequest":{ + "type":"structure", + "required":[ + "Id", + "ThingArn" + ], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + }, + "ThingArn":{ + "shape":"ThingArn", + "documentation":"

    The ARN of the thing to associate with the wireless gateway.

    " + } + } + }, + "AssociateWirelessGatewayWithThingResponse":{ + "type":"structure", + "members":{ + } + }, + "AutoCreateTasks":{"type":"boolean"}, + "CertificatePEM":{ + "type":"string", + "max":4096, + "min":1, + "pattern":"[^-A-Za-z0-9+/=]|=[^=]|={3,}${1,4096}" + }, + "ChannelMask":{ + "type":"string", + "max":2048 + }, + "ClassBTimeout":{ + "type":"integer", + "max":1000, + "min":0 + }, + "ClassCTimeout":{ + "type":"integer", + "max":1000, + "min":0 + }, + "ClientRequestToken":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9-_]+$" + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"}, + "ResourceId":{"shape":"ResourceId"}, + "ResourceType":{"shape":"ResourceType"} + }, + "documentation":"

    Adding, updating, or deleting the resource can cause an inconsistent state.

    ", + "error":{"httpStatusCode":409}, + "exception":true + }, + "Crc":{ + "type":"long", + "max":4294967295, + "min":1 + }, + "CreateDestinationRequest":{ + "type":"structure", + "required":[ + "Name", + "ExpressionType", + "Expression", + "RoleArn" + ], + "members":{ + "Name":{ + "shape":"DestinationName", + "documentation":"

    The name of the new resource.

    " + }, + "ExpressionType":{ + "shape":"ExpressionType", + "documentation":"

    The type of value in Expression.

    " + }, + "Expression":{ + "shape":"Expression", + "documentation":"

    The rule name or topic rule to send messages to.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the new resource.

    " + }, + "RoleArn":{ + "shape":"RoleArn", + "documentation":"

    The ARN of the IAM Role that authorizes the destination.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags to attach to the new destination. Tags are metadata that can be used to manage a resource.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "CreateDestinationResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"DestinationArn", + "documentation":"

    The Amazon Resource Name of the new resource.

    " + }, + "Name":{ + "shape":"DestinationName", + "documentation":"

    The name of the new resource.

    " + } + } + }, + "CreateDeviceProfileRequest":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"DeviceProfileName", + "documentation":"

    The name of the new resource.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANDeviceProfile", + "documentation":"

    The device profile information to use to create the device profile.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags to attach to the new device profile Tags are metadata that can be used to manage a resource.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "CreateDeviceProfileResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"DeviceProfileArn", + "documentation":"

    The Amazon Resource Name of the new resource.

    " + }, + "Id":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the new device profile.

    " + } + } + }, + "CreateServiceProfileRequest":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"ServiceProfileName", + "documentation":"

    The name of the new resource.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANServiceProfile", + "documentation":"

    The service profile information to use to create the service profile.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags to attach to the new service profile. Tags are metadata that can be used to manage a resource.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "CreateServiceProfileResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"ServiceProfileArn", + "documentation":"

    The Amazon Resource Name of the new resource.

    " + }, + "Id":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the new service profile.

    " + } + } + }, + "CreateWirelessDeviceRequest":{ + "type":"structure", + "required":[ + "Type", + "DestinationName" + ], + "members":{ + "Type":{ + "shape":"WirelessDeviceType", + "documentation":"

    The wireless device type.

    " + }, + "Name":{ + "shape":"WirelessDeviceName", + "documentation":"

    The name of the new resource.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the new resource.

    " + }, + "DestinationName":{ + "shape":"DestinationName", + "documentation":"

    The name of the destination to assign to the new wireless device.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + }, + "LoRaWAN":{ + "shape":"LoRaWANDevice", + "documentation":"

    The device configuration information to use to create the wireless device.

    " + } + } + }, + "CreateWirelessDeviceResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"WirelessDeviceArn", + "documentation":"

    The Amazon Resource Name of the new resource.

    " + }, + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the new wireless device.

    " + } + } + }, + "CreateWirelessGatewayRequest":{ + "type":"structure", + "required":["LoRaWAN"], + "members":{ + "Name":{ + "shape":"WirelessGatewayName", + "documentation":"

    The name of the new resource.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the new resource.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANGateway", + "documentation":"

    The gateway configuration information to use to create the wireless gateway.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags to attach to the new wireless gateway. Tags are metadata that can be used to manage a resource.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "CreateWirelessGatewayResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"WirelessGatewayArn", + "documentation":"

    The Amazon Resource Name of the new resource.

    " + }, + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the new wireless gateway.

    " + } + } + }, + "CreateWirelessGatewayTaskDefinitionRequest":{ + "type":"structure", + "required":["AutoCreateTasks"], + "members":{ + "AutoCreateTasks":{ + "shape":"AutoCreateTasks", + "documentation":"

    Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.

    " + }, + "Name":{ + "shape":"WirelessGatewayTaskName", + "documentation":"

    The name of the new resource.

    " + }, + "Update":{ + "shape":"UpdateWirelessGatewayTaskCreate", + "documentation":"

    Information about the gateways to update.

    " + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "documentation":"

    Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

    ", + "idempotencyToken":true + } + } + }, + "CreateWirelessGatewayTaskDefinitionResponse":{ + "type":"structure", + "members":{ + "Id":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the new wireless gateway task definition.

    " + } + } + }, + "CreateWirelessGatewayTaskRequest":{ + "type":"structure", + "required":[ + "Id", + "WirelessGatewayTaskDefinitionId" + ], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + }, + "WirelessGatewayTaskDefinitionId":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the WirelessGatewayTaskDefinition.

    " + } + } + }, + "CreateWirelessGatewayTaskResponse":{ + "type":"structure", + "members":{ + "WirelessGatewayTaskDefinitionId":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the WirelessGatewayTaskDefinition.

    " + }, + "Status":{ + "shape":"WirelessGatewayTaskStatus", + "documentation":"

    The status of the request.

    " + } + } + }, + "DeleteDestinationRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"DestinationName", + "documentation":"

    The name of the resource to delete.

    ", + "location":"uri", + "locationName":"Name" + } + } + }, + "DeleteDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteDeviceProfileRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the resource to delete.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteDeviceProfileResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteServiceProfileRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the resource to delete.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteServiceProfileResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteWirelessDeviceRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the resource to delete.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteWirelessDeviceResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteWirelessGatewayRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to delete.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteWirelessGatewayResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteWirelessGatewayTaskDefinitionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the resource to delete.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteWirelessGatewayTaskDefinitionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteWirelessGatewayTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to delete.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteWirelessGatewayTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "Description":{ + "type":"string", + "max":2048 + }, + "DestinationArn":{"type":"string"}, + "DestinationList":{ + "type":"list", + "member":{"shape":"Destinations"} + }, + "DestinationName":{ + "type":"string", + "max":128, + "pattern":"[a-zA-Z0-9-_]+" + }, + "Destinations":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"DestinationArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Name":{ + "shape":"DestinationName", + "documentation":"

    The name of the resource.

    " + }, + "ExpressionType":{ + "shape":"ExpressionType", + "documentation":"

    The type of value in Expression.

    " + }, + "Expression":{ + "shape":"Expression", + "documentation":"

    The rule name or topic rule to send messages to.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the resource.

    " + }, + "RoleArn":{ + "shape":"RoleArn", + "documentation":"

    The ARN of the IAM Role that authorizes the destination.

    " + } + }, + "documentation":"

    Describes a destination.

    " + }, + "DevAddr":{ + "type":"string", + "pattern":"[a-fA-F0-9]{8}" + }, + "DevEui":{ + "type":"string", + "pattern":"[a-fA-F0-9]{16}" + }, + "DevStatusReqFreq":{ + "type":"integer", + "max":2147483647, + "min":0 + }, + "DeviceProfile":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"DeviceProfileArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Name":{ + "shape":"DeviceProfileName", + "documentation":"

    The name of the resource.

    " + }, + "Id":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the device profile.

    " + } + }, + "documentation":"

    Describes a device profile.

    " + }, + "DeviceProfileArn":{"type":"string"}, + "DeviceProfileId":{ + "type":"string", + "max":256 + }, + "DeviceProfileList":{ + "type":"list", + "member":{"shape":"DeviceProfile"} + }, + "DeviceProfileName":{ + "type":"string", + "max":256 + }, + "DisassociateAwsAccountFromPartnerAccountRequest":{ + "type":"structure", + "required":[ + "PartnerAccountId", + "PartnerType" + ], + "members":{ + "PartnerAccountId":{ + "shape":"PartnerAccountId", + "documentation":"

    The partner account ID to disassociate from the AWS account.

    ", + "location":"uri", + "locationName":"PartnerAccountId" + }, + "PartnerType":{ + "shape":"PartnerType", + "documentation":"

    The partner type.

    ", + "location":"querystring", + "locationName":"partnerType" + } + } + }, + "DisassociateAwsAccountFromPartnerAccountResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateWirelessDeviceFromThingRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DisassociateWirelessDeviceFromThingResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateWirelessGatewayFromCertificateRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DisassociateWirelessGatewayFromCertificateResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateWirelessGatewayFromThingRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "DisassociateWirelessGatewayFromThingResponse":{ + "type":"structure", + "members":{ + } + }, + "DlBucketSize":{ + "type":"integer", + "max":2147483647, + "min":0 + }, + "DlRate":{ + "type":"integer", + "max":2147483647, + "min":0 + }, + "DlRatePolicy":{ + "type":"string", + "max":256 + }, + "Double":{"type":"double"}, + "DrMax":{ + "type":"integer", + "max":15, + "min":0 + }, + "DrMin":{ + "type":"integer", + "max":15, + "min":0 + }, + "EndPoint":{ + "type":"string", + "max":256, + "min":1 + }, + "Expression":{ + "type":"string", + "max":2048 + }, + "ExpressionType":{ + "type":"string", + "enum":["RuleName"] + }, + "FNwkSIntKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "FPort":{ + "type":"integer", + "max":223, + "min":1 + }, + "FactoryPresetFreqsList":{ + "type":"list", + "member":{"shape":"PresetFreq"}, + "max":20, + "min":0 + }, + "GatewayEui":{ + "type":"string", + "pattern":"^(([0-9A-Fa-f]{2}-){7}|([0-9A-Fa-f]{2}:){7}|([0-9A-Fa-f]{2}\\s){7}|([0-9A-Fa-f]{2}){7})([0-9A-Fa-f]{2})$" + }, + "GetDestinationRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"DestinationName", + "documentation":"

    The name of the resource to get.

    ", + "location":"uri", + "locationName":"Name" + } + } + }, + "GetDestinationResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"DestinationArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Name":{ + "shape":"DestinationName", + "documentation":"

    The name of the resource.

    " + }, + "Expression":{ + "shape":"Expression", + "documentation":"

    The rule name or topic rule to send messages to.

    " + }, + "ExpressionType":{ + "shape":"ExpressionType", + "documentation":"

    The type of value in Expression.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the resource.

    " + }, + "RoleArn":{ + "shape":"RoleArn", + "documentation":"

    The ARN of the IAM Role that authorizes the destination.

    " + } + } + }, + "GetDeviceProfileRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the resource to get.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetDeviceProfileResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"DeviceProfileArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Name":{ + "shape":"DeviceProfileName", + "documentation":"

    The name of the resource.

    " + }, + "Id":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the device profile.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANDeviceProfile", + "documentation":"

    Information about the device profile.

    " + } + } + }, + "GetPartnerAccountRequest":{ + "type":"structure", + "required":[ + "PartnerAccountId", + "PartnerType" + ], + "members":{ + "PartnerAccountId":{ + "shape":"PartnerAccountId", + "documentation":"

    The partner account ID to disassociate from the AWS account.

    ", + "location":"uri", + "locationName":"PartnerAccountId" + }, + "PartnerType":{ + "shape":"PartnerType", + "documentation":"

    The partner type.

    ", + "location":"querystring", + "locationName":"partnerType" + } + } + }, + "GetPartnerAccountResponse":{ + "type":"structure", + "members":{ + "Sidewalk":{ + "shape":"SidewalkAccountInfoWithFingerprint", + "documentation":"

    The Sidewalk account credentials.

    The AppServerPrivateKey value is empty to protect its security.

    " + }, + "AccountLinked":{ + "shape":"AccountLinked", + "documentation":"

    Whether the partner account is linked to the AWS account.

    " + } + } + }, + "GetServiceEndpointRequest":{ + "type":"structure", + "members":{ + "ServiceType":{ + "shape":"WirelessGatewayServiceType", + "documentation":"

    The service type for which to get endpoint information about. Can be CUPS for the Configuration and Update Server endpoint, or LNS for the LoRaWAN Network Server endpoint.

    ", + "location":"querystring", + "locationName":"serviceType" + } + } + }, + "GetServiceEndpointResponse":{ + "type":"structure", + "members":{ + "ServiceType":{ + "shape":"WirelessGatewayServiceType", + "documentation":"

    The endpoint's service type.

    " + }, + "ServiceEndpoint":{ + "shape":"EndPoint", + "documentation":"

    The service endpoint value.

    " + }, + "ServerTrust":{ + "shape":"CertificatePEM", + "documentation":"

    The Root CA of the server trust certificate.

    " + } + } + }, + "GetServiceProfileRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the resource to get.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetServiceProfileResponse":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"ServiceProfileArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Name":{ + "shape":"ServiceProfileName", + "documentation":"

    The name of the resource.

    " + }, + "Id":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the service profile.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANGetServiceProfileInfo", + "documentation":"

    Information about the service profile.

    " + } + } + }, + "GetWirelessDeviceRequest":{ + "type":"structure", + "required":[ + "Identifier", + "IdentifierType" + ], + "members":{ + "Identifier":{ + "shape":"Identifier", + "documentation":"

    The identifier of the wireless device to get.

    ", + "location":"uri", + "locationName":"Identifier" + }, + "IdentifierType":{ + "shape":"WirelessDeviceIdType", + "documentation":"

    The type of identifier used in identifier.

    ", + "location":"querystring", + "locationName":"identifierType" + } + } + }, + "GetWirelessDeviceResponse":{ + "type":"structure", + "members":{ + "Type":{ + "shape":"WirelessDeviceType", + "documentation":"

    The wireless device type.

    " + }, + "Name":{ + "shape":"WirelessDeviceName", + "documentation":"

    The name of the resource.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the resource.

    " + }, + "DestinationName":{ + "shape":"DestinationName", + "documentation":"

    The name of the destination to which the device is assigned.

    " + }, + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the wireless device.

    " + }, + "Arn":{ + "shape":"WirelessDeviceArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "ThingName":{ + "shape":"ThingName", + "documentation":"

    The name of the thing associated with the wireless device.

    " + }, + "ThingArn":{ + "shape":"ThingArn", + "documentation":"

    The ARN of the thing associated with the wireless device.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANDevice", + "documentation":"

    Information about the wireless device.

    " + } + } + }, + "GetWirelessDeviceStatisticsRequest":{ + "type":"structure", + "required":["WirelessDeviceId"], + "members":{ + "WirelessDeviceId":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the wireless device for which to get the data.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetWirelessDeviceStatisticsResponse":{ + "type":"structure", + "members":{ + "WirelessDeviceId":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the wireless device.

    " + }, + "LastUplinkReceivedAt":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time when the most recent uplink was received.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANDeviceMetadata", + "documentation":"

    Information about the wireless device's operations.

    " + } + } + }, + "GetWirelessGatewayCertificateRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to get.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetWirelessGatewayCertificateResponse":{ + "type":"structure", + "members":{ + "IotCertificateId":{ + "shape":"IotCertificateId", + "documentation":"

    The ID of the certificate associated with the wireless gateway.

    " + } + } + }, + "GetWirelessGatewayFirmwareInformationRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to get.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetWirelessGatewayFirmwareInformationResponse":{ + "type":"structure", + "members":{ + "LoRaWAN":{ + "shape":"LoRaWANGatewayCurrentVersion", + "documentation":"

    Information about the wireless gateway's firmware.

    " + } + } + }, + "GetWirelessGatewayRequest":{ + "type":"structure", + "required":[ + "Identifier", + "IdentifierType" + ], + "members":{ + "Identifier":{ + "shape":"Identifier", + "documentation":"

    The identifier of the wireless gateway to get.

    ", + "location":"uri", + "locationName":"Identifier" + }, + "IdentifierType":{ + "shape":"WirelessGatewayIdType", + "documentation":"

    The type of identifier used in identifier.

    ", + "location":"querystring", + "locationName":"identifierType" + } + } + }, + "GetWirelessGatewayResponse":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"WirelessGatewayName", + "documentation":"

    The name of the resource.

    " + }, + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the wireless gateway.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the resource.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANGateway", + "documentation":"

    Information about the wireless gateway.

    " + }, + "Arn":{ + "shape":"WirelessGatewayArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "ThingName":{ + "shape":"ThingName", + "documentation":"

    The name of the thing associated with the wireless gateway.

    " + }, + "ThingArn":{ + "shape":"ThingArn", + "documentation":"

    The ARN of the thing associated with the wireless gateway.

    " + } + } + }, + "GetWirelessGatewayStatisticsRequest":{ + "type":"structure", + "required":["WirelessGatewayId"], + "members":{ + "WirelessGatewayId":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the wireless gateway for which to get the data.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetWirelessGatewayStatisticsResponse":{ + "type":"structure", + "members":{ + "WirelessGatewayId":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the wireless gateway.

    " + }, + "LastUplinkReceivedAt":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time when the most recent uplink was received.

    " + } + } + }, + "GetWirelessGatewayTaskDefinitionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the resource to get.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetWirelessGatewayTaskDefinitionResponse":{ + "type":"structure", + "members":{ + "AutoCreateTasks":{ + "shape":"AutoCreateTasks", + "documentation":"

    Whether to automatically create tasks using this task definition for all gateways with the specified current version. If false, the task must me created by calling CreateWirelessGatewayTask.

    " + }, + "Name":{ + "shape":"WirelessGatewayTaskName", + "documentation":"

    The name of the resource.

    " + }, + "Update":{ + "shape":"UpdateWirelessGatewayTaskCreate", + "documentation":"

    Information about the gateways to update.

    " + } + } + }, + "GetWirelessGatewayTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to get.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetWirelessGatewayTaskResponse":{ + "type":"structure", + "members":{ + "WirelessGatewayId":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the wireless gateway.

    " + }, + "WirelessGatewayTaskDefinitionId":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the WirelessGatewayTask.

    " + }, + "LastUplinkReceivedAt":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time when the most recent uplink was received.

    " + }, + "TaskCreatedAt":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time when the task was created.

    " + }, + "Status":{ + "shape":"WirelessGatewayTaskStatus", + "documentation":"

    The status of the request.

    " + } + } + }, + "HrAllowed":{"type":"boolean"}, + "ISODateTimeString":{ + "type":"string", + "pattern":"^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" + }, + "Identifier":{ + "type":"string", + "max":256 + }, + "Integer":{"type":"integer"}, + "InternalServerException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "documentation":"

    An unexpected error occurred while processing a request.

    ", + "error":{"httpStatusCode":500}, + "exception":true + }, + "IotCertificateId":{ + "type":"string", + "max":4096, + "min":1 + }, + "JoinEui":{ + "type":"string", + "pattern":"[a-fA-F0-9]{16}" + }, + "ListDestinationsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDestinationsResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "DestinationList":{ + "shape":"DestinationList", + "documentation":"

    The list of destinations.

    " + } + } + }, + "ListDeviceProfilesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListDeviceProfilesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "DeviceProfileList":{ + "shape":"DeviceProfileList", + "documentation":"

    The list of device profiles.

    " + } + } + }, + "ListPartnerAccountsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListPartnerAccountsResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "Sidewalk":{ + "shape":"SidewalkAccountList", + "documentation":"

    The Sidewalk account credentials.

    The AppServerPrivateKey value is empty to protect its security.

    " + } + } + }, + "ListServiceProfilesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListServiceProfilesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "ServiceProfileList":{ + "shape":"ServiceProfileList", + "documentation":"

    The list of service profiles.

    " + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The ARN of the resource for which to list tags.

    ", + "location":"querystring", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags attached to the specified resource. Tags are metadata that can be used to manage a resource

    " + } + } + }, + "ListWirelessDevicesRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "DestinationName":{ + "shape":"DestinationName", + "documentation":"

    A filter to list only the wireless devices that use this destination.

    ", + "location":"querystring", + "locationName":"destinationName" + }, + "DeviceProfileId":{ + "shape":"DeviceProfileId", + "documentation":"

    A filter to list only the wireless devices that use this device profile.

    ", + "location":"querystring", + "locationName":"deviceProfileId" + }, + "ServiceProfileId":{ + "shape":"ServiceProfileId", + "documentation":"

    A filter to list only the wireless devices that use this service profile.

    ", + "location":"querystring", + "locationName":"serviceProfileId" + }, + "WirelessDeviceType":{ + "shape":"WirelessDeviceType", + "documentation":"

    A filter to list only the wireless devices that use this wireless device type.

    ", + "location":"querystring", + "locationName":"wirelessDeviceType" + } + } + }, + "ListWirelessDevicesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "WirelessDeviceList":{ + "shape":"WirelessDeviceStatisticsList", + "documentation":"

    The ID of the wireless device.

    " + } + } + }, + "ListWirelessGatewayTaskDefinitionsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "TaskDefinitionType":{ + "shape":"WirelessGatewayTaskDefinitionType", + "documentation":"

    A filter to list only the wireless gateway task definitions that use this task definition type.

    ", + "location":"querystring", + "locationName":"taskDefinitionType" + } + } + }, + "ListWirelessGatewayTaskDefinitionsResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "TaskDefinitions":{ + "shape":"WirelessGatewayTaskDefinitionList", + "documentation":"

    The list of task definitions.

    " + } + } + }, + "ListWirelessGatewaysRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return in this operation.

    ", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListWirelessGatewaysResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use to get the next set of results, or null if there are no additional results.

    " + }, + "WirelessGatewayList":{ + "shape":"WirelessGatewayStatisticsList", + "documentation":"

    The ID of the wireless gateway.

    " + } + } + }, + "LoRaWANDevice":{ + "type":"structure", + "members":{ + "DevEui":{ + "shape":"DevEui", + "documentation":"

    The DevEUI value.

    " + }, + "DeviceProfileId":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the device profile for the new wireless device.

    " + }, + "ServiceProfileId":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the service profile.

    " + }, + "OtaaV1_1":{ + "shape":"OtaaV1_1", + "documentation":"

    OTAA device object for v1.1 for create APIs

    " + }, + "OtaaV1_0_x":{ + "shape":"OtaaV1_0_x", + "documentation":"

    OTAA device object for create APIs for v1.0.x

    " + }, + "AbpV1_1":{ + "shape":"AbpV1_1", + "documentation":"

    ABP device object for create APIs for v1.1

    " + }, + "AbpV1_0_x":{ + "shape":"AbpV1_0_x", + "documentation":"

    LoRa object for create APIs

    " + } + }, + "documentation":"

    LoRa object for create functions.

    " + }, + "LoRaWANDeviceMetadata":{ + "type":"structure", + "members":{ + "DevEui":{ + "shape":"DevEui", + "documentation":"

    The DevEUI value.

    " + }, + "FPort":{ + "shape":"Integer", + "documentation":"

    The FPort value.

    " + }, + "DataRate":{ + "shape":"Integer", + "documentation":"

    The DataRate value.

    " + }, + "Frequency":{ + "shape":"Integer", + "documentation":"

    The device's channel frequency in Hz.

    " + }, + "Timestamp":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time of the metadata.

    " + }, + "Gateways":{ + "shape":"LoRaWANGatewayMetadataList", + "documentation":"

    Information about the gateways accessed by the device.

    " + } + }, + "documentation":"

    LoRaWAN device metatdata.

    " + }, + "LoRaWANDeviceProfile":{ + "type":"structure", + "members":{ + "SupportsClassB":{ + "shape":"SupportsClassB", + "documentation":"

    The SupportsClassB value.

    " + }, + "ClassBTimeout":{ + "shape":"ClassBTimeout", + "documentation":"

    The ClassBTimeout value.

    " + }, + "PingSlotPeriod":{ + "shape":"PingSlotPeriod", + "documentation":"

    The PingSlotPeriod value.

    " + }, + "PingSlotDr":{ + "shape":"PingSlotDr", + "documentation":"

    The PingSlotDR value.

    " + }, + "PingSlotFreq":{ + "shape":"PingSlotFreq", + "documentation":"

    The PingSlotFreq value.

    " + }, + "SupportsClassC":{ + "shape":"SupportsClassC", + "documentation":"

    The SupportsClassC value.

    " + }, + "ClassCTimeout":{ + "shape":"ClassCTimeout", + "documentation":"

    The ClassCTimeout value.

    " + }, + "MacVersion":{ + "shape":"MacVersion", + "documentation":"

    The MAC version (such as OTAA 1.1 or OTA 1.0.3) to use with this device profile.

    " + }, + "RegParamsRevision":{ + "shape":"RegParamsRevision", + "documentation":"

    The version of regional parameters.

    " + }, + "RxDelay1":{ + "shape":"RxDelay1", + "documentation":"

    The RXDelay1 value.

    " + }, + "RxDrOffset1":{ + "shape":"RxDrOffset1", + "documentation":"

    The RXDROffset1 value.

    " + }, + "RxDataRate2":{ + "shape":"RxDataRate2", + "documentation":"

    The RXDataRate2 value.

    " + }, + "RxFreq2":{ + "shape":"RxFreq2", + "documentation":"

    The RXFreq2 value.

    " + }, + "FactoryPresetFreqsList":{ + "shape":"FactoryPresetFreqsList", + "documentation":"

    The list of values that make up the FactoryPresetFreqs value.

    " + }, + "MaxEirp":{ + "shape":"MaxEirp", + "documentation":"

    The MaxEIRP value.

    " + }, + "MaxDutyCycle":{ + "shape":"MaxDutyCycle", + "documentation":"

    The MaxDutyCycle value.

    " + }, + "RfRegion":{ + "shape":"RfRegion", + "documentation":"

    The frequency band (RFRegion) value.

    " + }, + "SupportsJoin":{ + "shape":"SupportsJoin", + "documentation":"

    The SupportsJoin value.

    " + }, + "Supports32BitFCnt":{ + "shape":"Supports32BitFCnt", + "documentation":"

    The Supports32BitFCnt value.

    " + } + }, + "documentation":"

    LoRaWANDeviceProfile object.

    " + }, + "LoRaWANGateway":{ + "type":"structure", + "members":{ + "GatewayEui":{ + "shape":"GatewayEui", + "documentation":"

    The gateway's EUI value.

    " + }, + "RfRegion":{ + "shape":"RfRegion", + "documentation":"

    The frequency band (RFRegion) value.

    " + } + }, + "documentation":"

    LoRaWANGateway object.

    " + }, + "LoRaWANGatewayCurrentVersion":{ + "type":"structure", + "members":{ + "CurrentVersion":{ + "shape":"LoRaWANGatewayVersion", + "documentation":"

    The version of the gateways that should receive the update.

    " + } + }, + "documentation":"

    LoRaWANGatewayCurrentVersion object.

    " + }, + "LoRaWANGatewayMetadata":{ + "type":"structure", + "members":{ + "GatewayEui":{ + "shape":"GatewayEui", + "documentation":"

    The gateway's EUI value.

    " + }, + "Snr":{ + "shape":"Double", + "documentation":"

    The SNR value.

    " + }, + "Rssi":{ + "shape":"Double", + "documentation":"

    The RSSI value.

    " + } + }, + "documentation":"

    LoRaWAN gateway metatdata.

    " + }, + "LoRaWANGatewayMetadataList":{ + "type":"list", + "member":{"shape":"LoRaWANGatewayMetadata"} + }, + "LoRaWANGatewayVersion":{ + "type":"structure", + "members":{ + "PackageVersion":{ + "shape":"PackageVersion", + "documentation":"

    The version of the wireless gateway firmware.

    " + }, + "Model":{ + "shape":"Model", + "documentation":"

    The model number of the wireless gateway.

    " + }, + "Station":{ + "shape":"Station", + "documentation":"

    The basic station version of the wireless gateway.

    " + } + }, + "documentation":"

    LoRaWANGatewayVersion object.

    " + }, + "LoRaWANGetServiceProfileInfo":{ + "type":"structure", + "members":{ + "UlRate":{ + "shape":"UlRate", + "documentation":"

    The ULRate value.

    " + }, + "UlBucketSize":{ + "shape":"UlBucketSize", + "documentation":"

    The ULBucketSize value.

    " + }, + "UlRatePolicy":{ + "shape":"UlRatePolicy", + "documentation":"

    The ULRatePolicy value.

    " + }, + "DlRate":{ + "shape":"DlRate", + "documentation":"

    The DLRate value.

    " + }, + "DlBucketSize":{ + "shape":"DlBucketSize", + "documentation":"

    The DLBucketSize value.

    " + }, + "DlRatePolicy":{ + "shape":"DlRatePolicy", + "documentation":"

    The DLRatePolicy value.

    " + }, + "AddGwMetadata":{ + "shape":"AddGwMetadata", + "documentation":"

    The AddGWMetaData value.

    " + }, + "DevStatusReqFreq":{ + "shape":"DevStatusReqFreq", + "documentation":"

    The DevStatusReqFreq value.

    " + }, + "ReportDevStatusBattery":{ + "shape":"ReportDevStatusBattery", + "documentation":"

    The ReportDevStatusBattery value.

    " + }, + "ReportDevStatusMargin":{ + "shape":"ReportDevStatusMargin", + "documentation":"

    The ReportDevStatusMargin value.

    " + }, + "DrMin":{ + "shape":"DrMin", + "documentation":"

    The DRMin value.

    " + }, + "DrMax":{ + "shape":"DrMax", + "documentation":"

    The DRMax value.

    " + }, + "ChannelMask":{ + "shape":"ChannelMask", + "documentation":"

    The ChannelMask value.

    " + }, + "PrAllowed":{ + "shape":"PrAllowed", + "documentation":"

    The PRAllowed value that describes whether passive roaming is allowed.

    " + }, + "HrAllowed":{ + "shape":"HrAllowed", + "documentation":"

    The HRAllowed value that describes whether handover roaming is allowed.

    " + }, + "RaAllowed":{ + "shape":"RaAllowed", + "documentation":"

    The RAAllowed value that describes whether roaming activation is allowed.

    " + }, + "NwkGeoLoc":{ + "shape":"NwkGeoLoc", + "documentation":"

    The NwkGeoLoc value.

    " + }, + "TargetPer":{ + "shape":"TargetPer", + "documentation":"

    The TargetPER value.

    " + }, + "MinGwDiversity":{ + "shape":"MinGwDiversity", + "documentation":"

    The MinGwDiversity value.

    " + } + }, + "documentation":"

    LoRaWANGetServiceProfileInfo object.

    " + }, + "LoRaWANListDevice":{ + "type":"structure", + "members":{ + "DevEui":{ + "shape":"DevEui", + "documentation":"

    The DevEUI value.

    " + } + }, + "documentation":"

    LoRaWAN object for list functions.

    " + }, + "LoRaWANSendDataToDevice":{ + "type":"structure", + "members":{ + "FPort":{ + "shape":"FPort", + "documentation":"

    The Fport value.

    " + } + }, + "documentation":"

    LoRaWAN router info.

    " + }, + "LoRaWANServiceProfile":{ + "type":"structure", + "members":{ + "AddGwMetadata":{ + "shape":"AddGwMetadata", + "documentation":"

    The AddGWMetaData value.

    " + } + }, + "documentation":"

    LoRaWANServiceProfile object.

    " + }, + "LoRaWANUpdateDevice":{ + "type":"structure", + "members":{ + "DeviceProfileId":{ + "shape":"DeviceProfileId", + "documentation":"

    The ID of the device profile for the wireless device.

    " + }, + "ServiceProfileId":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the service profile.

    " + } + }, + "documentation":"

    LoRa object for update functions.

    " + }, + "LoRaWANUpdateGatewayTaskCreate":{ + "type":"structure", + "members":{ + "UpdateSignature":{ + "shape":"UpdateSignature", + "documentation":"

    The signature used to verify the update firmware.

    " + }, + "SigKeyCrc":{ + "shape":"Crc", + "documentation":"

    The CRC of the signature private key to check.

    " + }, + "CurrentVersion":{ + "shape":"LoRaWANGatewayVersion", + "documentation":"

    The version of the gateways that should receive the update.

    " + }, + "UpdateVersion":{ + "shape":"LoRaWANGatewayVersion", + "documentation":"

    The firmware version to update the gateway to.

    " + } + }, + "documentation":"

    LoRaWANUpdateGatewayTaskCreate object.

    " + }, + "LoRaWANUpdateGatewayTaskEntry":{ + "type":"structure", + "members":{ + "CurrentVersion":{ + "shape":"LoRaWANGatewayVersion", + "documentation":"

    The version of the gateways that should receive the update.

    " + }, + "UpdateVersion":{ + "shape":"LoRaWANGatewayVersion", + "documentation":"

    The firmware version to update the gateway to.

    " + } + }, + "documentation":"

    LoRaWANUpdateGatewayTaskEntry object.

    " + }, + "MacVersion":{ + "type":"string", + "max":64 + }, + "MaxDutyCycle":{ + "type":"integer", + "max":100, + "min":0 + }, + "MaxEirp":{ + "type":"integer", + "max":15, + "min":0 + }, + "MaxResults":{ + "type":"integer", + "max":250, + "min":0 + }, + "Message":{ + "type":"string", + "max":2048 + }, + "MessageId":{"type":"string"}, + "MinGwDiversity":{ + "type":"integer", + "max":100, + "min":1 + }, + "Model":{ + "type":"string", + "max":4096, + "min":1 + }, + "NextToken":{ + "type":"string", + "max":4096 + }, + "NwkGeoLoc":{"type":"boolean"}, + "NwkKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "NwkSEncKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "NwkSKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "OtaaV1_0_x":{ + "type":"structure", + "members":{ + "AppKey":{ + "shape":"AppKey", + "documentation":"

    The AppKey value.

    " + }, + "AppEui":{ + "shape":"AppEui", + "documentation":"

    The AppEUI value.

    " + } + }, + "documentation":"

    OTAA device object for v1.0.x

    " + }, + "OtaaV1_1":{ + "type":"structure", + "members":{ + "AppKey":{ + "shape":"AppKey", + "documentation":"

    The AppKey value.

    " + }, + "NwkKey":{ + "shape":"NwkKey", + "documentation":"

    The NwkKey value.

    " + }, + "JoinEui":{ + "shape":"JoinEui", + "documentation":"

    The JoinEUI value.

    " + } + }, + "documentation":"

    OTAA device object for v1.1

    " + }, + "PackageVersion":{ + "type":"string", + "max":32, + "min":1 + }, + "PartnerAccountId":{ + "type":"string", + "max":256 + }, + "PartnerType":{ + "type":"string", + "enum":["Sidewalk"] + }, + "PayloadData":{ + "type":"string", + "max":2048, + "pattern":"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + }, + "PingSlotDr":{ + "type":"integer", + "max":15, + "min":0 + }, + "PingSlotFreq":{ + "type":"integer", + "max":16700000, + "min":1000000 + }, + "PingSlotPeriod":{ + "type":"integer", + "max":4096, + "min":128 + }, + "PrAllowed":{"type":"boolean"}, + "PresetFreq":{ + "type":"integer", + "max":16700000, + "min":1000000 + }, + "RaAllowed":{"type":"boolean"}, + "RegParamsRevision":{ + "type":"string", + "max":64 + }, + "ReportDevStatusBattery":{"type":"boolean"}, + "ReportDevStatusMargin":{"type":"boolean"}, + "ResourceId":{"type":"string"}, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"}, + "ResourceId":{"shape":"ResourceId"}, + "ResourceType":{"shape":"ResourceType"} + }, + "documentation":"

    Resource does not exist.

    ", + "error":{"httpStatusCode":404}, + "exception":true + }, + "ResourceType":{"type":"string"}, + "Result":{ + "type":"string", + "max":2048 + }, + "RfRegion":{ + "type":"string", + "max":64 + }, + "RoleArn":{ + "type":"string", + "max":2048, + "min":20 + }, + "RxDataRate2":{ + "type":"integer", + "max":15, + "min":0 + }, + "RxDelay1":{ + "type":"integer", + "max":15, + "min":0 + }, + "RxDrOffset1":{ + "type":"integer", + "max":7, + "min":0 + }, + "RxFreq2":{ + "type":"integer", + "max":16700000, + "min":1000000 + }, + "SNwkSIntKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, + "SendDataToWirelessDeviceRequest":{ + "type":"structure", + "required":[ + "Id", + "TransmitMode", + "PayloadData" + ], + "members":{ + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the wireless device to receive the data.

    ", + "location":"uri", + "locationName":"Id" + }, + "TransmitMode":{ + "shape":"TransmitMode", + "documentation":"

    The transmit mode to use to send data to the wireless device. Can be: 0 for UM (unacknowledge mode), 1 for AM (acknowledge mode), or 2 for (TM) transparent mode.

    " + }, + "PayloadData":{ + "shape":"PayloadData", + "documentation":"

    The message payload to send.

    " + }, + "WirelessMetadata":{ + "shape":"WirelessMetadata", + "documentation":"

    Metadata about the message request.

    " + } + } + }, + "SendDataToWirelessDeviceResponse":{ + "type":"structure", + "members":{ + "MessageId":{ + "shape":"MessageId", + "documentation":"

    The ID of the message sent to the wireless device.

    " + } + } + }, + "Seq":{ + "type":"integer", + "min":0 + }, + "ServiceProfile":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"ServiceProfileArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Name":{ + "shape":"ServiceProfileName", + "documentation":"

    The name of the resource.

    " + }, + "Id":{ + "shape":"ServiceProfileId", + "documentation":"

    The ID of the service profile.

    " + } + }, + "documentation":"

    Information about a service profile.

    " + }, + "ServiceProfileArn":{"type":"string"}, + "ServiceProfileId":{ + "type":"string", + "max":256 + }, + "ServiceProfileList":{ + "type":"list", + "member":{"shape":"ServiceProfile"} + }, + "ServiceProfileName":{ + "type":"string", + "max":256 + }, + "SessionKeysAbpV1_0_x":{ + "type":"structure", + "members":{ + "NwkSKey":{ + "shape":"NwkSKey", + "documentation":"

    The NwkSKey value.

    " + }, + "AppSKey":{ + "shape":"AppSKey", + "documentation":"

    The AppSKey value.

    " + } + }, + "documentation":"

    Session keys for ABP v1.1

    " + }, + "SessionKeysAbpV1_1":{ + "type":"structure", + "members":{ + "FNwkSIntKey":{ + "shape":"FNwkSIntKey", + "documentation":"

    The FNwkSIntKey value.

    " + }, + "SNwkSIntKey":{ + "shape":"SNwkSIntKey", + "documentation":"

    The SNwkSIntKey value.

    " + }, + "NwkSEncKey":{ + "shape":"NwkSEncKey", + "documentation":"

    The NwkSEncKey value.

    " + }, + "AppSKey":{ + "shape":"AppSKey", + "documentation":"

    The AppSKey value.

    " + } + }, + "documentation":"

    Session keys for ABP v1.1

    " + }, + "SidewalkAccountInfo":{ + "type":"structure", + "members":{ + "AmazonId":{ + "shape":"AmazonId", + "documentation":"

    The Sidewalk Amazon ID.

    " + }, + "AppServerPrivateKey":{ + "shape":"AppServerPrivateKey", + "documentation":"

    The Sidewalk application server private key.

    " + } + }, + "documentation":"

    Information about a Sidewalk account.

    " + }, + "SidewalkAccountInfoWithFingerprint":{ + "type":"structure", + "members":{ + "AmazonId":{ + "shape":"AmazonId", + "documentation":"

    The Sidewalk Amazon ID.

    " + }, + "AppServerPrivateKey":{ + "shape":"AppServerPrivateKey", + "documentation":"

    The Sidewalk application server private key.

    " + } + }, + "documentation":"

    Information about a Sidewalk account.

    " + }, + "SidewalkAccountList":{ + "type":"list", + "member":{"shape":"SidewalkAccountInfoWithFingerprint"} + }, + "SidewalkListDevice":{ + "type":"structure", + "members":{ + "AmazonId":{ + "shape":"AmazonId", + "documentation":"

    The Sidewalk Amazon ID.

    " + } + }, + "documentation":"

    Sidewalk object used by list functions.

    " + }, + "SidewalkSendDataToDevice":{ + "type":"structure", + "members":{ + "Seq":{ + "shape":"Seq", + "documentation":"

    The sequence number.

    " + } + }, + "documentation":"

    Information about a Sidewalk router.

    " + }, + "SidewalkUpdateAccount":{ + "type":"structure", + "members":{ + "AppServerPrivateKey":{ + "shape":"AppServerPrivateKey", + "documentation":"

    The new Sidewalk application server private key.

    " + } + }, + "documentation":"

    Sidewalk update.

    " + }, + "Station":{ + "type":"string", + "max":4096, + "min":1 + }, + "Supports32BitFCnt":{"type":"boolean"}, + "SupportsClassB":{"type":"boolean"}, + "SupportsClassC":{"type":"boolean"}, + "SupportsJoin":{"type":"boolean"}, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{ + "shape":"TagKey", + "documentation":"

    The tag's key value.

    " + }, + "Value":{ + "shape":"TagValue", + "documentation":"

    The tag's value.

    " + } + }, + "documentation":"

    A simple label consisting of a customer-defined key-value pair

    " + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The ARN of the resource to add tags to.

    ", + "location":"querystring", + "locationName":"resourceArn" + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

    " + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "TargetPer":{ + "type":"integer", + "max":100, + "min":0 + }, + "TestWirelessDeviceRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the wireless device to test.

    ", + "location":"uri", + "locationName":"Id" + } + } + }, + "TestWirelessDeviceResponse":{ + "type":"structure", + "members":{ + "Result":{ + "shape":"Result", + "documentation":"

    The result returned by the test.

    " + } + } + }, + "ThingArn":{"type":"string"}, + "ThingName":{"type":"string"}, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "documentation":"

    The request was denied because it exceeded the allowed API request rate.

    ", + "error":{"httpStatusCode":429}, + "exception":true + }, + "TooManyTagsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"}, + "ResourceName":{"shape":"AmazonResourceName"} + }, + "documentation":"

    The request was denied because the resource can't have any more tags.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "TransmitMode":{ + "type":"integer", + "max":1, + "min":0 + }, + "UlBucketSize":{ + "type":"integer", + "max":2147483647, + "min":0 + }, + "UlRate":{ + "type":"integer", + "max":2147483647, + "min":0 + }, + "UlRatePolicy":{ + "type":"string", + "max":256 + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{ + "shape":"AmazonResourceName", + "documentation":"

    The ARN of the resource to remove tags from.

    ", + "location":"querystring", + "locationName":"resourceArn" + }, + "TagKeys":{ + "shape":"TagKeyList", + "documentation":"

    A list of the keys of the tags to remove from the resource.

    ", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateDataSource":{ + "type":"string", + "max":4096, + "min":1 + }, + "UpdateDestinationRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"DestinationName", + "documentation":"

    The new name of the resource.

    ", + "location":"uri", + "locationName":"Name" + }, + "ExpressionType":{ + "shape":"ExpressionType", + "documentation":"

    The type of value in Expression.

    " + }, + "Expression":{ + "shape":"Expression", + "documentation":"

    The new rule name or topic rule to send messages to.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    A new description of the resource.

    " + }, + "RoleArn":{ + "shape":"RoleArn", + "documentation":"

    The ARN of the IAM Role that authorizes the destination.

    " + } + } + }, + "UpdateDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdatePartnerAccountRequest":{ + "type":"structure", + "required":[ + "Sidewalk", + "PartnerAccountId", + "PartnerType" + ], + "members":{ + "Sidewalk":{ + "shape":"SidewalkUpdateAccount", + "documentation":"

    The Sidewalk account credentials.

    " + }, + "PartnerAccountId":{ + "shape":"PartnerAccountId", + "documentation":"

    The ID of the partner account to update.

    ", + "location":"uri", + "locationName":"PartnerAccountId" + }, + "PartnerType":{ + "shape":"PartnerType", + "documentation":"

    The partner type.

    ", + "location":"querystring", + "locationName":"partnerType" + } + } + }, + "UpdatePartnerAccountResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateSignature":{ + "type":"string", + "max":4096, + "min":1 + }, + "UpdateWirelessDeviceRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + }, + "DestinationName":{ + "shape":"DestinationName", + "documentation":"

    The name of the new destination for the device.

    " + }, + "Name":{ + "shape":"WirelessDeviceName", + "documentation":"

    The new name of the resource.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    A new description of the resource.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANUpdateDevice", + "documentation":"

    The updated wireless device's configuration.

    " + } + } + }, + "UpdateWirelessDeviceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateWirelessGatewayRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the resource to update.

    ", + "location":"uri", + "locationName":"Id" + }, + "Name":{ + "shape":"WirelessGatewayName", + "documentation":"

    The new name of the resource.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    A new description of the resource.

    " + } + } + }, + "UpdateWirelessGatewayResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateWirelessGatewayTaskCreate":{ + "type":"structure", + "members":{ + "UpdateDataSource":{ + "shape":"UpdateDataSource", + "documentation":"

    The link to the S3 bucket.

    " + }, + "UpdateDataRole":{ + "shape":"UpdateDataSource", + "documentation":"

    The IAM role used to read data from the S3 bucket.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANUpdateGatewayTaskCreate", + "documentation":"

    The properties that relate to the LoRaWAN wireless gateway.

    " + } + }, + "documentation":"

    UpdateWirelessGatewayTaskCreate object.

    " + }, + "UpdateWirelessGatewayTaskEntry":{ + "type":"structure", + "members":{ + "Id":{ + "shape":"WirelessGatewayTaskDefinitionId", + "documentation":"

    The ID of the new wireless gateway task entry.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANUpdateGatewayTaskEntry", + "documentation":"

    The properties that relate to the LoRaWAN wireless gateway.

    " + } + }, + "documentation":"

    UpdateWirelessGatewayTaskEntry object.

    " + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "documentation":"

    The input did not meet the specified constraints.

    ", + "error":{"httpStatusCode":400}, + "exception":true + }, + "WirelessDeviceArn":{"type":"string"}, + "WirelessDeviceId":{ + "type":"string", + "max":256 + }, + "WirelessDeviceIdType":{ + "type":"string", + "enum":[ + "WirelessDeviceId", + "DevEui", + "ThingName" + ] + }, + "WirelessDeviceName":{ + "type":"string", + "max":256 + }, + "WirelessDeviceStatistics":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"WirelessDeviceArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Id":{ + "shape":"WirelessDeviceId", + "documentation":"

    The ID of the wireless device reporting the data.

    " + }, + "Type":{ + "shape":"WirelessDeviceType", + "documentation":"

    The wireless device type.

    " + }, + "Name":{ + "shape":"WirelessDeviceName", + "documentation":"

    The name of the resource.

    " + }, + "DestinationName":{ + "shape":"DestinationName", + "documentation":"

    The name of the destination to which the device is assigned.

    " + }, + "LastUplinkReceivedAt":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time when the most recent uplink was received.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANListDevice", + "documentation":"

    LoRaWAN device info.

    " + }, + "Sidewalk":{ + "shape":"SidewalkListDevice", + "documentation":"

    The Sidewalk account credentials.

    " + } + }, + "documentation":"

    Information about a wireless device's operation.

    " + }, + "WirelessDeviceStatisticsList":{ + "type":"list", + "member":{"shape":"WirelessDeviceStatistics"} + }, + "WirelessDeviceType":{ + "type":"string", + "enum":[ + "Sidewalk", + "LoRaWAN" + ] + }, + "WirelessGatewayArn":{"type":"string"}, + "WirelessGatewayId":{ + "type":"string", + "max":256 + }, + "WirelessGatewayIdType":{ + "type":"string", + "enum":[ + "GatewayEui", + "WirelessGatewayId", + "ThingName" + ] + }, + "WirelessGatewayName":{ + "type":"string", + "max":256 + }, + "WirelessGatewayServiceType":{ + "type":"string", + "enum":[ + "CUPS", + "LNS" + ] + }, + "WirelessGatewayStatistics":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"WirelessGatewayArn", + "documentation":"

    The Amazon Resource Name of the resource.

    " + }, + "Id":{ + "shape":"WirelessGatewayId", + "documentation":"

    The ID of the wireless gateway reporting the data.

    " + }, + "Name":{ + "shape":"WirelessGatewayName", + "documentation":"

    The name of the resource.

    " + }, + "Description":{ + "shape":"Description", + "documentation":"

    The description of the resource.

    " + }, + "LoRaWAN":{ + "shape":"LoRaWANGateway", + "documentation":"

    LoRaWAN gateway info.

    " + }, + "LastUplinkReceivedAt":{ + "shape":"ISODateTimeString", + "documentation":"

    The date and time when the most recent uplink was received.

    " + } + }, + "documentation":"

    Information about a wireless gateway's operation.

    " + }, + "WirelessGatewayStatisticsList":{ + "type":"list", + "member":{"shape":"WirelessGatewayStatistics"} + }, + "WirelessGatewayTaskDefinitionId":{ + "type":"string", + "max":36, + "pattern":"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}" + }, + "WirelessGatewayTaskDefinitionList":{ + "type":"list", + "member":{"shape":"UpdateWirelessGatewayTaskEntry"} + }, + "WirelessGatewayTaskDefinitionType":{ + "type":"string", + "enum":["UPDATE"] + }, + "WirelessGatewayTaskName":{ + "type":"string", + "max":2048, + "min":1 + }, + "WirelessGatewayTaskStatus":{ + "type":"string", + "enum":[ + "PENDING", + "IN_PROGRESS", + "FIRST_RETRY", + "SECOND_RETRY", + "COMPLETED", + "FAILED" + ] + }, + "WirelessMetadata":{ + "type":"structure", + "members":{ + "LoRaWAN":{ + "shape":"LoRaWANSendDataToDevice", + "documentation":"

    LoRaWAN device info.

    " + }, + "Sidewalk":{ + "shape":"SidewalkSendDataToDevice", + "documentation":"

    The Sidewalk account credentials.

    " + } + }, + "documentation":"

    WirelessMetadata object.

    " + } + }, + "documentation":"

    AWS IoT Wireless API documentation

    " +} diff --git a/code-generation/api-descriptions/lambda-2015-03-31.normal.json b/code-generation/api-descriptions/lambda-2015-03-31.normal.json index 322011f6009..4eedb22b1d3 100644 --- a/code-generation/api-descriptions/lambda-2015-03-31.normal.json +++ b/code-generation/api-descriptions/lambda-2015-03-31.normal.json @@ -99,7 +99,7 @@ {"shape":"TooManyRequestsException"}, {"shape":"ResourceNotFoundException"} ], - "documentation":"

    Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.

    For details about each event source type, see the following topics.

    The following error handling options are only available for stream sources (DynamoDB and Kinesis):

    • BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.

    • DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.

    • MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

    • MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    • ParallelizationFactor - Process multiple batches from each shard concurrently.

    " + "documentation":"

    Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.

    For details about each event source type, see the following topics.

    The following error handling options are only available for stream sources (DynamoDB and Kinesis):

    • BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.

    • DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.

    • MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

    • MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    • ParallelizationFactor - Process multiple batches from each shard concurrently.

    " }, "CreateFunction":{ "name":"CreateFunction", @@ -1473,10 +1473,7 @@ }, "CreateEventSourceMappingRequest":{ "type":"structure", - "required":[ - "EventSourceArn", - "FunctionName" - ], + "required":["FunctionName"], "members":{ "EventSourceArn":{ "shape":"Arn", @@ -1492,11 +1489,11 @@ }, "BatchSize":{ "shape":"BatchSize", - "documentation":"

    The maximum number of items to retrieve in a single batch.

    • Amazon Kinesis - Default 100. Max 10,000.

    • Amazon DynamoDB Streams - Default 100. Max 1,000.

    • Amazon Simple Queue Service - Default 10. Max 10.

    • Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    " + "documentation":"

    The maximum number of items to retrieve in a single batch.

    • Amazon Kinesis - Default 100. Max 10,000.

    • Amazon DynamoDB Streams - Default 100. Max 1,000.

    • Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.

    • Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • Self-Managed Apache Kafka - Default 100. Max 10,000.

    " }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", - "documentation":"

    (Streams) The maximum amount of time to gather records before invoking the function, in seconds.

    " + "documentation":"

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds.

    " }, "ParallelizationFactor":{ "shape":"ParallelizationFactor", @@ -1526,9 +1523,13 @@ "shape":"MaximumRetryAttemptsEventSourceMapping", "documentation":"

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records will be retried until the record expires.

    " }, + "TumblingWindowInSeconds":{ + "shape":"TumblingWindowInSeconds", + "documentation":"

    (Streams) The duration of a processing window in seconds. The range is between 1 second up to 15 minutes.

    " + }, "Topics":{ "shape":"Topics", - "documentation":"

    (MSK) The name of the Kafka topic.

    " + "documentation":"

    The name of the Kafka topic.

    " }, "Queues":{ "shape":"Queues", @@ -1536,7 +1537,15 @@ }, "SourceAccessConfigurations":{ "shape":"SourceAccessConfigurations", - "documentation":"

    (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format: { \"username\": \"your username\", \"password\": \"your password\" }

    To reference the secret, use the following format: [ { \"Type\": \"BASIC_AUTH\", \"URI\": \"secretARN\" } ]

    The value of Type is always BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires kms:Decrypt permissions.

    " + "documentation":"

    An array of the authentication protocol, or the VPC components to secure your event source.

    " + }, + "SelfManagedEventSource":{ + "shape":"SelfManagedEventSource", + "documentation":"

    The Self-Managed Apache Kafka cluster to send records.

    " + }, + "FunctionResponseTypes":{ + "shape":"FunctionResponseTypeList", + "documentation":"

    (Streams) A list of current response type enums applied to the event source mapping.

    " } } }, @@ -1900,6 +1909,29 @@ "exception":true }, "Enabled":{"type":"boolean"}, + "EndPointType":{ + "type":"string", + "enum":["KAFKA_BOOTSTRAP_SERVERS"] + }, + "Endpoint":{ + "type":"string", + "max":300, + "min":1, + "pattern":"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9]):[0-9]{1,5}" + }, + "EndpointLists":{ + "type":"list", + "member":{"shape":"Endpoint"}, + "max":10, + "min":1 + }, + "Endpoints":{ + "type":"map", + "key":{"shape":"EndPointType"}, + "value":{"shape":"EndpointLists"}, + "max":2, + "min":1 + }, "Environment":{ "type":"structure", "members":{ @@ -1974,7 +2006,7 @@ }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", - "documentation":"

    (Streams) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    " + "documentation":"

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds. The default value is zero.

    " }, "ParallelizationFactor":{ "shape":"ParallelizationFactor", @@ -2010,7 +2042,7 @@ }, "Topics":{ "shape":"Topics", - "documentation":"

    (MSK) The name of the Kafka topic to consume.

    " + "documentation":"

    The name of the Kafka topic.

    " }, "Queues":{ "shape":"Queues", @@ -2018,7 +2050,11 @@ }, "SourceAccessConfigurations":{ "shape":"SourceAccessConfigurations", - "documentation":"

    (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format: { \"username\": \"your username\", \"password\": \"your password\" }

    To reference the secret, use the following format: [ { \"Type\": \"BASIC_AUTH\", \"URI\": \"secretARN\" } ]

    The value of Type is always BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires kms:Decrypt permissions.

    " + "documentation":"

    An array of the authentication protocol, or the VPC components to secure your event source.

    " + }, + "SelfManagedEventSource":{ + "shape":"SelfManagedEventSource", + "documentation":"

    The Self-Managed Apache Kafka cluster for your event source.

    " }, "MaximumRecordAgeInSeconds":{ "shape":"MaximumRecordAgeInSeconds", @@ -2031,6 +2067,14 @@ "MaximumRetryAttempts":{ "shape":"MaximumRetryAttemptsEventSourceMapping", "documentation":"

    (Streams) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.

    " + }, + "TumblingWindowInSeconds":{ + "shape":"TumblingWindowInSeconds", + "documentation":"

    (Streams) The duration of a processing window in seconds. The range is between 1 second up to 15 minutes.

    " + }, + "FunctionResponseTypes":{ + "shape":"FunctionResponseTypeList", + "documentation":"

    (Streams) A list of current response type enums applied to the event source mapping.

    " } }, "documentation":"

    A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

    " @@ -2306,6 +2350,16 @@ "min":1, "pattern":"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?" }, + "FunctionResponseType":{ + "type":"string", + "enum":["ReportBatchItemFailures"] + }, + "FunctionResponseTypeList":{ + "type":"list", + "member":{"shape":"FunctionResponseType"}, + "max":1, + "min":1 + }, "FunctionVersion":{ "type":"string", "enum":["ALL"] @@ -2715,7 +2769,7 @@ "documentation":"

    Specifies the working directory.

    " } }, - "documentation":"

    Configuration values that override the container image Dockerfile. See Override Container settings.

    " + "documentation":"

    Configuration values that override the container image Dockerfile settings. See Container settings.

    " }, "ImageConfigError":{ "type":"structure", @@ -4236,6 +4290,16 @@ "member":{"shape":"SecurityGroupId"}, "max":5 }, + "SelfManagedEventSource":{ + "type":"structure", + "members":{ + "Endpoints":{ + "shape":"Endpoints", + "documentation":"

    The list of bootstrap servers for your Kafka brokers in the following format: \"KAFKA_BOOTSTRAP_SERVERS\": [\"abc.xyz.com:xxxx\",\"abc2.xyz.com:xxxx\"].

    " + } + }, + "documentation":"

    The Self-Managed Apache Kafka cluster for your event source.

    " + }, "SensitiveString":{ "type":"string", "sensitive":true @@ -4261,24 +4325,30 @@ "members":{ "Type":{ "shape":"SourceAccessType", - "documentation":"

    To reference the secret, use the following format: [ { \"Type\": \"BASIC_AUTH\", \"URI\": \"secretARN\" } ]

    The value of Type is always BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires kms:Decrypt permissions.

    " + "documentation":"

    The type of authentication protocol or the VPC components for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\".

    • BASIC_AUTH - (MQ) The Secrets Manager secret that stores your broker credentials.

    • VPC_SUBNET - The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your Kafka cluster.

    • VPC_SECURITY_GROUP - The VPC security group used to manage access to your Kafka brokers.

    • SASL_SCRAM_256_AUTH - The ARN of your secret key used for SASL SCRAM-256 authentication of your Kafka brokers.

    • SASL_SCRAM_512_AUTH - The ARN of your secret key used for SASL SCRAM-512 authentication of your Kafka brokers.

    " }, "URI":{ - "shape":"Arn", - "documentation":"

    To reference the secret, use the following format: [ { \"Type\": \"BASIC_AUTH\", \"URI\": \"secretARN\" } ]

    The value of Type is always BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires kms:Decrypt permissions.

    " + "shape":"URI", + "documentation":"

    The value for your chosen configuration in Type. For example: \"URI\": \"arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName\".

    " } }, - "documentation":"

    (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format: { \"username\": \"your username\", \"password\": \"your password\" }

    " + "documentation":"

    You can specify the authentication protocol, or the VPC components to secure access to your event source.

    " }, "SourceAccessConfigurations":{ "type":"list", "member":{"shape":"SourceAccessConfiguration"}, - "max":1, + "max":22, "min":1 }, "SourceAccessType":{ "type":"string", - "enum":["BASIC_AUTH"] + "enum":[ + "BASIC_AUTH", + "VPC_SUBNET", + "VPC_SECURITY_GROUP", + "SASL_SCRAM_512_AUTH", + "SASL_SCRAM_256_AUTH" + ] }, "SourceOwner":{ "type":"string", @@ -4441,6 +4511,17 @@ "PassThrough" ] }, + "TumblingWindowInSeconds":{ + "type":"integer", + "max":900, + "min":0 + }, + "URI":{ + "type":"string", + "max":200, + "min":1, + "pattern":"[a-zA-Z0-9-\\/*:_+=.@-]*" + }, "UnreservedConcurrentExecutions":{ "type":"integer", "min":0 @@ -4567,11 +4648,11 @@ }, "BatchSize":{ "shape":"BatchSize", - "documentation":"

    The maximum number of items to retrieve in a single batch.

    • Amazon Kinesis - Default 100. Max 10,000.

    • Amazon DynamoDB Streams - Default 100. Max 1,000.

    • Amazon Simple Queue Service - Default 10. Max 10.

    • Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    " + "documentation":"

    The maximum number of items to retrieve in a single batch.

    • Amazon Kinesis - Default 100. Max 10,000.

    • Amazon DynamoDB Streams - Default 100. Max 1,000.

    • Amazon Simple Queue Service - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.

    • Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.

    • Self-Managed Apache Kafka - Default 100. Max 10,000.

    " }, "MaximumBatchingWindowInSeconds":{ "shape":"MaximumBatchingWindowInSeconds", - "documentation":"

    (Streams) The maximum amount of time to gather records before invoking the function, in seconds.

    " + "documentation":"

    (Streams and SQS standard queues) The maximum amount of time to gather records before invoking the function, in seconds.

    " }, "DestinationConfig":{ "shape":"DestinationConfig", @@ -4595,7 +4676,15 @@ }, "SourceAccessConfigurations":{ "shape":"SourceAccessConfigurations", - "documentation":"

    (MQ) The Secrets Manager secret that stores your broker credentials. To store your secret, use the following format: { \"username\": \"your username\", \"password\": \"your password\" }

    To reference the secret, use the following format: [ { \"Type\": \"BASIC_AUTH\", \"URI\": \"secretARN\" } ]

    The value of Type is always BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. When using a customer managed KMS key, the Lambda execution role requires kms:Decrypt permissions.

    " + "documentation":"

    An array of the authentication protocol, or the VPC components to secure your event source.

    " + }, + "TumblingWindowInSeconds":{ + "shape":"TumblingWindowInSeconds", + "documentation":"

    (Streams) The duration of a processing window in seconds. The range is between 1 second up to 15 minutes.

    " + }, + "FunctionResponseTypes":{ + "shape":"FunctionResponseTypeList", + "documentation":"

    (Streams) A list of current response type enums applied to the event source mapping.

    " } } }, diff --git a/code-generation/api-descriptions/ssm-2014-11-06.normal.json b/code-generation/api-descriptions/ssm-2014-11-06.normal.json index a3c1ff311ed..1bd7387968e 100644 --- a/code-generation/api-descriptions/ssm-2014-11-06.normal.json +++ b/code-generation/api-descriptions/ssm-2014-11-06.normal.json @@ -183,7 +183,7 @@ {"shape":"OpsMetadataLimitExceededException"}, {"shape":"InternalServerError"} ], - "documentation":"

    If you create a new application in AppManager, Systems Manager calls this API action to specify information about the new application, including the application type.

    " + "documentation":"

    If you create a new application in Application Manager, Systems Manager calls this API action to specify information about the new application, including the application type.

    " }, "CreatePatchBaseline":{ "name":"CreatePatchBaseline", @@ -1126,7 +1126,7 @@ {"shape":"OpsMetadataInvalidArgumentException"}, {"shape":"InternalServerError"} ], - "documentation":"

    View operational metadata related to an application in AppManager.

    " + "documentation":"

    View operational metadata related to an application in Application Manager.

    " }, "GetOpsSummary":{ "name":"GetOpsSummary", @@ -1364,6 +1364,22 @@ ], "documentation":"

    Returns a summary count of compliant and non-compliant resources for a compliance type. For example, this call can return State Manager associations, patches, or custom compliance types according to the filter criteria that you specify.

    " }, + "ListDocumentMetadataHistory":{ + "name":"ListDocumentMetadataHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDocumentMetadataHistoryRequest"}, + "output":{"shape":"ListDocumentMetadataHistoryResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentVersion"}, + {"shape":"InvalidNextToken"} + ], + "documentation":"

    Information about approval reviews for a version of an SSM document.

    " + }, "ListDocumentVersions":{ "name":"ListDocumentVersions", "http":{ @@ -1411,6 +1427,22 @@ ], "documentation":"

    A list of inventory items returned by the request.

    " }, + "ListOpsItemEvents":{ + "name":"ListOpsItemEvents", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListOpsItemEventsRequest"}, + "output":{"shape":"ListOpsItemEventsResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"OpsItemNotFoundException"}, + {"shape":"OpsItemLimitExceededException"}, + {"shape":"OpsItemInvalidParameterException"} + ], + "documentation":"

    Returns a list of all OpsItem events in the current AWS account and Region. You can limit the results to events associated with specific OpsItems by specifying a filter.

    " + }, "ListOpsMetadata":{ "name":"ListOpsMetadata", "http":{ @@ -1423,7 +1455,7 @@ {"shape":"OpsMetadataInvalidArgumentException"}, {"shape":"InternalServerError"} ], - "documentation":"

    Systems Manager calls this API action when displaying all AppManager OpsMetadata objects or blobs.

    " + "documentation":"

    Systems Manager calls this API action when displaying all Application Manager OpsMetadata objects or blobs.

    " }, "ListResourceComplianceSummaries":{ "name":"ListResourceComplianceSummaries", @@ -1739,6 +1771,25 @@ ], "documentation":"

    Initiates execution of an Automation document.

    " }, + "StartChangeRequestExecution":{ + "name":"StartChangeRequestExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartChangeRequestExecutionRequest"}, + "output":{"shape":"StartChangeRequestExecutionResult"}, + "errors":[ + {"shape":"AutomationDefinitionNotFoundException"}, + {"shape":"InvalidAutomationExecutionParametersException"}, + {"shape":"AutomationExecutionLimitExceededException"}, + {"shape":"AutomationDefinitionVersionNotFoundException"}, + {"shape":"IdempotentParameterMismatch"}, + {"shape":"InternalServerError"}, + {"shape":"AutomationDefinitionNotApprovedException"} + ], + "documentation":"

    Creates a change request for Change Manager. The runbooks (Automation documents) specified in the change request run only after all required approvals for the change request have been received.

    " + }, "StartSession":{ "name":"StartSession", "http":{ @@ -1863,6 +1914,22 @@ ], "documentation":"

    Set the default version of a document.

    " }, + "UpdateDocumentMetadata":{ + "name":"UpdateDocumentMetadata", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateDocumentMetadataRequest"}, + "output":{"shape":"UpdateDocumentMetadataResponse"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentOperation"}, + {"shape":"InvalidDocumentVersion"} + ], + "documentation":"

    Updates information related to approval reviews for a specific version of a document.

    " + }, "UpdateMaintenanceWindow":{ "name":"UpdateMaintenanceWindow", "http":{ @@ -1951,7 +2018,7 @@ {"shape":"OpsMetadataTooManyUpdatesException"}, {"shape":"InternalServerError"} ], - "documentation":"

    Systems Manager calls this API action when you edit OpsMetadata in AppManager.

    " + "documentation":"

    Systems Manager calls this API action when you edit OpsMetadata in Application Manager.

    " }, "UpdatePatchBaseline":{ "name":"UpdatePatchBaseline", @@ -2310,6 +2377,10 @@ "ApplyOnlyAtCronInterval":{ "shape":"ApplyOnlyAtCronInterval", "documentation":"

    By default, when you create a new associations, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.

    " + }, + "TargetLocations":{ + "shape":"TargetLocations", + "documentation":"

    The combination of AWS Regions and AWS accounts where you want to run the association.

    " } }, "documentation":"

    Describes the parameters for a document.

    " @@ -2715,6 +2786,10 @@ "ApplyOnlyAtCronInterval":{ "shape":"ApplyOnlyAtCronInterval", "documentation":"

    By default, when you create a new associations, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.

    " + }, + "TargetLocations":{ + "shape":"TargetLocations", + "documentation":"

    The combination of AWS Regions and AWS accounts where you wanted to run the association when this association version was created.

    " } }, "documentation":"

    Information about the association version.

    " @@ -2850,6 +2925,14 @@ "type":"string", "pattern":"^aws:[a-zA-Z]{3,25}$" }, + "AutomationDefinitionNotApprovedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "documentation":"

    Indicates that the Change Manager change template used in the change request was rejected or is still in a pending state.

    ", + "exception":true + }, "AutomationDefinitionNotFoundException":{ "type":"structure", "members":{ @@ -2969,6 +3052,30 @@ "ProgressCounters":{ "shape":"ProgressCounters", "documentation":"

    An aggregate of step execution statuses displayed in the AWS Console for a multi-Region and multi-account Automation execution.

    " + }, + "AutomationSubtype":{ + "shape":"AutomationSubtype", + "documentation":"

    The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

    " + }, + "ScheduledTime":{ + "shape":"DateTime", + "documentation":"

    The date and time the Automation operation is scheduled to start.

    " + }, + "Runbooks":{ + "shape":"Runbooks", + "documentation":"

    Information about the Automation runbooks (Automation documents) that are run as part of a runbook workflow.

    The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

    " + }, + "OpsItemId":{ + "shape":"String", + "documentation":"

    The ID of an OpsItem that is created to represent a Change Manager change request.

    " + }, + "AssociationId":{ + "shape":"String", + "documentation":"

    The ID of a State Manager association used in the Automation operation.

    " + }, + "ChangeRequestName":{ + "shape":"ChangeRequestName", + "documentation":"

    The name of the Change Manager change request.

    " } }, "documentation":"

    Detailed information about the current state of an individual Automation execution.

    " @@ -3003,7 +3110,9 @@ "StartTimeAfter", "AutomationType", "TagKey", - "TargetResourceGroup" + "TargetResourceGroup", + "AutomationSubtype", + "OpsItemId" ] }, "AutomationExecutionFilterList":{ @@ -3126,6 +3235,30 @@ "AutomationType":{ "shape":"AutomationType", "documentation":"

    Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple AWS Regions and accounts. For more information, see Running Automation workflows in multiple AWS Regions and accounts in the AWS Systems Manager User Guide.

    " + }, + "AutomationSubtype":{ + "shape":"AutomationSubtype", + "documentation":"

    The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

    " + }, + "ScheduledTime":{ + "shape":"DateTime", + "documentation":"

    The date and time the Automation operation is scheduled to start.

    " + }, + "Runbooks":{ + "shape":"Runbooks", + "documentation":"

    Information about the Automation runbooks (Automation documents) that are run during a runbook workflow in Change Manager.

    The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

    " + }, + "OpsItemId":{ + "shape":"String", + "documentation":"

    The ID of an OpsItem that is created to represent a Change Manager change request.

    " + }, + "AssociationId":{ + "shape":"String", + "documentation":"

    The ID of a State Manager association used in the Automation operation.

    " + }, + "ChangeRequestName":{ + "shape":"ChangeRequestName", + "documentation":"

    The name of the Change Manager change request.

    " } }, "documentation":"

    Details about a specific Automation execution.

    " @@ -3152,7 +3285,17 @@ "TimedOut", "Cancelling", "Cancelled", - "Failed" + "Failed", + "PendingApproval", + "Approved", + "Rejected", + "Scheduled", + "RunbookInProgress", + "PendingChangeCalendarOverride", + "ChangeCalendarOverrideApproved", + "ChangeCalendarOverrideRejected", + "CompletedWithSuccess", + "CompletedWithFailure" ] }, "AutomationParameterKey":{ @@ -3186,6 +3329,10 @@ "documentation":"

    The specified step name and execution ID don't exist. Verify the information and try again.

    ", "exception":true }, + "AutomationSubtype":{ + "type":"string", + "enum":["ChangeRequest"] + }, "AutomationTargetParameterName":{ "type":"string", "max":50, @@ -3269,6 +3416,11 @@ } } }, + "ChangeRequestName":{ + "type":"string", + "max":1024, + "min":1 + }, "ClientToken":{ "type":"string", "max":64, @@ -4021,6 +4173,10 @@ "ApplyOnlyAtCronInterval":{ "shape":"ApplyOnlyAtCronInterval", "documentation":"

    By default, when you create a new associations, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.

    " + }, + "TargetLocations":{ + "shape":"TargetLocations", + "documentation":"

    Use this action to create an association in multiple Regions and multiple accounts.

    " } }, "documentation":"

    Describes the association of a Systems Manager SSM document and an instance.

    " @@ -4097,6 +4253,10 @@ "ApplyOnlyAtCronInterval":{ "shape":"ApplyOnlyAtCronInterval", "documentation":"

    By default, when you create a new associations, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter is not supported for rate expressions.

    " + }, + "TargetLocations":{ + "shape":"TargetLocations", + "documentation":"

    A location is a combination of AWS Regions and AWS accounts where you want to run the association. Use this action to create an association in multiple Regions and multiple accounts.

    " } } }, @@ -4195,11 +4355,11 @@ }, "ScheduleTimezone":{ "shape":"MaintenanceWindowTimezone", - "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " + "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " }, "ScheduleOffset":{ "shape":"MaintenanceWindowOffset", - "documentation":"

    The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.

    For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 *)

    If the schedule offset is 2, the maintenance window won't run until two days later.

    ", + "documentation":"

    The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.

    For example, the following cron expression schedules a maintenance window to run on the third Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *)

    If the schedule offset is 2, the maintenance window won't run until two days later.

    ", "box":true }, "Duration":{ @@ -4246,6 +4406,10 @@ "shape":"OpsItemDescription", "documentation":"

    Information about the OpsItem.

    " }, + "OpsItemType":{ + "shape":"OpsItemType", + "documentation":"

    The type of OpsItem to create. Currently, the only valid values are /aws/changerequest and /aws/issue.

    " + }, "OperationalData":{ "shape":"OpsItemOperationalData", "documentation":"

    Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.

    Operational data keys can't begin with the following: amazon, aws, amzn, ssm, /amazon, /aws, /amzn, /ssm.

    You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API action) can view and search on the specified data. Operational data that is not searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API action).

    Use the /aws/resources key in OperationalData to specify a related resource in the request. Use the /aws/automations key in OperationalData to associate an Automation runbook with the OpsItem. To view AWS CLI example commands that use these keys, see Creating OpsItems manually in the AWS Systems Manager User Guide.

    " @@ -4281,6 +4445,22 @@ "Severity":{ "shape":"OpsItemSeverity", "documentation":"

    Specify a severity to assign to an OpsItem.

    " + }, + "ActualStartTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "ActualEndTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedStartTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedEndTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest.

    " } } }, @@ -4299,11 +4479,11 @@ "members":{ "ResourceId":{ "shape":"OpsMetadataResourceId", - "documentation":"

    A resource ID for a new AppManager application.

    " + "documentation":"

    A resource ID for a new Application Manager application.

    " }, "Metadata":{ "shape":"MetadataMap", - "documentation":"

    Metadata for a new AppManager application.

    " + "documentation":"

    Metadata for a new Application Manager application.

    " } } }, @@ -5919,6 +6099,7 @@ "documentation":"

    The specified document already exists.

    ", "exception":true }, + "DocumentAuthor":{"type":"string"}, "DocumentContent":{ "type":"string", "min":1 @@ -6031,6 +6212,26 @@ "Requires":{ "shape":"DocumentRequiresList", "documentation":"

    A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.

    " + }, + "Author":{ + "shape":"DocumentAuthor", + "documentation":"

    The user in your organization who created the document.

    " + }, + "ReviewInformation":{ + "shape":"ReviewInformationList", + "documentation":"

    Details about the review of a document.

    " + }, + "ApprovedVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of the document currently approved for use in the organization.

    " + }, + "PendingReviewVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of the document that is currently under review.

    " + }, + "ReviewStatus":{ + "shape":"ReviewStatus", + "documentation":"

    The current status of the review.

    " } }, "documentation":"

    Describes a Systems Manager document.

    " @@ -6136,6 +6337,14 @@ "Requires":{ "shape":"DocumentRequiresList", "documentation":"

    A list of SSM documents required by a document. For example, an ApplicationConfiguration document requires an ApplicationConfigurationSchema document.

    " + }, + "ReviewStatus":{ + "shape":"ReviewStatus", + "documentation":"

    The current status of a document review.

    " + }, + "Author":{ + "shape":"DocumentAuthor", + "documentation":"

    The user in your organization who created the document.

    " } }, "documentation":"

    Describes the name of a Systems Manager document.

    " @@ -6186,6 +6395,20 @@ "documentation":"

    You can have at most 500 active Systems Manager documents.

    ", "exception":true }, + "DocumentMetadataEnum":{ + "type":"string", + "enum":["DocumentReviews"] + }, + "DocumentMetadataResponseInfo":{ + "type":"structure", + "members":{ + "ReviewerResponse":{ + "shape":"DocumentReviewerResponseList", + "documentation":"

    Details about a reviewer's response to a document review request.

    " + } + }, + "documentation":"

    Details about the response to a document review request.

    " + }, "DocumentName":{ "type":"string", "pattern":"^[a-zA-Z0-9_\\-.]{3,128}$" @@ -6259,6 +6482,90 @@ "member":{"shape":"DocumentRequires"}, "min":1 }, + "DocumentReviewAction":{ + "type":"string", + "enum":[ + "SendForReview", + "UpdateReview", + "Approve", + "Reject" + ] + }, + "DocumentReviewComment":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^(?!\\s*$).+" + }, + "DocumentReviewCommentList":{ + "type":"list", + "member":{"shape":"DocumentReviewCommentSource"}, + "max":1, + "min":0 + }, + "DocumentReviewCommentSource":{ + "type":"structure", + "members":{ + "Type":{ + "shape":"DocumentReviewCommentType", + "documentation":"

    The type of information added to a review request. Currently, only the value Comment is supported.

    " + }, + "Content":{ + "shape":"DocumentReviewComment", + "documentation":"

    The content of a comment entered by a user who requests a review of a new document version, or who reviews the new version.

    " + } + }, + "documentation":"

    Information about comments added to a document review request.

    " + }, + "DocumentReviewCommentType":{ + "type":"string", + "enum":["Comment"] + }, + "DocumentReviewerResponseList":{ + "type":"list", + "member":{"shape":"DocumentReviewerResponseSource"} + }, + "DocumentReviewerResponseSource":{ + "type":"structure", + "members":{ + "CreateTime":{ + "shape":"DateTime", + "documentation":"

    The date and time that a reviewer entered a response to a document review request.

    " + }, + "UpdatedTime":{ + "shape":"DateTime", + "documentation":"

    The date and time that a reviewer last updated a response to a document review request.

    " + }, + "ReviewStatus":{ + "shape":"ReviewStatus", + "documentation":"

    The current review status of a new custom SSM document created by a member of your organization, or of the latest version of an existing SSM document.

    Only one version of a document can be in the APPROVED state at a time. When a new version is approved, the status of the previous version changes to REJECTED.

    Only one version of a document can be in review, or PENDING, at a time.

    " + }, + "Comment":{ + "shape":"DocumentReviewCommentList", + "documentation":"

    The comment entered by a reviewer as part of their document review response.

    " + }, + "Reviewer":{ + "shape":"Reviewer", + "documentation":"

    The user in your organization assigned to review a document request.

    " + } + }, + "documentation":"

    Information about a reviewer's response to a document review request.

    " + }, + "DocumentReviews":{ + "type":"structure", + "required":["Action"], + "members":{ + "Action":{ + "shape":"DocumentReviewAction", + "documentation":"

    The action to take on a document approval review request.

    " + }, + "Comment":{ + "shape":"DocumentReviewCommentList", + "documentation":"

    A comment entered by a user in your organization about the document review request.

    " + } + }, + "documentation":"

    Information about a document approval review.

    " + }, "DocumentSchemaVersion":{ "type":"string", "pattern":"([0-9]+)\\.([0-9]+)" @@ -6287,7 +6594,8 @@ "ApplicationConfiguration", "ApplicationConfigurationSchema", "DeploymentStrategy", - "ChangeCalendar" + "ChangeCalendar", + "Automation.ChangeTemplate" ] }, "DocumentVersion":{ @@ -6328,6 +6636,10 @@ "StatusInformation":{ "shape":"DocumentStatusInformation", "documentation":"

    A message returned by AWS Systems Manager that explains the Status value. For example, a Failed status might be explained by the StatusInformation message, \"The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct.\"

    " + }, + "ReviewStatus":{ + "shape":"ReviewStatus", + "documentation":"

    The current status of the approval review for the latest version of the document.

    " } }, "documentation":"

    Version information about the document.

    " @@ -6419,7 +6731,8 @@ "ExecutionRoleName":{ "type":"string", "max":64, - "min":1 + "min":1, + "pattern":"[\\w+=,.@-]+" }, "ExpirationDate":{"type":"timestamp"}, "FailedCreateAssociation":{ @@ -6769,6 +7082,10 @@ "AttachmentsContent":{ "shape":"AttachmentContentList", "documentation":"

    A description of the document attachments, including names, locations, sizes, and so on.

    " + }, + "ReviewStatus":{ + "shape":"ReviewStatus", + "documentation":"

    The current review status of a new custom Systems Manager document (SSM document) created by a member of your organization, or of the latest version of an existing SSM document.

    Only one version of an SSM document can be in the APPROVED state at a time. When a new version is approved, the status of the previous version changes to REJECTED.

    Only one version of an SSM document can be in review, or PENDING, at a time.

    " } } }, @@ -7083,7 +7400,7 @@ }, "ScheduleTimezone":{ "shape":"MaintenanceWindowTimezone", - "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " + "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " }, "ScheduleOffset":{ "shape":"MaintenanceWindowOffset", @@ -7246,11 +7563,11 @@ "members":{ "ResourceId":{ "shape":"OpsMetadataResourceId", - "documentation":"

    The resource ID of the AppManager application.

    " + "documentation":"

    The resource ID of the Application Manager application.

    " }, "Metadata":{ "shape":"MetadataMap", - "documentation":"

    OpsMetadata for an AppManager application.

    " + "documentation":"

    OpsMetadata for an Application Manager application.

    " }, "NextToken":{ "shape":"NextToken", @@ -7781,7 +8098,7 @@ }, "LastPingDateTime":{ "shape":"DateTime", - "documentation":"

    The date and time when agent last pinged Systems Manager service.

    ", + "documentation":"

    The date and time when the agent last pinged the Systems Manager service.

    ", "box":true }, "AgentVersion":{ @@ -9181,6 +9498,61 @@ } } }, + "ListDocumentMetadataHistoryRequest":{ + "type":"structure", + "required":[ + "Name", + "Metadata" + ], + "members":{ + "Name":{ + "shape":"DocumentName", + "documentation":"

    The name of the document.

    " + }, + "DocumentVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of the document.

    " + }, + "Metadata":{ + "shape":"DocumentMetadataEnum", + "documentation":"

    The type of data for which details are being requested. Currently, the only supported value is DocumentReviews.

    " + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of items to return. (You received this token from a previous call.)

    " + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    ", + "box":true + } + } + }, + "ListDocumentMetadataHistoryResponse":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"DocumentName", + "documentation":"

    The name of the document.

    " + }, + "DocumentVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of the document.

    " + }, + "Author":{ + "shape":"DocumentAuthor", + "documentation":"

    The user ID of the person in the organization who requested the document review.

    " + }, + "Metadata":{ + "shape":"DocumentMetadataResponseInfo", + "documentation":"

    Information about the response to the document approval request.

    " + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    " + } + } + }, "ListDocumentVersionsRequest":{ "type":"structure", "required":["Name"], @@ -9307,6 +9679,36 @@ } } }, + "ListOpsItemEventsRequest":{ + "type":"structure", + "members":{ + "Filters":{ + "shape":"OpsItemEventFilters", + "documentation":"

    One or more OpsItem filters. Use a filter to return a more specific list of results.

    " + }, + "MaxResults":{ + "shape":"OpsItemEventMaxResults", + "documentation":"

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

    " + }, + "NextToken":{ + "shape":"String", + "documentation":"

    A token to start the list. Use this token to get the next set of results.

    " + } + } + }, + "ListOpsItemEventsResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"String", + "documentation":"

    The token for the next set of items to return. Use this token to get the next set of results.

    " + }, + "Summaries":{ + "shape":"OpsItemEventSummaries", + "documentation":"

    A list of event information for the specified OpsItems.

    " + } + } + }, "ListOpsMetadataMaxResults":{ "type":"integer", "max":50, @@ -10173,10 +10575,10 @@ "members":{ "Value":{ "shape":"MetadataValueString", - "documentation":"

    Metadata value to assign to an AppManager application.

    " + "documentation":"

    Metadata value to assign to an Application Manager application.

    " } }, - "documentation":"

    Metadata to assign to an AppManager application.

    " + "documentation":"

    Metadata to assign to an Application Manager application.

    " }, "MetadataValueString":{ "type":"string", @@ -10481,6 +10883,10 @@ "shape":"String", "documentation":"

    The ARN of the AWS account that created the OpsItem.

    " }, + "OpsItemType":{ + "shape":"OpsItemType", + "documentation":"

    The type of OpsItem. Currently, the only valid values are /aws/changerequest and /aws/issue.

    " + }, "CreatedTime":{ "shape":"DateTime", "documentation":"

    The date and time the OpsItem was created.

    " @@ -10540,6 +10946,22 @@ "Severity":{ "shape":"OpsItemSeverity", "documentation":"

    The severity of the OpsItem. Severity options range from 1 to 4.

    " + }, + "ActualStartTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "ActualEndTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedStartTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedEndTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest.

    " } }, "documentation":"

    Operations engineers and IT professionals use OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their AWS resources. For more information, see AWS Systems Manager OpsCenter in the AWS Systems Manager User Guide.

    " @@ -10556,12 +10978,14 @@ "OpsItemCategory":{ "type":"string", "max":64, - "min":1 + "min":1, + "pattern":"^(?!\\s*$).+" }, "OpsItemDataKey":{ "type":"string", "max":128, - "min":1 + "min":1, + "pattern":"^(?!\\s*$).+" }, "OpsItemDataType":{ "type":"string", @@ -10584,12 +11008,104 @@ }, "documentation":"

    An object that defines the value of the key and its type in the OperationalData map.

    " }, - "OpsItemDataValueString":{"type":"string"}, + "OpsItemDataValueString":{ + "type":"string", + "pattern":"[\\s\\S]*\\S[\\s\\S]*" + }, "OpsItemDescription":{ "type":"string", "max":1024, + "min":1, + "pattern":"[\\s\\S]*\\S[\\s\\S]*" + }, + "OpsItemEventFilter":{ + "type":"structure", + "required":[ + "Key", + "Values", + "Operator" + ], + "members":{ + "Key":{ + "shape":"OpsItemEventFilterKey", + "documentation":"

    The name of the filter key. Currently, the only supported value is OpsItemId.

    " + }, + "Values":{ + "shape":"OpsItemEventFilterValues", + "documentation":"

    The values for the filter, consisting of one or more OpsItem IDs.

    " + }, + "Operator":{ + "shape":"OpsItemEventFilterOperator", + "documentation":"

    The operator used by the filter call. Currently, the only supported value is Equal.

    " + } + }, + "documentation":"

    Describes a filter for a specific list of OpsItem events. You can filter event information by using tags. You specify tags by using a key-value pair mapping.

    " + }, + "OpsItemEventFilterKey":{ + "type":"string", + "enum":["OpsItemId"] + }, + "OpsItemEventFilterOperator":{ + "type":"string", + "enum":["Equal"] + }, + "OpsItemEventFilterValue":{ + "type":"string", + "max":15, + "min":1, + "pattern":"^(oi)-[0-9a-f]{12}$" + }, + "OpsItemEventFilterValues":{ + "type":"list", + "member":{"shape":"OpsItemEventFilterValue"} + }, + "OpsItemEventFilters":{ + "type":"list", + "member":{"shape":"OpsItemEventFilter"} + }, + "OpsItemEventMaxResults":{ + "type":"integer", + "max":50, "min":1 }, + "OpsItemEventSummaries":{ + "type":"list", + "member":{"shape":"OpsItemEventSummary"} + }, + "OpsItemEventSummary":{ + "type":"structure", + "members":{ + "OpsItemId":{ + "shape":"String", + "documentation":"

    The ID of the OpsItem.

    " + }, + "EventId":{ + "shape":"String", + "documentation":"

    The ID of the OpsItem event.

    " + }, + "Source":{ + "shape":"String", + "documentation":"

    The source of the OpsItem event.

    " + }, + "DetailType":{ + "shape":"String", + "documentation":"

    The type of information provided as a detail.

    " + }, + "Detail":{ + "shape":"String", + "documentation":"

    Specific information about the OpsItem event.

    " + }, + "CreatedBy":{ + "shape":"OpsItemIdentity", + "documentation":"

    Information about the user or resource that created the OpsItem event.

    " + }, + "CreatedTime":{ + "shape":"DateTime", + "documentation":"

    The date and time the OpsItem event was created.

    " + } + }, + "documentation":"

    Summary information about an OpsItem event.

    " + }, "OpsItemFilter":{ "type":"structure", "required":[ @@ -10624,13 +11140,24 @@ "OpsItemId", "CreatedTime", "LastModifiedTime", + "ActualStartTime", + "ActualEndTime", + "PlannedStartTime", + "PlannedEndTime", "OperationalData", "OperationalDataKey", "OperationalDataValue", "ResourceId", "AutomationId", "Category", - "Severity" + "Severity", + "OpsItemType", + "ChangeRequestByRequesterArn", + "ChangeRequestByRequesterName", + "ChangeRequestByApproverArn", + "ChangeRequestByApproverName", + "ChangeRequestByTemplate", + "ChangeRequestByTargetsResourceGroup" ] }, "OpsItemFilterOperator":{ @@ -10655,6 +11182,16 @@ "type":"string", "pattern":"^(oi)-[0-9a-f]{12}$" }, + "OpsItemIdentity":{ + "type":"structure", + "members":{ + "Arn":{ + "shape":"String", + "documentation":"

    The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem event.

    " + } + }, + "documentation":"

    Information about the user or resource that created an OpsItem event.

    " + }, "OpsItemInvalidParameterException":{ "type":"structure", "members":{ @@ -10723,19 +11260,36 @@ "OpsItemSeverity":{ "type":"string", "max":64, - "min":1 + "min":1, + "pattern":"^(?!\\s*$).+" }, "OpsItemSource":{ "type":"string", - "max":64, - "min":1 + "max":128, + "min":1, + "pattern":"^(?!\\s*$).+" }, "OpsItemStatus":{ "type":"string", "enum":[ "Open", "InProgress", - "Resolved" + "Resolved", + "Pending", + "TimedOut", + "Cancelling", + "Cancelled", + "Failed", + "CompletedWithSuccess", + "CompletedWithFailure", + "Scheduled", + "RunbookInProgress", + "PendingChangeCalendarOverride", + "ChangeCalendarOverrideApproved", + "ChangeCalendarOverrideRejected", + "PendingApproval", + "Approved", + "Rejected" ] }, "OpsItemSummaries":{ @@ -10792,6 +11346,26 @@ "Severity":{ "shape":"OpsItemSeverity", "documentation":"

    A list of OpsItems by severity.

    " + }, + "OpsItemType":{ + "shape":"OpsItemType", + "documentation":"

    The type of OpsItem. Currently, the only valid values are /aws/changerequest and /aws/issue.

    " + }, + "ActualStartTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "ActualEndTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedStartTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedEndTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest.

    " } }, "documentation":"

    A count of OpsItems.

    " @@ -10799,14 +11373,16 @@ "OpsItemTitle":{ "type":"string", "max":1024, - "min":1 + "min":1, + "pattern":"^(?!\\s*$).+" }, + "OpsItemType":{"type":"string"}, "OpsMetadata":{ "type":"structure", "members":{ "ResourceId":{ "shape":"OpsMetadataResourceId", - "documentation":"

    The ID of the AppManager application.

    " + "documentation":"

    The ID of the Application Manager application.

    " }, "OpsMetadataArn":{ "shape":"OpsMetadataArn", @@ -10825,7 +11401,7 @@ "documentation":"

    The date the OpsMetadata objects was created.

    " } }, - "documentation":"

    Operational metadata for an application in AppManager.

    " + "documentation":"

    Operational metadata for an application in Application Manager.

    " }, "OpsMetadataAlreadyExistsException":{ "type":"structure", @@ -10895,7 +11471,7 @@ "members":{ "message":{"shape":"String"} }, - "documentation":"

    The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to an application in AppManager.

    ", + "documentation":"

    The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to an application in Application Manager.

    ", "exception":true }, "OpsMetadataLimitExceededException":{ @@ -10903,7 +11479,7 @@ "members":{ "message":{"shape":"String"} }, - "documentation":"

    Your account reached the maximum number of OpsMetadata objects allowed by AppManager. The maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.

    ", + "documentation":"

    Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.

    ", "exception":true }, "OpsMetadataList":{ @@ -12270,7 +12846,7 @@ }, "Targets":{ "shape":"Targets", - "documentation":"

    The targets (either instances or maintenance window targets).

    Specify instances using the following format:

    Key=InstanceIds,Values=<instance-id-1>,<instance-id-2>

    Specify maintenance window targets using the following format:

    Key=WindowTargetIds;,Values=<window-target-id-1>,<window-target-id-2>

    " + "documentation":"

    The targets (either instances or maintenance window targets).

    Specify instances using the following format:

    Key=InstanceIds,Values=<instance-id-1>,<instance-id-2>

    Specify maintenance window targets using the following format:

    Key=WindowTargetIds,Values=<window-target-id-1>,<window-target-id-2>

    " }, "TaskArn":{ "shape":"MaintenanceWindowTaskArn", @@ -12839,6 +13415,90 @@ } } }, + "ReviewInformation":{ + "type":"structure", + "members":{ + "ReviewedTime":{ + "shape":"DateTime", + "documentation":"

    The time that the reviewer took action on the document review request.

    " + }, + "Status":{ + "shape":"ReviewStatus", + "documentation":"

    The current status of the document review request.

    " + }, + "Reviewer":{ + "shape":"Reviewer", + "documentation":"

    The reviewer assigned to take action on the document review request.

    " + } + }, + "documentation":"

    Information about the result of a document review request.

    " + }, + "ReviewInformationList":{ + "type":"list", + "member":{"shape":"ReviewInformation"}, + "min":1 + }, + "ReviewStatus":{ + "type":"string", + "enum":[ + "APPROVED", + "NOT_REVIEWED", + "PENDING", + "REJECTED" + ] + }, + "Reviewer":{ + "type":"string", + "max":50, + "pattern":"^[a-zA-Z0-9_\\-.]{1,128}$" + }, + "Runbook":{ + "type":"structure", + "required":["DocumentName"], + "members":{ + "DocumentName":{ + "shape":"DocumentARN", + "documentation":"

    The name of the Automation runbook (Automation document) used in a runbook workflow.

    " + }, + "DocumentVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of the Automation runbook (Automation document) used in a runbook workflow.

    ", + "box":true + }, + "Parameters":{ + "shape":"AutomationParameterMap", + "documentation":"

    The key-value map of execution parameters, which were supplied when calling StartChangeRequestExecution.

    " + }, + "TargetParameterName":{ + "shape":"AutomationParameterKey", + "documentation":"

    The name of the parameter used as the target resource for the rate-controlled runbook workflow. Required if you specify Targets.

    " + }, + "Targets":{ + "shape":"Targets", + "documentation":"

    A key-value mapping to target resources that the Runbook operation performs tasks on. Required if you specify TargetParameterName.

    " + }, + "MaxConcurrency":{ + "shape":"MaxConcurrency", + "documentation":"

    The MaxConcurrency value specified by the user when the operation started, indicating the maximum number of resources that the runbook operation can run on at the same time.

    " + }, + "MaxErrors":{ + "shape":"MaxErrors", + "documentation":"

    The MaxErrors value specified by the user when the execution started, indicating the maximum number of errors that can occur during the operation before the updates are stopped or rolled back.

    " + }, + "TargetLocations":{ + "shape":"TargetLocations", + "documentation":"

    Information about the AWS Regions and accounts targeted by the current Runbook operation.

    ", + "box":true + } + }, + "documentation":"

    Information about an Automation runbook (Automation document) used in a runbook workflow in Change Manager.

    The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

    " + }, + "Runbooks":{ + "type":"list", + "member":{"shape":"Runbook"}, + "max":1, + "min":1 + }, "S3BucketName":{ "type":"string", "max":63, @@ -13380,6 +14040,57 @@ } } }, + "StartChangeRequestExecutionRequest":{ + "type":"structure", + "required":[ + "DocumentName", + "Runbooks" + ], + "members":{ + "ScheduledTime":{ + "shape":"DateTime", + "documentation":"

    The date and time specified in the change request to run the Automation runbooks.

    The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

    " + }, + "DocumentName":{ + "shape":"DocumentARN", + "documentation":"

    The name of the change template document to run during the runbook workflow.

    " + }, + "DocumentVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of the change template document to run during the runbook workflow.

    ", + "box":true + }, + "Parameters":{ + "shape":"AutomationParameterMap", + "documentation":"

    A key-value map of parameters that match the declared parameters in the change template document.

    " + }, + "ChangeRequestName":{ + "shape":"ChangeRequestName", + "documentation":"

    The name of the change request associated with the runbook workflow to be run.

    " + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.

    " + }, + "Runbooks":{ + "shape":"Runbooks", + "documentation":"

    Information about the Automation runbooks (Automation documents) that are run during the runbook workflow.

    The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target AWS Region. In this case, you could specify the following key-value pairs:

    • Key=Environment,Value=Production

    • Key=Region,Value=us-east-2

    " + } + } + }, + "StartChangeRequestExecutionResult":{ + "type":"structure", + "members":{ + "AutomationExecutionId":{ + "shape":"AutomationExecutionId", + "documentation":"

    The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)

    " + } + } + }, "StartSessionRequest":{ "type":"structure", "required":["Target"], @@ -13709,17 +14420,17 @@ }, "TargetLocationMaxConcurrency":{ "shape":"MaxConcurrency", - "documentation":"

    The maximum number of AWS accounts and AWS regions allowed to run the Automation concurrently

    ", + "documentation":"

    The maximum number of AWS accounts and AWS regions allowed to run the Automation concurrently.

    ", "box":true }, "TargetLocationMaxErrors":{ "shape":"MaxErrors", - "documentation":"

    The maximum number of errors allowed before the system stops queueing additional Automation executions for the currently running Automation.

    ", + "documentation":"

    The maximum number of errors allowed before the system stops queueing additional Automation executions for the currently running Automation.

    ", "box":true }, "ExecutionRoleName":{ "shape":"ExecutionRoleName", - "documentation":"

    The Automation execution role used by the currently running Automation.

    ", + "documentation":"

    The Automation execution role used by the currently running Automation. If not specified, the default value is AWS-SystemsManager-AutomationExecutionRole.

    ", "box":true } }, @@ -13967,6 +14678,10 @@ "ApplyOnlyAtCronInterval":{ "shape":"ApplyOnlyAtCronInterval", "documentation":"

    By default, when you update an association, the system runs it immediately after it is updated and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you update it. This parameter is not supported for rate expressions.

    Also, if you specified this option when you created the association, you can reset it. To do so, specify the no-apply-only-at-cron-interval parameter when you update the association from the command line. This parameter forces the association to run immediately after updating it and according to the interval specified.

    " + }, + "TargetLocations":{ + "shape":"TargetLocations", + "documentation":"

    A location is a combination of AWS Regions and AWS accounts where you want to run the association. Use this action to update an association in multiple Regions and multiple accounts.

    " } } }, @@ -14036,6 +14751,32 @@ } } }, + "UpdateDocumentMetadataRequest":{ + "type":"structure", + "required":[ + "Name", + "DocumentReviews" + ], + "members":{ + "Name":{ + "shape":"DocumentName", + "documentation":"

    The name of the document for which a version is to be updated.

    " + }, + "DocumentVersion":{ + "shape":"DocumentVersion", + "documentation":"

    The version of a document to update.

    " + }, + "DocumentReviews":{ + "shape":"DocumentReviews", + "documentation":"

    The document review details to update.

    " + } + } + }, + "UpdateDocumentMetadataResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateDocumentRequest":{ "type":"structure", "required":[ @@ -14100,7 +14841,7 @@ }, "StartDate":{ "shape":"MaintenanceWindowStringDateTime", - "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " + "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " }, "EndDate":{ "shape":"MaintenanceWindowStringDateTime", @@ -14112,11 +14853,11 @@ }, "ScheduleTimezone":{ "shape":"MaintenanceWindowTimezone", - "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " + "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " }, "ScheduleOffset":{ "shape":"MaintenanceWindowOffset", - "documentation":"

    The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.

    For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.

    cron(0 30 23 ? * TUE#3 *)

    If the schedule offset is 2, the maintenance window won't run until two days later.

    ", + "documentation":"

    The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.

    For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.

    cron(30 23 ? * TUE#3 *)

    If the schedule offset is 2, the maintenance window won't run until two days later.

    ", "box":true }, "Duration":{ @@ -14175,7 +14916,7 @@ }, "ScheduleTimezone":{ "shape":"MaintenanceWindowTimezone", - "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " + "documentation":"

    The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

    " }, "ScheduleOffset":{ "shape":"MaintenanceWindowOffset", @@ -14460,6 +15201,22 @@ "Severity":{ "shape":"OpsItemSeverity", "documentation":"

    Specify a new severity for an OpsItem.

    " + }, + "ActualStartTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "ActualEndTime":{ + "shape":"DateTime", + "documentation":"

    The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedStartTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type /aws/changerequest.

    " + }, + "PlannedEndTime":{ + "shape":"DateTime", + "documentation":"

    The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type /aws/changerequest.

    " } } },