software.amazon.awssdk.aws.greengrass.SendConfigurationValidityReportOperationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-iot-device-sdk Show documentation
Show all versions of aws-iot-device-sdk Show documentation
Java bindings for the AWS IoT Core Service
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*
* This file is generated.
*/
package software.amazon.awssdk.aws.greengrass;
import java.lang.Class;
import java.lang.Override;
import java.lang.String;
import java.util.Optional;
import software.amazon.awssdk.aws.greengrass.model.SendConfigurationValidityReportRequest;
import software.amazon.awssdk.aws.greengrass.model.SendConfigurationValidityReportResponse;
import software.amazon.awssdk.eventstreamrpc.EventStreamRPCServiceModel;
import software.amazon.awssdk.eventstreamrpc.OperationModelContext;
import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage;
/**
* This operation should be used in response to event received as part of SubscribeToValidateConfigurationUpdates
* subscription. It is not necessary to send the report if the configuration is valid (GGC will wait for timeout
* period and proceed). Sending the report with invalid config status will prevent GGC from applying the updates
*/
public class SendConfigurationValidityReportOperationContext implements OperationModelContext {
@Override
public EventStreamRPCServiceModel getServiceModel() {
return GreengrassCoreIPCServiceModel.getInstance();
}
@Override
public String getOperationName() {
return GreengrassCoreIPCServiceModel.SEND_CONFIGURATION_VALIDITY_REPORT;
}
@Override
public Class getRequestTypeClass() {
return SendConfigurationValidityReportRequest.class;
}
@Override
public Class getResponseTypeClass() {
return SendConfigurationValidityReportResponse.class;
}
@Override
public String getRequestApplicationModelType() {
return SendConfigurationValidityReportRequest.APPLICATION_MODEL_TYPE;
}
@Override
public String getResponseApplicationModelType() {
return SendConfigurationValidityReportResponse.APPLICATION_MODEL_TYPE;
}
@Override
public Optional> getStreamingRequestTypeClass() {
return Optional.empty();
}
@Override
public Optional> getStreamingResponseTypeClass() {
return Optional.empty();
}
public Optional getStreamingRequestApplicationModelType() {
return Optional.empty();
}
@Override
public Optional getStreamingResponseApplicationModelType() {
return Optional.empty();
}
}