Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def set_protocol(self, protocol):
"""
Sets the protocol of the connection to use. Either 'http' or 'https'.
Args:
protocol (str): The protocol to use.
"""
if protocol is None:
j_protocol = None
else:
j_protocol = java_pkg.com.amazonaws.Protocol.valueOf(protocol.upper())
self._java_ref.setProtocol(j_protocol)
def set_region(self, region):
"""
Sets the AWS region of the DynamoDB data store. For example `us-east-1`
(specify either endpoint or region not both).
Args:
region (str): The AWS region to use.
"""
if region is None:
j_region = None
else:
j_region = java_pkg.com.amazonaws.regions.Regions.fromName(region)
self._java_ref.setRegion(j_region)
def __init__(self):
j_filter_factory = java_pkg.org.geotools.filter.FilterFactoryImpl()
super().__init__(j_filter_factory)
def _j_match_action(match_action):
return java_pkg.org.opengis.filter.MultiValuedFilter.MatchAction.valueOf(match_action.upper())