1 /*
2  * Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  *  http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */

15 package com.amazonaws.partitions.model;
16
17 /**
18  * credential scope associated with an endpoint.
19  */

20 public class CredentialScope {
21
22     /**
23      * region string to be used when signing a request for an endpoint.
24      */

25     private String region;
26
27     /**
28      * service name string to be used when signing a request for an endpoint
29      */

30     private String service;
31
32     /**
33      * Returns the region string to be used when signing a request for an
34      * endpoint.
35      */

36     public String getRegion() {
37         return region;
38     }
39
40     /**
41      * Sets the region string to be used when signing a request for an
42      * endpoint.
43      */

44     public void setRegion(String region) {
45         this.region = region;
46     }
47
48     /**
49      * Returns the service name string to be used when signing a request for an
50      * endpoint.
51      */

52     public String getService() {
53         return service;
54     }
55
56     /**
57      * Sets the service name string to be used when signing a request for an
58      * endpoint.
59      */

60     public void setService(String service) {
61         this.service = service;
62     }
63 }
64