Class DnsClient
- java.lang.Object
- 
- com.oracle.bmc.http.internal.BaseSyncClient
- 
- com.oracle.bmc.dns.DnsClient
 
 
- 
- All Implemented Interfaces:
- Dns,- AutoCloseable
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20180115") public class DnsClient extends BaseSyncClient implements Dns
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDnsClient.BuilderBuilder class for this client.
 - 
Field SummaryFields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.protected ExecutorServiceexecutorServiceOptional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for Dns.
 - 
Constructor SummaryConstructors Constructor Description DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.DnsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.DnsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.DnsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DnsClient.Builderbuilder()Create a builder for this client.ChangeResolverCompartmentResponsechangeResolverCompartment(ChangeResolverCompartmentRequest request)Moves a resolver into a different compartment along with its protected default view and any endpoints.ChangeSteeringPolicyCompartmentResponsechangeSteeringPolicyCompartment(ChangeSteeringPolicyCompartmentRequest request)Moves a steering policy into a different compartment.ChangeTsigKeyCompartmentResponsechangeTsigKeyCompartment(ChangeTsigKeyCompartmentRequest request)Moves a TSIG key into a different compartment.ChangeViewCompartmentResponsechangeViewCompartment(ChangeViewCompartmentRequest request)Moves a view into a different compartment.ChangeZoneCompartmentResponsechangeZoneCompartment(ChangeZoneCompartmentRequest request)Moves a zone into a different compartment.voidclose()CreateResolverEndpointResponsecreateResolverEndpoint(CreateResolverEndpointRequest request)Creates a new resolver endpoint in the same compartment as the resolver.CreateSteeringPolicyResponsecreateSteeringPolicy(CreateSteeringPolicyRequest request)Creates a new steering policy in the specified compartment.CreateSteeringPolicyAttachmentResponsecreateSteeringPolicyAttachment(CreateSteeringPolicyAttachmentRequest request)Creates a new attachment between a steering policy and a domain, giving the policy permission to answer queries for the specified domain.CreateTsigKeyResponsecreateTsigKey(CreateTsigKeyRequest request)Creates a new TSIG key in the specified compartment.CreateViewResponsecreateView(CreateViewRequest request)Creates a new view in the specified compartment.CreateZoneResponsecreateZone(CreateZoneRequest request)Creates a new zone in the specified compartment.CreateZoneFromZoneFileResponsecreateZoneFromZoneFile(CreateZoneFromZoneFileRequest request)Creates a new zone from a zone file in the specified compartment.DeleteDomainRecordsResponsedeleteDomainRecords(DeleteDomainRecordsRequest request)Deletes all records at the specified zone and domain.DeleteResolverEndpointResponsedeleteResolverEndpoint(DeleteResolverEndpointRequest request)Deletes the specified resolver endpoint.DeleteRRSetResponsedeleteRRSet(DeleteRRSetRequest request)Deletes all records in the specified RRSet.DeleteSteeringPolicyResponsedeleteSteeringPolicy(DeleteSteeringPolicyRequest request)Deletes the specified steering policy.DeleteSteeringPolicyAttachmentResponsedeleteSteeringPolicyAttachment(DeleteSteeringPolicyAttachmentRequest request)Deletes the specified steering policy attachment.DeleteTsigKeyResponsedeleteTsigKey(DeleteTsigKeyRequest request)Deletes the specified TSIG key.DeleteViewResponsedeleteView(DeleteViewRequest request)Deletes the specified view.DeleteZoneResponsedeleteZone(DeleteZoneRequest request)Deletes the specified zone and all its steering policy attachments.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()GetDomainRecordsResponsegetDomainRecords(GetDomainRecordsRequest request)Gets a list of all records at the specified zone and domain.StringgetEndpoint()Optional<String>getMinimumClientCommonLibraryVersionFromClient()DnsPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetResolverResponsegetResolver(GetResolverRequest request)Gets information about a specific resolver.GetResolverEndpointResponsegetResolverEndpoint(GetResolverEndpointRequest request)Gets information about a specific resolver endpoint.GetRRSetResponsegetRRSet(GetRRSetRequest request)Gets a list of all records in the specified RRSet.GetSteeringPolicyResponsegetSteeringPolicy(GetSteeringPolicyRequest request)Gets information about the specified steering policy.GetSteeringPolicyAttachmentResponsegetSteeringPolicyAttachment(GetSteeringPolicyAttachmentRequest request)Gets information about the specified steering policy attachment.GetTsigKeyResponsegetTsigKey(GetTsigKeyRequest request)Gets information about the specified TSIG key.GetViewResponsegetView(GetViewRequest request)Gets information about a specific view.DnsWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetZoneResponsegetZone(GetZoneRequest request)Gets information about the specified zone, including its creation date, zone type, and serial.GetZoneContentResponsegetZoneContent(GetZoneContentRequest request)Gets the requested zone’s zone file.GetZoneRecordsResponsegetZoneRecords(GetZoneRecordsRequest request)Gets all records in the specified zone.ListResolverEndpointsResponselistResolverEndpoints(ListResolverEndpointsRequest request)Gets a list of all endpoints within a resolver.ListResolversResponselistResolvers(ListResolversRequest request)Gets a list of all resolvers within a compartment.ListSteeringPoliciesResponselistSteeringPolicies(ListSteeringPoliciesRequest request)Gets a list of all steering policies in the specified compartment.ListSteeringPolicyAttachmentsResponselistSteeringPolicyAttachments(ListSteeringPolicyAttachmentsRequest request)Lists the steering policy attachments in the specified compartment.ListTsigKeysResponselistTsigKeys(ListTsigKeysRequest request)Gets a list of all TSIG keys in the specified compartment.ListViewsResponselistViews(ListViewsRequest request)Gets a list of all views within a compartment.ListZonesResponselistZones(ListZonesRequest request)Gets a list of all zones in the specified compartment.ListZoneTransferServersResponselistZoneTransferServers(ListZoneTransferServersRequest request)Gets a list of IP addresses of OCI nameservers for inbound and outbound transfer of zones in the specified compartment (which must be the root compartment of a tenancy) that transfer zone data with external master or downstream nameservers.DnsWaitersnewWaiters(WorkRequest workRequestClient)Creates a new DnsWaiters for resources for this service.PatchDomainRecordsResponsepatchDomainRecords(PatchDomainRecordsRequest request)Updates records in the specified zone at a domain.PatchRRSetResponsepatchRRSet(PatchRRSetRequest request)Updates records in the specified RRSet.PatchZoneRecordsResponsepatchZoneRecords(PatchZoneRecordsRequest request)Updates a collection of records in the specified zone.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.PromoteZoneDnssecKeyVersionResponsepromoteZoneDnssecKeyVersion(PromoteZoneDnssecKeyVersionRequest request)Promotes a specifiedDnssecKeyVersionon the zone.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).StageZoneDnssecKeyVersionResponsestageZoneDnssecKeyVersion(StageZoneDnssecKeyVersionRequest request)Stages a newDnssecKeyVersionon the zone.voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateDomainRecordsResponseupdateDomainRecords(UpdateDomainRecordsRequest request)Replaces records in the specified zone at a domain with the records specified in the request body.UpdateResolverResponseupdateResolver(UpdateResolverRequest request)Updates the specified resolver with your new information.UpdateResolverEndpointResponseupdateResolverEndpoint(UpdateResolverEndpointRequest request)Updates the specified resolver endpoint with your new information.UpdateRRSetResponseupdateRRSet(UpdateRRSetRequest request)Replaces records in the specified RRSet.UpdateSteeringPolicyResponseupdateSteeringPolicy(UpdateSteeringPolicyRequest request)Updates the configuration of the specified steering policy.UpdateSteeringPolicyAttachmentResponseupdateSteeringPolicyAttachment(UpdateSteeringPolicyAttachmentRequest request)Updates the specified steering policy attachment with your new information.UpdateTsigKeyResponseupdateTsigKey(UpdateTsigKeyRequest request)Updates the specified TSIG key.UpdateViewResponseupdateView(UpdateViewRequest request)Updates the specified view with your new information.UpdateZoneResponseupdateZone(UpdateZoneRequest request)Updates the zone with the specified information.UpdateZoneRecordsResponseupdateZoneRecords(UpdateZoneRecordsRequest request)Replaces records in the specified zone with the records specified in the request body.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.- 
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClientclientCall
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.AutoCloseableclose
 - 
Methods inherited from interface com.oracle.bmc.dns.DnsgetEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
 
- 
 
- 
- 
- 
Field Detail- 
SERVICEpublic static final Service SERVICE Service instance for Dns.
 - 
executorServiceprotected final ExecutorService executorService 
 - 
clientCommonLibraryVersionpublic final String clientCommonLibraryVersion Compatible SDK version, provided by the codegen.
 
- 
 - 
Constructor Detail- 
DnsClient@Deprecated public DnsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
 
 - 
DnsClient@Deprecated public DnsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
 
 - 
DnsClient@Deprecated public DnsClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
 
 - 
DnsClient@Deprecated public DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
 
 - 
DnsClient@Deprecated public DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
 
 - 
DnsClient@Deprecated public DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
 
 - 
DnsClient@Deprecated public DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
 
 - 
DnsClient@Deprecated public DnsClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- DnsClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
- executorService-- DnsClient.Builder.executorService
 
 
- 
 - 
Method Detail- 
builderpublic static DnsClient.Builder builder() Create a builder for this client.- Returns:
- builder
 
 - 
setRegionpublic void setRegion(Region region) Description copied from interface:DnsSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.
 - 
setRegionpublic void setRegion(String regionId) Description copied from interface:DnsSets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call setRegion.If no known Region could be determined, it will create an endpoint based on the default endpoint format ( Region.formatDefaultRegionEndpoint(Service, String)and then callsetEndpoint.
 - 
changeResolverCompartmentpublic ChangeResolverCompartmentResponse changeResolverCompartment(ChangeResolverCompartmentRequest request) Description copied from interface:DnsMoves a resolver into a different compartment along with its protected default view and any endpoints.Zones in the default view are not moved. VCN-dedicated resolvers are initially created in the same compartment as their corresponding VCN, but can then be moved to a different compartment. - Specified by:
- changeResolverCompartmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeSteeringPolicyCompartmentpublic ChangeSteeringPolicyCompartmentResponse changeSteeringPolicyCompartment(ChangeSteeringPolicyCompartmentRequest request) Description copied from interface:DnsMoves a steering policy into a different compartment.- Specified by:
- changeSteeringPolicyCompartmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeTsigKeyCompartmentpublic ChangeTsigKeyCompartmentResponse changeTsigKeyCompartment(ChangeTsigKeyCompartmentRequest request) Description copied from interface:DnsMoves a TSIG key into a different compartment.- Specified by:
- changeTsigKeyCompartmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeViewCompartmentpublic ChangeViewCompartmentResponse changeViewCompartment(ChangeViewCompartmentRequest request) Description copied from interface:DnsMoves a view into a different compartment.To change the compartment of a protected view, change the compartment of its corresponding resolver. - Specified by:
- changeViewCompartmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeZoneCompartmentpublic ChangeZoneCompartmentResponse changeZoneCompartment(ChangeZoneCompartmentRequest request) Description copied from interface:DnsMoves a zone into a different compartment.Protected zones cannot have their compartment changed. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. *Note:** All SteeringPolicyAttachment objects associated with this zone will also be moved into the provided compartment. - Specified by:
- changeZoneCompartmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createResolverEndpointpublic CreateResolverEndpointResponse createResolverEndpoint(CreateResolverEndpointRequest request) Description copied from interface:DnsCreates a new resolver endpoint in the same compartment as the resolver.- Specified by:
- createResolverEndpointin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createSteeringPolicypublic CreateSteeringPolicyResponse createSteeringPolicy(CreateSteeringPolicyRequest request) Description copied from interface:DnsCreates a new steering policy in the specified compartment.For more information on creating policies with templates, see Traffic Management API Guide. - Specified by:
- createSteeringPolicyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createSteeringPolicyAttachmentpublic CreateSteeringPolicyAttachmentResponse createSteeringPolicyAttachment(CreateSteeringPolicyAttachmentRequest request) Description copied from interface:DnsCreates a new attachment between a steering policy and a domain, giving the policy permission to answer queries for the specified domain.A steering policy must be attached to a domain for the policy to answer DNS queries for that domain. For the purposes of access control, the attachment is automatically placed into the same compartment as the domain's zone. - Specified by:
- createSteeringPolicyAttachmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createTsigKeypublic CreateTsigKeyResponse createTsigKey(CreateTsigKeyRequest request) Description copied from interface:DnsCreates a new TSIG key in the specified compartment.There is no opc-retry-tokenheader since TSIG key names must be globally unique.- Specified by:
- createTsigKeyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createViewpublic CreateViewResponse createView(CreateViewRequest request) Description copied from interface:DnsCreates a new view in the specified compartment.- Specified by:
- createViewin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createZonepublic CreateZoneResponse createZone(CreateZoneRequest request) Description copied from interface:DnsCreates a new zone in the specified compartment.Private zones must have a zone type of `PRIMARY`. Creating a private zone at or under `oraclevcn.com` within the default protected view of a VCN-dedicated resolver is not permitted. - Specified by:
- createZonein interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createZoneFromZoneFilepublic CreateZoneFromZoneFileResponse createZoneFromZoneFile(CreateZoneFromZoneFileRequest request) Description copied from interface:DnsCreates a new zone from a zone file in the specified compartment.Not supported for private zones. Note: This operation consumes a stream. If the stream supports InputStream.mark(int)andInputStream.reset(), when a retry is necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this operation is called}.Note this means that if the caller has used InputStream.mark(int)before, then the mark will not be the same anymore after this operation, and a subsequent call toInputStream.reset()by the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation was called.If the stream is a FileInputStream, and the stream'sFileChannelposition can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide support forInputStream.mark(int)andInputStream.reset(). Then the same procedure as above is followed. If the stream'sFileChannelposition cannot be changed (like for a named pipe), then the stream's contents will be buffered in memory, as described below.If the stream does not support InputStream.mark(int)andInputStream.reset(), then the stream is wrapped in aBufferedInputStream, which means the entire contents may be buffered in memory. Then the same procedure as above is followed.The contents of the stream, except when the stream is a FileInputStreamwhoseFileChannelposition can be changed, should be less than 2 GiB in size if retries are used. This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in retries and manage retries yourself.- Specified by:
- createZoneFromZoneFilein interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteDomainRecordspublic DeleteDomainRecordsResponse deleteDomainRecords(DeleteDomainRecordsRequest request) Description copied from interface:DnsDeletes all records at the specified zone and domain.When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- deleteDomainRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteRRSetpublic DeleteRRSetResponse deleteRRSet(DeleteRRSetRequest request) Description copied from interface:DnsDeletes all records in the specified RRSet.When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- deleteRRSetin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteResolverEndpointpublic DeleteResolverEndpointResponse deleteResolverEndpoint(DeleteResolverEndpointRequest request) Description copied from interface:DnsDeletes the specified resolver endpoint.Note that attempting to delete a resolver endpoint in the DELETED lifecycle state will result in a `404` response to be consistent with other operations of the API. Resolver endpoints may not be deleted if they are referenced by a resolver rule. - Specified by:
- deleteResolverEndpointin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteSteeringPolicypublic DeleteSteeringPolicyResponse deleteSteeringPolicy(DeleteSteeringPolicyRequest request) Description copied from interface:DnsDeletes the specified steering policy.A `204` response indicates that the delete has been successful. Deletion will fail if the policy is attached to any zones. To detach a policy from a zone, see `DeleteSteeringPolicyAttachment`. - Specified by:
- deleteSteeringPolicyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteSteeringPolicyAttachmentpublic DeleteSteeringPolicyAttachmentResponse deleteSteeringPolicyAttachment(DeleteSteeringPolicyAttachmentRequest request) Description copied from interface:DnsDeletes the specified steering policy attachment.A 204response indicates that the delete has been successful.- Specified by:
- deleteSteeringPolicyAttachmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteTsigKeypublic DeleteTsigKeyResponse deleteTsigKey(DeleteTsigKeyRequest request) Description copied from interface:DnsDeletes the specified TSIG key.- Specified by:
- deleteTsigKeyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteViewpublic DeleteViewResponse deleteView(DeleteViewRequest request) Description copied from interface:DnsDeletes the specified view.Note that attempting to delete a view in the DELETED lifecycleState will result in a `404` response to be consistent with other operations of the API. Views cannot be deleted if they are referenced by non-deleted zones or resolvers. Protected views cannot be deleted. - Specified by:
- deleteViewin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteZonepublic DeleteZoneResponse deleteZone(DeleteZoneRequest request) Description copied from interface:DnsDeletes the specified zone and all its steering policy attachments.A `204` response indicates that the zone has been successfully deleted. Protected zones cannot be deleted. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- deleteZonein interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getDomainRecordspublic GetDomainRecordsResponse getDomainRecords(GetDomainRecordsRequest request) Description copied from interface:DnsGets a list of all records at the specified zone and domain.The results are sorted by `rtype` in alphabetical order by default. You can optionally filter and/or sort the results using the listed parameters. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- getDomainRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getRRSetpublic GetRRSetResponse getRRSet(GetRRSetRequest request) Description copied from interface:DnsGets a list of all records in the specified RRSet.The results are sorted by `recordHash` by default. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. 
 - 
getResolverpublic GetResolverResponse getResolver(GetResolverRequest request) Description copied from interface:DnsGets information about a specific resolver.Note that attempting to get a resolver in the DELETED lifecycleState will result in a `404` response to be consistent with other operations of the API. - Specified by:
- getResolverin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getResolverEndpointpublic GetResolverEndpointResponse getResolverEndpoint(GetResolverEndpointRequest request) Description copied from interface:DnsGets information about a specific resolver endpoint.Note that attempting to get a resolver endpoint in the DELETED lifecycle state will result in a `404` response to be consistent with other operations of the API. - Specified by:
- getResolverEndpointin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getSteeringPolicypublic GetSteeringPolicyResponse getSteeringPolicy(GetSteeringPolicyRequest request) Description copied from interface:DnsGets information about the specified steering policy.- Specified by:
- getSteeringPolicyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getSteeringPolicyAttachmentpublic GetSteeringPolicyAttachmentResponse getSteeringPolicyAttachment(GetSteeringPolicyAttachmentRequest request) Description copied from interface:DnsGets information about the specified steering policy attachment.- Specified by:
- getSteeringPolicyAttachmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getTsigKeypublic GetTsigKeyResponse getTsigKey(GetTsigKeyRequest request) Description copied from interface:DnsGets information about the specified TSIG key.- Specified by:
- getTsigKeyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getViewpublic GetViewResponse getView(GetViewRequest request) Description copied from interface:DnsGets information about a specific view.Note that attempting to get a view in the DELETED lifecycleState will result in a `404` response to be consistent with other operations of the API. 
 - 
getZonepublic GetZoneResponse getZone(GetZoneRequest request) Description copied from interface:DnsGets information about the specified zone, including its creation date, zone type, and serial.When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. 
 - 
getZoneContentpublic GetZoneContentResponse getZoneContent(GetZoneContentRequest request) Description copied from interface:DnsGets the requested zone’s zone file.- Specified by:
- getZoneContentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getZoneRecordspublic GetZoneRecordsResponse getZoneRecords(GetZoneRecordsRequest request) Description copied from interface:DnsGets all records in the specified zone.The results are sorted by `domain` in alphabetical order by default. For more information about records, see [Resource Record (RR) TYPEs](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4). When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- getZoneRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listResolverEndpointspublic ListResolverEndpointsResponse listResolverEndpoints(ListResolverEndpointsRequest request) Description copied from interface:DnsGets a list of all endpoints within a resolver.The collection can be filtered by name or lifecycle state. It can be sorted on creation time or name both in ASC or DESC order. Note that when no lifecycleState query parameter is provided, the collection does not include resolver endpoints in the DELETED lifecycle state to be consistent with other operations of the API. - Specified by:
- listResolverEndpointsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listResolverspublic ListResolversResponse listResolvers(ListResolversRequest request) Description copied from interface:DnsGets a list of all resolvers within a compartment.The collection can be filtered by display name, id, or lifecycle state. It can be sorted on creation time or displayName both in ASC or DESC order. Note that when no lifecycleState query parameter is provided, the collection does not include resolvers in the DELETED lifecycleState to be consistent with other operations of the API. - Specified by:
- listResolversin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listSteeringPoliciespublic ListSteeringPoliciesResponse listSteeringPolicies(ListSteeringPoliciesRequest request) Description copied from interface:DnsGets a list of all steering policies in the specified compartment.- Specified by:
- listSteeringPoliciesin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listSteeringPolicyAttachmentspublic ListSteeringPolicyAttachmentsResponse listSteeringPolicyAttachments(ListSteeringPolicyAttachmentsRequest request) Description copied from interface:DnsLists the steering policy attachments in the specified compartment.- Specified by:
- listSteeringPolicyAttachmentsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listTsigKeyspublic ListTsigKeysResponse listTsigKeys(ListTsigKeysRequest request) Description copied from interface:DnsGets a list of all TSIG keys in the specified compartment.- Specified by:
- listTsigKeysin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listViewspublic ListViewsResponse listViews(ListViewsRequest request) Description copied from interface:DnsGets a list of all views within a compartment.The collection can be filtered by display name, id, or lifecycle state. It can be sorted on creation time or displayName both in ASC or DESC order. Note that when no lifecycleState query parameter is provided, the collection does not include views in the DELETED lifecycleState to be consistent with other operations of the API. 
 - 
listZoneTransferServerspublic ListZoneTransferServersResponse listZoneTransferServers(ListZoneTransferServersRequest request) Description copied from interface:DnsGets a list of IP addresses of OCI nameservers for inbound and outbound transfer of zones in the specified compartment (which must be the root compartment of a tenancy) that transfer zone data with external master or downstream nameservers.- Specified by:
- listZoneTransferServersin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listZonespublic ListZonesResponse listZones(ListZonesRequest request) Description copied from interface:DnsGets a list of all zones in the specified compartment.The collection can be filtered by name, time created, scope, associated view, and zone type. Filtering by view is only supported for private zones. 
 - 
patchDomainRecordspublic PatchDomainRecordsResponse patchDomainRecords(PatchDomainRecordsRequest request) Description copied from interface:DnsUpdates records in the specified zone at a domain.You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- patchDomainRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
patchRRSetpublic PatchRRSetResponse patchRRSet(PatchRRSetRequest request) Description copied from interface:DnsUpdates records in the specified RRSet.When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- patchRRSetin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
patchZoneRecordspublic PatchZoneRecordsResponse patchZoneRecords(PatchZoneRecordsRequest request) Description copied from interface:DnsUpdates a collection of records in the specified zone.You can update one record or all records for the specified zone depending on the changes provided in the request body. You can also add or remove records using this function. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- patchZoneRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
promoteZoneDnssecKeyVersionpublic PromoteZoneDnssecKeyVersionResponse promoteZoneDnssecKeyVersion(PromoteZoneDnssecKeyVersionRequest request) Description copied from interface:DnsPromotes a specifiedDnssecKeyVersionon the zone.If the `DnssecKeyVersion` identified in the request body is a key signing key (KSK) that is replacing another `DnssecKeyVersion`, then the old `DnssecKeyVersion` is scheduled for removal from the zone. For key signing keys (KSKs), you must create the DS record with the new key information **before** promoting the new key to establish a chain of trust. To avoid a service disruption, remove the old DS record as soon as its TTL (time to live) expires. For more information, see [DNSSEC](https://docs.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm). - Specified by:
- promoteZoneDnssecKeyVersionin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
stageZoneDnssecKeyVersionpublic StageZoneDnssecKeyVersionResponse stageZoneDnssecKeyVersion(StageZoneDnssecKeyVersionRequest request) Description copied from interface:DnsStages a newDnssecKeyVersionon the zone.Staging is a process that generates a new "successor" key version that replaces an existing "predecessor" key version. Note: A new key-signing key (KSK) version is inert until you update the parent zone DS records. For more information, see the [DNSSEC](https://docs.oracle.com/iaas/Content/DNS/Concepts/dnssec.htm) documentation. - Specified by:
- stageZoneDnssecKeyVersionin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateDomainRecordspublic UpdateDomainRecordsResponse updateDomainRecords(UpdateDomainRecordsRequest request) Description copied from interface:DnsReplaces records in the specified zone at a domain with the records specified in the request body.If a specified record does not exist, it will be created. If the record exists, then it will be updated to represent the record in the body of the request. If a record in the zone does not exist in the request body, the record will be removed from the zone. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- updateDomainRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateRRSetpublic UpdateRRSetResponse updateRRSet(UpdateRRSetRequest request) Description copied from interface:DnsReplaces records in the specified RRSet.When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- updateRRSetin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateResolverpublic UpdateResolverResponse updateResolver(UpdateResolverRequest request) Description copied from interface:DnsUpdates the specified resolver with your new information.- Specified by:
- updateResolverin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateResolverEndpointpublic UpdateResolverEndpointResponse updateResolverEndpoint(UpdateResolverEndpointRequest request) Description copied from interface:DnsUpdates the specified resolver endpoint with your new information.- Specified by:
- updateResolverEndpointin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateSteeringPolicypublic UpdateSteeringPolicyResponse updateSteeringPolicy(UpdateSteeringPolicyRequest request) Description copied from interface:DnsUpdates the configuration of the specified steering policy.- Specified by:
- updateSteeringPolicyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateSteeringPolicyAttachmentpublic UpdateSteeringPolicyAttachmentResponse updateSteeringPolicyAttachment(UpdateSteeringPolicyAttachmentRequest request) Description copied from interface:DnsUpdates the specified steering policy attachment with your new information.- Specified by:
- updateSteeringPolicyAttachmentin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateTsigKeypublic UpdateTsigKeyResponse updateTsigKey(UpdateTsigKeyRequest request) Description copied from interface:DnsUpdates the specified TSIG key.- Specified by:
- updateTsigKeyin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateViewpublic UpdateViewResponse updateView(UpdateViewRequest request) Description copied from interface:DnsUpdates the specified view with your new information.- Specified by:
- updateViewin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateZonepublic UpdateZoneResponse updateZone(UpdateZoneRequest request) Description copied from interface:DnsUpdates the zone with the specified information.Global secondary zones may have their external masters updated. For more information about secondary zones, see [Manage DNS Service Zone](https://docs.oracle.com/iaas/Content/DNS/Tasks/managingdnszones.htm). When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- updateZonein interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateZoneRecordspublic UpdateZoneRecordsResponse updateZoneRecords(UpdateZoneRecordsRequest request) Description copied from interface:DnsReplaces records in the specified zone with the records specified in the request body.If a specified record does not exist, it will be created. If the record exists, then it will be updated to represent the record in the body of the request. If a record in the zone does not exist in the request body, the record will be removed from the zone. When the zone name is provided as a path parameter and `PRIVATE` is used for the scope query parameter then the viewId query parameter is required. - Specified by:
- updateZoneRecordsin interface- Dns
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getWaiterspublic DnsWaiters getWaiters() Description copied from interface:DnsGets the pre-configured waiters available for resources for this service.- Specified by:
- getWaitersin interface- Dns
- Returns:
- The service waiters.
 
 - 
newWaiterspublic DnsWaiters newWaiters(WorkRequest workRequestClient) Description copied from interface:DnsCreates a new DnsWaiters for resources for this service.- Specified by:
- newWaitersin interface- Dns
- Parameters:
- workRequestClient- The work request service client used to query for work request status
- Returns:
- The service waiters.
 
 - 
getPaginatorspublic DnsPaginators getPaginators() Description copied from interface:DnsGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
- getPaginatorsin interface- Dns
- Returns:
- The service paginators.
 
 - 
getDefaultConfiguratorprotected ClientConfigurator getDefaultConfigurator() 
 - 
useRealmSpecificEndpointTemplatepublic void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled) This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false - Parameters:
- useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
 
 - 
populateServiceParametersInEndpointpublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap) Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank. - Parameters:
- endpoint- The endpoint template in use
- requiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
 
 - 
updateBaseEndpointpublic final void updateBaseEndpoint(String endpoint) This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters. - Parameters:
- endpoint- The updated endpoint to use
 
 - 
setEndpointpublic final void setEndpoint(String endpoint) 
 - 
getEndpointpublic final String getEndpoint() 
 - 
refreshClientpublic final void refreshClient() Rebuild the backingHttpClient.This will call ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
 - 
closepublic final void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getClientCommonLibraryVersionpublic String getClientCommonLibraryVersion() 
 
- 
 
-