Class RedisCreateParameters


  • public final class RedisCreateParameters
    extends Object
    Parameters supplied to the Create Redis operation.
    • Constructor Detail

      • RedisCreateParameters

        public RedisCreateParameters()
    • Method Detail

      • zones

        public List<String> zones()
        Get the zones property: A list of availability zones denoting where the resource needs to come from.
        Returns:
        the zones value.
      • withZones

        public RedisCreateParameters withZones​(List<String> zones)
        Set the zones property: A list of availability zones denoting where the resource needs to come from.
        Parameters:
        zones - the zones value to set.
        Returns:
        the RedisCreateParameters object itself.
      • location

        public String location()
        Get the location property: The geo-location where the resource lives.
        Returns:
        the location value.
      • withLocation

        public RedisCreateParameters withLocation​(String location)
        Set the location property: The geo-location where the resource lives.
        Parameters:
        location - the location value to set.
        Returns:
        the RedisCreateParameters object itself.
      • tags

        public Map<String,​String> tags()
        Get the tags property: Resource tags.
        Returns:
        the tags value.
      • withTags

        public RedisCreateParameters withTags​(Map<String,​String> tags)
        Set the tags property: Resource tags.
        Parameters:
        tags - the tags value to set.
        Returns:
        the RedisCreateParameters object itself.
      • identity

        public ManagedServiceIdentity identity()
        Get the identity property: The identity of the resource.
        Returns:
        the identity value.
      • withIdentity

        public RedisCreateParameters withIdentity​(ManagedServiceIdentity identity)
        Set the identity property: The identity of the resource.
        Parameters:
        identity - the identity value to set.
        Returns:
        the RedisCreateParameters object itself.
      • sku

        public Sku sku()
        Get the sku property: The SKU of the Redis cache to deploy.
        Returns:
        the sku value.
      • withSku

        public RedisCreateParameters withSku​(Sku sku)
        Set the sku property: The SKU of the Redis cache to deploy.
        Parameters:
        sku - the sku value to set.
        Returns:
        the RedisCreateParameters object itself.
      • subnetId

        public String subnetId()
        Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
        Returns:
        the subnetId value.
      • withSubnetId

        public RedisCreateParameters withSubnetId​(String subnetId)
        Set the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.
        Parameters:
        subnetId - the subnetId value to set.
        Returns:
        the RedisCreateParameters object itself.
      • staticIp

        public String staticIp()
        Get the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
        Returns:
        the staticIp value.
      • withStaticIp

        public RedisCreateParameters withStaticIp​(String staticIp)
        Set the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
        Parameters:
        staticIp - the staticIp value to set.
        Returns:
        the RedisCreateParameters object itself.
      • redisConfiguration

        public RedisConfiguration redisConfiguration()
        Get the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
        Returns:
        the redisConfiguration value.
      • withRedisConfiguration

        public RedisCreateParameters withRedisConfiguration​(RedisConfiguration redisConfiguration)
        Set the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
        Parameters:
        redisConfiguration - the redisConfiguration value to set.
        Returns:
        the RedisCreateParameters object itself.
      • redisVersion

        public String redisVersion()
        Get the redisVersion property: Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6).
        Returns:
        the redisVersion value.
      • withRedisVersion

        public RedisCreateParameters withRedisVersion​(String redisVersion)
        Set the redisVersion property: Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6).
        Parameters:
        redisVersion - the redisVersion value to set.
        Returns:
        the RedisCreateParameters object itself.
      • enableNonSslPort

        public Boolean enableNonSslPort()
        Get the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
        Returns:
        the enableNonSslPort value.
      • withEnableNonSslPort

        public RedisCreateParameters withEnableNonSslPort​(Boolean enableNonSslPort)
        Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
        Parameters:
        enableNonSslPort - the enableNonSslPort value to set.
        Returns:
        the RedisCreateParameters object itself.
      • replicasPerMaster

        public Integer replicasPerMaster()
        Get the replicasPerMaster property: The number of replicas to be created per primary.
        Returns:
        the replicasPerMaster value.
      • withReplicasPerMaster

        public RedisCreateParameters withReplicasPerMaster​(Integer replicasPerMaster)
        Set the replicasPerMaster property: The number of replicas to be created per primary.
        Parameters:
        replicasPerMaster - the replicasPerMaster value to set.
        Returns:
        the RedisCreateParameters object itself.
      • replicasPerPrimary

        public Integer replicasPerPrimary()
        Get the replicasPerPrimary property: The number of replicas to be created per primary.
        Returns:
        the replicasPerPrimary value.
      • withReplicasPerPrimary

        public RedisCreateParameters withReplicasPerPrimary​(Integer replicasPerPrimary)
        Set the replicasPerPrimary property: The number of replicas to be created per primary.
        Parameters:
        replicasPerPrimary - the replicasPerPrimary value to set.
        Returns:
        the RedisCreateParameters object itself.
      • tenantSettings

        public Map<String,​String> tenantSettings()
        Get the tenantSettings property: A dictionary of tenant settings.
        Returns:
        the tenantSettings value.
      • withTenantSettings

        public RedisCreateParameters withTenantSettings​(Map<String,​String> tenantSettings)
        Set the tenantSettings property: A dictionary of tenant settings.
        Parameters:
        tenantSettings - the tenantSettings value to set.
        Returns:
        the RedisCreateParameters object itself.
      • shardCount

        public Integer shardCount()
        Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.
        Returns:
        the shardCount value.
      • withShardCount

        public RedisCreateParameters withShardCount​(Integer shardCount)
        Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
        Parameters:
        shardCount - the shardCount value to set.
        Returns:
        the RedisCreateParameters object itself.
      • minimumTlsVersion

        public TlsVersion minimumTlsVersion()
        Get the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
        Returns:
        the minimumTlsVersion value.
      • withMinimumTlsVersion

        public RedisCreateParameters withMinimumTlsVersion​(TlsVersion minimumTlsVersion)
        Set the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
        Parameters:
        minimumTlsVersion - the minimumTlsVersion value to set.
        Returns:
        the RedisCreateParameters object itself.
      • publicNetworkAccess

        public PublicNetworkAccess publicNetworkAccess()
        Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
        Returns:
        the publicNetworkAccess value.
      • withPublicNetworkAccess

        public RedisCreateParameters withPublicNetworkAccess​(PublicNetworkAccess publicNetworkAccess)
        Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
        Parameters:
        publicNetworkAccess - the publicNetworkAccess value to set.
        Returns:
        the RedisCreateParameters object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.