|
| 1 | +/** |
| 2 | + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
| 3 | + */ |
| 4 | +package com.oracle.bmc.autoscaling; |
| 5 | + |
| 6 | +import com.oracle.bmc.autoscaling.requests.*; |
| 7 | +import com.oracle.bmc.autoscaling.responses.*; |
| 8 | + |
| 9 | +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181001") |
| 10 | +public interface AutoScaling extends AutoCloseable { |
| 11 | + |
| 12 | + /** |
| 13 | + * Sets the endpoint to call (ex, https://www.example.com). |
| 14 | + * @param endpoint The endpoint of the service. |
| 15 | + */ |
| 16 | + void setEndpoint(String endpoint); |
| 17 | + |
| 18 | + /** |
| 19 | + * Sets the region to call (ex, Region.US_PHOENIX_1). |
| 20 | + * <p> |
| 21 | + * Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised. |
| 22 | + * @param region The region of the service. |
| 23 | + */ |
| 24 | + void setRegion(com.oracle.bmc.Region region); |
| 25 | + |
| 26 | + /** |
| 27 | + * Sets the region to call (ex, 'us-phoenix-1'). |
| 28 | + * <p> |
| 29 | + * Note, this will first try to map the region ID to a known Region and call |
| 30 | + * {@link #setRegion(Region) setRegion}. |
| 31 | + * <p> |
| 32 | + * If no known Region could be determined, it will create an endpoint based on the |
| 33 | + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} |
| 34 | + * and then call {@link #setEndpoint(String) setEndpoint}. |
| 35 | + * @param regionId The public region ID. |
| 36 | + */ |
| 37 | + void setRegion(String regionId); |
| 38 | + |
| 39 | + /** |
| 40 | + * Create an AutoScalingConfiguration |
| 41 | + * @param request The request object containing the details to send |
| 42 | + * @return A response object containing details about the completed operation |
| 43 | + * @throws BmcException when an error occurs. |
| 44 | + */ |
| 45 | + CreateAutoScalingConfigurationResponse createAutoScalingConfiguration( |
| 46 | + CreateAutoScalingConfigurationRequest request); |
| 47 | + |
| 48 | + /** |
| 49 | + * Create a Policy for AutoScalingConfiguration |
| 50 | + * @param request The request object containing the details to send |
| 51 | + * @return A response object containing details about the completed operation |
| 52 | + * @throws BmcException when an error occurs. |
| 53 | + */ |
| 54 | + CreateAutoScalingPolicyResponse createAutoScalingPolicy(CreateAutoScalingPolicyRequest request); |
| 55 | + |
| 56 | + /** |
| 57 | + * Deletes an AutoScalingConfiguration |
| 58 | + * @param request The request object containing the details to send |
| 59 | + * @return A response object containing details about the completed operation |
| 60 | + * @throws BmcException when an error occurs. |
| 61 | + */ |
| 62 | + DeleteAutoScalingConfigurationResponse deleteAutoScalingConfiguration( |
| 63 | + DeleteAutoScalingConfigurationRequest request); |
| 64 | + |
| 65 | + /** |
| 66 | + * Deletes an AutoScalingConfiguration Policy |
| 67 | + * @param request The request object containing the details to send |
| 68 | + * @return A response object containing details about the completed operation |
| 69 | + * @throws BmcException when an error occurs. |
| 70 | + */ |
| 71 | + DeleteAutoScalingPolicyResponse deleteAutoScalingPolicy(DeleteAutoScalingPolicyRequest request); |
| 72 | + |
| 73 | + /** |
| 74 | + * Get AutoScalingConfiguration |
| 75 | + * @param request The request object containing the details to send |
| 76 | + * @return A response object containing details about the completed operation |
| 77 | + * @throws BmcException when an error occurs. |
| 78 | + */ |
| 79 | + GetAutoScalingConfigurationResponse getAutoScalingConfiguration( |
| 80 | + GetAutoScalingConfigurationRequest request); |
| 81 | + |
| 82 | + /** |
| 83 | + * Get Policy from a specific AutoScalingConfiguration |
| 84 | + * @param request The request object containing the details to send |
| 85 | + * @return A response object containing details about the completed operation |
| 86 | + * @throws BmcException when an error occurs. |
| 87 | + */ |
| 88 | + GetAutoScalingPolicyResponse getAutoScalingPolicy(GetAutoScalingPolicyRequest request); |
| 89 | + |
| 90 | + /** |
| 91 | + * Lists AutoScalingConfigurations in the specific compartment. |
| 92 | + * |
| 93 | + * @param request The request object containing the details to send |
| 94 | + * @return A response object containing details about the completed operation |
| 95 | + * @throws BmcException when an error occurs. |
| 96 | + */ |
| 97 | + ListAutoScalingConfigurationsResponse listAutoScalingConfigurations( |
| 98 | + ListAutoScalingConfigurationsRequest request); |
| 99 | + |
| 100 | + /** |
| 101 | + * Lists Policies in an AutoScalingConfiguration. |
| 102 | + * |
| 103 | + * @param request The request object containing the details to send |
| 104 | + * @return A response object containing details about the completed operation |
| 105 | + * @throws BmcException when an error occurs. |
| 106 | + */ |
| 107 | + ListAutoScalingPoliciesResponse listAutoScalingPolicies(ListAutoScalingPoliciesRequest request); |
| 108 | + |
| 109 | + /** |
| 110 | + * Updates an AutoScalingConfiguration |
| 111 | + * @param request The request object containing the details to send |
| 112 | + * @return A response object containing details about the completed operation |
| 113 | + * @throws BmcException when an error occurs. |
| 114 | + */ |
| 115 | + UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( |
| 116 | + UpdateAutoScalingConfigurationRequest request); |
| 117 | + |
| 118 | + /** |
| 119 | + * Updates a Policy in the specific AutoScalingConfiguration |
| 120 | + * @param request The request object containing the details to send |
| 121 | + * @return A response object containing details about the completed operation |
| 122 | + * @throws BmcException when an error occurs. |
| 123 | + */ |
| 124 | + UpdateAutoScalingPolicyResponse updateAutoScalingPolicy(UpdateAutoScalingPolicyRequest request); |
| 125 | + |
| 126 | + /** |
| 127 | + * Gets the pre-configured paginators available for list operations in this service which may return multiple |
| 128 | + * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or |
| 129 | + * resources/records, can be iterated through without having to manually deal with pagination and page tokens. |
| 130 | + * |
| 131 | + * @return The service paginators. |
| 132 | + */ |
| 133 | + AutoScalingPaginators getPaginators(); |
| 134 | +} |
0 commit comments