| 956 | // bearable - if not ideal. |
| 957 | |
| 958 | struct EndpointConfigKey { |
| 959 | explicit EndpointConfigKey(const Aws::S3::S3ClientConfiguration& config) |
| 960 | : region(config.region), |
| 961 | scheme(config.scheme), |
| 962 | endpoint_override(config.endpointOverride), |
| 963 | use_virtual_addressing(config.useVirtualAddressing) {} |
| 964 | |
| 965 | Aws::String region; |
| 966 | Aws::Http::Scheme scheme; |
| 967 | Aws::String endpoint_override; |
| 968 | bool use_virtual_addressing; |
| 969 | |
| 970 | bool operator==(const EndpointConfigKey& other) const noexcept { |
| 971 | return region == other.region && scheme == other.scheme && |
| 972 | endpoint_override == other.endpoint_override && |
| 973 | use_virtual_addressing == other.use_virtual_addressing; |
| 974 | } |
| 975 | }; |
| 976 | |
| 977 | } // namespace |
| 978 | } // namespace arrow::fs |