AWS IoT C++ SDK
|
Public Member Functions | |
DiscoveryResponse (const DiscoveryResponse &)=delete | |
DiscoveryResponse (DiscoveryResponse &&)=delete | |
DiscoveryResponse & | operator= (const DiscoveryResponse &) &=delete |
DiscoveryResponse & | operator= (DiscoveryResponse &&) &=delete |
DiscoveryResponse (util::JsonDocument response_document) | |
Constructor. More... | |
util::JsonDocument | GetResponseDocument () |
Return the full Discovery Response Json. More... | |
void | SetResponseDocument (util::JsonDocument response_document) |
Set the Discovery Response Json Document in the Discovery Response Object. More... | |
ResponseCode | GetParsedResponse (util::Vector< ConnectivityInfo > &connectivity_info_list, util::Map< util::String, util::Vector< util::String > > &root_ca_map) |
Get the parsed discovery response. More... | |
ResponseCode | WriteToPath (util::String output_file_absolute_path) |
Write the complete Discovery Response Json out to a file. More... | |
Protected Attributes | |
util::JsonDocument | response_document_ |
Json document that contains the complete Discovery Response. | |
awsiotsdk::DiscoveryResponse::DiscoveryResponse | ( | util::JsonDocument | response_document | ) |
response_document | - Json document containing full Discovery Response |
ResponseCode awsiotsdk::DiscoveryResponse::GetParsedResponse | ( | util::Vector< ConnectivityInfo > & | connectivity_info_list, |
util::Map< util::String, util::Vector< util::String > > & | root_ca_map | ||
) |
Get the parse vector of all the connectivity information present in the Discovery Response Json along with a map of all the root CAs that correspond the the groups present in the Discovery Response. Returns SUCCESS if parsed successfully or DISCOVER_RESPONSE_UNEXPECTED_JSON_STRUCTURE_ERROR if the Json structure cannot be parsed
connectivity_info_list | - vector in which the connectivity information is stored |
root_ca_map | - mapping between groups and filenames of the root CAs |
util::JsonDocument awsiotsdk::DiscoveryResponse::GetResponseDocument | ( | ) |
void awsiotsdk::DiscoveryResponse::SetResponseDocument | ( | util::JsonDocument | response_document | ) |
response_document |
ResponseCode awsiotsdk::DiscoveryResponse::WriteToPath | ( | util::String | output_file_absolute_path | ) |
Function to write out the whole Discovery Response Json out to a file that can be consumed by other applications directly. Returns SUCCESS if it was able to write to the file correctly. Otherwise throws FILE_OPEN_ERROR if the file cannot be opened to write to it or FILE_NAME_INVALID if the file name passed in is invalid.
output_file_absolute_path | - absolute file path to which the Json will be written out to |