Class PolicyDefinition


  • @Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
               date="2024-03-13T13:08:49.412-07:00")
    public class PolicyDefinition
    extends Object
    Policy creation request definition.
    • Constructor Detail

      • PolicyDefinition

        public PolicyDefinition()
    • Method Detail

      • getName

        public String getName()
        Getter for name. Name of the new policy.
      • setName

        public void setName​(String name)
        Setter for name. Name of the new policy.
      • getType

        public String getType()
        Getter for type. Policy replication type.
      • setType

        public void setType​(String type)
        Setter for type. Policy replication type.
      • getSourceDataset

        public SourceDataset getSourceDataset()
        Getter for sourceDataset. Source dataset to replicate.
      • setSourceDataset

        public void setSourceDataset​(SourceDataset sourceDataset)
        Setter for sourceDataset. Source dataset to replicate.
      • getFrequencyInSec

        public Long getFrequencyInSec()
        Getter for frequencyInSec. Policy's frequency in seconds.
      • setFrequencyInSec

        public void setFrequencyInSec​(Long frequencyInSec)
        Setter for frequencyInSec. Policy's frequency in seconds.
      • getTargetDataset

        public String getTargetDataset()
        Getter for targetDataset. Dataset to replicate to.
      • setTargetDataset

        public void setTargetDataset​(String targetDataset)
        Setter for targetDataset. Dataset to replicate to.
      • getCloudCredential

        public String getCloudCredential()
        Getter for cloudCredential. Cloud credentials to use if replicating to Cloud.
      • setCloudCredential

        public void setCloudCredential​(String cloudCredential)
        Setter for cloudCredential. Cloud credentials to use if replicating to Cloud.
      • getSourceCluster

        public String getSourceCluster()
        Getter for sourceCluster. Name of source cluster in the format: \"dataCenterName$cluster name\", for example \"DC-Europe$My Source 42.
      • setSourceCluster

        public void setSourceCluster​(String sourceCluster)
        Setter for sourceCluster. Name of source cluster in the format: \"dataCenterName$cluster name\", for example \"DC-Europe$My Source 42.
      • getTargetCluster

        public String getTargetCluster()
        Getter for targetCluster. Name of destination cluster in the format: \"dataCenterName$cluster name\", for example \"DC-US$My Destination 17\".
      • setTargetCluster

        public void setTargetCluster​(String targetCluster)
        Setter for targetCluster. Name of destination cluster in the format: \"dataCenterName$cluster name\", for example \"DC-US$My Destination 17\".
      • getStartTime

        public ZonedDateTime getStartTime()
        Getter for startTime. Start time.
      • setStartTime

        public void setStartTime​(ZonedDateTime startTime)
        Setter for startTime. Start time.
      • getEndTime

        public ZonedDateTime getEndTime()
        Getter for endTime. End time.
      • setEndTime

        public void setEndTime​(ZonedDateTime endTime)
        Setter for endTime. End time.
      • getDistcpMaxMaps

        public Long getDistcpMaxMaps()
        Getter for distcpMaxMaps. Maximum Map jobs to use for replication.
      • setDistcpMaxMaps

        public void setDistcpMaxMaps​(Long distcpMaxMaps)
        Setter for distcpMaxMaps. Maximum Map jobs to use for replication.
      • getDistcpMapBandwidth

        public Long getDistcpMapBandwidth()
        Getter for distcpMapBandwidth. Maximum bandwidth to use for replication.
      • setDistcpMapBandwidth

        public void setDistcpMapBandwidth​(Long distcpMapBandwidth)
        Setter for distcpMapBandwidth. Maximum bandwidth to use for replication.
      • getQueueName

        public String getQueueName()
        Getter for queueName. YARN queue name if not default.
      • setQueueName

        public void setQueueName​(String queueName)
        Setter for queueName. YARN queue name if not default.
      • getTdeSameKey

        public Boolean getTdeSameKey()
        Getter for tdeSameKey. TDE same key.
      • setTdeSameKey

        public void setTdeSameKey​(Boolean tdeSameKey)
        Setter for tdeSameKey. TDE same key.
      • getDescription

        public String getDescription()
        Getter for description. Description of the policy.
      • setDescription

        public void setDescription​(String description)
        Setter for description. Description of the policy.
      • getEnableSnapshotBasedReplication

        public Boolean getEnableSnapshotBasedReplication()
        Getter for enableSnapshotBasedReplication. Enable snapshot based replication.
      • setEnableSnapshotBasedReplication

        public void setEnableSnapshotBasedReplication​(Boolean enableSnapshotBasedReplication)
        Setter for enableSnapshotBasedReplication. Enable snapshot based replication.
      • getCloudEncryptionAlgorithm

        public String getCloudEncryptionAlgorithm()
        Getter for cloudEncryptionAlgorithm. The type of cloud encryption algorithm. Can be used only for HDP/Ambari managed clusters. Supported values are AES256,SSE-KMS.
      • setCloudEncryptionAlgorithm

        public void setCloudEncryptionAlgorithm​(String cloudEncryptionAlgorithm)
        Setter for cloudEncryptionAlgorithm. The type of cloud encryption algorithm. Can be used only for HDP/Ambari managed clusters. Supported values are AES256,SSE-KMS.
      • getCloudEncryptionKey

        public String getCloudEncryptionKey()
        Getter for cloudEncryptionKey. Cloud encryption key.
      • setCloudEncryptionKey

        public void setCloudEncryptionKey​(String cloudEncryptionKey)
        Setter for cloudEncryptionKey. Cloud encryption key.
      • getPlugins

        public List<String> getPlugins()
        Getter for plugins. Plugins.
      • setPlugins

        public void setPlugins​(List<String> plugins)
        Setter for plugins. Plugins.
      • getHiveExternalTableBaseDirectory

        public String getHiveExternalTableBaseDirectory()
        Getter for hiveExternalTableBaseDirectory. Hive external table base directory.
      • setHiveExternalTableBaseDirectory

        public void setHiveExternalTableBaseDirectory​(String hiveExternalTableBaseDirectory)
        Setter for hiveExternalTableBaseDirectory. Hive external table base directory.
      • getCmPolicySubmitUser

        public CmPolicySubmitUser getCmPolicySubmitUser()
        Getter for cmPolicySubmitUser. CM policy submit user.
      • setCmPolicySubmitUser

        public void setCmPolicySubmitUser​(CmPolicySubmitUser cmPolicySubmitUser)
        Setter for cmPolicySubmitUser. CM policy submit user.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object