private static IDictionary <string, string> ConvertSubscribe(SubscribeRequest request) { IDictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary["Action"] = "Subscribe"; if (request.IsSetTopicArn()) { dictionary["TopicArn"] = request.TopicArn; } if (request.IsSetProtocol()) { dictionary["Protocol"] = request.Protocol; } if (request.IsSetEndpoint()) { dictionary["Endpoint"] = request.Endpoint; } return(dictionary); }