Interface SecurityContactsClient
public interface SecurityContactsClient
An instance of this class provides access to all the operations defined in SecurityContactsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String securityContactName, SecurityContactInner securityContact) Create security contact configurations for the subscription.com.azure.core.http.rest.Response<SecurityContactInner>
createWithResponse
(String securityContactName, SecurityContactInner securityContact, com.azure.core.util.Context context) Create security contact configurations for the subscription.void
Delete security contact configurations for the subscription.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String securityContactName, com.azure.core.util.Context context) Delete security contact configurations for the subscription.Get Default Security contact configurations for the subscription.com.azure.core.http.rest.Response<SecurityContactInner>
getWithResponse
(String securityContactName, com.azure.core.util.Context context) Get Default Security contact configurations for the subscription.com.azure.core.http.rest.PagedIterable<SecurityContactInner>
list()
List all security contact configurations for the subscription.com.azure.core.http.rest.PagedIterable<SecurityContactInner>
list
(com.azure.core.util.Context context) List all security contact configurations for the subscription.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SecurityContactInner> list()List all security contact configurations for the subscription.- Returns:
- list of security contacts response as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SecurityContactInner> list(com.azure.core.util.Context context) List all security contact configurations for the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of security contacts response as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get Default Security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.- Returns:
- default Security contact configurations for the subscription.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<SecurityContactInner> getWithResponse(String securityContactName, com.azure.core.util.Context context) Get Default Security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.context
- The context to associate with this operation.- Returns:
- default Security contact configurations for the subscription along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
create
Create security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.securityContact
- Security contact object.- Returns:
- contact details and configurations for notifications coming from Microsoft Defender for Cloud.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createWithResponse
com.azure.core.http.rest.Response<SecurityContactInner> createWithResponse(String securityContactName, SecurityContactInner securityContact, com.azure.core.util.Context context) Create security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.securityContact
- Security contact object.context
- The context to associate with this operation.- Returns:
- contact details and configurations for notifications coming from Microsoft Defender for Cloud along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String securityContactName, com.azure.core.util.Context context) Delete security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-